29 Commits
Author SHA1 Message Date
wt 4821b15b63 Update package-lock.json
Build and Test / build-and-test-backend (push) Successful in 24s
Build and Test / build-and-test-frontend (push) Successful in 33s
2025-10-08 13:57:26 +07:00
wt 7f9b6836e5 updated package.json and package-lock.json
Build and Test / build-and-test-backend (push) Successful in 26s
Build and Test / build-and-test-frontend (push) Failing after 6s
2025-10-08 13:53:30 +07:00
wt 3fb1363baa Update SelectCategoryModal.jsx
Build and Test / build-and-test-backend (push) Successful in 25s
Build and Test / build-and-test-frontend (push) Successful in 33s
2025-10-08 13:39:22 +07:00
wt 656e59b3d8 Deleted internal/operation
Build and Test / build-and-test-backend (push) Successful in 26s
Build and Test / build-and-test-frontend (push) Failing after 33s
2025-10-08 13:37:59 +07:00
wt 5706a85631 added SelectCategoryModal
Build and Test / build-and-test-backend (push) Successful in 28s
Build and Test / build-and-test-frontend (push) Failing after 33s
2025-10-08 13:36:22 +07:00
wt 582ab5e7b9 updated
Build and Test / build-and-test-backend (push) Successful in 1m24s
Build and Test / build-and-test-frontend (push) Successful in 37s
2025-10-08 12:46:10 +07:00
wt e16edd7744 added operations
Build and Test / build-and-test-backend (push) Successful in 1m2s
Build and Test / build-and-test-frontend (push) Successful in 34s
2025-09-02 18:25:06 +07:00
wt 59f5a2cbc6 Update default_categories.json
Build and Test / build-and-test-backend (push) Successful in 28s
Build and Test / build-and-test-frontend (push) Successful in 32s
2025-08-10 15:28:34 +07:00
wt 547949795f added routes package and serve in server package
Build and Test / build-and-test-backend (push) Successful in 27s
Build and Test / build-and-test-frontend (push) Successful in 32s
2025-08-10 15:09:09 +07:00
wt 303b9344f8 added InitMiddlewares and delete jwtFromBody
Build and Test / build-and-test-backend (push) Successful in 28s
Build and Test / build-and-test-frontend (push) Successful in 33s
2025-08-10 14:37:07 +07:00
wt 90e5863adc create and get categories with database for user
Build and Test / build-and-test-backend (push) Successful in 31s
Build and Test / build-and-test-frontend (push) Successful in 34s
2025-08-09 17:32:18 +07:00
wt 2c06975a43 create categories and subcategories in database and categories logic 2025-08-09 14:12:25 +07:00
wt d3d644d68f Create default_categories.json 2025-08-09 14:01:44 +07:00
wt a6efd6038c Update go.mod
Build and Test / build-and-test-backend (push) Successful in 29s
Build and Test / build-and-test-frontend (push) Successful in 33s
2025-08-08 23:50:35 +07:00
wt 599142af80 feat(auth): Implement database-backed user authentication and
Build and Test / build-and-test-backend (push) Successful in 40s
Build and Test / build-and-test-frontend (push) Successful in 36s
persistence

This commit introduces a major architectural change by replacing the
previous hardcoded user and data system with a robust, database-driven
approach. It lays the foundation for persistent data storage for all
application models.

Key Changes:

- **Database Integration:** - Added `GORM` and `SQLite` for the database
layer. - The database is now initialized and migrated on application
startup. - Configuration is managed through environment variables
(`DATABASE`, `USERS_FILE`).

- **User Authentication & Management:** - The login endpoint
(`/api/token`) now authenticates users against the database. - JWT
claims are now populated with real user data (`id`, `username`,
`is_superuser`). - Implemented a system to seed the database with
initial users from a `users.json` file.

- **New User API Endpoints:** - `GET /api/users`: Retrieves a list of
all users (superuser access required). - `GET /api/users/user`: Fetches
the data for the currently authenticated user based on their JWT.

