Skip to content

feat(chores): fold the icon picker away; add a Sports group - #245

Merged
jherforth merged 1 commit into
mainfrom
feat/collapsible-chore-icons
Oct 8, 2026
Merged

jherforth merged 1 commit into
mainfrom
feat/collapsible-chore-icons

Conversation

@jherforth

Copy link
Copy Markdown
Owner

What

The chore icon picker is folded by default. The grid of icons was taller than the rest of the chore form. Now there's a small button next to Icon that shows the current choice: the emoji, or "None". Tapping it opens the grid, and picking an icon folds it again. This works the same way as the step and routine icons in the Routines plugin.

It's the same component in both places, so both get the change:

  • the admin chore dialog (Family → Chores);
  • the dashboard's Add Chore dialog.

New Sports group: ⚽ soccer, 🏀 basketball, 🏈 football, ⚾ baseball, 🥎 softball, 🎾 tennis, 🏐 volleyball, 🏉 rugby. It sits between Outdoors and School, with English and Spanish labels.

Notes

  • No server or schema change. The chore still stores the emoji itself, as before.
  • If a chore's emoji isn't in the bank, the folded button still shows it as-is.
  • Accessibility:
    • the button carries aria-expanded/aria-controls;
    • its accessible name includes the current choice ("Icon: Basketball");
    • the radiogroup and keyboard selection are unchanged.

Tested

  • Client: npx vitest run passes (527 tests), npm run check:i18n passes, and npm run build succeeds.
  • Browser check in both dialogs:
    • the picker starts folded, with no radios rendered;
    • it opens to 59 choices, including the Sports group;
    • picking Basketball folds it, and the button shows 🏀.

🤖 Generated with Claude Code

The chore icon grid took up more room than the rest of the chore form.
It now sits behind a small button showing the current choice, opens on
tap and folds away again once an icon is picked, in both the admin
chore dialog and the dashboard's Add Chore dialog.

Adds a Sports group of the major balls: soccer, basketball, football,
baseball, softball, tennis, volleyball and rugby, with en/es labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jherforth jherforth self-assigned this Oct 8, 2026
@jherforth jherforth added the enhancement New feature or request label Oct 8, 2026
@jherforth jherforth added this to the 1.10 milestone Oct 8, 2026
@jherforth
jherforth merged commit 889b637 into main Oct 8, 2026
6 checks passed
adamecker pushed a commit to adamecker/HomeGlow that referenced this pull request Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant