Commit Graph

125 Commits

Author SHA1 Message Date
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
36fe2b114f Change BOM import to download
To be same as upload
2025-07-09 03:26:38 +02:00
gpt-engineer-app[bot]
99aa53652b Fix chart icon display issues
Fixes icon placement, click propagation, and missing total revenue/profit graphs. Addresses alignment and layout issues.
2025-07-09 01:02:25 +00:00
gpt-engineer-app[bot]
1db029e573 feat: Add interactive charts for job metrics
Adds line/area charts for costs, revenue, and profit, both per job and overall. Implements modal popups for graph display and adds graph icons for easy access.
2025-07-09 00:57:40 +00:00
767288ea86 Fix pasting transactions on job details 2025-07-09 01:12:58 +02:00
3820522f32 Properly implement transaction deduplication
Using my superior HUMAN brain
Idiot ram stick
2025-07-08 21:38:03 +02:00
gpt-engineer-app[bot]
74dbaab169 Improve transaction deduplication logic
Limit deduplication to transactions of the relevant jobs.
2025-07-08 19:20:54 +00:00
gpt-engineer-app[bot]
b527ecebee Fix transaction deduplication
Address the issue where duplicate transactions are still being created after the previous fix.
2025-07-08 19:15:53 +00:00
gpt-engineer-app[bot]
58ed99a8ae Fix: Improve transaction deduplication logic
Ensures deduplication occurs after combining pasted transactions with existing ones to prevent duplicate entries.
-edited src/components/BatchTransactionForm.tsx
2025-07-08 19:10:37 +00:00
7644ea5c6b Make shit EDITABLE DAMN IT 2025-07-08 19:20:53 +02:00
fe4eb80ed5 Justify-center BABYYYYYYYYYY 2025-07-08 13:20:27 +02:00
335bbc3bab Code format 2025-07-08 13:18:04 +02:00
1dc07159c1 Enhance PriceDisplay component with adjusted pricing calculations
- Added calculations for adjusted target and break-even prices based on remaining revenue and uncovered costs.
- Implemented clipboard copy functionality for adjusted prices.
- Updated layout to display adjusted prices alongside original calculations for better clarity.
2025-07-08 13:17:16 +02:00
78f4f1e527 Refactor PriceDisplay component layout
- Adjusted grid layout for price display to improve readability.
- Consolidated break-even price display into a more compact format.
- Enhanced styling for better visual alignment of price information.
2025-07-08 13:14:27 +02:00
gpt-engineer-app[bot]
d810b86474 Refactor: Improve price display and formatting
- Round prices to 4 significant digits.
- Adjust grid layout for price display.
- Move tax information to header.
2025-07-08 13:11:34 +02:00
gpt-engineer-app[bot]
dd8b4c8e94 Refactor job card header layout
Adjust job card header width to fit content, aligning values.
2025-07-08 13:11:34 +02:00
gpt-engineer-app[bot]
ef74c46550 Fix Job Card layout and tax display
Refactor Job Card layout to a grid, and adjust tax display.
2025-07-08 13:11:34 +02:00
gpt-engineer-app[bot]
9f50189cd1 Fix: Close batch assign modal on outside click
feat: Add break even price to job metrics, rename min price
2025-07-08 13:11:34 +02:00
965ac51c59 Undo clipboard reading 2025-07-08 12:50:55 +02:00
gpt-engineer-app[bot]
135ce5d8fa Fix UI and functionality issues
Fixes tax config button size, recalculates min prices on tax change, saves tax on blur, and implements automatic pasting to batch assign.
2025-07-08 12:50:55 +02:00
gpt-engineer-app[bot]
50cb89eff5 feat: Add minimum price per unit display
- Added a display for the minimum price per unit required to meet revenue expectations.
- Replaced the "BOM: 4 items hover to view" with the new display.
- Implemented clipboard copy functionality for the minimum price.
- Added a sales tax configuration option.
- Modified the "batch assign" button to read data from the clipboard on click.
2025-07-08 12:50:55 +02:00
gpt-engineer-app[bot]
6e7e4e4f73 Fix: Improve revenue performance indicator
The revenue performance indicator now correctly calculates and displays the performance based on price per unit, comparing expected and actual revenue per item sold. It also handles cases where produced or sold quantities are zero.
2025-07-08 12:39:17 +02:00
gpt-engineer-app[bot]
7a61a3d62a Fix: JobCardMetrics layout and performance indicator
- Moved progress percentages below ISK values in JobCardMetrics.
- Corrected performance calculation in JobCardMetrics to accurately reflect progress.
2025-07-08 12:39:17 +02:00
gpt-engineer-app[bot]
8b2a44e1ea Refactor JobCardMetrics display
Consistently style the revenue progress and performance indicator, either with or without a backdrop/icon.
2025-07-08 12:39:17 +02:00