feat(vault): redesign artifact modal#1775
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
🔐 Commit Signature Verification❌ One or more commits failed verification
Summary
Required key type: Last verified: 2026-06-01 21:12 UTC |
Greptile SummaryThis PR redesigns the vault artifact download modal and adds progress-aware downloading. The main changes are:
Confidence Score: 3/5These issues should be fixed before merging.
Important Files Changed
|
| /> | ||
| <path | ||
| d="M56.25 7.5V26.25H75" | ||
| stroke="currentColor" |
There was a problem hiding this comment.
@jeremy-babylonlabs @jonybur please review this PR from the UI/UX side thanks
gbarkhatov
left a comment
There was a problem hiding this comment.
Approving — solid redesign. The streaming refactor with a real cancellation sentinel is clean, byte counters reset correctly across retries, and the onActivate handoff captures activityId before handleClose(). Verified the cancellation path (isCancelled poll + reader.cancel() + instanceof swallow), the cleared 120s RPC timeout means the streamed read isn't truncated, and continueButton removal is clean.
A few things to address before/after merge — left inline. One is a ZERO-DEAD-CODE blocker (orphaned copy keys); the rest are worth-addressing (progress overshoot when the byte label isn't clamped, peak memory on the ~1 GB path, missing tests for the new streaming/cancel behavior) plus minor nits.
| variant="contained" | ||
| color="secondary" | ||
| className="h-10 flex-1" | ||
| onClick={onActivate ?? onComplete} |
There was a problem hiding this comment.
The label is hardcoded to "Activate Vault" for every call site, but only PendingDepositSection passes onActivate. CollateralSection (the re-download path for an already-active vault) falls back to onComplete = () => setArtifactParams(null), so the button promises activation but merely closes the modal. DepositSignContent falls back to continueAfterArtifactDownload, which is defensible. Consider deriving the label from whether onActivate is provided (or passing an explicit label), or confirm with design that "Activate Vault" is acceptable in the collateral context.
50aed62
b83529a to
50aed62
Compare
No description provided.