github-samples / github-samples/caldova-careers
Sort roles
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Visitors should be able to change the order of open roles to match how they browse. Add sorting for title and posted date while keeping the default newest-first experience.
Acceptance criteria
- The roles list can sort by title A–Z and Z–A.
- The roles list can sort by posted date newest and oldest.
- The sort control has a clear accessible label and stable
data-testid. - The selected sort order is reflected in the rendered role cards.
- Unit tests cover all sort modes.
- Playwright tests verify at least one title sort and one date sort.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the roles list entry point and inspect the existing unit and Playwright test setup. Add title and posted-date sort modes while preserving newest-first as the default, with an accessible sort label and stable data-testid. Done means rendered role cards match every sort mode and tests cover all unit modes plus one title and one date sort in Playwright.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- playwright, typescript
- Domain
- frontend, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100