- **Data Model Overhaul:** - Refactored all data models (`User`,
`Category`, `Operation`, `Subcategory`) to include GORM tags,
relationships, and a `BaseModel` with auto-generated UUIDs for primary
keys. - Separated user-related structs into `User` (database model),
`AuthRequest` (login payload), and `UserResponse` (safe API response).

- **Middleware & Routing:** - Improved JWT error handling for clearer
client-side messages. - Added a new middleware to allow passing the JWT
in the request body for more flexible client integration.
2025-08-08 23:47:36 +07:00
wt c6ed1d66b0 Update build-and-test.yaml
Build and Test / build-and-test-backend (push) Successful in 19s
Build and Test / build-and-test-frontend (push) Successful in 32s
Build and Test / build-and-test-backend (pull_request) Successful in 21s
Build and Test / build-and-test-frontend (pull_request) Successful in 32s
2025-08-08 21:52:30 +07:00
wt 3b41f64096 update frontend/.gitignore and added frontend/package-lock.json
Build and Test / build-and-test-backend (push) Successful in 19s
Build and Test / build-and-test-frontend (push) Failing after 5s
2025-08-08 21:51:23 +07:00
wt 015cad5d83 added build-and-test-frontend and deleted frontend tests
Build and Test / build-and-test-backend (push) Successful in 22s
Build and Test / build-and-test-frontend (push) Failing after 30s
2025-08-08 21:47:45 +07:00
wt 78247d5ba7 Update build-and-test.yaml
Build and Test / build-and-test (push) Successful in 20s
2025-08-08 21:42:44 +07:00
wt 5953f1a9a0 Update build-and-test.yaml
Build and Test / build-and-test (push) Failing after 12s
2025-08-08 21:41:55 +07:00
wt dfe39aa9fa Create build-and-test.yaml
Build and Test / build-and-test (push) Failing after 16s
2025-08-08 21:41:10 +07:00
wt 1b6c7211ea feat(auth): implement JWT authentication flow
This commit implements a full-stack authentication system using JWT.

On the backend, a new login endpoint `/api/token` is created. It
validates credentials and issues a signed JWT. A JWT middleware is added
to the server configuration to protect sensitive API endpoints like
`/api/category` and `/api/operation`. Configuration is now managed via a
`wallet.conf` file, loaded at startup.

On the frontend, this enables a complete authentication lifecycle: - A
new `/login` page allows users to enter their credentials. - A
`PrivateRoute` component wraps protected pages, redirecting
unauthenticated users to the login page. - API calls to protected
resources now include the `Authorization: Bearer <token>` header. - A
logout function is added to clear user session data.

refactor(ui): enhance history and category views

This commit also introduces major UI improvements.

The History modal has been completely redesigned. Operations are no
longer displayed as a flat list but are now grouped into tabs for Daily,
Weekly, Monthly, and Yearly views, providing a much clearer overview of
transactions.

The Categories modal now separates categories into "Incomes" and
"Expenses" tabs, reflecting the changes in the backend data model.
2025-08-07 16:18:17 +07:00
wt ca99cfcf6d added backend and 2 endpoints fetch 2025-07-30 00:01:45 +07:00
wt 7c6db3dfbd deno.lock in .gitignore 2025-07-27 19:15:10 +07:00
wt c02ebff5e5 deleted package-lock.json and added to .gitignore 2025-07-27 19:11:05 +07:00
wt e12607cfe5 added CategoriesModal EmojiPickerButton CategorySign AddCategoryModal
updated NavigationBar AnalyticsModal SettingsModal
2025-07-26 23:23:55 +07:00
wt 5aa0caae48 deleted transactions page 2025-07-26 17:50:26 +07:00
wt 9205083486 added settings (switch dark mode), addoperation, operationhistory,
homepage, analytics
2025-07-26 17:27:32 +07:00
wt a3cacb6753 Initialize project using Create React App 2025-07-24 21:43:30 +07:00