Commit Graph

92 Commits

Author SHA1 Message Date
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
8058df41fd - removed .vscode from .gitignore to resolve #13
- updated libraries to further support #14
- feat: Add environment configuration files and update dependencies for Node adapter
2025-05-01 21:03:09 +00:00
GitHub Copilot
6b55395e73 beginning work on #3 to persist data to a database 2025-05-01 16:30:30 -04:00
GitHub Copilot
fe5bd43f3a feat: Add Biome configuration and update project settings for improved development experience. adds devcontainer to satisfy #14 2025-05-01 16:29:36 -04:00
GitHub Copilot
c9cdd83a58 fix: Update API fetch calls to use absolute URLs for consistency 2025-04-24 17:55:53 -04:00
GitHub Copilot
5fc5320500 fix: Update API fetch calls to use relative paths for consistency 2025-04-24 17:51:08 -04:00
GitHub Copilot
4991290699 fix: Update API fetch calls to use absolute URLs for improved reliability 2025-04-24 17:47:29 -04:00
GitHub Copilot
01e8090fc2 feat: Add Vite configuration with alias for React DOM server 2025-04-24 17:31:21 -04:00
GitHub Copilot
ecf1632f66 fix: Add compatibility flags to wrangler configuration 2025-04-24 17:26:55 -04:00
GitHub Copilot
ee559e57f1 fix: Update fetch calls to use relative paths for API requests 2025-04-24 17:15:30 -04: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
Peter Wood
2cb3bdf117 Merge pull request #12 from acedanger/update_worker_name_to_finance
Update name in Wrangler configuration file to match deployed Worker
2025-04-24 15:57:53 -04:00
cloudflare-workers-and-pages[bot]
c17d2d88e8 Update wrangler config name to finance 2025-04-24 19:49:54 +00: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
Peter Wood
da35b7d994 Merge pull request #6 from acedanger/feature/1-add-api-endpoints
Feature/1 add api endpoints
2025-04-24 12:23:31 -04:00
GitHub Copilot
e4b608fb0a Merge branch 'main' into feature/1-add-api-endpoints 2025-04-24 12:18:27 -04:00
GitHub Copilot
5fc02e1a9e feat: Enhance form validation and error handling
- Improve transaction form validation with detailed error messages
- Add proper type checking for amount and date inputs
- Enhance error handling in transactions API
- Improve code documentation and organization
- Convert TODO comments to proper documentation blocks
2025-04-24 12:15:58 -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
c424691658 refactor: improve account validation in transaction updates and enhance test setup with mock API context 2025-04-24 11:23:14 -04:00
GitHub Copilot
96093200f5 fix: account balance calculation when moving transactions between accounts
- Fixed balance calculation logic in transaction update endpoint
- Added comprehensive test coverage for all error paths
- Added coverage/ directory to .gitignore
- Achieved 100% test coverage across all files
2025-04-24 09:24:00 -04:00
GitHub Copilot
99b70b519b feat(tests): add unit tests for accounts and transactions APIs
- Updated package.json to include Vitest for testing and added necessary devDependencies.
- Created accounts.test.ts to test the accounts API endpoints for listing and retrieving accounts.
- Implemented setup.ts to reset test data before each test run.
- Developed transactions.test.ts to cover creating, updating, and deleting transactions through the API.
- Added vitest.config.ts for configuring Vitest with appropriate settings and coverage options.
2025-04-24 08:52:48 -04:00
GitHub Copilot
bb6bd75434 Refactor index.astro to improve type safety, enhance UI update functions, and streamline event handling for transactions 2025-04-24 08:37:47 -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
GitHub Copilot
7c9bc51a9c Refactor transaction API to improve ID handling and error responses 2025-04-24 07:38:00 -04:00
GitHub Copilot
ec8cf05a54 Implement all API endpoints with error handling and validation 2025-04-24 07:31:47 -04:00
GitHub Copilot
78ebf1ae32 Remove unused files and implement API routes for account and transaction management 2025-04-24 07:27:05 -04:00
GitHub Copilot
ae6886bf92 Refactor code style for consistency in store and API route files 2025-04-23 21:39:50 -04:00
GitHub Copilot
dfc4e23601 #1 Update documentation to reflect API implementation progress 2025-04-23 21:38:13 -04:00
GitHub Copilot
98b29ff58b #1 Update index.astro to fetch accounts from API endpoint 2025-04-23 21:33:53 -04:00
GitHub Copilot
c0ac85ee7c #1 Implement GET /api/accounts endpoint 2025-04-23 21:29:41 -04:00
GitHub Copilot
070f472546 #1 Add temporary data store for development 2025-04-23 21:29:09 -04:00
GitHub Copilot
bac8047dc7 #1 Add initial API route structure for accounts and transactions 2025-04-23 21:28:41 -04:00
Peter Wood
b993cb89b2 Update Copilot instructions to reflect in-memory data usage and remove references to static JSON files 2025-04-23 21:02:54 -04:00
Peter Wood
20f3ec4acc Remove accounts and transactions data files 2025-04-23 20:58:33 -04:00
Peter Wood
0060013561 Initial commit - Basic bank transactions dashboard structure with Astro and TypeScript 2025-04-23 20:57:42 -04:00
houston[bot]
b2dae7e868 Initial commit from Astro 2025-04-23 20:18:17 -04:00
Peter Wood
58e8dbc43c feat: update .gitignore and add reset environment script 2025-04-07 19:49:27 -04:00
Peter Wood
d150757025 feat: initialize finance project with Fastify, Prisma, and Zod
- Added package.json with necessary dependencies and scripts for development and production.
- Created Prisma schema for BankAccount model with fields: id, name, bankName, accountNumber, createdAt, and updatedAt.
- Implemented Fastify server with CRUD operations for bank accounts, including validation using Zod.
- Added graceful shutdown handling for server and Prisma client.
2025-04-05 17:52:40 -04:00
Peter Wood
7c1cf427d1 first commit 2025-04-05 10:44:18 -04:00