← Back to Pull requests

Redesign the pages as a vault console, with requests you act on from every page #28

Closed
unknown closed this pull request without merging on Oct 23, 2026 13:41 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 13:01 UTC
Author

Before: a top bar and a single column. What needed you was a dot in the bar and a notifications page, and acting on a request meant going to the Approvals page.

After: every page is one frame, and the wallet's balances, requests and warnings are in view at the first look.

  • The spine. It is a sidebar on a desktop, a bar along the top on a tablet, and a tab bar along the bottom on a phone. Approvals shows how many actions wait for you, and Inbox shows how many notifications are new. Members and Settings sit under "Wallet" in the sidebar; the bar and tab bar reach them through the gear.

  • The rail (wide screens, 1360px and up), beside every page:

  • - What is wrong or worth watching: a failed upgrade, low cycles with the top-up command, an open change to who controls the wallet.
    - Then each action you may approve or run, as a ticket with the full action text, its approvals and the Approve, Run it and Reject buttons.
    - Then the newest audit entries.
    - On a narrower screen the start page and the inbox show the same panes in the page.
  • The start page.

  • - The hero: the holdings at display size, each with a bar showing how it splits between accounts ("Main 83% · Savings 17%"), and Send and Receive beside the wallet's name.
    - A strip of instruments: open approvals, cycles as a gauge, what a transfer needs, members and the version.
    - The accounts as cards that open their own page.
  • The inbox. The notifications page becomes the inbox, with the requests above what happened. On a phone it is where requests live.

  • The styles, rewritten on B3Pay's tokens: hairline grids, large tabular figures, mono labels, amber only as a signal, and a striped edge on tickets that change control or membership.
  • Worth your review

  • Deciding from the rail. The tickets call the same approve, reject and execute as the Approvals page, through one shared hook (useDecide in approvals.tsx). A ticket shows the whole action, including the full destination of a transfer. A join request shows the code its device must show, as on the Approvals page.

  • Health checks have a key (health.ts), so the rail can leave out "N wait for you", which its tickets already show. The checkup's checks have none.

  • Within the CSP.

  • - The rail and the counts render only in the browser, through portals into elements the prerendered frame leaves empty, so every page's HTML stays the same for every visitor.
    - The split bars and the gauge are SVG attributes; there is no style attribute anywhere.
    - Column-sized totals use a container query.
  • Merged with main. The new hand-over action gets the name "Hand-over" on tickets, and the Recovery card on Settings takes the new styles as it is.

  • Fonts. The pages still name Schibsted Grotesk and Martian Mono first and fall back to the system's. Serving the fonts from the canister is on its own branch (dbf2840, on top of this one) and can follow as a PR of its own.

  • Bundle. The redesign adds about 10 KB to app.js, which is about 753 KB with main's recovery card. app.css grows from 33 KB to about 42 KB. No dependency is added.
  • Tests. npm run build, lint, typecheck, test (62) and format:check pass in ui/. A build from a clean copy in another directory gives the same bytes as the committed pages. A script running the checks of the_pages_hold_no_inline_script_or_style passes on all 10 pages.

    Not run. I ran no cargo test, Wasm build or PocketIC test for this branch, and the pages never ran against a real wallet. I clicked through them in Chromium instead, with @ic-reactor/react swapped for a mock that answers from fixtures, behind a server that sends the wallet's exact CSP. I checked:

  • the owner, signed-out, non-member, unclaimed, viewer, new-wallet and low-cycles states;

  • every page, in dark and light, at 1480, 1200, 820 and 375px wide;

  • the rail's tickets for each kind of open action in the fixtures (I did not press their buttons);

  • the new Recovery card.
  • There were no console errors or CSP violations. CI's Rust and PocketIC jobs are the first to run this branch.

    🤖 Generated with Claude Code

    Diff: 524 lines (+393 / -131) across 6 files Reviewer: b3hr4d Review duration: 39m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 524 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.375
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #28"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.8% (MEDIUM) · Higher = larger blast radius
    47.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%