Commit Graph

14 Commits

Author SHA1 Message Date
GitHub Copilot
07fbb82385 Fix: Update button remaining disabled in transaction edit mode
This commit resolves an issue where the Update button in the transaction form
would remain disabled when attempting to edit a transaction. The problem was
in how the transactionStore was managing state updates during transaction editing.

Key changes:
- Enhanced startEditingTransaction function in transactionStore.ts to ensure proper reactivity
- Added clean copy creation of transaction objects to avoid reference issues
- Implemented a state update cycle with null value first to force reactivity
- Added a small timeout to ensure state changes are properly detected by components

The Transaction form now correctly enables the Update button when in edit mode,
regardless of account selection state.
2025-05-05 21:29:36 +00:00
GitHub Copilot
d3855aa7e4 Merge branch 'main' of github.com:acedanger/finance 2025-05-05 07:05:00 -04:00
GitHub Copilot
ad6693d1d7 refactor: Reorganize imports and improve code consistency across components and API routes 2025-05-05 06:59:13 -04:00
Peter Wood
1d540d1731 style: apply Biome formatting to Astro templates and CSS (#27)
- Standardize HTML/CSS formatting
- Fix template indentation
- Apply consistent style to Astro components
- Update component attributes formatting

Part of #27
2025-05-04 10:00:14 -04:00
Peter Wood
58d8ebdfa1 style: apply Biome formatting to TypeScript files (#27)
- Fix import sorting
- Standardize code formatting
- Apply consistent TypeScript style
- Update code to match Biome configuration

Part of #27
2025-05-04 09:55:01 -04:00
GitHub Copilot
b51fe35a16 Add VSCode task for automatic build on project open and update dependencies
Remove .vscode from .gitignore to allow for project-specific settings. Introduce a VSCode task to run `npm run dev` automatically when the project is opened. Update environment configuration files and dependencies to enhance support for the Node adapter.

Fixes #13
2025-05-01 21:05:24 +00:00
GitHub Copilot
124b97a397 feat: Enhance AccountSummary and TransactionTable components with refresh functionality and improve loading/empty states 2025-04-24 16:45:46 -04:00
GitHub Copilot
892ea684f4 feat: Refactor transaction management with nanostores and convert components to React
- Added @nanostores/react for state management.
- Created AccountSummary component to display account balance.
- Replaced AddTransactionForm.astro with AddTransactionForm.tsx for better state handling.
- Introduced TransactionTable.tsx for displaying transactions with edit/delete functionality.
- Updated Sidebar.astro and MainContent.astro to use React components.
- Implemented transactionStore.ts for managing current account ID and transaction editing state.
- Removed obsolete AddTransactionForm.astro and related scripts.
- Enhanced error handling and loading states in transaction forms.
This fixes issues #7, #8, #9, #10, #11
2025-04-24 15:49:19 -04:00
GitHub Copilot
d0a9af3dfd chore: update dependencies and add Cloudflare support
- Updated dependencies in package.json for Astro, React, and testing libraries.
- Added .assetsignore to exclude specific files from asset uploads.
- Refactored AccountSummary, MainContent, and Sidebar components for clarity and maintainability.
- Enhanced tsconfig.json to support React JSX syntax.
- Created wrangler.jsonc for Cloudflare Workers configuration.
2025-04-24 14:44:50 -04:00
GitHub Copilot
0c3ad59809 feat: Update sidebar header text and remove margin from account summary 2025-04-24 12:58:16 -04:00
GitHub Copilot
e7934a5a9c feat: enhance form validation in AddTransactionForm and improve error handling in transactions API 2025-04-24 12:11:23 -04:00
GitHub Copilot
f67980a35e chore: update TODOs for various components and files to enhance validation, UI/UX, security, state management, performance, and testing improvements 2025-04-24 11:36:59 -04:00
GitHub Copilot
b76a24edba #1 Enhance transaction management UI with form validation, loading states, and improved error handling 2025-04-24 08:19:41 -04:00
Peter Wood
0060013561 Initial commit - Basic bank transactions dashboard structure with Astro and TypeScript 2025-04-23 20:57:42 -04:00