Skip to content

Website: .md file names and a full-height file frame in the terminal view - #163

Merged
undecuple merged 2 commits into
mainfrom
fork-terminal-md
Nov 13, 2026
Merged

undecuple merged 2 commits into
mainfrom
fork-terminal-md

Conversation

@undecuple

Copy link
Copy Markdown
Owner

Why

The terminal view shows each answer as a numbered file, but the name in its header was a bare word (about, features/planned), and the frame was a short block that left the rest of the pane empty. A file open in a viewer is named like a file and fills its window, with the line-number gutter's rule running to the bottom.

Change

  • site/terminal.js: the name in the header of an answer ends in .md (about.md, features/rooms-basic.md, settings/addr.md, action/punch.md). Only the name changes; no answer's text, no command and no link changes. The frame's accessible name follows it (about.md, 7 lines).
  • site/style.css: the output pane lays its children out in a column; the newest answer's frame grows to fill what is left of the pane, and the gutter rule is drawn down the whole body of the frame. The header row has a little more room.
  • Tests: tools/terminal.test.js expects the .md names; tools/test_site.py has FileFrameCssTest for the fill and rule rules. CHANGELOG Docs and tooling: entry; site/ regenerated.

Tests

  • python3 tools/site.py --check, python3 tools/features.py --check, python3 tools/repo_check.py, scripts/check-deploy.sh, python3 -m unittest tools.test_site and the node tests for terminal, status and action pass, including the contrast tests (the rule is the existing frame colour).
  • Mutation-tested: names without .md, the fill rule removed, and a rule that stops halfway each fail a test.
  • Accessibility, compared with main in headless Chromium: the browser's accessibility tree of the terminal view is the same except for the frame's name (about.md, 7 lines instead of about, 7 lines). The output pane is still a focusable, polite live region named "Output", the menu, the command line and the shortcut buttons keep their names and tab order, and a long answer (the features list) still scrolls in the pane.
  • Looked at in wide and narrow headless screenshots; not tried with a screen reader.

Not in this change

No new command, no layout change to the menu or the title bar, no change to the plain page.

Overlap

None open that touches site/terminal.js. Other open work touches CHANGELOG.md, site/style.css and the generated site files, so whichever merges later needs a rebase. Based on main at 7fdd762.

Developed with AI agent assistance.

@undecuple
undecuple merged commit 494c4c3 into main Nov 13, 2026
10 checks passed
@undecuple
undecuple deleted the fork-terminal-md branch November 13, 2026 03:44
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