Commit Graph

5 Commits (69f126efa4f06da1e0c69318af34d73e9d219355)

Author SHA1 Message Date
Ryan Wang 69f126efa4 Remove attachment thumbnails modal and related code
Deleted the AttachmentThumbnailsModal, related components, and composables for managing and displaying attachment thumbnails. Updated AttachmentList and AttachmentDetailModal to remove references to the thumbnails modal and related permissions. Simplified thumbnail display to show only available image thumbnails in the detail modal, and updated i18n files to remove unused thumbnail modal and status translations. Centralized thumbnail width mapping in utils/thumbnail.ts.
2025-09-30 16:23:57 +08:00
Ryan Wang 4ff058eac2 Remove withDefaults from props definition
Simplified the props definition in AttachmentSingleThumbnailItem.vue by removing withDefaults, as no default values are needed.
2025-09-30 15:38:32 +08:00
Ryan Wang c4bd70f832 Refactor thumbnail size handling to use enum
Replaced string literals for thumbnail sizes with GetThumbnailByUriSizeEnum throughout the codebase for improved type safety and consistency. Updated generateThumbnailUrl to accept the enum and added a width map for local URLs. Improved attachment thumbnail display and link formatting.
2025-09-30 11:39:21 +08:00
Ryan Wang 57602d60a2 Refactor thumbnail size handling to use new enum 2025-09-29 23:39:07 +08:00
Ryan Wang 395399f078
feat: add thumbnail records modal (#7630)
#### What type of PR is this?

/area ui
/kind feature
/milestone 2.21.x

#### What this PR does / why we need it:

Add thumbnail records viewing feature. The main goal is to keep track of failed thumbnail generations, making it easier to check if thumbnails were generated correctly and retry if needed.

<img width="1009" height="859" alt="image" src="https://github.com/user-attachments/assets/d968e416-0b88-45bf-a554-a0c1abcf97a0" />
<img width="1014" height="952" alt="image" src="https://github.com/user-attachments/assets/c5d1a11b-7acc-4ab5-a2da-cf9467cb6b70" />

#### Which issue(s) this PR fixes:

Fixes #

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?

```release-note
支持查看附件缩略图记录
```
2025-07-22 13:54:18 +00:00