Show and safely clear private device storage #998

Closed
opened 2026-08-17 03:20:37 +00:00 by rockachopa · 0 comments
Member

Problem

Stackchain stores private drafts, queued actions, offline work, and caches across browser storage, but Device setup neither inventories that data nor lets an operator reclaim only reproducible caches. The existing clear action targets offline work while full purge is coupled to sign-out, so operators on shared or storage-constrained phones cannot make an informed choice.

Vertical slice

Add a Private device storage section to Device setup that reports browser usage, distinguishes unsynced private work from cache copies, supports cache-only cleanup without deleting drafts/outboxes, and guards full private-data cleanup behind explicit confirmation when unsynced work exists. Reuse the authoritative private-data registry and report partial failures honestly.

Acceptance tests

  • Inventory reports registered Stackchain databases and owned caches without exposing private content.
  • Cache-only cleanup deletes Stackchain caches while preserving private databases and stackchain.* storage.
  • Full cleanup requires a second confirmation when unsynced work is reported, stops worker delivery, and uses the shared purge path.
  • Blocked deletion produces an actionable failure instead of a false success.
  • Unsupported quota/storage APIs degrade safely.
  • Packaged frontend includes the storage controller and focused/full suites pass.
## Problem Stackchain stores private drafts, queued actions, offline work, and caches across browser storage, but Device setup neither inventories that data nor lets an operator reclaim only reproducible caches. The existing clear action targets offline work while full purge is coupled to sign-out, so operators on shared or storage-constrained phones cannot make an informed choice. ## Vertical slice Add a Private device storage section to Device setup that reports browser usage, distinguishes unsynced private work from cache copies, supports cache-only cleanup without deleting drafts/outboxes, and guards full private-data cleanup behind explicit confirmation when unsynced work exists. Reuse the authoritative private-data registry and report partial failures honestly. ## Acceptance tests - Inventory reports registered Stackchain databases and owned caches without exposing private content. - Cache-only cleanup deletes Stackchain caches while preserving private databases and stackchain.* storage. - Full cleanup requires a second confirmation when unsynced work is reported, stops worker delivery, and uses the shared purge path. - Blocked deletion produces an actionable failure instead of a false success. - Unsupported quota/storage APIs degrade safely. - Packaged frontend includes the storage controller and focused/full suites pass.
timmy was assigned by rockachopa 2026-08-17 03:20:37 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#998
No description provided.