Skip to content

fix(claw): navigate to personal dashboard from subscription dialog#1791

Merged
jeanduplessis merged 1 commit intomainfrom
fix/claw-dashboard-link-personal-account
Mar 31, 2026
Merged

fix(claw): navigate to personal dashboard from subscription dialog#1791
jeanduplessis merged 1 commit intomainfrom
fix/claw-dashboard-link-personal-account

Conversation

@jeanduplessis
Copy link
Copy Markdown
Contributor

Summary

Problem

The "Go to Dashboard" link in the KiloClaw subscription-required dialog (AccessLockedDialog) navigates to /, which uses getProfileRedirectPath to determine the destination. For users who belong to exactly one organization with an active subscription, this redirects to /organizations/{orgId} — even though KiloClaw is a personal-only feature with no org-scoped route.

Solution

  • Changed the dismiss navigation target from / to /profile, which is the personal dashboard.

Why this approach

The only alternative was making the root redirect smarter (e.g. sniffing the referrer), but that adds complexity to a shared redirect path for a problem scoped entirely to this dialog. Hardcoding /profile is correct because KiloClaw has no org route — users are always in a personal context here.

Verification

  • pnpm typecheck — passed
  • pnpm lint — passed
  • Pre-push hooks — passed

Visual Changes

N/A

Reviewer Notes

  • Single-line navigation target swap from / to /profile in handleDismiss.
  • The dialog's X button and backdrop click also call handleDismiss, so they benefit from the same fix.
  • No risk to billing flows, subscription logic, or dialog rendering.

The 'Go to Dashboard' link in the AccessLockedDialog navigated to '/'
which redirects to the org dashboard for users in exactly one org.
Since KiloClaw is personal-only, navigate to '/profile' instead.
@kilo-code-bot
Copy link
Copy Markdown
Contributor

kilo-code-bot Bot commented Mar 31, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • src/app/(app)/claw/components/billing/AccessLockedDialog.tsx

Reviewed by gpt-5.4-20260305 · 102,349 tokens

@jeanduplessis jeanduplessis merged commit 3da2a9a into main Mar 31, 2026
15 checks passed
@jeanduplessis jeanduplessis deleted the fix/claw-dashboard-link-personal-account branch March 31, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants