feat(ext): list/detail load + render org items in org context (normalized, read-only)

This commit is contained in:
adlee-was-taken
2026-06-27 11:47:50 -04:00
parent 183a3f0a81
commit c327c21fdc
2 changed files with 60 additions and 8 deletions

View File

@@ -57,6 +57,11 @@ export interface PopupState {
orgOffline?: boolean;
orgConfigs?: OrgConfigSummary[];
orgCollections?: Collection[];
// Tracks which context's items were last loaded into `entries`. Used by
// renderItemList to fire a context-aware load exactly ONCE per context
// switch (loop-safe guard: setState({loadedContext}) re-renders, but the
// guard then matches so no second load fires).
loadedContext?: string;
// Vault-tab-only fields. The popup surface leaves these at their defaults
// (unlocked=false implicit via separate lock-screen view, drawer/panel false).
// Kept on the shared shape so VaultState satisfies StateHost.getState()