Repository navigation
Show what a project keeps in browser storage - #71
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds View storage to the project menu, and groups that menu.
Storage dialog — read-only, for the open project:
objectStoreNames, so a future table appears without changes here;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:Replaces the standing storage UI proposed in #38.
Verification:
pnpm checkpasses; checked in the dev app — menu groups render as above, and table counts match the seeded library (8 files, 8 contents).