Commit Graph

111 Commits

Author SHA1 Message Date
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
a58f95c88a Refactor fetching to use pocketbase expand instead of being retarded 2025-07-06 21:48:57 +02:00
gpt-engineer-app[bot]
27b6b90f1f Fix: Implement BOM import/export and SPA navigation
- Fixed JobForm date field population.
- Implemented clipboard-based BOM import/export functionality with a proper preview.
- Ensured the application is no longer a SPA, with navigation to job details pages.
2025-07-06 19:13:18 +00:00
53760822ad Fix various errors 2025-07-06 21:07:50 +02:00
gpt-engineer-app[bot]
11346b89f6 Refactor UI and navigation
- Removed the "materials" section from the JobForm.
- Added BOM import/export buttons to the JobCard.
- Fixed date fields not populating in JobForm.
- Implemented job detail page navigation using routes.
2025-07-06 19:02:19 +00:00
gpt-engineer-app[bot]
42d21b083e Fix: React hook order and refactor
Fixed React hook order issues in `Index.tsx` and refactored large files for better maintainability.
2025-07-06 18:53:13 +00:00
5a0cfe3477 Fix "export" 2025-07-06 20:49:43 +02:00
gpt-engineer-app[bot]
3f2d521d07 Fix: DataService updateJob and JobCard display
- Fixed `updateJob` in `dataService.ts` to correctly update local job data with full objects instead of references.
- Standardized JobCard size.
- Fixed JobForm not pre-filling date fields.
- Removed "materials" section from JobForm, replaced with BOM import/export buttons using clipboard.
- Removed consumed materials section.
2025-07-06 18:41:46 +00:00
gpt-engineer-app[bot]
7bdc09184b Fix: Ensure IndJob type compatibility
Initialized billOfMaterials and consumedMaterials as empty IndBillitemRecord[] arrays in the createJob function to resolve type mismatches.
2025-07-06 17:55:54 +00:00
gpt-engineer-app[bot]
21b2c468d8 Fix: Resolve IndJob type mismatch in dataService
Corrected the type of `billOfMaterials` and `consumedMaterials` in `dataService.ts` to match the `IndJob` type definition, ensuring compatibility with `IndBillitemRecord[]`.
2025-07-06 17:53:57 +00:00
gpt-engineer-app[bot]
e938e65c73 Fix type errors and data service issues
- Corrected `useDataService.ts` useEffect hook return type.
- Fixed `Index.tsx` type error related to `IndTransactionRecord`.
- Addressed type incompatibility in `dataService.ts` for bill of materials.
- Removed the attempted deletion of the non-existent `jobDataService.ts` file.
2025-07-06 17:52:37 +00:00
gpt-engineer-app[bot]
a0470ed9c5 Refactor: Centralize database operations
Consolidated database interaction logic into service files. Streamlined job and transaction creation/update processes to minimize database requests, improving efficiency.
2025-07-06 17:50:07 +00:00
6e5603fc3e Remove wails so lovable is happy 2025-07-06 19:42:50 +02:00
0cdfdbc751 Don't propagate clicks on edit and box 2025-07-06 17:38:27 +02:00
d9b77ea33c Make click on box copy BOM to clipboard 2025-07-06 17:10:31 +02:00
8c4ab2ba29 Implement batch transactionator form 2025-07-06 03:25:57 +02:00
4fd55ffb3e Factor jobs into collapsible categories and implement tracked jobs 2025-07-06 02:55:13 +02:00
1660e0b765 Add a "sold" counter too 2025-07-05 14:58:04 +02:00
b54e3ee847 Sort transactions properly 2025-07-05 14:36:32 +02:00
93264aa658 Add "produced" field to jobs 2025-07-05 13:57:15 +02:00
52a0aa104e Make buttons black 2025-07-04 17:29:04 +02:00
926eff3aeb Transform into wails project 2025-07-04 17:25:07 +02:00
b18b05c675 Sort jobs such and such 2025-07-04 17:17:18 +02:00
f12fdc8195 Tumble the profit display around a bit 2025-07-04 17:05:50 +02:00
6f6e599db0 Add projected cost and revenue 2025-07-04 17:04:11 +02:00
63f3db6197 Fix creating bill items 2025-07-04 16:44:06 +02:00
6f60993621 Make shift click delete transactions without confirm 2025-07-04 16:29:23 +02:00
83fa902b4c Make the rest of the application use "new" services 2025-07-04 16:27:09 +02:00
70d6979b47 Add logs to services 2025-07-04 16:19:18 +02:00
2e2682e5c5 Implement bill item service 2025-07-04 16:16:47 +02:00
a2b0c7c15e Implement transaction service 2025-07-04 16:10:39 +02:00