Skip to content

Conversation

wenxi-onyx
Copy link
Member

@wenxi-onyx wenxi-onyx commented Aug 12, 2025

Description

  • Added popular connectors section
  • Re-purposed "Other" connectors category to hold uncommon/extra connectors
  • Added env var to show/hide Other category
  • Reorganized connectors (sources.ts) by type and alphabetical order

How Has This Been Tested?

locally

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@wenxi-onyx wenxi-onyx requested a review from a team as a code owner August 12, 2025 00:47
Copy link

vercel bot commented Aug 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
internal-search Ready Ready Preview Comment Aug 17, 2025 7:25pm

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

Greptile Summary

This PR implements a comprehensive reorganization of the connector management interface to improve user experience through better categorization and selective visibility. The changes introduce a "Popular" section that prominently displays commonly used connectors (Slack, Google Drive, GitHub, etc.) at the top of the page when no search is active. The "Other" category has been repurposed to contain uncommon/extra connectors, which can now be hidden via a new environment variable SHOW_EXTRA_CONNECTORS.

The implementation spans multiple layers of the application:

Backend Changes: Added the SHOW_EXTRA_CONNECTORS environment variable to app_configs.py (defaults to false), integrated it into the Settings model and store, creating a complete configuration pipeline from environment to frontend.

Data Reorganization: The sources.ts file was extensively reorganized with connectors now grouped by logical categories (Cloud Storage, Code Repository, Customer Support, etc.) and sorted alphabetically within each category. Eleven popular connectors were flagged with isPopular: true, and some connectors were recategorized (notably 'file' moved to Other, new 'Sales & Marketing' category created).

Frontend Logic: The add-connector page now renders a Popular section when no search term is active, and conditionally filters out the Other category based on the settings. Category descriptions were removed to reduce visual clutter.

Infrastructure: All Docker Compose configurations were updated with the new environment variable, defaulting to true in development environments for backward compatibility.

Interface Updates: The SourceCategory enum was updated with more descriptive names ('Storage' → 'Cloud Storage', 'CustomerRelationshipManagement' → 'Sales & Marketing'), and the SourceMetadata interface gained the isPopular boolean field.

The changes integrate cleanly with existing components like SourceTileTooltipWrapper and maintain compatibility with federated connectors and credential checking logic. The reorganization follows established patterns in the codebase for environment variable configuration and settings management.

Confidence score: 4/5

  • This PR introduces significant UI reorganization with new filtering logic but appears well-implemented with proper environment variable integration
  • Score reflects complexity in the filtering logic and potential edge cases in search behavior, though the core changes follow established patterns
  • Pay close attention to the add-connector page filtering logic and ensure the popular connectors section behaves correctly across different search states

12 files reviewed, 3 comments

Edit Code Review Bot Settings | Greptile

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

cubic analysis

No issues found across 12 files. Review in cubic

@Weves Weves merged commit 255c2af into main Aug 29, 2025
13 of 15 checks passed
@Weves Weves deleted the feat/reorganize_connectors_page branch August 29, 2025 23:59
AnkitTukatek pushed a commit to TukaTek/onyx that referenced this pull request Sep 23, 2025
* Add popular connectors sections and cleanup connectors page

* Add other connectors env var

* other connectors env var to vscode env template

* update playwright tests

* sort by popuarlity

* recategorize and sort by popularity
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