Skip to content

ref(test): Remove router return from initializeOrg#116002

Merged
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-test-remove-router-return-from-initializeorg
May 21, 2026
Merged

ref(test): Remove router return from initializeOrg#116002
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-test-remove-router-return-from-initializeorg

Conversation

@evanpurkhiser
Copy link
Copy Markdown
Member

Most callers only needed router.location, which is now sourced from LocationFixture directly. Specs that needed the full router instance construct one with RouterFixture inline.

@evanpurkhiser evanpurkhiser requested review from a team as code owners May 21, 2026 14:00
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) May 21, 2026 14:01
@evanpurkhiser evanpurkhiser requested a review from a team as a code owner May 21, 2026 14:01
@evanpurkhiser evanpurkhiser removed request for a team May 21, 2026 14:01
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

📊 Type Coverage Diff

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

@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-test-remove-router-return-from-initializeorg branch from ea31a8f to a3a10e5 Compare May 21, 2026 14:51
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-test-remove-router-return-from-initializeorg branch from a3a10e5 to 0af3180 Compare May 21, 2026 16:52
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 0af3180. Configure here.

* @deprecated use initialRouterConfig instead. Avoid deprecatedRouterMocks.
*/
router: initialData.router,
router,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

routerProps out of sync

Low Severity

initializeData still spreads initializeOrg’s routerProps, but page-filter query params are only applied on the separate RouterFixture. routerProps.location can stay at defaults while router and location carry the intended query, so code using routerProps gets the wrong location.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 0af3180. Configure here.

Most callers only needed router.location, which is now sourced from
LocationFixture directly. Specs that needed the full router instance
construct one with RouterFixture inline.
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-test-remove-router-return-from-initializeorg branch from 0af3180 to 5f0b415 Compare May 21, 2026 16:55
@evanpurkhiser evanpurkhiser merged commit e462220 into master May 21, 2026
71 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-test-remove-router-return-from-initializeorg branch May 21, 2026 17:01
JonasBa pushed a commit that referenced this pull request May 21, 2026
Most callers only needed `router.location`, which is now sourced from
`LocationFixture` directly. Specs that needed the full router instance
construct one with `RouterFixture` inline.
natemoo-re pushed a commit that referenced this pull request May 21, 2026
Most callers only needed `router.location`, which is now sourced from
`LocationFixture` directly. Specs that needed the full router instance
construct one with `RouterFixture` inline.
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.

3 participants