Skip to content

poc: Rich Tables#652

Draft
VincentSmedinga wants to merge 7 commits into
mainfrom
poc/DES-1353-rich-tables
Draft

poc: Rich Tables#652
VincentSmedinga wants to merge 7 commits into
mainfrom
poc/DES-1353-rich-tables

Conversation

@VincentSmedinga
Copy link
Copy Markdown
Contributor

This adds a few experiments with our Table components, a large data set, and various ways to manipulate or view.

# Conflicts:
#	package-lock.json
#	package.json

# Conflicts:
#	package-lock.json
#	package.json
Moves the Label + Select into Table.Caption so the sort control is
visually scoped to the table it acts on, as suggested by Inge.

Uses explicit flexbox on the wrapper div rather than the Row component
to avoid overflow clipping inside the caption element.
Replaces useState with useSearchParams so the active sort order is
reflected in the URL (?sortering=…) and can be shared or bookmarked.
Wraps the Select in a <form> with a visually hidden submit button for
correct form semantics, as suggested by Aram.
Field names appear in URL query parameters (e.g. ?sortering=positie-asc),
so they should be readable for Dutch-speaking users. Properties are also
reordered to match the table column order.

position     → positie
name         → naam
played       → gespeeld
won          → gewonnen
drawn        → gelijk
lost         → verloren
points       → punten
goals_for    → doelpunten_voor
goals_against → doelpunten_tegen
goal_difference → doelsaldo
Shows sorting with inline links as an alternative to the Select, for
tables with a small number of sort options. The active link is marked
with aria-current and styled as bold without underline.
Sort state is now URL-driven via query parameters, matching the other
prototypes. Each column header becomes a Link that toggles between
ascending and descending when clicked (defaulting to ascending for a
fresh column). aria-sort is set on the active <th> for accessibility.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant