Skip to content

fix: Task Board filters, sort, one-click start, badge contrast - #287

Merged
AdamJ merged 2 commits into
mainfrom
fix/task-board-ux
Nov 16, 2026
Merged

AdamJ merged 2 commits into
mainfrom
fix/task-board-ux

Conversation

@AdamJ

@AdamJ AdamJ commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes several Task Board UX problems and adds two small improvements.

Type of Change

  • Update to existing feature
  • Bug fix

Related Issue

None.

Changes Made

Bug fixes

  • Category filter showed raw ids (e.g. project-management) instead of category names. Options are now { value: id, label: name }. — KanbanBoard.tsx, KanbanBoardControls.tsx
  • "Priority" sort did nothing. No UI ever set priority above its default of 0, so it always sorted oldest-first. The option is removed, and a saved priority choice now loads as "Oldest first" (the new default), so the visible order is unchanged. The priority field itself is untouched, ready for future drag-to-reorder. — useTaskBoardView.ts
  • A stale saved filter could silently empty the board. Filters that no longer match any task reset once data has loaded (never while loading). When filters hide every task, a notice with a Clear filters button appears; a "Showing X of Y" count and "No matching tasks" column text show while filtering. — KanbanBoard.tsx, KanbanBoardControls.tsx, KanbanColumn.tsx
  • Category badge text was always white, unreadable on light category colors. It's now black or white, whichever has the higher WCAG contrast. — PlannedTaskCard.tsx, src/utils/colorUtils.ts (new)

Improvements

  • One-click Start/Resume button on each card. It starts the day and pulls the task, pulls it into the running day, or resumes an in-progress task, depending on day state. Hidden for done tasks, stale days, and ended-but-unposted days. Previously this was only in the card's ⋮ menu. — PlannedTaskCard.tsx
  • "Add task" in every column, pre-set to that column's status (previously only To Do). — KanbanColumn.tsx

Internal: useTaskBoardView setters now use functional setState, so resetting several stale filters in one effect doesn't lose updates.

Checklist

Documentation

  • Any notable changes added to the README.md
  • CHANGELOG.md updated accordingly

General

  • Branch is up to date with main
  • No unrelated files included in this PR
  • Tested locally by invoking the pnpm test, pnpm lint, and pnpm build

pnpm test: 525 tests passing across 49 files. pnpm lint, pnpm check:design-tokens, pnpm check:a11y and pnpm lint:markdown all pass. New tests: KanbanBoard.test.tsx, KanbanColumn.test.tsx, PlannedTaskCard.test.tsx, useTaskBoardView.test.ts, colorUtils.test.ts.

Notes for Reviewers

  • Visible change: the default category color #8B5CF6 now gets black badge text. White on it is 4.23:1, below the WCAG AA minimum of 4.5:1; black is 4.96:1.
  • Not tested manually in guest or authenticated mode; the changes are view-only and don't touch persistence or the data schema.
  • TaskItem.tsx:122 (Dashboard task rows) has the same always-white badge text. It's left for a follow-up to keep this PR scoped to the Task Board.

🤖 Generated with Claude Code

- Category filter shows category names instead of raw ids
- Remove the no-op "Priority" sort; saved priority choice loads as oldest-first
- Reset saved filters that no longer match any task; show a filtered-out
  notice, "Showing X of Y" count and "No matching tasks" column state
- Add Start/Resume button to planned task cards (start day and pull,
  pull into running day, or resume)
- Regression tests for board, card, and view hook
- Category badges on planned task cards pick black or white text by WCAG
  contrast against the category color instead of always white
- Every Task Board column gets an "Add task" button pre-set to its status
- Tests for getReadableTextColor, per-column add, and badge contrast
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Deploying timetrackerpro with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1c76ea8
Status: ✅  Deploy successful!
Preview URL: https://0c2cca3f.timetrackerpro.pages.dev
Branch Preview URL: https://fix-task-board-ux.timetrackerpro.pages.dev

View logs

@AdamJ AdamJ added enhancement New feature or request fix For general fixes or bundled fixes accessibility frontend labels Nov 16, 2026
@github-actions github-actions Bot added automation For items related to release/documentation/workflow automations documentation Improvements or additions to documentation labels Nov 16, 2026
@AdamJ AdamJ changed the title fix: [Timetraked] Task Board filters, sort, one-click start, badge contrast fix: Task Board filters, sort, one-click start, badge contrast Nov 16, 2026
@AdamJ AdamJ self-assigned this Nov 16, 2026
@AdamJ AdamJ added this to Timetraked Nov 16, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Timetraked Nov 16, 2026
@AdamJ
AdamJ merged commit fb7861e into main Nov 16, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Timetraked Nov 16, 2026
@AdamJ
AdamJ deleted the fix/task-board-ux branch November 16, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility automation For items related to release/documentation/workflow automations documentation Improvements or additions to documentation enhancement New feature or request fix For general fixes or bundled fixes frontend

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant