Skip to content

Add autocomplete to correction form#28

Merged
ItsThompson merged 2 commits into
mainfrom
ft/correction-form-autocomplete
Jun 5, 2026
Merged

Add autocomplete to correction form#28
ItsThompson merged 2 commits into
mainfrom
ft/correction-form-autocomplete

Conversation

@ItsThompson

@ItsThompson ItsThompson commented Jun 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Move expense autocomplete API, hook, combobox, and types into a shared expense-autocomplete feature module
  • Reuse the shared combobox in CorrectionForm
  • Autofill correction name, amount, type, and valid tag on explicit suggestion selection while preserving correction date
  • Add regression coverage for shared suggestion patching and correction-form autocomplete behavior

Verification

  • cd frontend && npm test --workspace @gofin/finance -- useCorrectionForm.test.ts expense-detail-modal.test.tsx suggestionAutofill.test.ts useExpenseAutocomplete.test.ts new-expense-autocomplete.test.tsx
  • cd frontend && npx tsc --noEmit --project apps/finance/tsconfig.json
  • cd frontend && npm run lint --workspace @gofin/finance

- Move autocomplete API, hook, combobox, and types into a shared feature module
- Add a shared suggestion patch helper for consistent amount/type/tag autofill
- Update new expense imports to consume the shared autocomplete module
- Reuse the shared expense name combobox in correction forms
- Autofill correction name, amount, type, and valid tag on explicit suggestion selection
- Cover correction autocomplete behavior in hook and modal tests
@ItsThompson ItsThompson merged commit 05a9f54 into main Jun 5, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant