39 Commits

Author SHA1 Message Date
GotthardG
2e1d87c31b Update dependencies and migrate to Node 18 minimum support
Upgraded multiple package versions, including `@esbuild` and dependencies like `@mui/x-data-grid-premium`. Adjusted `node` engine requirement to `>=18` for compatibility. This ensures modernization and alignment with current toolchain standards.
2025-03-04 10:42:24 +01:00
GotthardG
1606e80f81 Add Image models and clean up test code structure
Introduced `ImageCreate` and `Image` models to handle image-related data in the backend. Improved the organization and readability of the testing notebook by consolidating and formatting code into distinct sections with markdown cells.
2025-02-26 13:33:23 +01:00
GotthardG
f588bc0cda Add endpoint for creating local contacts with access control
Introduced a new `local_contact_router` to handle creation of local contacts. The endpoint enforces role-based access control and ensures no duplication of email addresses. Updated the router exports for consistency and cleaned up a large test file to improve readability.
2025-02-26 09:58:19 +01:00
GotthardG
25673ae05c added tabs to logistics frontend 2025-02-05 11:55:46 +01:00
GotthardG
780ba1959f Add SetTellPositionRequest schema and minor cleanup.
Added a new `SetTellPositionRequest` schema in `schemas.py` to support bulk updates of TELL positions. Commented out redundant metadata operations in `main.py` and cleaned up unused content in the test notebook for better readability.
2025-02-04 14:43:59 +01:00
GotthardG
c2215860bf Refactor Dewar service methods and improve field handling
Updated Dewar API methods to use protected endpoints for enhanced security and consistency. Added `pgroups` handling in various frontend components and modified the LogisticsView contact field for clarity. Simplified backend router imports for better readability.
2025-01-30 13:39:49 +01:00
GotthardG
44582cf38e Add pgroup handling in dewars and enhance ShipmentDetails UI
Introduced a new `pgroups` attribute for dewars in the backend with schema and model updates. Modified the frontend to display `pgroups` as chips, integrate new visual icons for pucks and crystals, and enhance the UI/UX in `ShipmentDetails` and `DewarStepper` components. Added reusable SVG components for better modularity and design consistency.
2025-01-23 13:57:25 +01:00
GotthardG
173e192fc4 Integrate pgroups for shipment data security
Added `pgroups` to secure and associate data with specific permission groups. Updated backend routers, database models, and API endpoints to handle authorization based on `pgroups`. Adjusted frontend components and hooks to support `pgroups` in data fetching and management workflows.
2025-01-22 22:53:37 +01:00
GotthardG
382b1eaba8 Refactor contact handling across backend and frontend
Replaced usage of "ContactPerson" with "Contact" for consistency across the codebase. Updated related component props, state variables, API calls, and database queries to align with the new model. Also enhanced backend functionality with stricter validations and added support for handling active pgroups in contact management.
2025-01-22 16:31:08 +01:00
GotthardG
6cde57f783 **Commit Message:**
Enhance app with active pgroup handling and token updates

Added active pgroup state management across the app for user-specific settings. Improved token handling with decoding, saving user data, and setting OpenAPI authorization. Updated components, API calls, and forms to support dynamic pgroup selection and user-specific features.
2025-01-22 13:55:26 +01:00
GotthardG
4630bcfac5 Add mount_count and unmount_count tracking for samples
Introduced `mount_count` and `unmount_count` fields to track mounting events for samples. Updated models, schemas, and front-end components to support dynamic calculation and display of these counts. Enhanced backend queries and API responses to include the new data.
2025-01-20 13:04:20 +01:00
GotthardG
3b315f2997 Add mount_count and unmount_count tracking for samples
Introduced `mount_count` and `unmount_count` fields to track mounting events for samples. Updated models, schemas, and front-end components to support dynamic calculation and display of these counts. Enhanced backend queries and API responses to include the new data.
2025-01-20 11:02:56 +01:00
GotthardG
54975b5919 Add spreadsheet enhancements and default handling
Implemented a toggleable spreadsheet UI component for sample data, added fields such as priority and comments, and improved backend validation. Default values for "directory" are now assigned when missing, with feedback highlighted in green on the front end.
2025-01-06 14:40:02 +01:00
GotthardG
a0be71bdfe Fix formatting with black 2024-12-16 10:41:56 +01:00
GotthardG
958c9167fc added puck events 2024-12-11 13:57:23 +01:00
GotthardG
9160339961 fixed bug with logistics 2024-12-11 10:10:43 +01:00
GotthardG
e28c8b05d4 fixed bug with spreadsheet import 2024-12-10 15:18:48 +01:00
GotthardG
996fc66d76 switched to mariaDB 2024-12-05 21:49:00 +01:00
GotthardG
1a1a710edf added pet data for samples events 2024-12-04 11:23:21 +01:00
GotthardG
a42124a56f can now return the dewar to its slot 2024-11-28 10:09:28 +01:00
GotthardG
fc8bb8d200 retrieved event working 2024-11-22 22:04:44 +01:00
GotthardG
c7e6c0390e now with a working countdowntimer for each dewar 2024-11-21 13:18:58 +01:00
GotthardG
db610da588 now with a working countdowntimer for each dewar 2024-11-20 22:37:18 +01:00
GotthardG
98d6265ae1 now associating a dewar to a slot 2024-11-19 14:43:26 +01:00
GotthardG
fa1e9c86b8 now associating a dewar to a slot 2024-11-19 13:43:54 +01:00
GotthardG
a931bfb8ec https and ssl integration on the backend, frontend and started integration of logistics app as a separate frontend 2024-11-19 09:56:05 +01:00
GotthardG
0eb0bc3486 added a router for logistics, now creating label 2024-11-15 14:04:30 +01:00
GotthardG
6083c72a1d added dewar type, serial number, generate unique id, qr code and generate label 2024-11-14 23:17:20 +01:00
GotthardG
8f7c90bab0 now creating dewars, pucks and samples from spreadsheet and replacing dewars if a dewar with the same name exists 2024-11-12 17:03:38 +01:00
GotthardG
86883133a7 now creating dewars from spreadsheet 2024-11-12 14:00:32 +01:00
GotthardG
52fe68b2bc changed models and schemasa 2024-11-11 15:00:20 +01:00
GotthardG
701c42c0dd updated models and schemas for shipments and dewars 2024-11-11 11:43:49 +01:00
GotthardG
d5c7e7e6f3 changed shipment_id to integers 2024-11-09 08:11:03 +01:00
GotthardG
4e76db4c9f added contacts and addresses manager 2024-11-04 21:31:01 +01:00
GotthardG
9fa499a582 added pucks and samples 2024-11-04 16:20:53 +01:00
GotthardG
23e7ebb819 added pucks and samples 2024-11-04 11:34:14 +01:00
GotthardG
84f270b647 Integration of sqlite3 database now fully functional with all implemented functions 2024-11-02 12:12:30 +01:00
GotthardG
a01114a178 Better integration of sqlite3 database 2024-11-02 00:54:37 +01:00
GotthardG
48cd233231 Added the sqlite3 database 2024-11-01 14:13:38 +01:00