Storage usage & clear (media cache, search index, crypto store) — keep it to one tile #120

Open
opened 2026-09-17 15:21:21 -04:00 by jared · 0 comments
Owner

One tile, not a dashboard. Settings → General (or Account → Data): shows total local usage from navigator.storage.estimate() with a breakdown only where it is cheap to know (Cache Storage = media, the encrypted search index IndexedDB, the crypto store), plus two actions.

Scope

  • Clear media cache — evicts Cache Storage / browser cache entries for media; nothing else. Safe at any time.
  • Clear search index — already exists in the search settings; link to it instead of duplicating.
  • Never a "clear everything" button here: the crypto store must not be clearable casually (that is the storage-eviction E2EE failure mode from LOTUS_TODO KE-1). Show its size, with a one-line note on why it is not clearable, and whether navigator.storage.persisted() is granted (green/amber) — that last bit is genuinely useful for diagnosing the KE-1 cluster.
  • If storage.estimate() is unavailable (older WebView/Safari), hide the tile entirely rather than showing zeros.
One tile, not a dashboard. Settings → General (or Account → Data): shows total local usage from `navigator.storage.estimate()` with a breakdown only where it is cheap to know (Cache Storage = media, the encrypted search index IndexedDB, the crypto store), plus two actions. ### Scope - **Clear media cache** — evicts Cache Storage / browser cache entries for media; nothing else. Safe at any time. - **Clear search index** — already exists in the search settings; link to it instead of duplicating. - Never a "clear everything" button here: the crypto store must not be clearable casually (that is the storage-eviction E2EE failure mode from LOTUS_TODO KE-1). Show its size, with a one-line note on why it is not clearable, and whether `navigator.storage.persisted()` is granted (green/amber) — that last bit is genuinely useful for diagnosing the KE-1 cluster. - If `storage.estimate()` is unavailable (older WebView/Safari), hide the tile entirely rather than showing zeros.
jared added this to the Features 2026-Q4 milestone 2026-09-17 15:21:21 -04:00
jared added the enhancementpriority: lowarea: settings labels 2026-09-17 15:21:21 -04:00
jared self-assigned this 2026-09-17 15:21:21 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/cinny#120