From b5ba77b67b981e72c222824bfeedde0fc5aeef9d Mon Sep 17 00:00:00 2001 From: 4gray Date: Sun, 27 Sep 2026 14:33:40 +0200 Subject: [PATCH] fix(settings): offer the portal unlock row in fail-closed mode When the lock store cannot be read every portal category is withheld but no locked ids are known, so the rail showed no "Enter PIN to show" row. It now shows the row without a count in that state. Co-Authored-By: Claude Opus 5.5 --- docs/architecture/parental-lock.md | 4 +++- .../workspace-context-panel.component.html | 8 ++++--- .../workspace-context-panel.component.spec.ts | 21 +++++++++++++++++++ .../workspace-context-panel.component.ts | 10 +++++++++ 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/docs/architecture/parental-lock.md b/docs/architecture/parental-lock.md index 31d44c589..a53df232e 100644 --- a/docs/architecture/parental-lock.md +++ b/docs/architecture/parental-lock.md @@ -19,7 +19,9 @@ follow in a second PR. - The unit of locking is the category. Nothing is blurred or greyed: a withheld category and its rows are absent. The only trace is one "N locked ยท Enter PIN to show" row at the bottom of a portal's category - rail, which opens the PIN prompt. + rail, which opens the PIN prompt. In fail-closed mode (lock store + unreadable) the row shows without a count, since which categories are + locked is unknown while every one of them is withheld. - The unlock lives in memory only. The app locks again on every restart, on "Lock now" (header button, command palette, settings), and after `Settings.parentalLockRelockMinutes` minutes without user interaction diff --git a/libs/workspace/shell/feature/src/lib/workspace-context-panel/workspace-context-panel.component.html b/libs/workspace/shell/feature/src/lib/workspace-context-panel/workspace-context-panel.component.html index 81293079d..1aec3253a 100644 --- a/libs/workspace/shell/feature/src/lib/workspace-context-panel/workspace-context-panel.component.html +++ b/libs/workspace/shell/feature/src/lib/workspace-context-panel/workspace-context-panel.component.html @@ -214,7 +214,7 @@ } } - @if (withheldCategoryCount() > 0) { + @if (withheldCategoryCount() > 0 || withholdsAllCategories()) {