Repository navigation
feat(primitives): let tier 2 pages show and download files - #447
Conversation
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The change extends the existing file handlers, runtime byte routes, broker and shared shell components. I found no added future-facing machinery that warrants blocking this issue. SpecNo merge-blocking intent findings. The reviewed paths cover deterministic viewer/document-bound handles, pointer-before-source-access refusal ordering, live redemption, frame-local URLs, hook cleanup and shell download offers. The selection and re-put/delete rule is documented in the requested skills and product/glossary surfaces. The download card follows the D-1 decision recorded in #385. Verification performed:
Summary: Standards 0 blockers, worst issue none; Spec 0 blockers, worst issue none. |
Opus reviewChecked against #408, spec §10 and §15, the D-1 pick on #385, 1. The download card's copy is wrong for every download this PR can make (intent, UI)
The default filename also drifts from tier 1. 2. Redemption keeps a second copy of the shared-store access rule (method)
In the same code, the new |
|
Resolved the review findings in cb2283e, pushed to Fixes
Kept as-is
Verification
Ready to merge into the preserved base Changes made with GPT-6 Astra via omp. |
9e05446 to
2425926
Compare
Each file is a D-1 corner card titled "<patch> made a file" with the filename in code, its size, Download and Not now. Older files fold into an "N more files" status-chip. Between 481 and 1364 px the stack sits above any page state so it never collides with the centred bar; under 480 px the cards are bottom sheets above the page state. The base code style moves into the shell subset. Co-Authored-By: Claude Opus 5.5 <[email protected]>
cb2283e to
4c3a86f
Compare
What changed
Tier 2 handlers could read file metadata, but their pages could not safely display or download the selected files. This adds viewer-bound authorised handles, live redemption, blob URLs and
useFileUrl, plus the shell download card selected in #385. Replaced files invalidate old handles; each redemption rechecks access.Stacked on
tier2/407-shared-stores. This PR targets that branch and contains only the file-handle work and download-card refinement. Implements #408 against spec #384.Closes #408
How it was verified
pnpm test: 1,503 tests across 134 files passed onb85f065.b85f065.Release impact
Tier 1 name-based file APIs stay unchanged. The company signing key and lookup index use idempotent inventory upgrades; no manual migration or configuration is required.
Implemented with GPT-6 Astra via omp. Download-card refinement by Claude Opus 5.5 via Claude Code.