Skip to content

Conversation

@CREDO23
Copy link
Contributor

@CREDO23 CREDO23 commented Dec 31, 2025

Description

  • Use colored icons for connectors

Change Type

  • Bug fix
  • New feature
  • Performance improvement
  • Refactoring
  • Documentation
  • Dependency/Build system
  • Breaking change
  • Other (specify):

High-level PR Summary

This PR replaces monochrome icon components with colored SVG images for various connector cards. The main change involves refactoring the getConnectorIcon function to return Image components that reference colored SVG files instead of using icon components from @tabler/icons-react and lucide-react. This update includes adding 18 new SVG files for connectors like Linear, GitHub, Slack, Notion, Discord, Jira, Google services, and others, along with cleanup of unused icon imports.

⏱️ Estimated Review Time: 30-90 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_web/contracts/enums/connectorIcons.tsx
2 surfsense_web/components/sources/connector-data.tsx
3 surfsense_web/public/connectors/linear.svg
4 surfsense_web/public/connectors/github.svg
5 surfsense_web/public/connectors/baidu-search.svg
6 surfsense_web/public/connectors/slack.svg
7 surfsense_web/public/connectors/notion.svg
8 surfsense_web/public/connectors/discord.svg
9 surfsense_web/public/connectors/jira.svg
10 surfsense_web/public/connectors/google-calendar.svg
11 surfsense_web/public/connectors/google-gmail.svg
12 surfsense_web/public/connectors/google-drive.svg
13 surfsense_web/public/connectors/airtable.svg
14 surfsense_web/public/connectors/confluence.svg
15 surfsense_web/public/connectors/bookstack.svg
16 surfsense_web/public/connectors/clickup.svg
17 surfsense_web/public/connectors/elasticsearch.svg
18 surfsense_web/public/connectors/youtube.svg
19 surfsense_web/public/connectors/microsoft-teams.svg
20 surfsense_web/public/connectors/zoom.svg

Need help? Join our Discord

Analyze latest changes

- Add 18 branded SVG icons to public/connectors/
- Clean naming convention (e.g., slack.svg, google-drive.svg)
- Includes: Slack, Notion, GitHub, Jira, Google (Drive/Gmail/Calendar),
  Linear, Discord, Confluence, BookStack, ClickUp, Elasticsearch,
  Baidu, Airtable, YouTube, Teams, Zoom
- Use Next.js Image component for SVG icons (20x20px)
- Replace 16 Tabler/Lucide icons with branded SVGs
- Add support for Teams, Zoom, YouTube string cases
- Clean up unused icon imports
- Maintain fallback for connectors without SVG icons
- Replace IconBrandWindows with Teams SVG icon
- Replace IconBrandZoom with Zoom SVG icon
- Remove unused Tabler icon imports
- Use getConnectorIcon helper for consistency
@vercel
Copy link

vercel bot commented Dec 31, 2025

@CREDO23 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by RecurseML

🔍 Review performed on b0b7d33..e2c062c

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (20)

surfsense_web/components/sources/connector-data.tsx
surfsense_web/contracts/enums/connectorIcons.tsx
surfsense_web/public/connectors/airtable.svg
surfsense_web/public/connectors/baidu-search.svg
surfsense_web/public/connectors/bookstack.svg
surfsense_web/public/connectors/clickup.svg
surfsense_web/public/connectors/confluence.svg
surfsense_web/public/connectors/discord.svg
surfsense_web/public/connectors/elasticsearch.svg
surfsense_web/public/connectors/github.svg
surfsense_web/public/connectors/google-calendar.svg
surfsense_web/public/connectors/google-drive.svg
surfsense_web/public/connectors/google-gmail.svg
surfsense_web/public/connectors/jira.svg
surfsense_web/public/connectors/linear.svg
surfsense_web/public/connectors/microsoft-teams.svg
surfsense_web/public/connectors/notion.svg
surfsense_web/public/connectors/slack.svg
surfsense_web/public/connectors/youtube.svg
surfsense_web/public/connectors/zoom.svg

@MODSetter MODSetter merged commit 7a746fd into MODSetter:dev Dec 31, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants