← Back to Pull requests

Add the receive, account, members, settings and notifications pages, and the B3-less lockup #26

Closed
unknown closed this pull request without merging on Oct 22, 2026 17:13 UTC
View on GitHub
unknown unknown commented on Oct 22, 2026 16:16 UTC
Author

Stacked on #24 (claude/chain-kinds): this branch merges it and builds its pages on account kinds. Once #24 merges, GitHub retargets this to main.

Before: the wallet had a start page, Send, Approvals and Claim. Receiving meant copying an address from an account row, members and the policy were cards on the start page, and nothing told you what had happened since you last looked.

After: the wallet serves five more pages, and the bar and its dot do more.

  • Receive (/receive, ?account=<id>): an account's whole address, in groups of four where it has no dashes of its own, its QR code, one Copy button and what the sender must know for that kind of account. An Internet Computer account offers both its forms, the ICRC-1 account and the ICP account identifier for exchanges, and the QR code holds exactly the form shown.

  • Accounts (/account?id=<id>): what an account holds of each asset at display size, with when it was read, both address forms, its open transfers, and Send (/send?from=<id>), Receive and Refresh. The start page's account rows open it.

  • Members (/members): members by role. An owner can change a role, remove a member or add one, from another device with a QR code of the wallet's URL or by principal. Each change is an action under the policy, with "Run it now" when the policy lets it run at once. governance.ts mirrors the canister's refusals, so the page explains a change the wallet would refuse before it is proposed.

  • Settings (/settings, the gear in the bar): a members summary, a security checkup, the rules, the wallet's facts (controllers, module hash, release) and the session. Members and the policy move here from the start page.

  • Notifications (/notifications): what needs you, from the health dot's own checks, and what happened, the audit log newest first with older pages on request. What others did since you last looked is marked new.

  • The bar (from 1f5e9fc, which #19 merged without): a lighter brand, a bar that fits tablets, and the dot as the wallet's health on every page: the node when all is well, a ring when something needs you, red when something is wrong. It now also counts what is new, and its panel links to the notifications page.

  • The lockup (27c79c9): the mark now stands in for "B3" and "Wallet" follows it, so the bar reads "B3Wallet". This is the design system's wordmark option W6 (2026-10-12), redrawn with the official mark at Rubik's cap height. "Wallet" is Rubik 500, because at that height 500's stem matches the mark's (131 font units to 132).
  • Worth your review

  • The lockup is not in the design system yet. Its logo is locked (logo-v1.1) and changes only through tools/logo/build.js with sign-off from Donya and the CEO. Until then, this is a proposal living in the wallet. At 18px, the gap between the stem and the 3 is under a pixel on 1× screens, where the mark can read as a "B".

  • A new runtime dependency: uqr 0.1.3, pinned, for the QR codes. Decision 0009-qr-encoder.md (proposed) says why, and what was checked. jsqr 1.4.0 is a dev dependency only: the tests decode every QR code back to its address, including an ICP account identifier.

  • Seen notifications live in this browser (localStorage, per wallet and principal) as a convenience nothing in the wallet depends on. A first visit counts nothing as new. The dot reads the same newest entries as the start page's activity, so there it costs no call.

  • Wallet facts read the controllers and module hash with an anonymous CanisterStatus read through the IC's certified state. The root key is fetched only on a local network.

  • Within the CSP: no inline style or script, QR codes are SVG paths, and the five pages are prerendered like the others. http.rs embeds and certifies them, with unit tests, and check_every_page in the integration tests visits them.

  • Bundle: app.js grows from 690 KB to 737 KB, mostly the five pages and uqr.
  • Tests. 58 Node tests in ui/ pass, among them new ones for the QR codes, the governance mirror, health levels, the checkup and unread counting. npm run build, lint, typecheck, test and format:check pass. A build from a clean copy in another directory gives the same bytes as the committed pages, and a script running the checks of the_pages_hold_no_inline_script_or_style passes on all 10 pages.

    Not run. The local Rust toolchain is half-installed, so I ran no cargo test, Wasm build or PocketIC test, 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 owner, viewer, signed-out, non-member, unclaimed and low-cycles states, in light, dark, tablet and phone widths. CI's Rust and PocketIC jobs are the first to run the new routes.

    🤖 Generated with Claude Code

    Diff: 620 lines (+465 / -155) across 7 files Reviewer: b3hr4d Review duration: 56m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.55) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.55 · 620 lines diff across 7 files
    0.55
    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.385
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #26"
    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: 55.3% (MEDIUM) · Higher = larger blast radius
    55.3%
    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: 21.8% · Safe to merge
    21.8%