Skip to content

Declare a showcase frame for the hqtui.com apps gallery - #16

Merged
ralyodio merged 2 commits into
mainfrom
worktree-showcase-frame
Sep 8, 2026
Merged

Declare a showcase frame for the hqtui.com apps gallery#16
ralyodio merged 2 commits into
mainfrom
worktree-showcase-frame

Conversation

@ralyodio

@ralyodio ralyodio commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

hqtui.com/apps captures screenshots of applications built on the library. The capture script takes an application directory and imports scripts/showcase.ts from it, because only the application knows what a good state looks like.

This adds ours: the topics screen.

 hqtui bbs                                                          anthony (3)
────────────────────────────────────────────────────────────────────────────────
╭─ Help & Support ─────────────────────────────────────────────────────────────╮
│  *    0.3.0: styled text spans                                    12    2h    │
│     ✓ Braille glyphs render wide in headless Chrome               6     11h   │
│ >     Collapsed borders across the language ports                 23    23h   │
│       Anyone using hqtui for a TUI file manager?                  31    1d    │
│    L  Zig 0.16 removed getenv — port build broken                 9     2d    │
╰──────────────────────────────────────────────────────────────────────────────╯
 7 topics · 186 in this forum      enter open · j/k move · n new · / search · ? help

The topics screen rather than the forum list, because it is the one that shows the state the view actually encodes: unread (*), solved (), locked (L), selection (>), reply counts and relative ages.

Why a fixture when the tests use a real board

test/tui.test.ts drives the client against an in-process server, which is right for tests. A screenshot needs the opposite property — it has to be identical on every capture, or the image churns in every diff and nobody can review what actually changed.

Two commits

The frame, built from the real exported ForumNode and TopicSummary with no casts, so it stops compiling if the view model moves.

scripts/ added to the tsconfig include. That guarantee is worth nothing if the project never compiles the file, and the include list stopped at test/. Confirmed with --listFiles that scripts/showcase.ts is now in the program — it was not before.

Checks

  • pnpm typecheck (tsc -p tsconfig.json --noEmit): exit 0, with the new file in the program
  • node --test "test/*.test.ts": 192 pass, 0 fail
  • Frame renders: the output above is real renderToText, not a mock-up

Build-time fixture only. Nothing here ships, and no application code changed.

🤖 Generated with Claude Code

https://claude.ai/code/session_017Df2FNu5DhinMV2soRz3cy

ralyodio and others added 2 commits September 8, 2026 15:42
hqtui.com/apps captures screenshots of applications built on the
library. The capture script takes an application directory and imports
`scripts/showcase.ts` from it, because only the application knows what a
good state looks like.

A fixture rather than a live board. The test suite already drives the
client against a real server, and a screenshot needs the opposite
property: it has to be identical on every capture, or the image churns
in every diff and nobody can review what changed.

Built from the real exported ForumNode and TopicSummary with no casts,
so this stops compiling if the view model moves. The topics screen
rather than the forum list, because it is the one that shows the state
the view actually encodes -- unread, solved, locked, selection, reply
counts and relative ages.

Build-time fixture only; nothing here ships.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Df2FNu5DhinMV2soRz3cy
The showcase frame is written against the real exported types precisely
so it stops compiling when the view model moves. That only works if the
project actually compiles it, and the include list stopped at test/.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017Df2FNu5DhinMV2soRz3cy
@ralyodio
ralyodio merged commit 8031003 into main Sep 8, 2026
3 checks passed
@ralyodio
ralyodio deleted the worktree-showcase-frame branch September 8, 2026 15:50
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