34 Commits

Author SHA1 Message Date
Первов Артем
05ae32c030 Split archive journal to 2 sub-modules by status. Add possibility to upload file for equipment. Change date fields for equipment. 2026-05-11 09:41:03 +03:00
Nikita Bizyaev
67f7d617be reorder columns 2026-04-30 13:53:09 +03:00
Nikita Bizyaev
d1a20f350b hide Очистить фильтры 2026-04-30 13:22:12 +03:00
Nikita Bizyaev
3e458ee264 hide При использовании текущих фильтров результаты не найдены. 2026-04-30 13:12:17 +03:00
Первов Артем
7b1d12e48d Remove equip from sidebar 2026-04-30 04:49:17 +03:00
Первов Артем
376b4a6a57 Rework menu for different statuses of equip 2026-04-30 04:40:42 +03:00
Первов Артем
fea773bb15 Enhance ChangeEquipmentStatus forms and EquipmentEdit layout
- Updated ChangeEquipmentStatusCreate and ChangeEquipmentStatusEdit components to include fullWidth properties for better layout consistency.
- Added a required DateInput field for "Дата" in both ChangeEquipmentStatus forms.
- Improved EquipmentEdit component by making fields fullWidth and adding helper text for the serial number input.
- Rearranged fields in EquipmentEdit for improved user experience.
2026-04-21 13:24:29 +03:00
Первов Артем
ad245db29f Refactor ChangeEquipmentStatus forms to include new fields
- Added a text input for "Номер" in both ChangeEquipmentStatusCreate and ChangeEquipmentStatusEdit components.
- Rearranged the order of fields in the forms for better user experience.
- Included the StatusChangeAttachmentsInput component to handle file attachments in both forms.
2026-04-21 12:50:55 +03:00
Первов Артем
48c61cc2e5 Enhance attachment display in ChangeEquipmentStatusList
- Added a new component, StatusChangeAttachmentLink, to render file attachments in the ChangeEquipmentStatusList.
- Updated the rendering logic to display up to three attachment links with a count of additional attachments if more than three exist.
- Improved the overall user interface for better visibility of file attachments related to equipment status changes.
2026-04-21 12:36:53 +03:00
Первов Артем
b1aefae2fa Add support for file attachments in equipment status changes
- Introduced functionality for uploading and managing attachments in the ChangeEquipmentStatus module.
- Added new endpoints for uploading and deleting attachments, as well as for downloading them.
- Updated the ChangeEquipmentStatusService to handle attachment storage and retrieval using the new storage service methods.
- Enhanced the ChangeEquipmentStatusEdit and ChangeEquipmentStatusShow components to support attachment input and display.
- Removed deprecated attachment handling from Equipment module to streamline functionality.
- Updated Prisma schema to reflect changes in attachment management.
2026-04-21 12:19:49 +03:00
Первов Артем
d572647772 Refactor App and EmbeddedActiveEquipmentPage for theme support
- Renamed the main component from `App` to `ToirAdmin` for clarity.
- Integrated theme support using `useEmbeddedParentTheme` to dynamically adjust the UI based on the parent theme.
- Updated `EmbeddedActiveEquipmentPage` to utilize the new theme and improved styling for better user experience.
- Added a new utility hook `useEmbeddedParentTheme` to manage theme changes via postMessage from parent origins.
- Enhanced the `vite-env.d.ts` file to include environment variable definitions for parent origins.
2026-04-21 01:50:21 +03:00
Первов Артем
4584a0d581 Add download functionality for equipment attachments
- Introduced a new endpoint `GET /equipment/{id}/attachment/download` in the API for downloading equipment attachment files.
- Implemented the `downloadEquipmentAttachmentFile` function in the client to handle file downloads via the API, ensuring proper token management and blob handling.
- Updated the EquipmentAttachmentInput, EquipmentList, and EquipmentShow components to utilize the new download link, enhancing user experience by allowing direct downloads without exposing the MinIO URL.
- Added a new EquipmentAttachmentLink component to encapsulate the download link logic and improve code reusability.
2026-04-21 01:26:00 +03:00
Первов Артем
eb36c04a4b Add UTF-8 filename decoding for multipart uploads in EquipmentService
- Introduced a new utility function to decode filenames from multipart uploads that may be misencoded as ISO-8859-1.
- Updated EquipmentService to utilize this function when processing file attachments, ensuring correct original file names are stored and returned.
2026-04-21 01:15:37 +03:00
Первов Артем
7735988ed5 Enhance S3 error handling in StorageService and update .env.example documentation
- Added detailed error handling for S3 operations in StorageService to interpret and throw appropriate exceptions based on the response.
- Updated .env.example to clarify the S3 endpoint configuration for MinIO in Docker.
2026-04-21 01:02:10 +03:00
Первов Артем
327d3a95a3 Refactor Prisma migration handling in docker-entrypoint.sh
- Introduced a function to handle schema synchronization with prisma db push.
- Enhanced migration logic to fall back to db push if migration fails with P3005 error.
- Improved logging for migration processes to aid in debugging.
2026-04-21 00:55:29 +03:00
Первов Артем
c4e5962912 Update healthcheck configuration in docker-compose.yml for improved reliability
- Changed healthcheck command to use 'http' module for better error handling.
- Increased timeout to 10s, retries to 8, and start period to 120s to accommodate cold starts.
2026-04-21 00:52:36 +03:00
Первов Артем
b60c4ee0ed Add file attachment functionality for equipment management
- Introduced DTO for file attachments with metadata (objectKey, originalFileName, contentType, sizeBytes, downloadUrl).
- Updated Equipment DTO to include an optional attachment field.
- Implemented endpoints for uploading and deleting equipment attachments.
- Enhanced Equipment service to handle file storage and retrieval using S3.
- Updated EquipmentEdit, EquipmentList, and EquipmentShow components to support file attachment input and display.
- Configured S3 settings in docker-compose and environment files.
2026-04-21 00:46:17 +03:00
Первов Артем
62446f2597 Update Nginx configuration to use a unique backend hostname for API routing to prevent intermittent routing issues 2026-04-20 23:35:45 +03:00
Первов Артем
420e1deb7d Remove unnecessary rewrite rule from Nginx configuration for API routing 2026-04-20 23:29:22 +03:00
Первов Артем
20241b6ce1 Add global API prefix and route remapping for health checks in main.ts 2026-04-20 23:08:21 +03:00
Первов Артем
c9eb7b0908 Refactor EmbeddedActiveEquipmentPage to use custom data fetching and remove Authenticated wrapper from App component 2026-04-06 02:46:06 +03:00
Первов Артем
de5c43745c Remove HashRouter wrapper from App component to simplify routing 2026-04-06 02:32:43 +03:00
Первов Артем
a1c9b989c8 Wrap App component with HashRouter for improved routing support 2026-04-06 02:20:53 +03:00
MaKarin
c766b556fb Add embedded active equipment view for Drill iframe 2026-04-04 11:13:10 +03:00
MaKarin
60e07e9c6e add createbutton on ListPage 2026-04-04 10:19:22 +03:00
MaKarin
873550ae9b update db-seed 2026-04-04 10:07:10 +03:00
MaKarin
1a8fd94858 implement db-seed 2026-04-04 10:04:47 +03:00
MaKarin
3bc23165a3 update nginx.conf 2026-04-04 09:21:32 +03:00
MaKarin
df2797fe7d fix docker-compose.yml 2026-04-04 09:17:30 +03:00
MaKarin
f0fdd8bdde update docker-compose.yml 2026-04-04 09:12:51 +03:00
MaKarin
5000e6baa0 push 2026-04-03 22:15:10 -07:00
MaKarin
8a578baac0 update docker-compose.yml 2026-04-03 22:06:47 -07:00
MaKarin
cec42f08d0 init equipment & change-status 2026-04-03 21:45:13 -07:00
MaKarin
c89c23fd1d git init 2026-04-03 20:54:37 +03:00