Commit Graph

614 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
a138e81439 Adjust layout of category spending
Adjust the layout of the category spending chart to align vertically with the payment method chart, while keeping the payment method chart's position unchanged.
2025-03-22 12:53:08 +00:00
gpt-engineer-app[bot]
eb13fa76a1 Increase pie chart size
Make the pie charts in ExpenseChart and PaymentMethodChart components slightly larger.
2025-03-22 12:51:25 +00:00
gpt-engineer-app[bot]
2a1fc6aa7a Remove unnecessary chart elements
Removes label lines from pie charts and percentage display from payment method chart.
2025-03-22 12:49:50 +00:00
gpt-engineer-app[bot]
b67ebf4631 Hide title suggestions always
The title suggestions should not always be visible.
2025-03-22 12:47:15 +00:00
gpt-engineer-app[bot]
45d890d39a Refactor expense form fields
Hide title suggestions initially and show them after category selection.
2025-03-22 12:45:46 +00:00
gpt-engineer-app[bot]
9adc4b2e5f No changes needed
The AI edits didn't result in any changes to the codebase.
2025-03-22 12:39:57 +00:00
gpt-engineer-app[bot]
6015cbfe1b Refactor ExpenseFormFields component
Refactor ExpenseFormFields.tsx into smaller, more manageable components for better organization and maintainability.
2025-03-22 12:29:20 +00:00
gpt-engineer-app[bot]
ba8bd237d1 Refactor TransactionFormFields component
Refactor TransactionFormFields component to improve maintainability.
2025-03-22 12:28:14 +00:00
gpt-engineer-app[bot]
846a7bb165 Refactor ExpenseForm component
Refactor ExpenseForm.tsx into smaller components to improve code organization and maintainability.
2025-03-22 12:26:59 +00:00
gpt-engineer-app[bot]
de128ac57a Improve title suggestion display
- Fix issue where title suggestions were not hidden correctly.
- Add animation to collapsible content for a smoother user experience.
2025-03-22 12:26:02 +00:00
gpt-engineer-app[bot]
2c66c96f9f Hide elements initially
Hides title suggestions and payment method fields initially, showing them based on category selection and amount input focus.
2025-03-22 12:22:23 +00:00
gpt-engineer-app[bot]
d3e8c36872 Refactor payment method selection
Refactored the payment method selection to use a button-style interface with icons and smaller font size.
2025-03-22 12:18:33 +00:00
gpt-engineer-app[bot]
c80ad15d79 Fix add transaction button animation
-  Modify the add transaction button to prevent the plus icon from rotating.
-  Implement a hover effect that expands the button and displays "지출 입력" (Add Expense).
2025-03-22 12:14:13 +00:00
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