Commit Graph

113 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
8cda329feb Remove daily and weekly tabs
Removed the daily and weekly budget tabs from the budget progress card, leaving only the monthly tab.
2025-03-22 12:06:32 +00:00
gpt-engineer-app[bot]
0bc53208b5 Fix budget calculation and display
Ensure daily and weekly budgets are calculated correctly based on the monthly budget, and that the monthly budget is consistent across the app.
2025-03-22 12:02:41 +00:00
gpt-engineer-app[bot]
94595ec6c8 Refactor budget calculation logic
Modify budget calculation to use monthly input as the base and adjust tab order.
2025-03-22 11:53:18 +00:00
gpt-engineer-app[bot]
69ab5e4c73 Refactor code for consistency
Refactors the codebase to ensure a consistent code structure and style throughout the project.
2025-03-22 11:46:22 +00:00
gpt-engineer-app[bot]
a623b70e4f Fix type error in useBudgetGoalUpdate
The comparison `type === 'weekly'` was causing a type error because the type of `type` was `BudgetPeriod`, which includes `"monthly"` and `"weekly"`. The code was attempting to directly assign `"monthly"` to `type` after this comparison, which is not allowed. To fix this, a new variable `period` of type `BudgetPeriod` is created and assigned the value of `type`. The comparison is then performed on `period`, and if it is equal to `"weekly"`, `period` is set to `"monthly"`. Finally, `period` is used in the subsequent logic.
2025-03-22 11:37:06 +00:00
gpt-engineer-app[bot]
f1e0a9c297 Fix weekly budget calculation
Ensure weekly budget is correctly calculated to derive monthly budget.
2025-03-22 11:31:44 +00:00
gpt-engineer-app[bot]
4f552632b7 Enforce monthly budget updates
The budget update logic was modified to ensure that all budget updates are applied to the monthly budget, regardless of the selected tab. This resolves inconsistencies in budget calculations and data storage.
2025-03-22 11:27:35 +00:00
gpt-engineer-app[bot]
13351fd613 Fix budget display issue
Correctly display monthly budget amount.
2025-03-22 11:23:57 +00:00
gpt-engineer-app[bot]
0702145431 Fix budget update issue
Addresses an issue where budget updates were not being applied correctly.
2025-03-22 11:20:58 +00:00
gpt-engineer-app[bot]
b81187a4d8 Fix budget calculation error
Corrected an issue where the total monthly budget was incorrectly calculated and displayed as a weekly budget.
2025-03-22 11:16:30 +00:00
gpt-engineer-app[bot]
ef239e6126 Fix budget display and button
- Fix the budget display issue where monthly budgets were showing four amounts instead of one.
- Resolve the functionality of the "Edit Budget" button.
2025-03-22 11:08:04 +00:00
gpt-engineer-app[bot]
e900fa77a1 Refactor useBudgetState hook
Refactor useBudgetState to use separate hooks for different concerns, similar to useBudgetDataState.ts.
2025-03-22 11:03:55 +00:00
gpt-engineer-app[bot]
d1a9b9f89f Refactor: Split useBudgetDataState hook
Splits the `useBudgetDataState` hook into smaller, more manageable hooks for state management, data loading, and event handling. This improves code organization and maintainability while preserving existing functionality.
2025-03-22 11:01:19 +00:00
gpt-engineer-app[bot]
8aabb2fa9c Refactor budgetUtils.ts
Refactor budgetUtils.ts to improve code organization and maintainability by splitting the logic into multiple files. The functionality remains the same.
2025-03-22 10:59:57 +00:00
gpt-engineer-app[bot]
ab86d9b5f9 Investigate budget display issue
Examine why budget data is not displaying correctly on the expense and analytics screens, despite being saved successfully.
2025-03-22 10:53:56 +00:00
gpt-engineer-app[bot]
c92d41e8f0 Address unresolved issues
This commit addresses previously reported issues that remain unresolved. Further investigation is required.
2025-03-22 08:26:29 +00:00
gpt-engineer-app[bot]
7b29f31c7b Revert previous changes
Reverting the previous commit due to unresolved issues.
2025-03-22 08:21:57 +00:00
gpt-engineer-app[bot]
ae2a28efbb Fix budget display issues
Addresses issues where budget data wasn't displaying correctly after input and ensures correct automatic calculation of daily/weekly budgets from monthly input.
2025-03-22 08:08:58 +00:00
gpt-engineer-app[bot]
d4afc2eedb Fix data initialization issues
Addresses problems with budget display and data reset:
- Ensures budget data is correctly displayed after initialization.
- Fixes issue where daily and weekly budget data were missing.
- Corrects data reset to properly clear transaction data.
2025-03-22 07:58:53 +00:00
gpt-engineer-app[bot]
55c2ece3ce Fix budget input and calculation
The budget input was not being saved correctly, and the daily/weekly calculations were not working as expected. This commit fixes these issues.
2025-03-22 07:53:37 +00:00
gpt-engineer-app[bot]
f39733bfcd Fix budget display issue
The budget display in the budget card was not showing correctly when the budget was not set. This commit fixes the issue.
2025-03-22 07:48:57 +00:00
gpt-engineer-app[bot]
9e5406afff Show unset daily/weekly budget
The daily and weekly budget values now display "설정되지 않음" when they are not set.
2025-03-22 07:45:24 +00:00
gpt-engineer-app[bot]
0d716d79d2 Fix budget calculation and storage
Correct budget calculation and storage issues for 교통 and 기타 categories, and ensure daily/weekly budgets are displayed correctly.
2025-03-22 07:42:46 +00:00
gpt-engineer-app[bot]
b79c6b2314 Fix budget input and display
- Fix issue where budget input for transportation and other categories were not saved correctly.
- Fix issue where total budget amount was calculated incorrectly.
- Fix issue where daily and weekly budgets were not displayed correctly.
2025-03-22 07:35:55 +00:00
gpt-engineer-app[bot]
727077f96d Fix: Ensure BudgetProvider usage
The `useBudget` hook was being called outside of a `BudgetProvider`, leading to an error. This commit ensures that the `useBudget` hook is only called within the `BudgetProvider` context.
2025-03-22 07:27:59 +00:00
gpt-engineer-app[bot]
3911040b00 Fix TS2614 and TS1205 errors
Corrected import/export of Transaction type and fixed isolatedModules error.
2025-03-22 07:23:09 +00:00
gpt-engineer-app[bot]
56842becca Fix import error in BudgetContext
The BudgetContext.tsx file was throwing an error because it was trying to import `BudgetPeriod` from the wrong location. Changed the import path to correctly reference the `BudgetPeriod` type.
2025-03-22 07:18:07 +00:00
gpt-engineer-app[bot]
b00e27c1f0 Fix TypeScript errors
- Fix TS2353: Object literal may only specify known properties, and 'paymentMethod' does not exist in type 'Transaction'.
- Fix TS1205: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'.
- Fix TS2741: Property 'getPaymentMethodStats' is missing in type '{ transactions: Transaction[]; budgetData: BudgetData; categoryBudgets: Record<string, number>; selectedTab: BudgetPeriod; setSelectedTab: React.Dispatch<...>; ... 5 more ...; resetBudgetData: () => void; }' but required in type 'BudgetContextType'.
2025-03-22 07:16:33 +00:00
gpt-engineer-app[bot]
2eff95908e Fix: Ensure BudgetProvider usage
The `useBudget` hook was being called outside of the `BudgetProvider` context in the `Index` component. This commit ensures that the `Index` component and its children are wrapped with the `BudgetProvider` in `App.tsx` to resolve the error.
2025-03-22 07:14:12 +00:00
gpt-engineer-app[bot]
81afd624a4 Fix TypeScript errors
Fixes TypeScript errors related to missing properties and incorrect exports.
2025-03-22 07:12:06 +00:00
gpt-engineer-app[bot]
aa8381a823 Add payment method selection
Adds a payment method selection (Credit Card, Cash) to the expense form and includes a line separator. Also requests to add a graph showing the proportion of credit card and cash usage in expense analytics, but this part is not implemented in this commit.
2025-03-22 07:08:02 +00:00
gpt-engineer-app[bot]
60ef765380 Implement personalized data handling
Implement personalized data handling based on the number of recent expense records.
2025-03-22 06:57:50 +00:00
gpt-engineer-app[bot]
8de82b17f0 Add "기타" category
Adds "기타" category to the existing categories.
2025-03-22 06:31:08 +00:00
gpt-engineer-app[bot]
40ddcee1da Fix: Resolve TypeScript errors
The type `Transaction` was missing the `localTimestamp` property, causing TypeScript errors in `downloadTransaction.ts` and `uploadTransaction.ts`. This commit adds the `localTimestamp` property to the `Transaction` interface to resolve these errors.
2025-03-21 11:41:42 +00:00
gpt-engineer-app[bot]
e1c6875024 Improve sync logging
Add more detailed logging for sync functionality to improve issue tracking.
2025-03-21 11:39:44 +00:00
gpt-engineer-app[bot]
d6e6c00ea9 Rename categories
Rename "식비" to "음식" and "생활비" to "쇼핑".
2025-03-21 10:02:05 +00:00
gpt-engineer-app[bot]
e164c45fd2 Fix TS2308 error in index.ts
The module './BudgetContext' already exports a member named 'BudgetContextType'. Explicitly re-export to resolve the ambiguity.
2025-03-19 14:14:45 +00:00
gpt-engineer-app[bot]
92fc5ce34f Fix Typescript and module errors
- Resolve Typescript isolatedModules error by using 'export type' when re-exporting types.
- Fix module ambiguity by explicitly re-exporting 'BudgetContextType'.
- Correct import paths for useAuth hook in transaction-related files.
2025-03-19 14:13:31 +00:00
hansoo
2ec913c6c0 optimize boot sequnse 2025-03-19 07:27:10 +09:00
gpt-engineer-app[bot]
613f6a49d7 Refactor auth utils for Cloud
Simplify signUpUtils.ts and signInUtils.ts by removing unnecessary code related to CORS proxies, optimizing for Supabase Cloud environment.
2025-03-18 06:15:28 +00:00
gpt-engineer-app[bot]
7f30d08466 Fix budget calculation error
Fixes an issue where entering a monthly budget resulted in incorrect daily, weekly, and monthly budget calculations, leading to incorrect display on the spending and analytics screens.
2025-03-18 02:31:08 +00:00
gpt-engineer-app[bot]
42c9355e76 Refactor category budget setting
The category budget setting is now based on the monthly budget amount, which is then divided into daily and weekly budgets.
2025-03-18 02:22:58 +00:00
gpt-engineer-app[bot]
0be5154e02 Improve data reset flow
The settings page was reloading slowly after a data reset. This commit addresses the issue by preventing the unnecessary reload after the reset operation.
2025-03-18 02:07:27 +00:00
gpt-engineer-app[bot]
00727c8ab6 Fix budget calculation issue
The budget was being tripled on the expense and analytics pages. This commit fixes the calculation logic to ensure the budget is displayed correctly.
2025-03-18 02:02:27 +00:00
gpt-engineer-app[bot]
a6ca34e049 Fix budget display issue
The budget amount was displaying incorrectly, showing three times the actual value. This commit fixes the issue.
2025-03-18 01:10:20 +00:00
gpt-engineer-app[bot]
146cb92bc5 Investigate budget data issues
Investigate why budget and expense cards are not displaying correctly and why budget is showing as 0 on other pages.
2025-03-18 01:06:29 +00:00
gpt-engineer-app[bot]
042965461e Fix: Resolve issue with transaction display
Addresses a bug where transactions were not displayed on the transaction history page and expense amounts were showing as zero.
2025-03-17 23:32:02 +00:00
gpt-engineer-app[bot]
a53717c502 Fix issue deleting transactions
Fixes an issue where deleting a transaction on the transaction history screen would cause the application to freeze.
2025-03-17 16:37:34 +00:00
gpt-engineer-app[bot]
14c3fac824 Fix toast and sync settings
- Fix issue where toast notifications were not disappearing.
- Ensure sync settings are turned off upon logout.
2025-03-16 10:37:26 +00:00
gpt-engineer-app[bot]
662cacbc99 Prevent duplicate toast notifications
The application was displaying duplicate toast notifications due to events being triggered multiple times. This commit prevents duplicate notifications.
2025-03-16 09:38:39 +00:00