feat(repos): Replace the repo list page with the new repo tree-view#110290
Open
feat(repos): Replace the repo list page with the new repo tree-view#110290
Conversation
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Autofix Details
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Duplicated filter constants across two pages
- Extracted REPO_FILTER_OPTIONS and repoParser to a new shared constants file in scmIntegrationTree/constants.ts, eliminating the duplication across both pages.
Or push these changes by commenting:
@cursor push e6498d87d7
Preview (e6498d87d7)
diff --git a/static/app/components/repositories/scmIntegrationTree/constants.ts b/static/app/components/repositories/scmIntegrationTree/constants.ts
new file mode 100644
--- /dev/null
+++ b/static/app/components/repositories/scmIntegrationTree/constants.ts
@@ -1,0 +1,17 @@
+import {parseAsStringLiteral} from 'nuqs';
+
+import type {SelectOption} from '@sentry/scraps/compactSelect';
+
+import {t} from 'sentry/locale';
+
+import type {RepoFilter} from './types';
+
+export const REPO_FILTER_OPTIONS: Array<SelectOption<RepoFilter>> = [
+ {value: 'all' as const, label: t('All repos')},
+ {value: 'connected' as const, label: t('Connected Repos')},
+ {value: 'not-connected' as const, label: t('Disconnected Repos')},
+];
+
+export const repoParser = parseAsStringLiteral(
+ REPO_FILTER_OPTIONS.map(option => option.value)
+).withDefault('all');
diff --git a/static/app/views/settings/organizationRepositories/index.tsx b/static/app/views/settings/organizationRepositories/index.tsx
--- a/static/app/views/settings/organizationRepositories/index.tsx
+++ b/static/app/views/settings/organizationRepositories/index.tsx
@@ -1,4 +1,4 @@
-import {parseAsString, parseAsStringLiteral, useQueryState} from 'nuqs';
+import {parseAsString, useQueryState} from 'nuqs';
import {CompactSelect, type SelectOption} from '@sentry/scraps/compactSelect';
import {Input} from '@sentry/scraps/input';
@@ -6,6 +6,10 @@
import {ExternalLink} from '@sentry/scraps/link';
import AnalyticsArea from 'sentry/components/analyticsArea';
+import {
+ REPO_FILTER_OPTIONS,
+ repoParser,
+} from 'sentry/components/repositories/scmIntegrationTree/constants';
import {ScmIntegrationTree} from 'sentry/components/repositories/scmIntegrationTree/scmIntegrationTree';
import type {RepoFilter} from 'sentry/components/repositories/scmIntegrationTree/types';
import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
@@ -13,16 +17,6 @@
import useOrganization from 'sentry/utils/useOrganization';
import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
-const REPO_FILTER_OPTIONS: Array<SelectOption<RepoFilter>> = [
- {value: 'all' as const, label: t('All repos')},
- {value: 'connected' as const, label: t('Connected Repos')},
- {value: 'not-connected' as const, label: t('Disconnected Repos')},
-];
-
-const repoParser = parseAsStringLiteral(
- REPO_FILTER_OPTIONS.map(option => option.value)
-).withDefault('all');
-
export default function OrganizationRepositories() {
const organization = useOrganization();
diff --git a/static/gsApp/views/seerAutomation/scm.tsx b/static/gsApp/views/seerAutomation/scm.tsx
--- a/static/gsApp/views/seerAutomation/scm.tsx
+++ b/static/gsApp/views/seerAutomation/scm.tsx
@@ -1,4 +1,4 @@
-import {parseAsString, parseAsStringLiteral, useQueryState} from 'nuqs';
+import {parseAsString, useQueryState} from 'nuqs';
import {CompactSelect, type SelectOption} from '@sentry/scraps/compactSelect';
import {Input} from '@sentry/scraps/input';
@@ -6,6 +6,10 @@
import {ExternalLink} from '@sentry/scraps/link';
import AnalyticsArea from 'sentry/components/analyticsArea';
+import {
+ REPO_FILTER_OPTIONS,
+ repoParser,
+} from 'sentry/components/repositories/scmIntegrationTree/constants';
import {ScmIntegrationTree} from 'sentry/components/repositories/scmIntegrationTree/scmIntegrationTree';
import type {RepoFilter} from 'sentry/components/repositories/scmIntegrationTree/types';
import {t, tct} from 'sentry/locale';
@@ -14,16 +18,6 @@
import SeerSettingsPageContent from 'getsentry/views/seerAutomation/components/seerSettingsPageContent';
import SeerSettingsPageWrapper from 'getsentry/views/seerAutomation/components/seerSettingsPageWrapper';
-const REPO_FILTER_OPTIONS: Array<SelectOption<RepoFilter>> = [
- {value: 'all' as const, label: t('All repos')},
- {value: 'connected' as const, label: t('Connected Repos')},
- {value: 'not-connected' as const, label: t('Disconnected Repos')},
-];
-
-const repoParser = parseAsStringLiteral(
- REPO_FILTER_OPTIONS.map(option => option.value)
-).withDefault('all');
-
export default function SeerAutomationSCM() {
const [searchTerm, setSearchTerm] = useQueryState(
'search',
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
static/app/components/repositories/scmIntegrationTree/useScmTreeFilters.tsx
Show resolved
Hide resolved
ryan953
commented
Mar 10, 2026
Member
Author
There was a problem hiding this comment.
this file was just re-written to show the tree-view
ryan953
commented
Mar 10, 2026
Member
Author
There was a problem hiding this comment.
replaced by the tree-view.
caef1b3 to
b78f2f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL/DR: Replaced the list view at
/settings/repos/with this tree view, the same one from/settings/seer/scm//settings/repos//settings/seer/scm/Repositories Settings Page: Tree-Based SCM Integration View
2026-03-10T03:12:51Z by Showboat 0.6.1
What This PR Does
This PR replaces the flat repository list in Settings > Repositories with the tree-based SCM integration view that already existed in Seer Automation settings. It also promotes the component from the getsentry-only
gsApppackage intoapp(OSS core) so both pages can share it.Before: A flat panel listing connected repos, an AlertLink prompting users to visit the Integrations page, and pagination. No filtering or search.
After: Repos organized as a tree (Provider → Integration Account → Repository), a filter dropdown (All / Connected / Disconnected), a URL-synced search input, and inline connect/disconnect controls. The page header now explains what connecting repos unlocks: Suspect Commits, Suggested Assignees, Resolved via Commit/PR, and Seer.
Component Relocation
Six files moved from
static/gsApp/views/seerAutomation/components/tostatic/app/components/repositories/:Two Consumers, One Component
Both pages import from the shared location but pass different
providerFilterprops — Repositories settings uses"all"to show every SCM provider, while the Seer Automation page uses"seer-supported"to restrict to Seer-compatible providers. The Seer page previously let users toggle this via a dropdown; that was removed since the default is always the right value there.grep -rn 'providerFilter' static/app/views/settings/organizationRepositories/index.tsx static/gsApp/views/seerAutomation/scm.tsxTests
The old
organizationRepositories.spec.tsxandindex.spec.tsxwere deleted along with the flat-list component they covered.ScmIntegrationTreecarries its own test coverage from its previous home in the seerAutomation directory. No new tests were added for the Repositories settings page.