Skip to content

Show what a project keeps in browser storage - #71

Merged
bencode merged 4 commits into
mainfrom
feat/project-info
Oct 2, 2026
Merged

bencode merged 4 commits into
mainfrom
feat/project-info

Conversation

@bencode

@bencode bencode commented Oct 2, 2026 •

Copy link
Copy Markdown
Owner

Adds View storage to the project menu, and groups that menu.

Storage dialog — read-only, for the open project:

  • the IndexedDB database name;
  • the library size against the 1 GiB limit (same sum the import check uses, attachments included);
  • every table and its record count — read from objectStoreNames, so a future table appears without changes here;
  • the browser's origin-wide usage and whether storage is persistent (navigator.storage.estimate() / persisted()).

It reads once when opened. No refresh, no actions, no other projects. Conversations and messages show counts only; they have no stored byte size, and an estimate would mislead.

Project menu — actions read verb plus object, … only where more input or confirmation follows, grouped by what they act on:

New project…
──
Rename project…
View storage
──
Delete project…

Replaces the standing storage UI proposed in #38.

Verification: pnpm check passes; checked in the dev app — menu groups render as above, and table counts match the seeded library (8 files, 8 contents).

Project info in the project menu lists the open project's IndexedDB
database, the record count of every table, the library size against the
1 GiB limit, and the browser's origin-wide usage and persistence.
Actions now read verb plus object and sit in three groups: creating a
project, acting on the open one, and deleting it. Project info becomes
View storage, without an ellipsis since it asks for nothing more.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant