Introducing a new way to review your PRs.

Read the announcement

fwdai / rowel

🔑 Local-first Secrets Manager

View on GitHub

23 documents · Updated Oct 9, 2026

docs / main-workspace-interface

Main workspace interface

The authenticated vault interface lets a user find, inspect, create, change, share, and archive encrypted entries. It presents the same vault state through a desktop three-pane workspace and a compact one-screen-at-a-time workspace. The interface keeps list metadata useful for browsing while revealing sensitive entry data only when the user opens an entry.

The workspace starts after authentication and sits below the broader application shell. The frontend bootstrap explains how the application reaches this state, while client state and preferences explains the state that preserves the current view, selection, and user choices.

Authenticated vault interface

The workspace is the main place for daily vault work. It combines navigation, a filtered entry list, and an entry detail surface with temporary tools such as the command palette, generator, sharing, and scan flows.

The interface has two layout modes:

LayoutMain purposePresentation
WideKeep context visible while workingHeader, navigation rail, list column, and detail pane are visible together.
CompactFit the same work on a small screenOne vault, detail, editor, settings, or tool screen is shown at a time with a tab bar where safe.

Workspace state

The workspace treats the active view and the selected entry as separate concepts. A view chooses the group of entries to browse. A selection chooses the entry whose detail surface is open. Creating or editing replaces the detail surface with a draft and prevents navigation that could hide unsaved work. src/…/ui.ts• L14-24 src/…/vault.ts• L23-38 src/…/index.tsx• L7-29

The interface clears session-only vault data when the vault locks. This keeps rows, selected entries, drafts, and temporary dialog state from appearing in the next unlocked session. See client state and preferences for the wider state boundary.

References: src/…/index.tsx• L18-52 src/…/ui.ts• L40-89 src/…/vault.ts• L23-49

Navigation answers two different questions: which part of the vault to browse, and which action to perform on the current vault. The rail holds the durable browsing places. Temporary actions open as dialogs or overlays so they do not change the browsing model.

The navigation rail provides the primary vault places and the two vault-level controls. It exposes All Items, Favorites, Archive, and Tags. Add is the main creation action. Lock and Settings stay at the foot of the rail. src/…/index.tsx• L10-43

Tags is a view rather than a filter layered over another view. The Tags menu lists tags that exist in the vault. Choosing one opens the tag view and gathers matching entries from across the vault. src/…/index.tsx• L8-30 src/…/Menu.tsx• L19-27

Vault Health is an audit surface reached from Settings rather than a normal rail place. The UI still treats it as a distinct view, with its own score and audit results. src/…/VaultHealth.tsx• L7-17

References: src/…/index.tsx• L10-43 src/…/Menu.tsx• L19-52 src/…/VaultHealth.tsx• L7-17

Settings modal

Settings opens as a modal over the wide workspace and groups vault, account, and app controls behind a section navigation rail. A section can open a subpage inside the same modal, with a back action that returns to the section before the modal closes. src/…/SettingsModal.tsx• L16-93 src/…/sectionNav.tsx• L18-41

Settings can lock its navigation while an operation is in progress. During that lock, section changes, subpage movement, and close actions are disabled so the user cannot leave an active settings task. src/…/SettingsModal.tsx• L18-30 src/…/ui.ts• L253-269

References: src/…/SettingsModal.tsx• L16-93 src/…/sectionNav.tsx• L18-66 src/…/ui.ts• L253-269

Wide workspace

The wide workspace keeps the list and detail surfaces visible at the same time. A narrow rail selects the place, a middle column narrows and orders entries, and the remaining pane shows the selected entry or the relevant empty state. The top header is a quiet sync status area rather than a second toolbar. src/…/Wide.tsx• L6-21 src/…/index.tsx• L3-29

When a user creates or edits an entry, the list remains visible for context but becomes inert. This keeps the draft tied to its subject until the user saves or cancels it. src/…/index.tsx• L7-29

References: src/…/Wide.tsx• L6-21 src/…/index.tsx• L3-29 src/…/index.tsx• L7-29

Compact workspace

The compact workspace uses the same state but shows one major surface at a time. A draft or edit takes priority, followed by Settings and standalone tools, then the selected entry, and finally the vault root. The tab bar is hidden while a detail or draft screen is pushed so a tap cannot discard the current work. src/…/index.tsx• L11-27

Pushed compact screens provide a back control and an edge-swipe equivalent. The gesture starts at the screen edge and leaves the screen only when the back action is still allowed. Settings keeps its tab bar while a section or subpage is open, and the same lock that disables its back control also disables the gesture. src/…/Read.tsx• L20-80 src/…/Pane.tsx• L19-105 src/…/useSwipeBack.ts• L35-53

The wide and compact workspaces share entry actions and overlays. They differ in placement and touch size, not in the meaning of those actions.

References: src/…/index.tsx• L11-74 src/…/Read.tsx• L33-80 src/…/Pane.tsx• L28-105 src/…/useSwipeBack.ts• L53-138 src/…/index.tsx• L7-29

Entry list and scopes

The list gives the user a safe summary of the vault before any secret payload is revealed. It starts with a view source, applies the active kind and tag scopes, then applies search or the selected sort. The result is the set of rows shown in the list.

This diagram shows how a vault view becomes the visible list and how selection opens the detail surface.

flowchart LR
    V[Vault view] --> S[View source]
    S --> F[Kind or tag scope]
    F --> Q[Search query]
    Q --> O[Sort or relevance order]
    O --> L[Entry rows]
    L --> D[Selected detail]

View sources

All Items uses the live entry set. Favorites keeps live entries marked as favorites. Archive loads deleted entries when opened. Tags also starts from the live vault, then narrows it to the chosen tag. Health uses audit data instead of ordinary entry rows. src/…/useVisibleEntries.ts• L7-25 src/…/ui.ts• L148-162

Changing views clears the current selection. This prevents a detail pane from showing an entry that does not belong to the new view. Opening Archive also refreshes its deleted-entry list so it reflects recent sync results. src/…/ui.ts• L148-162

References: src/…/useVisibleEntries.ts• L7-25 src/…/ui.ts• L148-162

Kind and tag scopes

The All Items title opens a kind scope menu. It shows All Items and each supported entry kind with counts. A kind scope limits the list to one type. A tag scope is selected from the Tags menu and limits the Tags view to entries with that exact tag. src/…/ScopeMenu.tsx• L17-65 src/…/entries.ts• L18-36

Scopes are part of the view state rather than a second navigation system. If a new scope would hide the selected entry, the interface closes the detail selection. This keeps the list and detail panes consistent.

References: src/…/ScopeMenu.tsx• L17-65 src/…/entries.ts• L18-36 src/…/ui.ts• L198-214

Search behavior

Search runs inside the current view and scope. It matches list metadata such as title, site host, username, and tags. It does not search secret payload fields such as passwords or private notes. Empty queries use the chosen sort. Non-empty queries use relevance order instead of replacing relevance with a date or title sort. src/…/entries.ts• L27-54 src/…/useVisibleEntries.ts• L28-59

The search field belongs to the list column. The keyboard shortcut focuses it. Escape clears the query first, and empty results explain the active query and offer a way to clear or widen a kind scope. src/…/Search.tsx• L15-50 src/…/variants.tsx• L138-163

References: src/…/entries.ts• L27-54 src/…/useVisibleEntries.ts• L28-59 src/…/Search.tsx• L15-50

Entry rows

Rows show an entry kind, title, useful subtitle metadata, audit flags, favorite state, and a relative time. They use metadata only, so selecting a row is the point at which the detail surface can request the protected entry data. Keyboard browsing and pointer selection move the same current-entry state. src/…/index.tsx• L18-45 src/…/entries.ts• L7-15

With no query, rows can be grouped by entry kind. With a query, rows stay in relevance order so the closest matches remain first. Empty states distinguish an empty vault, an empty scope, no favorites, no archive entries, and no search matches. src/…/Manager.tsx• L18-39 src/…/variants.tsx• L17-135

References: src/…/useVisibleEntries.ts• L7-59 src/…/entries.ts• L18-60 src/…/Search.tsx• L15-91 src/…/index.tsx• L18-81 src/…/Manager.tsx• L18-39 src/…/variants.tsx• L17-135

Entry detail presentation

The detail pane is the entry-oriented workspace. It shows a selected entry in a read face, changes that entry in an edit face, or presents a useful empty state when no entry is selected. The pane chooses the field set from the entry kind, so each kind can present the data that matters to it without changing the surrounding navigation model.

Read surface

The read surface identifies the entry, shows its kind-specific fields after reveal, and keeps metadata such as tags and dates available below the fields. It also provides the entry actions that apply to the current item. src/…/Read.tsx• L15-45 src/…/Body.tsx• L16-50

Reveal is on demand. A failure leaves the user with a retry path instead of showing partial secret data. The same detail surface is reused when the user changes from reading to editing, which keeps the entry context stable. src/…/index.tsx• L15-39

On compact screens, the read surface keeps the entry identity and favorite action near the top, places the shared fields and metadata in the scroll area, and keeps the primary entry action near the thumb. Archived entries do not show a reveal or primary secret action. src/…/Read.tsx• L20-80

References: src/…/Read.tsx• L15-45 src/…/Body.tsx• L16-50 src/…/index.tsx• L15-39 src/…/Read.tsx• L33-80

Entry attachments

Attachments are files associated with a revealed live entry. The detail surface lists each file with its name, size, and file-type mark, and lets the user save or remove it. The file bytes do not enter the webview, and the interface shows vault usage only when the attachment budget is nearly full. src/…/Body.tsx• L23-50 src/…/index.tsx• L15-75 src/…/icons.tsx• L142-147

The user can add a file through the attach action or by dropping a file on an open entry. Image drops remain with the scanner, and environment-file drops remain with the environment import flow. Other eligible files attach to the open live entry. Remove uses an inline second confirmation, while save writes the file back through the native file path. See entry attachments for the wider file contract.

References: src/…/Row.tsx• L18-89 src/…/drop.ts• L6-30 src/…/index.tsx• L30-75 src/…/useAttachments.ts• L17-75 src/…/Body.tsx• L23-50 src/…/icons.tsx• L142-147

Edit surface

The edit surface keeps the read layout and changes its visual state to mark an active draft. A new entry starts with the selected kind. An existing entry starts with its revealed values. Save returns the written entry to the list and keeps it selected. src/…/index.tsx• L17-63 src/…/vault.ts• L78-103

The draft can also start with values supplied by scan or environment import. It tracks whether the user changed the loaded values, asks for a second Cancel action before discarding dirty work, and ignores another save while the current save is still in flight. Keyboard save and cancel stand down while a dialog is open, so a tool dialog cannot change the draft behind it. src/…/useDraft.ts• L34-39 src/…/useDraft.ts• L47-80 src/…/useDraft.ts• L87-135

The interface only permits drafts in All Items. This prevents a new entry from being created inside a filtered or read-only surface where it could disappear as soon as it is saved. src/…/vault.ts• L95-103

References: src/…/index.tsx• L17-63 src/…/useDraft.ts• L34-137 src/…/vault.ts• L78-103

Entry kind presentation

Each entry kind supplies its label, icon, list row, primary secret action, and field view. The shared workspace uses that kind contract to present logins, cards, notes, identities, SSH keys, API keys, and environment data through one list-and-detail pattern. src/…/index.ts• L14-23 src/…/types.ts• L19-54

Credit card entries show safe metadata in the list. The card number remains masked until the entry is revealed. The detail action can then copy the number as the primary card action. src/…/index.tsx• L7-25 src/…/ListRow.tsx• L7-29

References: src/…/index.ts• L14-23 src/…/types.ts• L19-54 src/…/index.tsx• L7-25 src/…/ListRow.tsx• L7-29

Archived entry presentation

Archive rows are read-only tombstones. Their detail actions are Restore and permanent deletion. They do not offer edit, favorite, copy, or share because the protected entry payload is no longer available through the normal reveal path. src/…/Archived.tsx• L18-45

References: src/…/index.tsx• L7-24 src/…/Read.tsx• L15-45 src/…/index.tsx• L17-63 src/…/Archived.tsx• L18-45 src/…/index.ts• L14-36

Entry actions

Entry actions are placed where the user has the needed context: creation starts from the Add action, common item actions live in the detail header, and kind-specific copy actions sit beside the revealed entry. The actions update the same selection and view state as navigation, so a save, archive, restore, or favorite change cannot leave a stale detail pane behind.

Entry creation

Add opens a kind picker rather than guessing what the user wants to save. The picker supports the registered kinds and also offers scan, environment import, receive, and generate paths. Choosing a kind starts a draft and moves the user to All Items before the editor opens. src/…/index.tsx• L28-48 src/…/Add.tsx• L6-23

Scanning can turn a supported card or identity image into editor prefill. It is available across the unlocked app when the platform supports it, and it ends in the same entry editor rather than a separate data path. src/…/index.tsx• L7-27

Environment files use the same editor path. A qualifying file dropped on an idle workspace opens a prefilled environment draft. A drop on an open live entry is offered to attachments instead, while image drops remain with scanning. The drop owner is checked again after file reading so a dialog or editor opened during the read cannot receive a stale result. src/…/open.ts• L5-47 src/…/drop.ts• L9-30

References: src/…/index.tsx• L28-105 src/…/index.tsx• L7-27 src/…/open.ts• L5-47 src/…/drop.ts• L9-30

Entry maintenance

The detail header gives live entries three main actions: edit, share, and archive. The primary button performs the useful copy action for that kind. Archive requires a second confirmation. Saving or changing a favorite updates the list and schedules sync, while removing an entry moves it out of All Items and into Archive. src/…/Actions.tsx• L17-47 src/…/MoreMenu.tsx• L26-107 src/…/vault.ts• L143-165

Favorites is a live-entry view. Removing the favorite while browsing Favorites clears the selection if the entry no longer belongs in the view. This prevents the detail pane from continuing to show an item that the current list no longer contains. src/…/vault.ts• L198-208

References: src/…/Actions.tsx• L17-47 src/…/MoreMenu.tsx• L26-107 src/…/vault.ts• L143-165 src/…/vault.ts• L198-208

Entry sharing

Sharing has two directions. Send creates a share for an entry that is already in the vault. Receive opens a shared entry that is not yet in the vault. Each direction uses its own dialog and does not change the list until the related operation completes. src/…/index.tsx• L4-16 src/…/ui.ts• L254-266

Receive first previews the entry from the link. If the user adds it, the workspace saves a new local copy through the normal entry path. Local identity, timestamps, favorite state, password history, and passkeys are not taken from the sender, so the received row belongs to the recipient and has no live link back to the source. See secure sharing for the wider sharing model.

References: src/…/index.tsx• L4-16 src/…/useReceive.ts• L19-115 src/…/ui.ts• L254-266

Secret generation

The generator is a tool rather than a navigation place. It can produce a value for an editor or copy a standalone result. On wide layouts it is a dialog over the workspace. On compact layouts it can be a root screen or an overlay attached to the entry that requested it. src/…/Dialog.tsx• L19-73 src/…/index.tsx• L31-74

References: src/…/index.tsx• L28-105 src/…/Actions.tsx• L17-47 src/…/index.tsx• L4-16 src/…/Dialog.tsx• L19-73

Dialogs and transient tools

Dialogs keep short workflows over the current vault context. They include the add picker, command palette, generator, sharing, scan status, and environment drop flows. The workspace treats an open dialog as the owner of keyboard input so shortcuts do not act on the list or detail surface behind it. src/…/index.tsx• L18-51 src/…/ui.ts• L190-222

Command palette

The command palette is a keyboard-first route to actions that would otherwise require navigation. It is available in the wide workspace through the command shortcut and closes without changing the underlying vault context unless a command is chosen. src/…/index.tsx• L4-10

References: src/…/index.tsx• L4-10 src/…/index.tsx• L39-42

Add dialog

The Add dialog is a choice surface, not an editor. It asks for the entry kind and then hands the selected kind to the normal draft flow. Its extra actions connect import-like sources and tools to the same entry-oriented outcomes. src/…/index.tsx• L28-48 src/…/index.tsx• L76-105

References: src/…/index.tsx• L28-48 src/…/index.tsx• L76-105

Browser consent is the security gate for requests made through the browser extension. It shows one request at a time and routes the request to either an extension connection dialog or a passkey dialog, so a newer request replaces the older one rather than competing with it. src/…/index.tsx• L5-21

The connection dialog shows the requesting key and lets the user name, allow, or deny the browser connection. The passkey dialog identifies the requesting site and origin, and lets the user choose an account when more than one passkey matches. Allow and deny responses return to the waiting browser request; closing the dialog or letting it expire denies the request. src/…/AssociateDialog.tsx• L14-38 src/…/PasskeyDialog.tsx• L17-49

References: src/…/index.tsx• L5-21 src/…/AssociateDialog.tsx• L14-38 src/…/PasskeyDialog.tsx• L17-49

Dialog focus

The dialog system registers every open modal surface. While one is open, window and document shortcuts stand down. This matters for dialogs that contain a draft or their own drop target because a shortcut behind the dialog could change or discard unrelated state. src/…/ui.ts• L190-222

References: src/…/index.tsx• L29-51 src/…/ui.ts• L190-252 src/…/index.tsx• L4-10 src/…/index.tsx• L76-105

Change checklist

