Skip to content

Teach TypeScript queries with six complete programs - #60

Merged
tony merged 3 commits into
mainfrom
docs-ts-query-examples
Sep 30, 2026
Merged

tony merged 3 commits into
mainfrom
docs-ts-query-examples

Conversation

@tony

@tony tony commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

The TypeScript filtering page now contains six independent programs with imports, dependency setup, assertions, and cleanup. They cover string matching and composition, missing and ambiguous results, linked-window placements and relation quantifiers, snapshot refresh, query serialization and validation, and live tmux filtering with a silent empty-result example. The page explains the TypeScript regex grammar instead of implying arbitrary JavaScript regex support.

TypeScript owns this route; the general page links to it. The existing anchors remain available. Each program runs with a private Server and can be copied independently after the displayed setup.

Validation:

  • Ran the exact displayed files and commands against the pinned library on tmux 3.2a and 3.7c: all twelve program runs passed.
  • The saved byte hashes cover all six programs and the package manifest; HTML/Markdown regression tests check those bytes.
  • pnpm test passed in 49.80 seconds after the spacing fix. A fresh root build passed in 43.05 seconds.
  • Consecutive program and run-command blocks have a 24px gap at 1440px and 390px in both themes; the page has no horizontal overflow.

This improves the TypeScript filtering page. The broader guide and other-port example expansion remains in progress.

why: Root builds also render owned port pages. Their shared sidebar
links used the build context and sent readers to general documentation.

what:
- Build sidebar URLs from the page port and version
- Cover both sidebar copies at desktop and phone widths, including
  Python stable and TypeScript latest
- Prove the browser assertion fails with the original URL builder

Validation: pnpm test passed in 47.81 seconds.
why: The filtering page offered one fragment without imports or setup.
Readers need the matching rules, result-count errors, linked-window
behavior and refresh boundaries before using a selection as a target.

what:
- Add six independent TypeScript programs with setup and cleanup
- Cover matching, cardinality, relations, snapshots, saved criteria and
  live tmux filters, including regex restrictions and silent empty rows
- Route TypeScript to its own page and retain its published anchors
- Record the exact displayed files and commands in the native runner

Validation: All six programs passed on tmux 3.2a and 3.7c against the
pinned library. pnpm test passed in 50.57 seconds.
@tony
tony marked this pull request as ready for review September 30, 2026 23:20
@tony
tony deployed to docs-preview September 30, 2026 23:33 — with GitHub Actions Active
@tony
tony merged commit 3da537b into main Sep 30, 2026
3 checks passed
@tony
tony deployed to docs-preview-cleanup September 30, 2026 23:41 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
docs-preview-cleanup — 23a0d35d Deployed Sep 30, 2026 by tony via cleanup #53
docs-preview — 23a0d35d Deployed Sep 30, 2026 by tony via publish-preview / publish #362
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