aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/expense-form.tsx
Commit message (Collapse)AuthorAgeFilesLines
* Fix the default value for the expense shares field (#113)sashkent32024-02-281-2/+5
| | | | | | | * fix default shares value * fix default shares value for reimbursements * prettier
* Fix decimal separator issue in numeric form fields (#115)Jan T2024-02-281-4/+21
| | | | | | | | | | | | | | | | | * Revert 5b65b8f, fix comma issue with type="text" and onChange * Fix comma issue in "paid for" input * Run prettier autoformat * Allow only digits and dots in currency inputs * Fix behaviour in paidFor field * Fix duplicated onChange prop --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
* Add onClick-event to select all to amount input (#104)Lauri Vuorela2024-02-281-0/+1
| | | | | * add onfocus-event to select all to amount input * use onClick instead of onFocus
* Optimize docker image size (#91)Jan T2024-02-141-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move prisma to runtime dependencies * Optimize Dockerfile and build script * Fix: remove mention of generated next-env.d.ts in Dockerfile * Add missing reset.d.ts file to Dockerfile * Remove compression steps from Dockerfile and entrypoint script * Add an env file with mocked env vars added for Docker production builds * Use server actions to get runtime env vars * Refactor types and names * Rollback serverActions, use parsed Zod object for runtime env * Reintroduce featureFlags object to avoid passing secret envs to the frontend * Improve string to boolean coercion Co-authored-by: Sebastien Castiel <sebastien@castiel.me> * Run prettier autoformat * Fix type issue, rename function to match behaviour better --------- Co-authored-by: Lauri Vuorela <lauri.vuorela@gmail.com> Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
* Add cancel button on expense form (fixes #92)Sebastien Castiel2024-02-141-0/+4
|
* Automatic category from expense title (#80)Mert Demir2024-02-041-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * environment variable * random category draft * get category from ai * input limit and documentation * use watch * use field.name * prettier * presigned upload, readme warning, category to string util * prettier * check whether feature is enabled * use process.env * improved prompt to return id only * remove console.debug * show loader * share class name * prettier * use template literals * rename format util * prettier
* Create expense from receipt (#69)Sebastien Castiel2024-01-301-6/+19
| | | | | | | * Create expense from receipt * Add modal * Update README
* Attach documents to expenses (#64)Sebastien Castiel2024-01-281-0/+29
| | | | | | | | | * Upload documents to receipts * Improve documents * Make the feature opt-in * Fix file name issue
* paid for all, split evenly (#59)Mert Demir2024-01-261-1/+5
|
* Fix mobile keyboard on shares field (Fix #49)Sebastien Castiel2024-01-181-2/+12
|
* Remove unused codeSebastien Castiel2024-01-181-9/+0
|
* Use combobox for category selectorSebastien Castiel2024-01-171-31/+5
|
* Fix client-side error when editing date with keyboard (Closes #43)Sebastien Castiel2024-01-141-3/+6
|
* Add category iconsSebastien Castiel2024-01-111-4/+11
|
* Assign categories to expenses (#28)Chris Johnston2024-01-111-3/+61
| | | | | | | | | | | | | * add expense categories * set category to Payment for reimbursements * Insert categories as part of the migration * Display category groups --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
* Add activeUser for default payer per group (#16)Ankit Bahl2024-01-091-1/+11
| | | | | | | | | * Add activeUser for default payer per group * Prettier, change labels, use useEffect --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
* add shares to paidFor in reimbursement (#32)Chris Johnston2024-01-081-1/+1
|
* Fix UI bug when clicking reimbursement link (#31)Chris Johnston2024-01-081-0/+1
|
* Add Expense Date (#26)Chris Johnston2024-01-081-0/+29
| | | | | | | | | | | | | * add expense date * Improve date formatting * Prettier * Change field description --------- Co-authored-by: Sebastien Castiel <sebastien@castiel.me>
* Fix items alignmentSebastien Castiel2024-01-081-1/+1
|
* Add splitmode and shares to expenses (#11)Sebastien Castiel2024-01-081-105/+285
| | | | | | | | | | | | | * Add splitmode and shares to expenses * Update balances based on shares * Change field size * Form validation * Redesign expense form * Split unevenly by amount
* Revert "Use modal dialogs for expense creation & edition (#10)"Sebastien Castiel2023-12-191-195/+193
| | | | This reverts commit 1e66efe5169dfad9a0c62ba42fbf31ce977bf49e.
* Use modal dialogs for expense creation & edition (#10)Sebastien Castiel2023-12-191-193/+195
| | | | | | | | | | | * First attemps at using route interception and modals * Remove route interception * Make it work * Use Vaul on small screens * Improve vaul
* Select all/no participant for expenses (Fix #3)Sebastien Castiel2023-12-121-3/+32
|
* Input mode on type=numberSebastien Castiel2023-12-101-0/+1
|
* Store amounts as centsSebastien Castiel2023-12-071-2/+4
|
* ReimbursementsSebastien Castiel2023-12-061-3/+31
|
* Add currencySebastien Castiel2023-12-061-10/+13
|
* Delete expenseSebastien Castiel2023-12-061-5/+22
|
* Input font sizeSebastien Castiel2023-12-061-1/+6
|
* Empty stateSebastien Castiel2023-12-061-5/+5
|
* Loading screens & layoutsSebastien Castiel2023-12-061-4/+2
|
* First versionSebastien Castiel2023-12-051-0/+186