From cfcae0898121a5046f585de1259aac56d5a0f7f5 Mon Sep 17 00:00:00 2001 From: chihlasm Date: Fri, 13 Mar 2026 11:58:23 -0400 Subject: [PATCH] docs: fix spec issues from round 4 review Co-Authored-By: Claude Sonnet 4.6 --- ...026-03-13-script-library-pane-takeover-design.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md b/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md index c37d6299..553a35f2 100644 --- a/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md +++ b/docs/superpowers/specs/2026-03-13-script-library-pane-takeover-design.md @@ -138,7 +138,16 @@ Two sub-states: The right pane is always read-only — no form, no Generate/Download buttons. -**Layout note:** `ScriptPreview` renders a `
` at its root; the copy overlay button is `position: absolute, top-3, right-3` inside it. The right-pane wrapper uses `p-4` so the absolute copy button will be inset 4px from the wrapper's padding edge — visually correct. No changes to `ScriptPreview` are needed. +**Layout note:** `ScriptPreview` renders a `
` at its root; the copy overlay button is `position: absolute, top-3, right-3` inside it. The right-pane wrapper must **not** use `overflow-y-auto` — if it did, the absolute copy button would scroll out of view on long scripts. Instead, the wrapper is `overflow-hidden` and `ScriptPreview`'s inner `
` (inside `PowerShellHighlighter`) provides its own `overflow-x-auto` for wide scripts. The right pane itself does not need to scroll vertically — `PowerShellHighlighter` already handles horizontal overflow. No changes to `ScriptPreview` are needed.
+
+The correct right-pane wrapper pattern:
+```tsx
+
+ +
+``` + +**Right pane during initial detail load:** When the user clicks "Configure →" for the first time (`selectedTemplate === null`, `isLoadingDetail === true`), the right pane still shows the empty state (Terminal icon). The left pane's configure view shows the loading spinner. This is acceptable — the right pane updating when `isLoadingDetail` resolves is sufficient. No right-pane loading state is needed. --- @@ -172,7 +181,7 @@ Transitions: |------|--------| | `frontend/src/pages/ScriptLibraryPage.tsx` | Add `paneMode` state; add `usePermissions` import for `canGenerate`; move `ScriptFilterBar` into left pane column; add `onConfigure`/`onBack` callbacks; render `ScriptConfigurePane` or browse content in left pane conditionally; render right pane as `ScriptPreview`-only with empty state | | `frontend/src/components/scripts/TemplateCard.tsx` | Root `