feat(profile): add KiloClaw banner/CTA to profile page#1382
Open
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
Open
feat(profile): add KiloClaw banner/CTA to profile page#1382kilo-code-bot[bot] wants to merge 2 commits intomainfrom
kilo-code-bot[bot] wants to merge 2 commits intomainfrom
Conversation
Add a contextual KiloClaw banner to the /profile page that adapts based on whether the user has an existing KiloClaw instance. New users see a 'Get Started' CTA linking to /claw, while existing users see an 'Open Dashboard' CTA to manage their instance.
| return null; | ||
| } | ||
|
|
||
| const hasInstance = billing.instance !== null && billing.instance.exists; |
Contributor
Author
There was a problem hiding this comment.
WARNING: This treats any non-destroyed instance as "running"
getBillingStatus() sets instance.exists based only on whether the row is destroyed, not whether the user still has access or the worker is actually running. Users with an expired trial, canceled subscription, or past-due suspension can still have exists === true, so this branch will show the green success banner even though the /claw page immediately locks them out. Please gate the success state on billing/access state (and only use "running" copy when we know the instance is actually active).
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (1 files)
Reviewed by gpt-5.4-20260305 · 163,433 tokens |
…ce existence The green 'active' banner now only shows when the user has both an existing instance AND valid billing access (hasAccess). Users with an instance but lapsed access (expired trial, canceled subscription, past-due suspension) see an amber warning banner directing them to resolve billing on /claw.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/profilepage that adapts based on the user's KiloClaw instance state/claw/clawtrpc.kiloclaw.getBillingStatusto detect instance state, consistent with the existing pattern insrc/app/(app)/claw/page.tsxVerification
pnpm typecheck— passes with no errors in root projectoxfmt --list-different .— passes (code is formatted)oxlint— passes with 0 warnings and 0 errorsVisual Changes
N/A — no screenshots available in this environment. The banner renders:
Reviewer Notes
trpc.kiloclaw.getBillingStatusquery that the/clawpage uses, so no new API surface is introducedInsufficientBalanceBanner,BillingBanner) using color-coded border/bg with icon, text, and action button