Commit Graph

601 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]
cbee1f4fb9 Investigate data reset issue
Investigate why data is not fully reset when sync is enabled.
2025-03-22 11:58:13 +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]
5f125de8d7 Fix budget total calculation
Ensure budget total calculation aligns with weekly or monthly budget settings.
2025-03-22 11:13:26 +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]
d5ac14793b Refactor BudgetTabContent component
Splits the BudgetTabContent component into smaller, more manageable components to improve code organization and maintainability. The UI and logic are separated into distinct components while preserving the original functionality.
2025-03-22 10:58:21 +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]
09e29d57f3 Fix import error
The module `src/constants/categoryIcons.tsx` does not export `CATEGORY_TITLE_SUGGESTIONS`, but it is imported in `src/utils/userTitlePreferences.ts`. This commit fixes the import error.
2025-03-22 07:38:27 +00:00
gpt-engineer-app[bot]
8910dc3883 Fix: Resolve missing exports
The CATEGORY_DESCRIPTIONS and CATEGORY_TITLE_SUGGESTIONS exports were missing from the categoryIcons module, causing errors. This commit adds these exports to resolve the issue.
2025-03-22 07:37:22 +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]
22aae75d13 Fix: Wrap components with AuthProvider
The `useAuth` hook was being called outside of the `AuthProvider`, leading to an error. This commit ensures that all components using `useAuth` are wrapped within the `AuthProvider`.
2025-03-22 07:30:45 +00:00
gpt-engineer-app[bot]
0d1306ef2e Fix module import errors
Corrected import paths for '@/contexts/BudgetContext' in multiple components to resolve module not found errors.
2025-03-22 07:29:34 +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]
3052d5f766 Fix: Router context error
Wrap the App component with a Router to provide the necessary context for routing.
2025-03-22 07:26:19 +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]
2732133e9c Refactor: Reorder frequently used texts
Reordered texts based on usage frequency.
2025-03-22 06:52:21 +00:00
gpt-engineer-app[bot]
78451e30e5 Implement quick title suggestions
Implement suggestions for transaction titles based on category selection.
2025-03-22 06:50:36 +00:00
gpt-engineer-app[bot]
508eea9cde Refactor expense form and categories
-   Rename "지출 추가" to "지출 입력" in the add expense dialog.
-   Rename "교통비" to "교통" in categories and ensure all 4 icons are displayed on a single line.
2025-03-22 06:45:50 +00:00
gpt-engineer-app[bot]
c1a64ed711 Add animation effects
Adds subtle animation effects to improve user experience.
2025-03-22 06:43:22 +00:00
gpt-engineer-app[bot]
e0d4cf61c7 Refine add transaction button
The add transaction button is too large initially. This commit changes the button to display fully for 3 seconds, then transition to a smaller "+" icon button.
2025-03-22 06:41:04 +00:00
gpt-engineer-app[bot]
c57d56820f Show expense input button label
Display "지출 입력" label on the add transaction button to improve clarity.
2025-03-22 06:38:48 +00:00
gpt-engineer-app[bot]
1250ab95b8 Fix: Resolve Banknote import error
The 'Banknote' component was not imported, causing a TypeScript error. This commit adds the import from 'lucide-react' to resolve the issue.
2025-03-22 06:32:15 +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]
a8f29e669f Fix TS2686 error in syncResultHandler
The file `src/hooks/sync/syncResultHandler.ts` was throwing a TS2686 error because it was using `React` without importing it, even though it's a module. This commit adds `import React from 'react';` to resolve the issue.
2025-03-22 06:28:12 +00:00
gpt-engineer-app[bot]
09894589b4 Fix welcome message and sync
- Prevent duplicate welcome messages.
- Remove sync notifications.
- Ensure automatic sync updates last sync time.
2025-03-22 06:26:05 +00:00