Skip to content

feat(frontend): add target-grouped board views, hunt filters, and UI cleanup (#26) - #46

Merged
TimerErTim merged 12 commits into
devfrom
feat/hunt-board-views-and-ui-cleanup
Nov 29, 2026
Merged

TimerErTim merged 12 commits into
devfrom
feat/hunt-board-views-and-ui-cleanup

Conversation

@TimerErTim-Agent

Copy link
Copy Markdown
Collaborator

Closes #26
Part of #43

Stack

  1. PR 1 (this PR): feat/hunt-board-views-and-ui-cleanup → dev

Summary

  • Target-grouped board representation (Feat: Alternative Board Representation -> list grouped by target for detailed and overview of matches #26): Added TargetGroupedBoard and MatchTargetOverview (frontend/src/lib/board-grouping.ts) with a Raster / Nach Ziel view toggle across both Active Play and Completed Phase (unlocked boards + new per-target match overview tab).
  • Active hunt helpers: Added Nur offene filter, instant target/prompt search, up to 3 pinned focus friends (Fokus strip + pin buttons in target cards and Crew popover), and a dismissible first-capture tip.
  • UI cleanup sweep:
    • Relabelled the game notification toggle from Beobachtet / Stumm to Benachrichtigungen / Stumm and updated /optionen copy.
    • Standardized remaining formal Sie/Ihr copy in /optionen, auth pages, app-shell.tsx, and fehlermeldung.ts to informal Du.
    • Framed 3×3 as the recommended default with session-length labels (Empfohlen · Kurz (1–2 Std.), Abend, Wochenende).
    • Added an in-game ? GameRulesDialog explaining quotas, exclusion rules, and visibility modes.
    • Made TanStack Query polling (useGamesQuery, useGameDetailQuery, useNotificationsQuery) visibility-aware.

Verification

  • mise run ci (check, build, unit/conformance/frontend/e2e tests, smoke verify)

@TimerErTim TimerErTim left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "Nur Offene" filter should be removed, because in the target grouped list view the already done tasks should not be listed at all anyway. And in the grid view, the captured tiles are already very much visually differentiatable.

Comment thread frontend/src/api/hooks/queries.ts Resolved
Comment thread frontend/src/app/page.tsx Resolved
@TimerErTim
TimerErTim added this pull request to stack #52 November 28, 2026 17:00
@TimerErTim-Agent

TimerErTim-Agent commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator Author

Addressed all open review comments in 61f1405:

  • Removed the Nur offene filter button; active Nach Ziel (TargetGroupedBoard) now always hides already-captured tasks, while the grid view continues to distinguish captured tiles visually.
  • Switched pinning from per-target to per-task/tile (available in Nach Ziel, the capture dialog, and the Fokus: strip), and listed open pinned tasks across all running games on the homepage (Angeheftete Aufgaben).
  • Replaced the grid tile background tint for pinned tiles with a symbolic pushpin icon (Pin).
  • Moved useDocumentVisible to frontend/src/lib/use-document-visible.ts.
  • Updated grid size labels to Abend (9 Felder), Mittel (16 Felder), Wochen (25 Felder).

@TimerErTim
TimerErTim enabled stacked auto-merge November 29, 2026 17:36
@TimerErTim
TimerErTim merged commit 27f452b into dev Nov 29, 2026
4 checks passed
@TimerErTim
TimerErTim deleted the feat/hunt-board-views-and-ui-cleanup branch November 29, 2026 17:39
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.

Feat: Alternative Board Representation -> list grouped by target for detailed and overview of matches

2 participants