Skip to content

cracktro: replace slide counter with a full-screen slide map - #78163

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan/cracktro-remove-slide-counter
Nov 15, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan/cracktro-remove-slide-counter

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

The talk deck's slide counter took up the dock corner without helping anyone navigate, and there was no quick way to jump to a distant slide without searching or counting dots. This PR removes the counter and adds a full-screen slide map for fast navigation. Every dock and arrow button now also shows its keyboard shortcut in its tooltip.

Changes

  • Counter removed: the dock's search and sound buttons move into the freed bottom-right corner.
  • Slide map: a new dock button (or the G key) opens a full-screen grid of every slide, one row per band, tinted with each band's accent colour.
    • Band headers are dashed.
    • The current slide is marked with aria-current, focused, and scrolled into view.
    • Left/Right step through slides in order and Up/Down move to the nearest tile above or below. Home/End also work.
    • Enter or a click jumps to a slide; Esc, G, or a click on the backdrop closes the map.
    • The map follows the search dialog's patterns: it is a native <dialog>, built the first time it opens, and uses a new unused smp- CSS prefix.
  • Shortcut tooltips: for example "Next slide (→)", "Slide map (G)", "Search slides (/)" and "Sound on/off (M)". The arrows' aria-labels are unchanged.
  • Compact navigation: the threshold for switching the dots to arrows now leaves room for three dock buttons, so map, search and sound still fit beside the arrows at 320px.

Tests and docs

  • docs/tests/talk.spec.ts now reads the current slide from the active dot instead of the counter. It adds a slide-map test (click, G, arrow + Enter, Esc), and the 320px overlap check now includes the map button.
  • docs/README.md "Interactive talk" describes the slide map, the G key and the shortcut tooltips.

Review notes

Locally, the full talk.spec.ts run had 5 failures:

  • 4 also fail without these changes on a local macOS run: "presents the slides...", "preserves navigation...", "publishes synthetic examples..." and "keeps role and avatar circles flat".
  • The new slide-map test failed on an aria-current bug, which is now fixed. After the fix, the map, search, narrow-screen and compact-button tests pass; the full suite was not rerun.

…tips

Drop the slide counter and move search/sound into the dock corner. Add a
dock button (and G key) that opens a full-screen slide map grouped by
band for quick navigation. Dock and arrow buttons show their keyboard
shortcut in the title tooltip.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review November 15, 2026 22:06
Copilot AI adaptive review requested due to automatic review settings November 15, 2026 22:06
@pelikhan
pelikhan merged commit 637abd3 into main Nov 15, 2026
17 checks passed
@pelikhan
pelikhan deleted the pelikhan/cracktro-remove-slide-counter branch November 15, 2026 22:06
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The map dialog has two unresolved dismissal bugs: pressing G closes and immediately reopens it, while clicking empty map space leaves it open.

2 open issues
What changed in this PR

Replaces the standalone talk deck’s slide counter with a full-screen slide map for faster navigation across bands.

Changes:

  • Adds a band-grouped slide map with current-slide highlighting and keyboard navigation.
  • Adds shortcut tooltips and adjusts dock spacing for compact screens.
  • Updates navigation tests and documents the new controls.
File Description
docs/​tests/​talk.spec.ts Uses active dots for slide assertions and adds map navigation and dock overlap checks.
docs/​README.md Documents the slide map, G shortcut, and tooltips.
docs/​public/​cracktro/​deck.js Implements the slide map, removes the counter, and updates dock layout and event handling.

Review effort: Balanced (dynamic)

Comment on lines +17523 to +17524
e.preventDefault();
smp.close();
e.preventDefault();
if (to) (to.focus({ preventScroll: true }), to.scrollIntoView({ block: "nearest" }));
});
smp.addEventListener("click", e => e.target === smp && smp.close());
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.0

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