Repository navigation
fix(dashboard): name the Kiro account and subscription on the credits pill - #23878
Conversation
Design Review (Opus 5.5) — ✅ PASSDesign-level review of Design-Verdict: PASS Copy-only relabel that targets the stated findability gap; no key removed, link target unchanged, rendered evidence attached. Notes
[DESIGN-REVIEWED] c9146a9 Description read[DESCRIPTION-READ] 92a53c514b208e9ac0ed01786b3add317ebd6fc383fe0dafc797b25345a3f1af That sha256 names everything this verdict read: the PR description, plus the 1 evidence file(s) the workflow collected from it and handed this review. It covers that evidence because the media strip replaces every attachment URL with the same placeholder, so an edit swapping one attachment for another would leave the description's captured text identical while what this review judged changed. Recompute it with |
First Principles Review (Opus 5.5) — ✅ PASSPremise-level review of First-Principles-Verdict: PASS Relabel of an existing path; issue #23812 names the people failing to find it, and the meter keeps its own key. What this change shipsInventory (5 items) — 4 justifiedIntent: Let a user who wants to manage or cancel their Kiro plan see that the credits pill leads there. FIX (copy-only relabel).
[FIRST-PRINCIPLES-REVIEWED] c9146a9 Description read[DESCRIPTION-READ] 1353660d9ade38a8b94ec751b7970f37e37d6a1d573f5b123e6dc1944b26fbb6 That sha256 names the PR description this verdict read. Recompute it with |
UX Review (Opus 5.5) — ✅ PASSUX-level review of UX-Verdict: PASS Nothing blocks: the only change is to labels, and the blind reader read the main link correctly, was sure of it, and would click it. Notes
[UX-REVIEWED] c9146a9 Description read[DESCRIPTION-READ] 691ddff406ada21a38052c1fc8523761711e7fd449ca0fc7780098cf87a3a760 That sha256 names everything this verdict read: the PR description, plus the 7 evidence file(s) the workflow collected from it and handed this review. It covers that evidence because the media strip replaces every attachment URL with the same placeholder, so an edit swapping one attachment for another would leave the description's captured text identical while what this review judged changed. Recompute it with |
Opus 5.5 Review — ✅ no blocking findingsReviewed Verdict parsed from the review's SHA-scoped output markers for commit False positive or not applicable? A repository writer can comment: |
GPT 6.1 Review — ✅ no blocking findingsGPT 6.1 completed its review of This comment is updated in place on each push. Review detailsNo findings. False positive or not applicable? A repository writer can comment: |
|
[operator: bolichen97] Bundle Size Gate red here is main's, not this PR's: |
|
[operator: bolichen97] Frontend Tests (1-4) red on 94b1015 was this PR's: the |
94b1015 to
7205166
Compare
… pill and plan link
7205166 to
c9146a9
Compare
Problem / Motivation
Goal: Someone who wants to manage or cancel their Kiro plan can tell, from the top bar, that the credits pill leads to their account and subscription.
After sign-in, the only desktop path to the plan page (app.kiro.dev/settings/account) is the credits pill in the top bar, then the Kiro Account modal, then its link. Today the pill is named only "Kiro credit usage" and the link says "Manage account". Neither one mentions an account on the pill or a subscription anywhere, so a user who is looking for "subscription" or "cancel" never finds it.
Why it matters
Users who try to cancel or change their plan can't find where to do it. That causes frustration and support load (#23812).
Not a goal
https://app.kiro.dev/settings/account.What changed (motivation → approach → change)
The pill and link name only credits and "account", so "subscription" appears nowhere on the path. The smallest change that keeps the design is to rename both. The pill gets its own title and aria-label, "Kiro account & credits — view usage, manage subscription". Every pill state (checking, unavailable, no reading, sign-in needed, API key, config unreadable) now starts with "Kiro account & credits — …". The modal link reads "Manage account & subscription".
All 12 locale catalogs in
website/src/i18n/locales/carry the same edit, anden-XAwas regenerated withnpm run i18n:pseudo. The modal's meter keeps its "Kiro credit usage" name because it really is the credit meter.website/src/shell/topbar/kiroUsageReadout.tsxholds the one source change, which reads the newapp.kiro_account_creditskey. The screenshot scriptwebsite/scripts/capture-usage-refresh.mjsfinds the pill by its new name.Backwards compatibility
Compatible: copy-only. No key is removed or renamed, one key (
app.kiro_account_credits) is added, and the link target is unchanged.Removes nothing: only label text changes. Every element, route and key that exists today stays.
Tests
KiroAccountModal.test.tsx› "names the subscription on the link to the Kiro plan page (Account/subscription management page hard to locate after sign-in #23812)" pins the link's accessible name "Manage account & subscription" and its href.App.topbarAndShortcuts.test.tsx› "renders used/limit and percentage once loaded" pins the pill's title and aria-label to the new text.App.topbarAndShortcuts.test.tsx,App.creditPillError.test.tsxandAppRootCoverage.test.tsxnow match the new titles.Proof: not provable -- frontend test (prove.py runs Python only). Both new assertions name strings that origin/main does not render ("Kiro credit usage" / "Manage account"), so they fail there.
Manual verification
I rendered the real built SPA (
website/dist) with/api/**answered from fixtures (Kiro backend, a 3,044 / 10,000 reading). I captured it on origin/main and on this branch: the pill's accessible name, then the opened modal. The rendered label and link read back from the DOM as shown below. I couldn't check the live gateway because this is an isolated harness.Screenshots / video
Pill: a native tooltip never paints in a screenshot, so the harness prints the pill's
title/aria-labelunder it in a yellow tag. That tag is evidence only and not part of the UI.Before (origin/main):
After:
Kiro Account modal, before → after (the link at the bottom):
Related Issues
Part of #23812
This relabels the existing path. The issue also asks for a visibly labeled "Account" entry on the post-login screen, and the pill shows only an icon and numbers. Where that entry should live is a design call for the owner, so the issue stays open.
Sibling sweep
Swept: git grep -nE "kiroAccountModal.kiro_account|kiro_credit_usage|manage_account" -- website/src
Sibling: website/src/App.tsx:475 -- not affected -- the phone nav row is already labelled "Kiro Account"
Sibling: website/src/components/KiroAccountModal.tsx:644 -- not affected -- the credit meter progressbar, correctly named "Kiro credit usage"
Pattern harvest
Not generalizable: a one-off copy gap where an entry point was named after its readout rather than its destination.
Checklist
feat|fix|docs|style|refactor|perf|test|chore|ci|build|revert: ...)