Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: use inline brand SVGs for integration icons

Louis Beaumontecefafb17b31
diff --git a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
index 8353bd70d..838f59099 100644
--- a/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/connections-section.tsx
@@ -520,20 +520,42 @@ interface IntegrationInfo {
connected: boolean;
}
-const INTEGRATION_EMOJI: Record<string, string> = {
- telegram: "✈️",
- slack: "#",
- discord: "🎮",
- email: "✉️",
- todoist: "✅",
- teams: "👥",
-};
-
function IntegrationIcon({ icon }: { icon: string }) {
- const emoji = INTEGRATION_EMOJI[icon];
+ const icons: Record<string, React.ReactNode> = {
+ telegram: (
+ <svg viewBox="0 0 24 24" className="w-5 h-5" fill="#2AABEE">
+ <path d="M12 0C5.37 0 0 5.37 0 12s5.37 12 12 12 12-5.37 12-12S18.63 0 12 0zm5.53 8.16l-1.81 8.53c-.13.6-.5.75-.99.47l-2.75-2.03-1.33 1.28c-.15.15-.27.27-.55.27l.2-2.8 5.1-4.6c.22-.2-.05-.31-.34-.12l-6.31 3.97-2.72-.85c-.59-.18-.6-.59.13-.88l10.62-4.1c.49-.18.92.12.75.86z"/>
+ </svg>
+ ),
+ slack: (
+ <svg viewBox="0 0 24 24" className="w-5 h-5">
+ <path fill="#E01E5A" d="M5.04 15.16a2.18 2.18 0 01-2.18 2.18A2.18 2.18 0 01.68 15.16a2.18 2.18 0 012.18-2.18h2.18v2.18zm1.09 0a2.18 2.18 0 012.18-2.18 2.18 2.18 0 012.18 2.18v5.45a2.18 2.18 0 01-2.18 2.18 2.18 2.18 0 01-2.18-2.18v-5.45z"/>
+ <path fill="#36C5F0" d="M8.31 5.04a2.18 2.18 0 01-2.18-2.18A2.18 2.18 0 018.31.68a2.18 2.18 0 012.18 2.18v2.18H8.31zm0 1.1a2.18 2.18 0 012.18 2.17 2.18 2.18 0 01-2.18 2.18H2.86A2.18 2.18 0 01.68 8.31a2.18 2.18 0 012.18-2.18h5.45z"/>
+ <path fill="#2EB67D" d="M18.96 8.31a2.18 2.18 0 012.18-2.18 2.18 2.18 0 012.18 2.18 2.18 2.18 0 01-2.18 2.18h-2.18V8.31zm-1.09 0a2.18 2.18 0 01-2.18 2.18 2.18 2.18 0 01-2.18-2.18V2.86A2.18 2.18 0 0115.69.68a2.18 2.18 0 012.18 2.18v5.45z"/>
+ <path fill="#ECB22E" d="M15.69 18.96a2.18 2.18 0 012.18 2.18 2.18 2.18 0 01-2.18 2.18 2.18 2.18 0 01-2.18-2.18v-2.18h2.18zm0-1.09a2.18 2.18 0 01-2.18-2.18 2.18 2.18 0 012.18-2.18h5.45a2.18 2.18 0 012.18 2.18 2.18 2.18 0 01-2.18 2.18h-5.45z"/>
+ </svg>
+ ),
+ discord: (
+ <svg viewBox="0 0 24 24" className="w-5 h-5" fill="#5865F2">
+ <path d="M20.32 4.37a19.8 19.8 0 00-4.89-1.52.07.07 0 00-.08.04c-.21.38-.44.87-.6 1.25a18.27 18.27 0 00-5.49 0 12.64 12.64 0 00-.62-1.25.08.08 0 00-.08-.04 19.74 19.74 0 00-4.89 1.52.07.07 0 00-.03.03C1.11 8.39.34 12.27.74 16.1a.08.08 0 00.03.06 19.9 19.9 0 005.99 3.03.08.08 0 00.08-.03c.46-.63.87-1.3 1.22-2a.08.08 0 00-.04-.11 13.1 13.1 0 01-1.87-.9.08.08 0 01-.01-.13c.13-.09.25-.19.37-.29a.08.08 0 01.08-.01c3.93 1.79 8.18 1.79 12.07 0a.08.08 0 01.08.01c.12.1.25.2.37.29a.08.08 0 01 0 .13c-.6.35-1.22.65-1.87.9a.08.08 0 00-.04.1c.36.7.77 1.37 1.22 2a.08.08 0 00.08.03 19.83 19.83 0 006-3.03.08.08 0 00.04-.05c.46-4.54-.78-8.38-3.36-11.77a.06.06 0 00-.03-.03zM8.02 13.72c-1.02 0-1.86-.93-1.86-2.08s.82-2.08 1.86-2.08c1.05 0 1.88.94 1.86 2.08 0 1.15-.82 2.08-1.86 2.08zm6.88 0c-1.02 0-1.86-.93-1.86-2.08s.82-2.08 1.86-2.08c1.05 0 1.88.94 1.86 2.08 0 1.15-.81 2.08-1.86 2.08z"/>
+ </svg>
+ ),
+ email: <Send className="h-5 w-5 text-muted-foreground" />,
+ todoist: (
+ <svg viewBox="0 0 24 24" className="w-5 h-5" fill="#E44332">
+ <path d="M21 0H3C1.34 0 0 1.34 0 3v18c0 1.66 1.34 3 3 3h18c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zM5.8 15.2l1.06-1.58c.12-.18.36-.24.54-.12 1.46.94 3.1 1.44 4.8 1.44 1.7 0 3.34-.5 4.8-1.44.18-.12.42-.06.54.12l1.06 1.58c.12.18.06.42-.12.54C16.56 17.16 14.34 17.8 12 17.8s-4.56-.64-6.48-2.06c-.18-.12-.24-.36-.12-.54zm0-4l1.06-1.58c.12-.18.36-.24.54-.12 1.46.94 3.1 1.44 4.8 1.44 1.7 0 3.34-.5 4.8-1.44.18-.12.42-.06.54.12l1.06 1.58c.12.18.06.42-.12.54C16.56 13.16 14.34 13.8 12 13.8s-4.56-.64-6.48-2.06c-.18-.12-.24-.36-.12-.54zm0-4l1.06-1.58c.12-.18.36-.24.54-.12C8.86 6.44 10.5 6.94 12.2 6.94c1.7 0 3.34-.5 4.8-1.44.18-.12.42-.06.54.12l1.06 1.58c.12.18.06.42-.12.54C16.56 9.16 14.34 9.8 12 9.8s-4.56-.64-6.48-2.06c-.18-.12-.24-.36-.12-.54z"/>
+ </svg>
+ ),
+ teams: (
+ <svg viewBox="0 0 24 24" className="w-5 h-5" fill="#6264A7">
+ <path d="M20.63 8.05h-3.3a3.2 3.2 0 01.42 1.58v5.68a3.2 3.2 0 01-3.2 3.2h-3.82a4.44 4.44 0 004.07 2.64h2.94a4.44 4.44 0 004.44-4.44v-4.11a4.55 4.55 0 00-1.55-3.42v-.01a4.44 4.44 0 00-.86-.55c-.37-.18-.77-.31-1.14-.41v-.16zm-3.38-2.2a2.63 2.63 0 100-5.26 2.63 2.63 0 000 5.26zM14.55 6.6H6.17A2.17 2.17 0 004 8.77v6.54a2.17 2.17 0 002.17 2.17h8.38a2.17 2.17 0 002.17-2.17V8.77A2.17 2.17 0 0014.55 6.6zm-4.19-2.2a3.16 3.16 0 100-6.32 3.16 3.16 0 000 6.32z"/>
+ </svg>
+ ),
+ };
+
return (
- <div className="w-10 h-10 bg-muted rounded-2xl flex items-center justify-center text-lg">
- {emoji || <Send className="h-5 w-5 text-muted-foreground" />}
+ <div className="w-10 h-10 bg-muted rounded-2xl flex items-center justify-center">
+ {icons[icon] || <Send className="h-5 w-5 text-muted-foreground" />}
</div>
);
}