Skip to content

cracktro: cursor-like navigation, first-of-band button, keyboard manual - #79486

Merged
pelikhan merged 3 commits into
mainfrom
pelikhan/cracktro-cursor-navigation
Nov 20, 2026
Merged

pelikhan merged 3 commits into
mainfrom
pelikhan/cracktro-cursor-navigation

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Moving between bands in the cracktro deck used to lose your horizontal place, and nowhere listed all the keyboard shortcuts. This PR makes band moves keep your position and adds a keyboard manual to the slide map.

Navigation

  • PageUp/PageDown, Shift+Up/Down and Up/Down past the end of a column now keep your position in the line, like a text cursor. They land on the same main-line slide of the next band, or the band's last slide if it is shorter. So Down, Down, Up returns you to where you started.
  • That remembered position changes only when you move Left/Right or jump (digits, Home/End, search, map). Left/Right from an example still return to the band's main line, starting from the example's pattern slide.
  • New Shift+Home shortcut, plus a matching first button in the compact (mobile) dock: "First slide of the band".

Keyboard manual

  • The slide map now ends with a section.smp-keys "controls screen". It has an arrow-key pad, then one card each for Move, Jump, Show, Slide map and Design a view, with every shortcut drawn as a keycap.
  • The shortcuts come from a single KEYMAP list in runtime.js. The manual only lists keys that work in every talk, so P (open a slide's prompt, specific to this talk) is not shown.
  • It has dark and light styles and collapses to one column at 640px or narrower. It contains no buttons, so the "every button has a shortcut" rule is unaffected.

Docs and tests

  • Updated docs/README.md and .github/skills/cracktro/mechanics.md. The skill doc now says to update KEYMAP whenever a shortcut changes.
  • Added Playwright tests for the cursor navigation, the first-of-band button and the manual. I could not run them locally because the sandbox blocks the Playwright browser; please rely on CI. I checked the manual by hand in the browser in both themes.

No slide content changed, so there are no slide screenshots.

pelikhan and others added 3 commits November 20, 2026 01:14
Up/Down, PageUp/PageDown and Shift+Up/Down keep the horizontal position
(clamped to the band's length) instead of resetting to the band header.
Left/Right from an example still return to the main line. Shift+Home and
a new compact-dock button jump to the first slide of the band.

Co-authored-by: Copilot App <[email protected]>
Game-style controls screen (arrow pad plus Move/Jump/Show/Slide map/Design a view cards) listing every runtime shortcut; test and docs updated.

Co-authored-by: Copilot App <[email protected]>
Replaces the arrow pad with an inline SVG ISO keyboard: KEYMAP keys light up with short tags, chords draw arcs between their nearest keys, and pointing at a key or arc shows its actions.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan marked this pull request as ready for review November 20, 2026 09:34
Copilot AI adaptive review requested due to automatic review settings November 20, 2026 09:34
@pelikhan
pelikhan merged commit e99289b into main Nov 20, 2026
10 of 11 checks passed
@pelikhan
pelikhan deleted the pelikhan/cracktro-cursor-navigation branch November 20, 2026 09:34
@github-actions

github-actions Bot commented Nov 20, 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 · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.3K · ◷

@github-actions

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

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.

Generated by Ponytail Reviewer for #79486 · codex · routed: gpt61 medium · ~6 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

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

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~4 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

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

Navigation still mishandles the remembered horizontal position: vertical traversal overwrites it, while explicit jumps to the current slide fail to reset it.

2 open issues
What changed in this PR

Updates the reusable cracktro presentation runtime with cursor-style band navigation and an in-map keyboard reference, without changing slide content.

Changes:

  • Preserves horizontal position across band moves and adds Shift+Home with a compact-dock button.
  • Adds a themed keyboard manual generated from KEYMAP.
  • Updates navigation documentation and Playwright coverage.
File Description
docs/​tests/​talk.spec.ts Updates navigation expectations and adds button and keyboard-manual coverage.
docs/​README.md Documents cursor navigation, first-of-band controls, and the keyboard manual.
docs/​public/​cracktro/​runtime.js Implements position tracking, first-of-band controls, and the keyboard manual.
.github/​skills/​cracktro/​mechanics.md Updates navigation guidance and requires shortcut changes to update KEYMAP.

Review effort: Balanced (adaptive)

void el.offsetWidth; // restart CSS animations on re-entry
el.classList.add("active");
cur = n;
if (n !== goalKeep) goal = Math.max(0, posOf(n));
};
const lineStart = () => {
const line = mainLine(slides[cur].band);
if (line.length) go(line[0]);
pelikhan added a commit that referenced this pull request Nov 20, 2026
Add JSDoc types for the keymap, keyboard layout and nearest-pair search
so tsc -p tsconfig.cracktro.json passes again after #79486.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
pelikhan added a commit that referenced this pull request Nov 20, 2026
…9482)

* Bind executor temporary-ID resolutions to the authorized snapshot

The manager passed handlers a shallow-frozen copy of resolvedTemporaryIds
whose entries were shared with live temporaryIdMap values. Temporary-ID
spellings resolved by the handler (case or quote variants) could therefore
execute against a target changed during the authority wait. Pass the same
deep-frozen snapshot that input_digest binds.

Add remove_labels consistency regressions (targets, aliases, defaults,
filtering, deferral, no-op, denial, staging) and document the guarantee.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

* Document JSON clone for the authorized input snapshot

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

* Use structuredClone for the authorized input snapshot

Normalize undefined values with JSON semantics so the snapshot remains
digestable: undefined object fields are dropped, undefined array entries
become null, and null values are preserved.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

* Bind all protected executor inputs to the authorized snapshot

- Project inputs to plain JSON data before structuredClone so provider
  temporary-ID entries with methods or Dates stay digestable.
- Execute a writable copy of the bound message.
- Pass protected handlers a temporary-ID map view backed by the bound
  snapshot that writes new IDs through to the shared map.
- Refresh handler-local temporary-ID caches from each invocation.
- Update the semantic consistency spec paragraph.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

* Fix cracktro keyboard manual type errors

Add JSDoc types for the keymap, keyboard layout and nearest-pair search
so tsc -p tsconfig.cracktro.json passes again after #79486.

Co-authored-by: copilot-swe-agent[bot] <[email protected]>

---------

Co-authored-by: pelikhan <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
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