Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/landing/src/shared/icons/brands.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { CodexIcon } from "@onequery/ui/icons/codex-icon";
import { GoogleSearchConsoleIcon } from "@onequery/ui/icons/google-search-console-icon";
import { HermesAgentIcon } from "@onequery/ui/icons/hermes-agent-icon";
import { SimpleIconSvg, SvgIcon } from "@onequery/ui/icons/svg-icon";
import type { IconSvgProps, SimpleIconData } from "@onequery/ui/icons/svg-icon";
Expand All @@ -16,7 +17,6 @@ import {
siGoogleanalytics,
siGooglebigquery,
siGoogledrive,
siGooglesearchconsole,
siHomebrew,
siJira,
siLinear,
Expand Down Expand Up @@ -276,7 +276,7 @@ const BRAND_ICONS = {
ga: createSimpleBrandIcon(siGoogleanalytics),
github: createSimpleBrandIcon(siGithub),
googledrive: createSimpleBrandIcon(siGoogledrive),
google_search_console: createSimpleBrandIcon(siGooglesearchconsole),
google_search_console: GoogleSearchConsoleIcon,
granola: GranolaIcon,
hermes: HermesIcon,
homebrew: createSimpleBrandIcon(siHomebrew),
Expand Down
1 change: 1 addition & 0 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"./data-sources/provider-icons": "./src/data-sources/provider-icons.tsx",
"./components/*": "./src/components/ui/*.tsx",
"./icons/codex-icon": "./src/icons/codex-icon.tsx",
"./icons/google-search-console-icon": "./src/icons/google-search-console-icon.tsx",
"./icons/hermes-agent-icon": "./src/icons/hermes-agent-icon.tsx",
"./hooks/*": "./src/hooks/*.ts",
"./icons/svg-icon": "./src/icons/svg-icon.tsx"
Expand Down
12 changes: 12 additions & 0 deletions packages/ui/src/data-sources/provider-icons.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@ describe("shared provider icon accessibility", () => {
expect(accessibleMarkup).toContain("<title>Cloudflare D1 provider</title>");
});

it("renders Google Search Console with the current multicolor brand mark", () => {
const markup = renderProviderIcon("google_search_console", {
title: "Google Search Console provider",
});

expect(markup).toContain('viewBox="0 0 999.9841309 1000"');
expect(markup).toContain('fill="#4285F4"');
expect(markup).toContain('fill="#34A853"');
expect(markup).toContain('fill="#EA4335"');
expect(markup).toContain("<title>Google Search Console provider</title>");
});

it("renders AWS Athena Connector as a monochrome icon", () => {
const markup = renderProviderIcon("aws_athena_connector");

Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/data-sources/provider-icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
siGoogleanalytics,
siGooglebigquery,
siGoogledocs,
siGooglesearchconsole,
siJira,
siLinear,
siMixpanel,
Expand All @@ -34,6 +33,7 @@ import {
} from "simple-icons";

import { CodexIcon } from "../icons/codex-icon";
import { GoogleSearchConsoleIcon } from "../icons/google-search-console-icon";
import { HermesAgentIcon } from "../icons/hermes-agent-icon";
import {
SimpleIconSvg,
Expand Down Expand Up @@ -331,7 +331,7 @@ export const ProviderIcons = {
ga: createSimpleProviderIcon(siGoogleanalytics),
github: GitHubIcon,
google_docs: createSimpleProviderIcon(siGoogledocs),
google_search_console: createSimpleProviderIcon(siGooglesearchconsole),
google_search_console: GoogleSearchConsoleIcon,
granola: GranolaIcon,
hermes: HermesIcon,
jira: createSimpleProviderIcon(siJira),
Expand Down
38 changes: 38 additions & 0 deletions packages/ui/src/icons/google-search-console-icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { SvgIcon } from "./svg-icon";
import type { IconSvgProps } from "./svg-icon";

export function GoogleSearchConsoleIcon({ size = 24, ...props }: IconSvgProps) {
return (
<SvgIcon
{...props}
defaultLabel="Google Search Console"
size={size}
viewBox="0 0 999.9841309 1000"
>
<path
d="M210.5232391,840.7478027L59.9796371,991.3233032c-11.612133,11.5689087-30.3933582,11.5689087-42.0054932,0l-9.3132849-9.3132935c-11.5478144-11.6083984-11.5478144-30.3651733,0-41.9736328l150.5435944-150.5755005c11.6158142-11.5901489,30.4215698-11.5901489,42.037384,0l9.2814026,9.2813721c11.599472,11.5681152,11.624939,30.3491821,0.0568542,41.9486694c-0.018921,0.0189819-0.0378723,0.0379028-0.0568542,0.0568848z"
fill="#FBBC04"
/>
<path
d="M614.598877,903.6762695h192.7085571c106.3947754,0.0176392,192.6590576-86.2180786,192.6766968-192.612854c0-0.0318604,0-0.0638428,0-0.0957031V192.6766968C1000.00177,86.2819214,913.7659912,0.017623,807.3712158,0.0000114c-0.0212402-0.0000152-0.0424805-0.0000152-0.0637817,0C700.9126587-0.035227,614.6340942,86.1862259,614.598877,192.5809937c0,0.0319061,0,0.0637817,0,0.0957031V903.6762695z"
fill="#4285F4"
/>
<path
d="M295.6505432,903.6762695c106.3947754,0.0352783,192.6733398-86.1862183,192.7085571-192.5809937c0-0.0425415,0-0.085022,0-0.1275635c0.0176392-106.3947754-86.2180786-192.6590576-192.612854-192.6766968c-0.0318909,0-0.0638123,0-0.0957031,0c-106.3947601-0.0352173-192.6733398,86.1862183-192.7085876,192.5809937c0,0.0318604-0.0000153,0.0638428,0,0.0957031c-0.0352402,106.3947754,86.1862106,192.6732788,192.5809937,192.7085571c0.0425109,0,0.0850525,0,0.127594,0z"
fill="#FBBC04"
/>
<path
d="M749.1950073,903.6762695H561.4301758c-106.3947754,0.0176392-192.6590576-86.2180786-192.6766968-192.612854c0-0.0318604,0-0.0638428,0-0.0957031V458.4882202c-0.0352173-106.3947754,86.1862183-192.6733704,192.5809937-192.7085876c0.0318604,0,0.0638428,0,0.0957031,0c106.3947754-0.0352173,192.6733398,86.1862183,192.7085571,192.5809937c0,0.0425415,0,0.0850525,0,0.127594v440.2763062c0,2.7127075-2.1990967,4.9117432-4.9117432,4.9117432H749.1950073z"
fill="#34A853"
/>
<path
d="M754.1387329,898.7645264V458.4882202c-0.0068359-85.9471436-56.9287109-161.5003357-139.539856-185.2133179v630.4013672h134.5961304c2.7127075,0.0176392,4.9260254-2.1671753,4.9436035-4.8797607c0.000061,-0.0107422,0.0001221-0.0213013,0.0001221-0.0319824z"
fill="#1967D2"
/>
<path
d="M488.3605347,711.0022583c0.0122986-78.2371216-47.2464294-148.7197876-119.6056213-178.3825073v178.3825073c0,54.8869019,22.9642639,104.4447021,59.8027954,139.546814c38.2283325-36.3347778,59.8516235-86.791687,59.8028259-139.546814z"
fill="#EA4335"
/>
</SvgIcon>
);
}
Loading