Commit Graph

8 Commits

Author SHA1 Message Date
Первов Артем
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
Первов Артем
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
Первов Артем
20241b6ce1 Add global API prefix and route remapping for health checks in main.ts 2026-04-20 23:08:21 +03:00
MaKarin
5000e6baa0 push 2026-04-03 22:15:10 -07:00
MaKarin
cec42f08d0 init equipment & change-status 2026-04-03 21:45:13 -07:00