Skip to content

fix(seer): Clear cache for /seer/onboarding-check/ api response, and iterate on seer config reminder#112643

Merged
ryan953 merged 5 commits intomasterfrom
ryan953/fix-seer-reminder-ui-cache-clearing
Apr 10, 2026
Merged

fix(seer): Clear cache for /seer/onboarding-check/ api response, and iterate on seer config reminder#112643
ryan953 merged 5 commits intomasterfrom
ryan953/fix-seer-reminder-ui-cache-clearing

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented Apr 10, 2026

This updates the conditions for showing the Seer Config Reminder. We're looking at:

  • if any SCM is configured
  • if any repo has code-review enabled
  • if any project has repo's connected to enable autofix
    all via /seer/onboarding-check/

The conditions for the beta cohort are removed.

I've also updated the styles of the reminder, it was really chunky before for some reason.

Finally, I've added a couple calls to invalidateQueries() so that /seer/onboarding-check/ can be refreshed whenever someone toggle code-review. I need to followup on that in one more spot: on the seer repo details page. I'll also go back and look at SCM providers too, which will be slightly more annoying i think :(

Setup Need Img
SCM SCR-20260409-rdnc
Autofix SCR-20260409-raht
Code Review SCR-20260409-rbsq

@ryan953 ryan953 requested review from a team as code owners April 10, 2026 02:44
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 10, 2026
Comment thread static/gsApp/components/primaryNavSeerConfigReminder.tsx Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should these query option generators be in their own subdir?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah idk about this yet. i tried making an endpoints/ directory and got discouraged by the ownership rules for it :(

missing patterns here but idk what it should be yet. Ideally we'll have the base *QueryOptions for everything, they could be generated even (only like 19k lines) and then on top of that have onMutate, onError, onSettled callbacks that import the keys, and manage different optimistsic updates and cache-clearing calls.

Comment thread static/gsApp/components/primaryNavSeerConfigReminder.tsx Outdated
Comment thread static/gsApp/components/primaryNavSeerConfigReminder.tsx Outdated
ryan953 added a commit that referenced this pull request Apr 10, 2026
…nboarding-check cache (#112645)

This converts the form to the new form system, does an optimistic update
to the cache when a change is made, and clears the cache of
`/seer/onboarding-check/` which could change based on if something is
enabed/disabled for code-review.

The new file, static/app/utils/getSeerOnboardingCheckQueryOptions.tsx,
is also added in #112643, but shouldn't conflict as it's the same
content.
… on the front. This will also mean that the other callsites are consistent
Comment thread static/gsApp/components/primaryNavSeerConfigReminder.tsx
@ryan953
Copy link
Copy Markdown
Member Author

ryan953 commented Apr 10, 2026

@billy cut things down a lot, the analytics was really a duplicate of the copywriting logic, so i combined it all together.

also i realized that the backend is already checking for valid/supported SCM connections, so the "only supported" check on the frontend wasn't doing anything anymore. I cut out the conditions for beta customers, to simplify things too.

We should probably ramp them up with transition & subscription-management messaging at this point if the emails aren't enough

Copy link
Copy Markdown
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit db6f58e. Configure here.

Comment thread static/gsApp/components/primaryNavSeerConfigReminder.tsx
@ryan953 ryan953 merged commit 3b2c034 into master Apr 10, 2026
65 checks passed
@ryan953 ryan953 deleted the ryan953/fix-seer-reminder-ui-cache-clearing branch April 10, 2026 20:25
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