Skip to content

fix(frontend): remove any type and duplicate route in routes.tsx - #43014

Merged
sadpandajoe merged 1 commit into
masterfrom
fix/followup-41205-follow-up-from-41205-feat-extensions-add
Aug 10, 2026
Merged

fix(frontend): remove any type and duplicate route in routes.tsx#43014
sadpandajoe merged 1 commit into
masterfrom
fix/followup-41205-follow-up-from-41205-feat-extensions-add

Conversation

@rusackas

Copy link
Copy Markdown
Member

Follow-up to #41205.

SUMMARY

That PR widened the Routes type in superset-frontend/src/views/routes.tsx from ComponentType to ComponentType<any>, which violates the project's no-any policy, and it left RoutePaths.REGISTRATIONS registered twice: once unconditionally in the base routes array and again gated behind authRegistrationEnabled. This PR restores the narrower ComponentType generic and removes the redundant unconditional entry so the registrations route is only registered when user self-registration is enabled.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A - no UI change.

TESTING INSTRUCTIONS

  • Confirm superset-frontend/src/views/routes.tsx no longer has a duplicate RoutePaths.REGISTRATIONS entry.
  • With AUTH_USER_REGISTRATION disabled, /registrations/ is no longer registered as a frontend route.
  • With AUTH_USER_REGISTRATION enabled, /registrations/ still routes to UserRegistrations as before.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Follow-up to #41205. That PR widened the routes Component/Fallback
type to ComponentType<any>, violating the no-any policy, and
introduced a duplicate REGISTRATIONS route (once unconditionally in
the base routes array, once gated behind authRegistrationEnabled).
Restore the narrower ComponentType generics and drop the redundant
unconditional entry so the route is only registered when user
registration is enabled.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dosubot dosubot Bot added the change:frontend Requires changing the frontend label Aug 10, 2026
@bito-code-review

bito-code-review Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #417390

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 28f9cb0..28f9cb0
    • superset-frontend/src/views/routes.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@sadpandajoe
sadpandajoe merged commit 5f204a9 into master Aug 10, 2026
79 checks passed
@sadpandajoe
sadpandajoe deleted the fix/followup-41205-follow-up-from-41205-feat-extensions-add branch August 10, 2026 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:frontend Requires changing the frontend preset-io size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants