Commit Graph

141 Commits

Author SHA1 Message Date
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
gpt-engineer-app[bot]
460049a1a2 Refactor performance indicator display
Reduced verbosity and improved the layout of the performance indicator in `JobCardMetrics.tsx` for a more compact and accurate display.
2025-07-08 12:39:17 +02:00
gpt-engineer-app[bot]
037328f0c9 feat: Add selling job progress metric
Adds a metric to the JobCardMetrics component to display the progress of selling jobs, comparing actual revenue to projected revenue based on the number of items sold.
2025-07-08 12:39:17 +02:00
bcf249e9c4 Fix sorting shit in recap 2025-07-07 21:06:28 +02:00
f3ab31ce76 Code format 2025-07-07 20:10:09 +02:00
e30cac00ea Enable clicking on sort on individual job popovers 2025-07-07 20:09:54 +02:00
2009273959 Make jobID copy-able 2025-07-07 20:09:54 +02:00
gpt-engineer-app[bot]
127dd3cfda feat: Add transaction popover to job metrics
Adds popover functionality to display transactions on click of cost, revenue, and profit metrics in JobCardMetrics (Index and JobDetails).
2025-07-07 19:58:23 +02:00
2ba0f735fd Update 2025-07-07 19:52:05 +02:00
ad7ada88c2 Fix up the popover a bit 2025-07-07 19:51:37 +02:00
gpt-engineer-app[bot]
ec8430189a Refactor: Extract common logic and reduce file size
Refactors `Index.tsx` and `JobCardHeader.tsx` to reduce bloat and extract common logic, such as job status coloring, into reusable components or utility functions. This improves code maintainability and readability.
2025-07-07 19:50:28 +02:00
gpt-engineer-app[bot]
cb32ccaba9 feat: Implement revenue/profit recap and fixes
- Added a hover-over recap for total revenue and profit, displaying contributing jobs in a popup.
- Fixed the issue where the lower parts of letters in job names were cut off.
- Implemented job ID copy-to-clipboard functionality on click.
2025-07-07 19:40:52 +02:00
2e576b6d28 Update JobCardHeader component to improve clarity and layout
- Change label from "Quantity" to "Runs" for better understanding.
- Adjust text alignment from right to left for the produced quantity display.
2025-07-07 19:24:03 +02:00
6b6e56f936 Ignore pocketbase admin 2025-07-07 19:21:14 +02:00
gpt-engineer-app[bot]
a7f9bad5ea Fix display and batch import issues
Fixes "Sold" count display and improves batch transaction import handling, including duplicate transaction grouping.
2025-07-07 19:19:46 +02:00
gpt-engineer-app[bot]
897d15ce4d Fix: Improve field editing and optimize job loading
- Prevent layout shift during field editing by using absolute positioning.
- Implement filtering of jobs based on the user's collapsed group preferences.
- Modify the `useJobs` hook to fetch jobs with filters based on the open/closed state of job categories.
- Update the `dataService` to use the filter parameter when fetching jobs.
2025-07-07 19:06:23 +02:00
c0193ce618 Fix loading job page when clicking on interactive elements 2025-07-07 18:08:04 +02:00
8dd6630e8d Refresh job when pasting BOM 2025-07-07 16:37:44 +02:00
b83e94f462 Remove days/item/day wtf? 2025-07-07 16:37:35 +02:00
e9a539997b "Rework" navigation to be less javascript-y 2025-07-07 16:34:37 +02:00
b2b67c8761 Update jobs when jobs are updated 2025-07-07 16:34:37 +02:00
1bdedf6707 Remove build
Why was it even there? Weird
2025-07-07 16:30:44 +02:00
99039873f4 Actually log into pocketbase before running
Update

Update
2025-07-07 16:03:15 +02:00
885f8f48d8 Hallucinate a fix to prevent firing 40 requests per load
Who knows if this works
2025-07-07 15:45:22 +02:00
b199742dff Implement auth for pocketbase 2025-07-07 15:38:11 +02:00
0ca4ca9eed Align the card dates into 2 columns instead of 1 2025-07-07 14:14:47 +02:00
gpt-engineer-app[bot]
29b5647ea2 Enhance job card with status colors and editability
- Added background colors to job cards based on status.
- Implemented editable date fields and projected costs/profit.
- Added a dropdown for status selection.
2025-07-07 12:09:21 +00:00
gpt-engineer-app[bot]
2ada112178 Refactor: Split JobCard.tsx into smaller components
Refactored JobCard.tsx into smaller, more manageable components to improve code organization and readability.
2025-07-07 11:55:18 +00:00
gpt-engineer-app[bot]
045526131e Fix: Job card visual issues
Reverted button style changes and adjusted job status appearance. Implemented job name copy-to-clipboard functionality on click.
2025-07-07 11:31:33 +00:00
gpt-engineer-app[bot]
b303d12cb1 Fix: Job card visual improvements
- Aligned job status with the edit button in JobCard.
- Standardized the appearance of import/export buttons.
2025-07-07 11:26:37 +00:00
gpt-engineer-app[bot]
2a1382bf2e Refactor UI for improved visuals
- Fixed tag alignment in JobCard.
- Styled category headers with their respective colors and removed the arrow icon.
- Improved the display of "expenditure", "income", and "profit" information.
2025-07-07 11:23:14 +00:00
fa03bdb207 Add search functionality 2025-07-07 13:17:35 +02:00
bdb5766d58 Code format 2025-07-06 22:24:29 +02:00
dc1c8f4136 Fix importing the bill of materials 2025-07-06 22:24:01 +02:00
a598d6c15f Move the BOM import/export to below the edit buttons 2025-07-06 22:05:01 +02:00