TemaDeveloper / TemaDeveloper/personal_planner
polish: Add autoFocus to first input in add/edit modals
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Description
Reaudit (2026-07-06): still valid. Modal (src/components/ui/modal.tsx) does not auto-focus, and the main add/edit forms leave the first field unfocused:
custom-entry-form.tsx:85— first field (Date) has noautoFocuswork-tracker.tsxAddSessionModal:494,AddExpenseModal:569,AddRouteModal:654— first inputs have noautoFocus
Already correct: board-view.tsx:153 (add-card) and several Notes components.
Fix
Add autoFocus to the first input in custom-entry-form.tsx and the three work-tracker modals (or focus-on-open in Modal).
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 in src/components/ui/modal.tsx and the named form components, then compare the existing behavior in board-view.tsx:153 and the Notes components. Add focus behavior for the first input in custom-entry-form.tsx and the three work-tracker modals, either locally or through Modal. Done means each listed add/edit modal focuses its first input when opened.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100