Commit Graph

15 Commits

Author SHA1 Message Date
Первов Артем
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
Первов Артем
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
Первов Артем
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
3bc23165a3 update nginx.conf 2026-04-04 09:21:32 +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