Commit Graph

148 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
57ae872cc6 Fix: React Hooks order in Index page
The `Index` page component was violating the Rules of Hooks by conditionally rendering hooks. This commit refactors the component to ensure hooks are called in a consistent order across renders, resolving the "Rendered more hooks than during the previous render" error. Additionally, it addresses performance concerns by optimizing data fetching and state management.
2025-07-28 21:04:12 +02:00
65050794f0 Add pocketbase admin token 2025-07-28 21:04:12 +02:00
gpt-engineer-app[bot]
e164cd8fbe Optimize home page performance
Address significant performance issues on the home page by optimizing data processing and calculations. The focus is on reducing computational overhead, as database operations appear to be efficient.
2025-07-28 21:04:07 +02:00
8fcaaf2332 Put buttons on batch forms above the content instead of below 2025-07-13 15:42:54 +02:00
0c4854326b Update 2025-07-13 15:42:54 +02:00
gpt-engineer-app[bot]
68ed074c37 Add "queued" job status
Added a new "queued" status for jobs, indicating they are waiting to begin production, occurring before the "running" status.
2025-07-13 15:42:54 +02:00
3791ce992c Add queued status 2025-07-13 15:42:54 +02:00
gpt-engineer-app[bot]
e024439cb0 Adjust runtime calculation for parallel jobs
Update runtime calculation to reflect the impact of parallel job execution, dividing the total runtime by the number of parallel runs.
2025-07-13 15:42:54 +02:00
gpt-engineer-app[bot]
b1925331ed Display and edit parallel jobs on card
Display the parallel jobs value on the job card and enable editing by clicking on it.
2025-07-13 15:42:53 +02:00
gpt-engineer-app[bot]
51467925f3 Enable parallel job execution.
Add UI element to specify parallel job count and utilize the `parallel` field in `indjob` to divide runtime accordingly.
2025-07-13 15:42:53 +02:00
b24b0810f4 Add "parallel" parameter to indjob 2025-07-12 12:46:25 +02:00
3c5cebedfe Always show runtime 2025-07-12 12:41:48 +02:00
gpt-engineer-app[bot]
7353c7e243 Fix: Display missing prices and runtime
Show "Break-even price" and "target-price" if available. Do not render runtime if it is 0.
2025-07-10 01:32:29 +02:00
gpt-engineer-app[bot]
b2c5684577 Add flashing to category headers.
Category headers now flash if any jobs within require attention.  Loading of jobs for 'Acquisition', 'Running', and 'Selling' categories is now prioritized.
2025-07-10 01:26:28 +02:00
a569de9c03 Remove tumor 2025-07-10 01:23:03 +02:00
929f7d170b Fuck with the colors a bit 2025-07-10 01:23:03 +02:00
40c91f9f2b Remove job status dropdown
Don't need it anymore
2025-07-10 01:15:45 +02:00
gpt-engineer-app[bot]
85f55da57b Fix status button colors and runtime display
Fixed status button colors. Added remaining runtime display for running jobs below "sale start" and "sale end" in job details.
2025-07-10 01:15:45 +02:00
gpt-engineer-app[bot]
f697f38e4f feat: Implement runtime parsing and reduce button alpha
Adds runtime parsing from job imports and adds a runtime field to the job creation dialogue. Reduces the alpha on status buttons.
2025-07-10 00:57:28 +02:00
gpt-engineer-app[bot]
c5b4a41b19 Refactor: Style status navigation buttons
Make status navigation buttons wider, center text, and color them based on status.
2025-07-10 00:57:28 +02:00
gpt-engineer-app[bot]
5e2caefaaf Refactor: Move status navigation buttons
Relocate the status navigation buttons to below the header, between the header and details sections of the job card. This change aims to improve the layout and address the issue of long job names. Also, ensure no duplicate code.
2025-07-10 00:57:28 +02:00
d4d17ae987 Update types with new statuses 2025-07-10 00:57:28 +02:00
gpt-engineer-app[bot]
fbda209db4 Add job status navigation buttons
Adds forward and backward buttons to job cards to change job status. Implements new statuses and highlights jobs needing attention.
2025-07-10 00:57:28 +02:00
gpt-engineer-app[bot]
d05d0180b8 Add job card glow effect
Highlight job cards based on completion criteria for "Acquisition" and "Selling" jobs.
2025-07-10 00:57:28 +02:00
8b2c85df33 Update update remote 2025-07-10 00:27:42 +02:00
gpt-engineer-app[bot]
b29416495c Refactor BatchTransactionForm
Refactors `BatchTransactionForm.tsx` into smaller, focused components and a custom hook to improve maintainability, mirroring the structure of the refactored `BatchExpenditureForm`.
2025-07-09 21:42:01 +02:00
gpt-engineer-app[bot]
d645dbde2f Refactor: Split BatchExpenditureForm into smaller components
Refactors the BatchExpenditureForm component into smaller, more manageable files to improve code organization and readability.
2025-07-09 21:42:01 +02:00
gpt-engineer-app[bot]
73ccee5dd3 Fix batch expenditure form and add autofocus
Fixed the batch expenditure form to correctly recognize transactions. Added autofocus to the input forms in both batch income and expenditure forms.
2025-07-09 21:42:01 +02:00
gpt-engineer-app[bot]
fb130799a9 Add missing materials export button
Implemented a button to export only missing materials based on BOM and expenditures, using `useMaterialsCalculations` to determine missing quantities. Updated `MaterialsActions` and `MaterialsImportExport` components.
2025-07-09 21:42:01 +02:00
gpt-engineer-app[bot]
5af53723cc Refactor Index page
Refactor `src/pages/Index.tsx` into smaller components.
2025-07-09 21:18:51 +02:00
gpt-engineer-app[bot]
81e9a98315 Refactor: Split Index.tsx into smaller components
This commit refactors the `Index.tsx` file into smaller, more manageable components to improve code organization and readability.
2025-07-09 21:18:51 +02:00
gpt-engineer-app[bot]
15280ecdab Refactor MaterialsImportExport component
Refactor the MaterialsImportExport component into smaller, more manageable files.
2025-07-09 21:18:51 +02:00
gpt-engineer-app[bot]
e33368dcb7 Add batch expenditure assignment
- Implemented batch assignment for expenditures, similar to income.
- Added a button to export missing materials.
- Updated logic to consider jobs in "acquisition" status.
- Added logic to skip jobs with satisfied BOM.
2025-07-09 21:18:44 +02:00
93037b581c Make sure our transactions are always positive
Amount cannot be negative
2025-07-09 21:06:23 +02:00
02e91a3951 Ignore some shit 2025-07-09 16:55:50 +02:00
a241b74599 Update remote script 2025-07-09 16:53:28 +02:00
gpt-engineer-app[bot]
5825370f23 Add automatic date assignment on status change
Update job dates based on status changes.
2025-07-09 16:42:37 +02:00
e00907e575 Load the god damn fucking credentials you robot retard 2025-07-09 16:39:42 +02:00
gpt-engineer-app[bot]
8b431eaeca Fix jarring job loading and scrolling
Improve job loading to ensure total revenue is accurate and prevent page refresh/scroll to top when expanding job categories.
2025-07-09 15:10:05 +02:00
gpt-engineer-app[bot]
6ce39c89d0 Fix: Job dump parsing issue
Corrected job dump parsing to include the first line of the BOM.
2025-07-09 15:10:05 +02:00
gpt-engineer-app[bot]
dc5b91d104 Add bill of materials after job creation
Add functionality to add bill of materials to a job after it has been created.
2025-07-09 15:10:05 +02:00
gpt-engineer-app[bot]
260c1c0af3 Feat: Implement job dump parsing
The job dump input should update the output item fields.
The dump is delimited by newlines.
2025-07-09 15:10:05 +02:00
gpt-engineer-app[bot]
c9d9cd99ee Remove date fields and add job dump import
Removed date fields from the job form and added a text area for importing job dumps.
2025-07-09 15:10:05 +02:00
gpt-engineer-app[bot]
dfa886eec7 Fix: Implement missing per-day lines in charts
The per-day lines were missing from the charts. This commit ensures that all charts display both cumulative and per-day data as requested.
2025-07-09 03:42:07 +02:00
gpt-engineer-app[bot]
7fb0cfb41c Fix chart display inconsistencies
Ensure consistent chart styles across different views, adding cumulative revenue and profit lines with area shading.
2025-07-09 03:42:07 +02:00
gpt-engineer-app[bot]
ebb5e4931f Refactor: Improve transaction chart visualizations
The AI has updated the transaction charts to match the total revenue chart's style, implementing specific display rules for different chart types (job, cost, revenue, profit) including cumulative values, shaded areas, and line representations.
2025-07-09 03:42:07 +02:00
34f9127778 Bigger chart icon please 2025-07-09 03:26:53 +02:00
gpt-engineer-app[bot]
0c69b59677 feat: Add chart icons to total revenue/profit
Adds chart icons to the total revenue and profit displays on the main page.
Implements cumulative lines on all charts.
Addresses chart scoping issues.
2025-07-09 03:26:50 +02:00
86a9fc4382 Move the fucking chart button left of the import button
WAS IT SO HARD!?
2025-07-09 03:26:47 +02:00
gpt-engineer-app[bot]
6f7f777eab Fix chart display and add global chart views
- Fixed chart legend cutoff issue.
- Improved chart time-based granularity.
- Prevented chart details from auto-opening on close.
- Added chart icon next to "Sold" and to "Total Revenue" and "Total Profit" sections.
2025-07-09 03:26:44 +02:00