Commit Graph

403 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
dec494083c Fix: Address instance deletion, disappearing instances, and update errors
- Fixed instance deletion failures.
- Resolved the issue of instances appearing and disappearing in a loop.
- Addressed errors during instance updates.
- Check for missing information.
2025-05-19 18:07:25 +00:00
gpt-engineer-app[bot]
f26e41707a Fix: Instance cards not rendering
The commit addresses the issue where instance cards were not appearing after creation. It revisits the `WhatsApp.tsx` file and related components to ensure instances are correctly added to the state and displayed.
2025-05-19 15:16:50 +00:00
gpt-engineer-app[bot]
66a2cc47a8 Refactor: Extract WhatsApp logic into hooks and components
Refactor WhatsApp.tsx to use custom hooks and smaller components, preserving all existing functionality.
2025-05-19 15:09:59 +00:00
gpt-engineer-app[bot]
b0d6e88a76 Add advanced instance management features
Implement instance listing, restart, disconnect, delete, and presence setting functionalities with confirmation dialogs and UI updates.
2025-05-19 15:07:24 +00:00
gpt-engineer-app[bot]
686b682c19 Fix: Instance card not appearing
The fix ensures instance cards are displayed after creation.
2025-05-19 15:01:37 +00:00
gpt-engineer-app[bot]
926d3a37ef Refactor: Split WhatsApp.tsx into smaller components
This commit refactors the `WhatsApp.tsx` file into smaller, more manageable components. The form, instance list, QR code dialog, and API functions are separated into their own files to improve code organization and maintainability. No functionality changes were made.
2025-05-19 14:57:22 +00:00
gpt-engineer-app[bot]
f25b820437 Fix: Instance card not updating after creation
The fix ensures that when a new instance is created, even if the QR code isn't scanned immediately, the instance card appears in the "Desconectado" state, allowing the user to connect later.
2025-05-19 14:54:02 +00:00
gpt-engineer-app[bot]
11628031a3 Fix: Ensure instance cards appear after creation
The instance cards were not appearing after creation. This commit fixes the issue, ensuring that the cards are displayed whether the instance is connected or disconnected.
2025-05-19 14:48:52 +00:00
gpt-engineer-app[bot]
54310bd204 feat: Implement user-specific WhatsApp instances
- Associate WhatsApp instances with logged-in users.
- Store user ID/email with instance data.
- Filter instance cards to show only the user's instances.
- Clear instances on logout/login.
2025-05-19 14:41:04 +00:00
gpt-engineer-app[bot]
44e8569b6c Add instance connection status check
Implement automatic connection status checks for each instance card, displaying "Conectado" or "Desconectado" based on the API response. Includes periodic updates and visual status indication.
2025-05-19 14:33:33 +00:00
gpt-engineer-app[bot]
e7b86b26ea Fix: QR code not rendering
The QR code was not appearing, likely due to a base64 conversion issue.
2025-05-19 14:22:31 +00:00
gpt-engineer-app[bot]
ae584bce96 Fix: Update QR code retrieval flow
Update the "Ver QR Code" button to fetch the QR code from the /instance/connect/{instanceName} endpoint, display the QR code, and handle errors.
2025-05-19 14:20:07 +00:00
gpt-engineer-app[bot]
0b36a1bda5 feat: Display created WhatsApp instances
Adds a section to display created WhatsApp instances as cards, each with a "View QR Code" button. Implements local storage for instance data and fetches QR codes from the API.
2025-05-19 13:40:23 +00:00
gpt-engineer-app[bot]
490ac533ac feat: Implement WhatsApp QR code flow
- Store instanceId and instanceName after instance creation.
- Add "Ver QR Code" button to fetch and display QR code from API.
- Implement QR code refresh functionality.
- Display success/error messages.
2025-05-19 13:30:19 +00:00
gpt-engineer-app[bot]
70dd4fc790 Fix: Update WhatsApp API request
Update the API endpoint and apikey for the WhatsApp instance creation request.
2025-05-19 13:22:42 +00:00
gpt-engineer-app[bot]
991964846a feat: Add "Connect WhatsApp" menu and integration
Adds a "Connect WhatsApp" menu item to the sidebar. Implements a form to input instance name and WhatsApp number, and a button to create a WhatsApp instance via a POST request to the Evolution API. Saves the returned instanceId and displays success/error messages.
2025-05-19 13:12:27 +00:00
gpt-engineer-app[bot]
db6468b4cc feat: Add economy value to dashboard
Add economy value and percentage to the dashboard summary card.
2025-05-19 13:04:03 +00:00
gpt-engineer-app[bot]
f3b00231de Fix: Authentication issues
Fixes login and password entry issues.
2025-05-19 12:59:29 +00:00
gpt-engineer-app[bot]
e288c9262d Fix: Persist metas, fix category display, add category labels
- Fixed the issue where metas disappeared after navigating away and back.
- Fixed the category display in the dashboard and category menu.
- Added category names to the pie chart labels.
2025-05-19 12:55:27 +00:00
gpt-engineer-app[bot]
e66b0342b7 Run SQL to create financial goals table. 2025-05-19 12:47:41 +00:00
gpt-engineer-app[bot]
85b4d3e795 Fix: "Ver todas as transações" button refresh issue
The "Ver todas as transações" button was refreshing the page instead of displaying all transactions. This commit addresses the issue.
2025-05-19 12:31:13 +00:00
gpt-engineer-app[bot]
0f5e9e7d72 Fix user-specific data and UI issues
- Display user's real name in the header.
- Fix category menu and transaction filters.
- Implement a split view for transactions.
- Ensure each user uses their own database.
- Update database naming.
2025-05-19 12:08:55 +00:00
gpt-engineer-app[bot]
416074060d Implement user-specific data separation
Configure the application to associate each user with a distinct database or data scope, ensuring that users like Rodrigo and Rejane access only their own transactions and data, preventing shared data access.
2025-05-19 11:52:23 +00:00
gpt-engineer-app[bot]
032f171d7f Fix useState runtime error in TooltipProvider
Resolved a runtime TypeError caused by attempting to read 'useState' from a null value. The issue was traced to the TooltipProvider component, which was improperly imported or used, leading to React hooks being called outside of a valid React component context. The fix involved ensuring correct import of React and proper definition of TooltipProvider as a React component that uses hooks within a valid React functional component scope. This prevents the hooks from executing in an invalid context, eliminating the 'null useState' error and restoring proper rendering.
2025-05-19 11:47:03 +00:00
gpt-engineer-app[bot]
e70b9ce00b Fix: Sidebar navigation issue
The sidebar navigation incorrectly highlights the "Dashboard" menu item when the "Transações" menu item is selected, preventing access to the dashboard.
2025-05-19 01:37:43 +00:00
gpt-engineer-app[bot]
75e54b23c2 Fix: Dashboard navigation redirects to login
The issue where navigating to the dashboard after logging in redirects to the login screen is addressed. The fix likely involves correcting route handling or authentication checks in `App.tsx` and/or `ProtectedRoute.tsx` to ensure proper navigation to the dashboard.
2025-05-19 01:35:22 +00:00
gpt-engineer-app[bot]
746083c7ed Disable RLS to resolve errors
The user requested to disable Row Level Security (RLS) to address persistent authorization errors.
2025-05-19 01:30:03 +00:00
gpt-engineer-app[bot]
9116d7a5be Fix: Supabase row-level security error
The AI addressed the Supabase row-level security error by ensuring correct authentication and data insertion in `TransactionForm.tsx`. It also updated `src/services/transacaoService.ts` to check for valid sessions.
2025-05-19 01:24:46 +00:00
gpt-engineer-app[bot]
c5d3e51a34 Fix: Authentication error on transaction save
The AI addressed an authentication error that occurred when saving new transactions. It updated `TransactionForm.tsx` to correctly retrieve the user ID, get the session, and insert data into the user-specific table, ensuring proper authentication and data insertion according to Supabase's security policies.
2025-05-18 13:25:43 +00:00
gpt-engineer-app[bot]
22136fc8a1 Fix: Transaction save error
Investigate and resolve an issue where saving new transactions fails, potentially unrelated to the database.
2025-05-18 13:19:36 +00:00
gpt-engineer-app[bot]
23ac89e158 Fix: Dashboard and Transactions menu selection
The dashboard menu item is selected when the user navigates to the transactions page. This commit ensures that the correct menu item is selected based on the current route.
2025-05-18 13:17:51 +00:00
gpt-engineer-app[bot]
3028d8629d Fix: Redirect to login on dashboard navigation
The user is redirected to the login screen when navigating to the dashboard after logging in. This commit addresses the issue.
2025-05-18 13:15:39 +00:00
gpt-engineer-app[bot]
6bed5a8fc4 Run SQL to fix column name
The SQL was reviewed and approved. This commit runs the SQL to fix the column name issue.
2025-05-18 13:13:28 +00:00
gpt-engineer-app[bot]
b02d7f29e6 Fix: Supabase table name issue
The errors indicate a problem with the Supabase table names being passed as strings instead of the correct type. This is causing type errors in `TransactionForm.tsx` and `transacaoService.ts`. The fix will involve ensuring the correct table names are used when calling Supabase functions.
2025-05-18 13:10:04 +00:00
gpt-engineer-app[bot]
c05ba05353 Run SQL to create user and transaction tables. 2025-05-18 13:06:18 +00:00
gpt-engineer-app[bot]
e59656824f Fix: Enable "Nova Transação" button
The "Nova Transação" button in the Transacoes page was not functioning. This commit enables the button.
2025-05-18 03:09:01 +00:00
gpt-engineer-app[bot]
f14cc08652 Fix: Calendar negative sign issue
Corrects the calendar view to display revenue transactions with positive values.
2025-05-18 02:38:08 +00:00
gpt-engineer-app[bot]
eccb0a6cb6 Fix: Calendar menu negative sign for revenue
Corrects the calendar view to display revenue transactions with positive values, removing the negative sign.
2025-05-18 02:34:05 +00:00
gpt-engineer-app[bot]
688548893d Fix: Calendar revenue sign
Corrects the display of revenue transactions in the calendar view to remove the negative sign.
2025-05-18 02:32:30 +00:00
gpt-engineer-app[bot]
0a14aec425 Fix: Calendar transaction color
Corrects the transaction color in the calendar view.  Expenses are now displayed in red, and income is displayed in green.
2025-05-18 02:31:01 +00:00
gpt-engineer-app[bot]
98fb2f72ec Fix: Apply responsiveness adjustments
The AI addressed responsiveness issues, ensuring the changes are reflected on the live URL.
2025-05-18 02:27:44 +00:00
gpt-engineer-app[bot]
0df3fc10ee Fix: Dashboard and Categorias page data
The dashboard was not displaying expenses correctly, and the categorias menu was empty. This commit revises the code to ensure expenses are correctly calculated and displayed, and that the categorias menu populates with data.
2025-05-18 02:24:03 +00:00
gpt-engineer-app[bot]
8a056a56dc Fix: Ensure responsiveness across devices
Implemented responsive design adjustments to support both mobile and desktop devices.
2025-05-18 00:16:01 +00:00
gpt-engineer-app[bot]
254b231ec8 Refactor: Sum category values in Categorias page
Use the 'categoria' column to sum values in the Categorias menu.
2025-05-17 23:54:56 +00:00
gpt-engineer-app[bot]
14f970f191 Fix: Use transaction type for sign
Updated `transacaoService.ts` to determine the sign of the transaction value based on the 'tipo' column instead of 'categoria'.
2025-05-17 23:51:21 +00:00
gpt-engineer-app[bot]
d7bf29cf60 Fix: Implement income/expense logic and icon activation
-   Adjusted the display of transaction values to be positive for income and negative for expenses, based on the category.
-   Activated the icons for "Receitas", "Despesas", "Saldo", and "Economia" in the dashboard.
2025-05-17 23:49:54 +00:00
gpt-engineer-app[bot]
d7b24fa168 Fix: Resolve 'useEffect' error
The error "Uncaught TypeError: Cannot read properties of null (reading 'useEffect')" was occurring. This commit addresses the issue.
2025-05-17 23:45:40 +00:00
gpt-engineer-app[bot]
f315af5ed7 Fix: Activate and connect menu items
Connects the "Transações", "Categorias", and "Calendário" menu items to their respective functionalities. Ensures data from Supabase is displayed in these sections.
2025-05-17 23:44:35 +00:00
gpt-engineer-app[bot]
22ce38db82 Fix: Display existing transactions
The dashboard was not displaying the existing transactions from the Supabase table. This commit ensures that the transactions are correctly fetched and displayed on the front end.
2025-05-17 23:40:27 +00:00
gpt-engineer-app[bot]
a4f8efc420 Connect to transactions table 2025-05-17 23:37:48 +00:00