Repository navigation
fix(web): mobile layout pass, a phone funds cue and a spend ledger that reconciles - #84
Merged
Merged
Conversation
|
Warning Review limit reachedNext included review available in 36 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (59)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…at reconciles Every visible control is at least 44x44 CSS px on touch screens (a coarse: Tailwind variant and a touch-only hit-area utility), with no horizontal overflow, on iPhone SE, iPhone 13, Pixel 7 and iPad in both themes and three engines; desktop sizes are unchanged. The repo tab strip scrolls with an edge fade and keeps the active tab in view; PR diffs stay unified on phones and inline threads fit the screen. D-043: phones show the low/empty funds cue as a 44 px wallet icon, and a dismissible low-balance banner (once per state per session) names the fix: top up or renew the key. D-044: Settings -> Spend shows per-repo totals and reads on a 320 px phone. Key register, renew, top-up and revoke, encryption-key registration and identity creation are recorded with the balance change measured inside the writer lock, so reconciliation no longer counts Forge's own key updates as unexplained. Tests: e2e/mobile.spec.ts (mobile project; mobile-webkit and mobile-firefox with E2E_ALL_ENGINES=1), lib/auth/key-spend.test.ts, fundsNotice cases in lib/view/funds.test.ts. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
force-pushed
the
fix/web-mobile-layout
branch
from
September 27, 2026 18:00
20e5a2c to
989b7b1
Compare
…s min-height on select) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
PastaPastaPasta
added a commit
that referenced
this pull request
Sep 27, 2026
Carries #84's coarse-pointer touch targets onto the F-1 issue list tabs, issue body header and timeline cards. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Sep 27, 2026
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
This PR makes Forge usable on phones and tablets. It fixes D-043 (no funds cue on phones) and D-044 (the spend ledger had no per-repo totals and was missing Forge's own key updates).
1. Mobile layout pass (Chromium, WebKit and Firefox)
Tap targets:
coarse:variant (@media (pointer: coarse)) does the sizing, so desktop (fine pointer) keeps its dense sizes. I measured the desktop controls before and after, and they are identical.hit-areautility (touch only) adds an invisible 44 px::afterbox to small chips and standalone text links: identity pills, OIDs, footer links, tag names. It enlarges the tap area without drawing anything bigger.ButtonandInputprimitives get touch sizes. Inputs also get 16 px text on touch, so iOS Safari no longer zooms into a field when it takes focus.Header:
DEVNET(the full name stays in its title), the account button shows only the avatar, and the New chevron is hidden.Repo tab strip (it used to be clipped on phones):
PR page:
useMinWidth(1024); the spec now pins it.100cqwbox).Approve/Request changes, and new PR.Also covered:
Try againandDetailsare 44 px, and it fits 375 px.Two kinds of target are exempt, and both are marked
data-tap-exemptwith a code comment:2. D-043: funds cue on phones and the low-balance banner (
ux-dx-spec.md§4)hidden sm:flex. On a phone it now appears as a 44 px wallet icon with a dot in the level's colour (amber when low, red when empty), only when funds are low or empty, and it opens the top-up sheet.LowFundsBannershows below the header at every width. It names the specific fix (Top up, or Renew key for a key that is low, expiring or spent) and can be dismissed once per state per session. The copy comes fromfundsNotice()inlib/view/funds.ts.3. D-044: spend ledger
key:register,key:renew,key:topup,key:revoke,key:encryptionandidentity:create. They coverimportIdentity,topUpKey,revokeStored, encryption-key registration in Settings → Keys, the create-identity flow, and its resume path.AuthController.charged()reads the balance, sends the update and measures the change, all while it holds the identity's writer lock. A queued document write therefore cannot fold into the key's row.write.tsmeasureActual.state_transition_min_fees/v1.rs).CREDITS_PER_DUFF = 1000).Tests
e2e/mobile.spec.ts(newmobileproject; addE2E_ALL_ENGINES=1for themobile-webkitandmobile-firefoxprojects). The defaultchromiumproject is unchanged and ignores this file.overflow:hiddenancestors.E2E_WRITE=1 E2E_MOBILE_LOW_ID=<identity file>), in both themes, the phone header shows the cue, the banner names the fix, the cue opens the sheet, and a dismissed banner stays gone.lib/auth/key-spend.test.ts: register, renew, top-up and revoke each report the measured balance change; the measurement happens before a queued write runs; refused updates and revokes that sent nothing are not recorded;chargedUpdaterecords an encryption key; the recorded rows reconcile with 0 unexplained.spendKindLabelfundsNoticeinlib/view/funds.test.tssetSpendListener,fundsNoticeandspendKindLabeldo not exist).pnpm typecheck,pnpm lintandpnpm testpass (1641 tests).v2-reads,v2-home,a11y(both themes) andkeyboard-themepass, 71/71.Live QA (devnet moutai)
a,button,input,select,[role=button]andsummaryon screen gets its box measured, including hit areas and clipping):Approve,Request changesand new-PR create buttons are all 44 px.Evidence (before/after pairs named
<route>--<device>--<theme>--<engine>.png, plus the audit data and scripts):dash-forge-qa/evidence/impl/ui-pass/mobile/.Review
The code-review-validator found no blockers. I fixed its medium findings:
I also fixed its low findings: banner dismissals per state, the gap in the commit meta row, and parallel repo-name reads.
Deferred to a follow-up: shortening how long the writer lock is held during a key registration's read-back verify. That wait was already there on master; this PR only adds the ~1–8 s balance measurement.
Notes
lib/design/contrast.test.tspasses.(pointer: coarse)stops matching on later pages. The audit script re-enables touch after each screenshot, and the spec takes no full-page screenshots. Real devices are not affected.Fixes D-043, D-044.
🤖 Generated with Claude Code