Skip to content

Era bar: closable and remembered (kit v=4) - #19

Merged
emptymalei merged 1 commit into
mainfrom
claude/interstellar-life-game-shnpdg
Oct 19, 2026
Merged

emptymalei merged 1 commit into
mainfrom
claude/interstellar-life-game-shnpdg

Conversation

@emptymalei

Copy link
Copy Markdown
Member

Requested by L in the project thread.

Before: the "第二阶段 · 通联纪 · 2219 / ← 返回第一阶段" bar above every header was always there.

After: the bar has a × on the right. Closing it removes it and stores interimm-era-bar=closed in localStorage, so it stays hidden on later visits (storage access wrapped in try/catch). On phones the left label is hidden so the bar stays one line.

How: kit/interimm.js checks the key before rendering and binds the close button after the header is drawn; labels.close added to both nav JSONs; styles in kit/interimm.css; all 17 pages bumped to ?v=4. npm test passes (27/27); checked by screenshot at 412 px and 1200 px, including that the bar stays gone after reload.

Companion: iron-bamboo-initiative stops rendering this bar at all.


Generated by Claude Code

The 'phase 2 / back to phase 1' strip above the header gets a close
button. Closing removes it and stores interimm-era-bar=closed in
localStorage so it stays hidden on later visits. On phones the left
label is hidden so the bar stays one line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QUNj9piTc2aGUUJFvN31tV
@emptymalei
emptymalei merged commit 05986c9 into main Oct 19, 2026
1 check passed
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.

2 participants