From 0e5c66b98fb6e618265755c13dcabcc1fd1bfca4 Mon Sep 17 00:00:00 2001 From: cottongin Date: Mon, 23 Mar 2026 03:25:15 -0400 Subject: [PATCH] Address spec review feedback for named admins design Clarify WS auth rejection for stale tokens, enumerate all migrated localStorage keys, and add theme exception note to overview. Made-with: Cursor --- .../specs/2026-03-23-named-admins-design.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/superpowers/specs/2026-03-23-named-admins-design.md b/docs/superpowers/specs/2026-03-23-named-admins-design.md index 83d1f60..cd8f9ee 100644 --- a/docs/superpowers/specs/2026-03-23-named-admins-design.md +++ b/docs/superpowers/specs/2026-03-23-named-admins-design.md @@ -5,7 +5,7 @@ ## Overview -Replace the single shared `ADMIN_KEY` with named admin accounts, each with their own key. Per-admin preferences are stored in namespaced `localStorage`. A real-time "who is watching" presence bar shows which admins are on the same page. +Replace the single shared `ADMIN_KEY` with named admin accounts, each with their own key. Per-admin preferences are stored in namespaced `localStorage` (except theme, which stays shared — see Edge Cases). A real-time "who is watching" presence bar shows which admins are on the same page. ## Requirements @@ -84,7 +84,7 @@ A utility function (e.g. in `frontend/src/utils/adminPrefs.js`): ### One-time migration -On login, if old un-namespaced keys exist (e.g. `history-filter`), copy them to the namespaced version (`alice:history-filter`) and delete the originals. This preserves existing preferences for the first admin who logs in after the upgrade. +On login, if old un-namespaced keys exist (`history-filter`, `history-show-limit`), copy them to the namespaced versions (`alice:history-filter`, `alice:history-show-limit`) and delete the originals. This preserves existing preferences for the first admin who logs in after the upgrade. --- @@ -115,7 +115,7 @@ On login, if old un-namespaced keys exist (e.g. `history-filter`), copy them to ### Frontend component — `PresenceBar` - Renders below the `