Skip to content

Community board: history navigation, keyboard tabs, narrow layout - #68

Merged
LikC1606 merged 1 commit into
mainfrom
feat/community-polish-2
Nov 29, 2026
Merged

LikC1606 merged 1 commit into
mainfrom
feat/community-polish-2

Conversation

@LikC1606

Copy link
Copy Markdown
Collaborator

Second polish round on the community board (follow-up to #66).

Navigation

  • Tabs, task rows and activity links push hash entries and follow hashchange. Browser Back now returns to the list or tab the reader came from; before, replaceState meant Back left the page.
  • Fix: after publishing, the page set location.hash but nothing listened, so it stayed on Join. It now opens the new problem.
  • Opening a task focuses its title, and returning to the list focuses the row that was opened. Opening a task the current filter hides (e.g. a solved one from Activity) widens the filter to All.

Accessibility

  • Tabs follow the ARIA tabs pattern: tabpanel, aria-controls, roving tabindex, and Arrow/Home/End keys.

Layout

  • The proof, prelude and statement textareas use wrap="off", so code lines scroll instead of breaking.
  • All four tabs fit without scrolling at 390 and 320 px (English "Join" was cut off). Detail facts use a 2×2 grid on phones.

Tests

  • scripts/test-web-community.ts now checks Back navigation, keyboard tab switching, publish-then-open, and that the tabs don't scroll at any width. It also adds open-problem screenshots (light, dark, 390) and a dark solved-list screenshot.
  • Local: all three typechecks, the five vitest groups from verify.yml, tests/web (2433 pass), bun run build && bun run build:web, and the community page check all pass.

🤖 Generated with Claude Code

- Tabs, task rows and activity links push hash entries and follow
  hashchange, so browser Back returns to the list or tab the reader came
  from; publishing now actually opens the new problem.
- Returning to the list focuses the row that was opened; opening a task
  focuses its title. Opening a task hidden by the filter widens it to All.
- Tabs follow the ARIA pattern: tabpanel, aria-controls, roving tabindex,
  arrow/Home/End keys.
- Proof and statement textareas no longer wrap code lines.
- Tabs fit without scrolling at 390 and 320 px; facts use a 2x2 grid on
  phones.
- Page check covers Back, keyboard tabs, publish-then-open, tab fit, and
  open-problem and dark-theme screenshots.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LikC1606
LikC1606 merged commit 43e8027 into main Nov 29, 2026
4 checks passed
@LikC1606
LikC1606 deleted the feat/community-polish-2 branch December 1, 2026 20:12
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