When these files or sections are changed, remember to consider these:

  • When a new entry kind is added, update the kind registry and confirm that the Add picker, kind scope menu, list row, detail fields, primary copy action, and empty-state labels all use the same kind definition.
  • When a new vault view or scope is added, update the view state, list source, title, navigation control, empty-state selection, and selection-clearing rules together.
  • When a searchable metadata field changes, update the search index contract and confirm that the field is safe to expose before reveal.
  • When an entry action changes list membership, preserve the rule that the selected detail entry must remain visible in the active view.
  • When a dialog or overlay is added, register it with the modal presence system so keyboard shortcuts and drop handling do not reach the workspace behind it.
  • When compact navigation changes, preserve the priority order for drafts, settings, tools, selected entries, and vault roots so unsaved work cannot be hidden or discarded.
  • When compact back navigation changes, keep the edge gesture and visible back control tied to the same current lock and destination.
  • When a file-drop route changes, preserve ownership between scanning, environment import, attachment handling, and dialogs across the asynchronous file-read step.
  • When attachments change, keep file listing, save, remove, size limits, and near-limit usage reporting aligned with the attachment contract.
  • When browser consent changes, preserve the one-request boundary and ensure each response remains tied to the request that opened its dialog.
  • When received shares change, keep sender-owned identity and device data out of the recipient's new local entry.
  • When Settings navigation changes, keep section and subpage movement blocked while a settings operation holds the lock.

Important failure modes

TriggerConsequenceGuard
Search is applied to protected fieldsSecret values could become searchable before reveal.Search uses list metadata only: title, site host, username, and tags.
A kind or tag scope hides the selected entryThe detail pane can show an entry that is not in the current list.Scope changes clear a hidden selection.
A new entry starts inside a filtered viewThe saved entry can disappear as soon as it is created.Draft creation first returns to All Items.
A live entry is archived or removed from FavoritesThe detail pane can remain attached to a row that the view no longer contains.Mutating actions update the list and clear or reset selection when needed.
A modal leaves global shortcuts activeA shortcut can change the list or draft behind the open dialog.Dialog presence blocks workspace-level keyboard handling.
A file drop is claimed by the wrong flowA scan, environment draft, or attachment can consume a file intended for another surface.Drop routing checks file type, current entry state, modal state, and ownership again after reading.
An attachment is treated as entry dataFile contents could enter the webview or exceed the vault's file contract without clear feedback.The UI keeps bytes outside the webview and reports attachment errors and near-limit usage.
An archived row is treated as a live entryThe UI can offer reveal, edit, copy, or share actions that cannot operate on a tombstone.Archived detail uses Restore and permanent deletion only.
A compact back gesture ignores a new lockA user can leave a screen while a settings or entry operation is active.The gesture checks the latest back handler and lock when the gesture commits.
A browser consent response is applied to a newer requestThe wrong extension or site could receive permission for an old request.Each consent dialog is keyed to its request and returns its request ID.
A received share keeps sender-owned fieldsThe recipient can overwrite local identity or retain device-specific credentials.Receipt strips identity, timestamps, favorite state, password history, and passkeys before save.
Settings closes or changes section during a locked operationAn active settings task can lose its context or leave partial work.The settings lock disables close, section, and subpage navigation.

Key files

FileWhy to read it
src/…/index.tsxShows the authenticated workspace composition and shared overlays.
src/…/Wide.tsxShows the desktop and tablet three-pane layout.
src/…/index.tsxShows the small-screen surface priority and tab-bar rules.
src/…/Read.tsxShows the compact selected-entry presentation and thumb-level action.
src/…/Pane.tsxShows compact Settings sections, subpages, and locked back navigation.
src/…/useSwipeBack.tsDefines the compact edge-back gesture shared by pushed screens.
src/…/index.tsxDefines the primary vault navigation places.
src/…/SettingsModal.tsxShows the Settings modal, section navigation, and subpage behavior.
src/…/index.tsxConnects the list column to the detail pane and draft behavior.
src/…/useVisibleEntries.tsDefines how views, scopes, search, and sort become visible rows.
src/…/entries.tsDefines the safe metadata search and scope contract.
src/…/Read.tsxShows the selected-entry read surface and its actions.
src/…/Body.tsxConnects revealed fields, metadata, and entry attachments.
src/…/index.tsxShows the entry attachment list and attach action.
src/…/useAttachments.tsDefines attachment load, add, save, remove, and error behavior.
src/…/index.tsxShows the shared entry editor surface.
src/…/useDraft.tsDefines draft seeding, dirty state, discard protection, and save flow.
src/…/open.tsDefines ownership of dropped environment files and prefilled drafts.
src/…/useReceive.tsDefines preview and safe local creation from a received share.
src/…/index.tsxDefines the single entry point for browser connection and passkey consent.
src/…/AssociateDialog.tsxShows the user decision for a browser extension connection.
src/…/PasskeyDialog.tsxShows the user decision and account choice for passkey requests.
src/…/icons.tsxDefines the shared visual marks used by controls, entry kinds, and attachment rows.
src/…/ui.tsDefines views, filters, dialog state, and transient workspace controls.
src/…/vault.tsDefines selection, draft, save, archive, restore, and favorite transitions.
src/…/index.tsDefines the entry-kind registry used across the interface.