23 Commits

Author SHA1 Message Date
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
9739b8cfe9 Make shipment fields optional and refactor test scripts.
Updated the `number_of_pucks` and `number_of_samples` fields in the `schemas.py` to be optional for greater flexibility. Simplified the test Jupyter Notebook by restructuring imports and consolidating function calls for better readability and maintainability.
2025-01-17 09:36:16 +01:00
GotthardG
481068603b Enhance deletion processes with event-check validations.
Added validation to prevent deletion of shipments, dewars, pucks, or samples if they have associated events. Updated frontend components to handle and display error messages based on API responses for improved user feedback.
2025-01-15 15:30: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
86883133a7 now creating dewars from spreadsheet 2024-11-12 14:00:32 +01:00
GotthardG
701c42c0dd updated models and schemas for shipments and dewars 2024-11-11 11:43:49 +01:00
GotthardG
976cdc1a0a updated stepper 2024-11-04 23:46:30 +01:00
GotthardG
d92fce4970 Add option to change the dewar status 2024-11-04 22:20:14 +01:00
GotthardG
9fa499a582 added pucks and samples 2024-11-04 16:20:53 +01:00
GotthardG
a9b8925be8 added update to comments with characters counter 2024-11-03 21:42:42 +01:00
GotthardG
0becdf9337 added update to comments with characters counter 2024-11-02 21:01:31 +01:00
GotthardG
a01114a178 Better integration of sqlite3 database 2024-11-02 00:54:37 +01:00
GotthardG
579e769bb0 changing contact person and address of a specific dewar is now possible 2024-11-01 12:27:16 +01:00
GotthardG
dc31eec66e better support of add and delete dewar to a shipment 2024-10-31 17:17:17 +01:00
GotthardG
d6d7e7c919 Adjusted stepper for shipment tracking 2024-10-31 10:25:46 +01:00
GotthardG
c34c117a15 Connected frontend new contact, new address and shipments to backend 2024-10-29 23:49:33 +01:00
GotthardG
7f46006435 Connected frontend new contact, new address and shipments to backend 2024-10-29 14:11:53 +01:00
GotthardG
2a4f2d1d85 Connected frontend shipments to backend 2024-10-25 10:43:17 +02:00
GotthardG
b6611fdac0 initial-commit 2024-10-24 10:31:09 +02:00