Skip to content

ref(onboarding): Enforce display order for SCM provider pills#114727

Merged
jaydgoss merged 1 commit intomasterfrom
jaygoss/sort-scm-onboarding-pills
May 4, 2026
Merged

ref(onboarding): Enforce display order for SCM provider pills#114727
jaydgoss merged 1 commit intomasterfrom
jaygoss/sort-scm-onboarding-pills

Conversation

@jaydgoss
Copy link
Copy Markdown
Member

@jaydgoss jaydgoss commented May 4, 2026

Summary

The /organizations/{slug}/integrations/ endpoint orders providers alphabetically by name, which renders the primary onboarding pills as Bitbucket, GitHub, GitLab. Drive the pill order from the PRIMARY_PROVIDER_KEYS array instead so the SCM connect step always shows GitHub, GitLab, Bitbucket.

The "More" dropdown is unaffected and continues to display in the order returned by the API.

Test plan

  • CI=true pnpm test static/app/views/onboarding/components/scmProviderPills.spec.tsx passes (5 tests, including a new ordering test)
  • Visit the onboarding SCM connect step locally and confirm pill order is GitHub, GitLab, Bitbucket

The integrations endpoint returns providers ordered by name, which sorts
the primary onboarding pills as Bitbucket, GitHub, GitLab. Drive the
pill order from the PRIMARY_PROVIDER_KEYS array so they always render as
GitHub, GitLab, Bitbucket regardless of API order.
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.40%

@jaydgoss jaydgoss marked this pull request as ready for review May 4, 2026 16:39
@jaydgoss jaydgoss requested a review from a team as a code owner May 4, 2026 16:39
@jaydgoss jaydgoss requested a review from a team May 4, 2026 16:41
Copy link
Copy Markdown
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

LGTM

@jaydgoss jaydgoss merged commit efae598 into master May 4, 2026
74 checks passed
@jaydgoss jaydgoss deleted the jaygoss/sort-scm-onboarding-pills branch May 4, 2026 16:57
cleptric pushed a commit that referenced this pull request May 5, 2026
## Summary

The `/organizations/{slug}/integrations/` endpoint orders providers
alphabetically by name, which renders the primary onboarding pills as
Bitbucket, GitHub, GitLab. Drive the pill order from the
`PRIMARY_PROVIDER_KEYS` array instead so the SCM connect step always
shows GitHub, GitLab, Bitbucket.

The "More" dropdown is unaffected and continues to display in the order
returned by the API.

## Test plan

- [ ] `CI=true pnpm test
static/app/views/onboarding/components/scmProviderPills.spec.tsx` passes
(5 tests, including a new ordering test)
- [ ] Visit the onboarding SCM connect step locally and confirm pill
order is GitHub, GitLab, Bitbucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants