Skip to content
Open
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
1 change: 1 addition & 0 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"../connectors/meta/**/*": "connectors/meta/",
"../connectors/openai/**/*": "connectors/openai/",
"../connectors/spotify/**/*": "connectors/spotify/",
"../connectors/x/**/*": "connectors/x/",
"../playwright-runner/dist/*": "playwright-runner/dist/",
"../personal-server/dist/personal-server*": "personal-server/dist/"
},
Expand Down
19 changes: 19 additions & 0 deletions src/components/icons/platform-x.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { Svg as SvgComponent, type SvgIconProps } from "@/components/utils/svg"

export const PlatformXIcon = (props: SvgIconProps) => {
return (
<SvgComponent useBoxSize={false} viewBox="0 0 1200 1227" {...props}>
<g clipPath="url(#clip0_800_5946)">
<path
fill="currentColor"
d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"
/>
</g>
<defs>
<clipPath id="clip0_800_5946">
<rect width="1200" height="1227" fill="transparent" />
</clipPath>
</defs>
</SvgComponent>
)
}
4 changes: 2 additions & 2 deletions src/lib/platform/icons.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { ElementType } from "react"
import { IconX } from "@/components/icons/icon-x"
import { PlatformChatGPTIcon } from "@/components/icons/platform-chatgpt"
import { PlatformGithubIcon } from "@/components/icons/platform-github"
import { PlatformInstagramGlyphIcon } from "@/components/icons/platform-instagram-glyph"
import { PlatformLinkedinIcon } from "@/components/icons/platform-linkedin"
import { PlatformSpotifyIcon } from "@/components/icons/platform-spotify"
import { PlatformXIcon } from "@/components/icons/platform-x"
import type { PlatformRegistryEntry } from "./registry"
import {
getPlatformRegistryEntry,
Expand All @@ -20,7 +20,7 @@ const PLATFORM_ICON_COMPONENTS: Record<string, PlatformIconComponent> = {
instagram: PlatformInstagramGlyphIcon,
linkedin: PlatformLinkedinIcon,
spotify: PlatformSpotifyIcon,
x: IconX,
x: PlatformXIcon,
}

const resolveIconComponentForEntry = (entry: PlatformRegistryEntry | null) => {
Expand Down
7 changes: 5 additions & 2 deletions src/lib/platform/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ export const PLATFORM_REGISTRY: PlatformRegistryEntry[] = [
iconKey: "x",
iconEmoji: "𝕏",
primaryColor: "#111111",
platformIds: ["x"],
aliases: ["x (twitter)"],
platformIds: ["x-playwright", "x"],
aliases: ["x (twitter)", "twitter"],
availability: "requiresConnector",
showInConnectList: true,
ingestScope: "x.posts",
},
{
id: "twitter",
Expand Down