Skip to content

feat(output): Four-Act narrative — restructure the 28-tab output view (Pillar A)#36

Merged
New1Direction merged 13 commits into
mainfrom
feat/output-tab-four-acts
Jun 17, 2026
Merged

feat(output): Four-Act narrative — restructure the 28-tab output view (Pillar A)#36
New1Direction merged 13 commits into
mainfrom
feat/output-tab-four-acts

Conversation

@New1Direction

Copy link
Copy Markdown
Owner

Summary

Pillar A of the "simpler to use + digest" effort. Restructures the output tab's flat 28-tab nav into a four-act narrative — Decide → Understand → Go Deeper → Actwithout removing any information. Every panel, render function, show(), and deep link is preserved; only the nav becomes two-tier and show() becomes act-aware.

Built spec-first (brainstorm → approved spec → plan → subagent-driven execution). Spec: docs/superpowers/specs/2026-06-16-output-tab-four-acts-design.md; plan: docs/superpowers/plans/2026-06-16-output-tab-four-acts.md (both with rendered HTML).

Approach (low-risk by design)

  • New pure module output-acts.js groups the existing #t0#t27 panels into four ordered acts. Fully unit-tested (every index 0–27 covered exactly once).
  • Two-tier nav (#act-nav primary acts + #act-subnav active act's tabs), generated from the model. Secondary buttons keep data-tab, so the existing show() path is reused.
  • show(n) now selects panels by id (#t${n} — removes a fragile DOM-order coupling) and marks the active act + renders its subnav. TAB_SLUGS is unchanged, so deep links and per-repo recall keep working as-is.
  • All panels, render functions, and background.js are untouched — this is a front-end reorganization only.

UX fixes folded in

  • Decision control (Adopt/Trial/Hold/Reject) moved to the top of Decide (was buried ~2000px down).
  • "Worth noting" highlights now anchor + scroll to their section instead of yanking context away.
  • Verdict previews jump to their canonical section (dedupe).
  • "Run all lenses" relocated into the Go-Deeper subnav.
  • Circular library ↔ output navigation (the small Pillar-B win).

How it was built + reviewed

Subagent-driven: 11 implementation tasks, each gated by an independent spec-compliance review then a code-quality review (with fix loops) — all 11 approved on both. A final whole-branch review then found 2 Important issues, both fixed in 875a23f:

  • SKTPG visibility toggle had become a no-op (model-rendered button lost its id) — restored.
  • Default landing didn't highlight the Decide act — now calls show(9) on the default path.

Verification

  • npx vitest run862 passed (91 files; +5 new tests/output-acts.test.js)
  • npx eslint .0 errors (25 pre-existing warnings, none new)
  • npm run check:html → 22 files parse cleanly
  • node --check on output-acts.js, output-tab.js, library.js
  • Manual smoke recommended (no DOM test env in this repo): load the unpacked extension, scan a repo, and confirm — four acts switch; Decide shows the decision control + is highlighted on first open; #health / #deep-dive / #versus deep-links open the right act; keyboard nav; SKTPG toggle hides/shows its Go-Deeper button; reduced-motion honored.

Out of scope (deliberate, per spec)

Gamification/juice (Pillar 3 — the "Knowledge Game" for library/corkboard), settings redesign, and richer per-lens progress for Maintenance/Docs (would require background.js streaming the spec excludes — Deep Dive's staged progress is unchanged).

New1Direction and others added 13 commits June 16, 2026 18:16
Restructure the 28-tab output view into a Decide → Understand → Go Deeper
→ Act narrative. Two-tier nav, every section keeps a home, decision
control to the top, lenses labeled with prereq/time/progress, legacy
deep-link map. Scope-bounded (container/IA reorg, no pipeline rewrite).
Part of a 3-pillar effort (A output-tab [this], B journey, 3 Knowledge Game).

Includes a rendered HTML version for review.
Bite-sized TDD plan: pure output-acts.js model (full code + tests),
two-tier nav, act-aware show(), then targeted UX fixes (decision-to-top,
highlights anchor, previews jump, run-all relocation) + circular library
nav. Keeps all panels/render/show + deep links; no background.js changes.
Includes a rendered HTML overview for review.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@New1Direction New1Direction merged commit f172c56 into main Jun 17, 2026
1 check passed
@New1Direction New1Direction deleted the feat/output-tab-four-acts branch June 17, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant