Add the accounts, send and approvals pages (step 13b) #16
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.57) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.388
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #16"
general
weight: 0.35
b3hr4d
<!-- claude-projects-attribution: {"github_login":"b3hr4d"} -->
_Requested by Behrad · project thread_
Before: the wallet's pages could claim the wallet and say who you are to it, and nothing more. Accounts, transfers, approvals, join requests and upgrades were command-line calls.
After: the start page shows a member the wallet's accounts with their balances and the address each receives at, and lets an owner add an ICP, ICRC-1 token or Bitcoin account. Someone signed in who is not a member asks to join there and gets an eight-digit code to check with an owner. A member asks whether a new version is available, and an owner proposes the upgrade.
/sendlets an owner propose a transfer and run it when the policy lets it through at once, and/approvalslists the open actions, join requests with their code, with Approve, Reject and Run buttons as the member's role allows. This finishes step 13.How: three new React modules (
accounts.tsx,send.tsx,approvals.tsx) plus the join request and new-version sections, all through ic-reactor as in #15. Every read is a certified call, a token's symbol, decimals and fee included, which come from its ledger'sicrc1_metadatathrough bindings of a three-line ICRC-1 interface inui/candid/icrc1.did. Amounts are typed and shown exactly with ic-reactor'sparseUnitsandformatUnits. Each write invalidates only the reads it changes, so proposing does not re-read every balance. The wallet embeds and certifiessend.htmlandapprovals.htmlat/sendand/approvals.Worth your review
/sendabout 27M and/approvalsabout 35M. A balance is the wallet'sbalanceupdate, which calls the ledger or the Bitcoin canister, read once per page and again on "Refresh the balance". On mainnet the Bitcoin canister also charges its own fee for each Bitcoin balance.canister_infoon every visit, so the start page asks only on "Check for a new version".docs/design.mdsays so now.fee = nulldoes. A transfer proposed from the command line with its own fee shows that fee to approvers, since a Bitcoin transfer spends it on top of the amount.historyyet). ICP addresses are shown as ICRC-1 text; some exchanges want the older account identifier.Tests. 15 new Node tests in
ui/, 24 in all: the join code against Node's own SHA-256, typed amounts (exact base units, too many decimals, zero and negative amounts, grouping and exponents refused), a ledger's metadata with and without a fee or usable decimals, and what an action and its state say, including a fee the proposal sets, what each kind of action sets beyond its sentence, the account a transfer sends from, and the clock margin. The wallet's page tests and the PocketIC page test now cover/send,/send.html,/approvalsand/approvals.html(14 paths, before and after the claim and an upgrade).I clicked through it on icp-cli's local network in headless Chromium, with a stand-in for the Internet Identity sign-in that signs as a fixed Ed25519 key (the passkey step still does not run headless) and every other byte as built. The run claimed a wallet from its claim link, added an ICP account, a cycles-ledger account and a regtest Bitcoin account. It sent the wallet 10 ICP and mined a block to its Bitcoin address, and both balances went up on "Refresh the balance". It refused an amount with 9 decimals, sent 1.5 ICP and showed the ledger block it landed in, and showed the wallet's refusal of a bad address. A second identity asked to join and showed the same code as the owner's approvals page. The owner approved and ran the request, after which that identity saw the accounts as a viewer and the send page told it only owners send. No console errors, page errors or CSP violations. "Check for a new version" showed the channel's error, since
try-local.shpoints the wallet at a ledger as its channel. After Codex's review, a second run delayed the propose call and switched From mid-call, and the confirmation still named the account the wallet proposed from. A policy, an upgrade and a transfer with a fee and memo, proposed from the command line, showed in full on the approvals page.The whole CI battery passes locally: the
uijob's steps, the wallet unit tests, the interface check, the factory unit tests, and the PocketIC tests with the upgrade from #15's wallet.🤖 Generated with Claude Code
https://claude.ai/code/session_013Vgh2De8Zarye1iDyGSRbe