Skip to content

fix(seer): add GitLab support to web vitals Seer eligibility hook#117747

Open
billyvg wants to merge 2 commits into
masterfrom
billy/cw-1504-fe-web-vitals-gitlab-providers
Open

fix(seer): add GitLab support to web vitals Seer eligibility hook#117747
billyvg wants to merge 2 commits into
masterfrom
billy/cw-1504-fe-web-vitals-gitlab-providers

Conversation

@billyvg

@billyvg billyvg commented Jun 15, 2026

Copy link
Copy Markdown
Member

Fixes CW-1504.

What

useHasSeerWebVitalsSuggestions was gating on repo.provider.includes('github') — a substring match that misses 'gitlab' entirely. Also the hook comment said "Project has a github repository set up".

Changes:

  • Import and use useSeerSupportedProviderIds() from autofix/utils (already feature-flag-aware for GitLab)
  • Replace hasGithubRepos with hasSupportedRepos using an exact includes check against the provider ID list
  • Update the stale comment

Why

useSeerSupportedProviderIds is the canonical frontend equivalent of the backend's get_supported_scm_providers — it already handles the seer-gitlab-support flag. Using it here is the correct pattern. Companion BE PR: #117746


View Session in Sentry

@linear-code

linear-code Bot commented Jun 15, 2026

Copy link
Copy Markdown

CW-1504

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 15, 2026
@billyvg billyvg marked this pull request as ready for review June 15, 2026 21:52
@billyvg billyvg requested a review from a team as a code owner June 15, 2026 21:52
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.

1 participant