[feat](trx-frontend-http): give the Tools destinations page titles #30

Merged
sjg merged 1 commits from feat/page-titles into main 2026-08-02 23:46:20 +02:00
Owner

The inconsistency

One page in eight carried a title. Recorder had <h2 class="section-heading">; Statistics, Settings and About had nothing. The class had no rule behind it either, so even Recorder's title rendered as a default h2.

Which way to unify

This follows from the navigation change rather than being a coin flip.

The tab strip highlights the destination you are on, so Radio, Bookmarks, Digital modes and Map already say where you are — a title there would repeat the strip while costing vertical space the spectrum wants.

The four destinations behind Tools get no such highlight: the strip looks identical whether you are on Statistics or About. Those are precisely the pages that must name themselves. So the rule is pages the nav cannot label carry a title, which lands on all four Tools pages and none of the strip pages.

Result

All four now render identically:

statistics  "Statistics" 18.4px
recorder    "Recorder"   18.4px
settings    "Settings"   18.4px
about       "About"      18.4px

Full gate green — typecheck, lint, 34/34 test, build, test:browser.

Follow-up worth considering

The deeper fix for the same orientation gap is to mark the Tools button itself as active while one of its destinations is open. Today it looks unselected on all four. That is a small change in syncSelectedTab, and it would make the grouping self-evident rather than something you infer from the page title. Left out here to keep this to the consistency question you asked about.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GdyUjuXejCEfiub675z6cz

## The inconsistency One page in eight carried a title. Recorder had `<h2 class="section-heading">`; Statistics, Settings and About had nothing. The class had **no rule behind it** either, so even Recorder's title rendered as a default `h2`. ## Which way to unify This follows from the navigation change rather than being a coin flip. The tab strip highlights the destination you are on, so **Radio, Bookmarks, Digital modes and Map already say where you are** — a title there would repeat the strip while costing vertical space the spectrum wants. The four destinations behind **Tools** get no such highlight: the strip looks identical whether you are on Statistics or About. Those are precisely the pages that must name themselves. So the rule is *pages the nav cannot label carry a title*, which lands on all four Tools pages and none of the strip pages. ## Result All four now render identically: ``` statistics "Statistics" 18.4px recorder "Recorder" 18.4px settings "Settings" 18.4px about "About" 18.4px ``` Full gate green — `typecheck`, `lint`, 34/34 `test`, `build`, `test:browser`. ## Follow-up worth considering The deeper fix for the same orientation gap is to mark the **Tools** button itself as active while one of its destinations is open. Today it looks unselected on all four. That is a small change in `syncSelectedTab`, and it would make the grouping self-evident rather than something you infer from the page title. Left out here to keep this to the consistency question you asked about. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01GdyUjuXejCEfiub675z6cz
sjg added 1 commit 2026-08-02 23:46:11 +02:00
[feat](trx-frontend-http): give the Tools destinations page titles
CI / lint (pull_request) Successful in 2m21s
CI / test (pull_request) Successful in 8m13s
CI / frontend (pull_request) Successful in 2m59s
CI / reuse (pull_request) Successful in 2s
CI / lint (push) Successful in 2m21s
CI / test (push) Successful in 7m30s
CI / frontend (push) Successful in 2m10s
CI / reuse (push) Successful in 3s
1843522b45
Recorder stated its name; Statistics, Settings and About did not, so one
page in eight carried a title.  The class it used, section-heading, had
no rule behind it either, leaving even that title as a default h2.

Which way to unify follows from the navigation change.  The tab strip
highlights the destination you are on, so Radio, Bookmarks, Digital modes
and Map already say where you are and a title would repeat the strip
while costing vertical space the spectrum wants.  The four destinations
behind Tools get no such highlight — the strip looks the same on all of
them — so those are exactly the pages that have to name themselves.

Give the three that were missing a heading, and style section-heading so
all four match.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GdyUjuXejCEfiub675z6cz
Signed-off-by: Stan Grams <sjg@haxx.space>
sjg merged commit 1843522b45 into main 2026-08-02 23:46:20 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sjg/trx-rs#30