Skip to content

Tab title with slide position - #193

Open
grunion-ai wants to merge 1 commit into
mainfrom
claude/tab-title-slide-count-6c3b
Open

grunion-ai wants to merge 1 commit into
mainfrom
claude/tab-title-slide-count-6c3b

Conversation

@grunion-ai

Copy link
Copy Markdown
Owner

Change

The browser tab now reads the deck title followed by the slide position, for example Q3 update · slide 3 of 12. Before this, every tab showed the deck title alone, so several open decks looked identical and none said which slide was up.

  • render() writes document.title, so the tab follows the arrow keys, the contact sheet and undo.
  • A document format counts pages: Letter · page 1 of 2.
  • A one-slide deck shows the name alone.
  • The PDF download and the saved copy read deckName() where they read document.title, so both filenames stay the bare deck name.

deck.html and library.html are rebuilt from the changed engine. library-speaker.html and library-reading.html have no build script and keep the old tab title.

Verification

  • New live test in test/gate.test.mjs: three-slide deck, title checked on slides 1, 2 and 3, PDF download named Two deals, one re-read.pdf, two-page letter titled Letter · page 1 of 2. It failed before the engine change and passes after.
  • The static gate asserts both downloads read deckName() and neither reads document.title.
  • Local run of gate, pdf, export, samples, library, counter and saved-dot suites: 129 of 129 pass.

Known limit

A tab narrower than about 180px truncates the count on a long title. The count sits after the title by request.

🤖 Generated with Claude Code

The tab read the deck title alone, so several open decks looked the
same and none said which slide was up. render() now writes
"<title> · slide 3 of 12" ("page" in a document format); a one-slide
deck keeps the bare name.

The PDF and the saved copy read deckName() where they read
document.title, so their filenames stay the bare deck name.

deck.html and library.html are rebuilt from the changed engine.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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