Files
wekan/client/components/main/myAttachments.css
T
Lauri Ojansivu a9dd6b05b0 Add a My Attachments page to the member menu.
A third sibling of My Cards / My Due Cards: every attachment the current
user has uploaded, across every board they can see (their own boards, and
public ones), in one place. The menu entry sits right after My Due Cards
(client/components/users/userHeader.jade), and its own route (/my-attachments,
config/router.js) renders a dedicated page
(client/components/main/myAttachments.jade/.js) grouped board > swimlane >
list > card, reusing the same "open the card in place" popup mechanism
myCards.js's .js-minicard handler uses (#3640) so a click never navigates
away and loses the reader's place in a list spanning many boards.

The new `myAttachments` publication (server/publications/cards.js) filters
by BOTH the uploader (this user's own attachments only) and board visibility,
using the same boardVisibilitySelectors() the All Boards list and the board
publication already use (GHSA-gwc4-fw7p-gw58) rather than a hand-rolled
duplicate - so an attachment on a board the user cannot see is never
published, even if its userId field somehow matches. The query shape itself
lives in a small pure module, models/lib/myAttachmentsQuery.js, so it is
unit-tested without a database.

Thanks to Jieiku and xet7 !

Closes #3461,
2026-09-10 20:07:59 +03:00

23 lines
594 B
CSS

/* My Attachments (#3461) - reuses myCards.css's board/swimlane/list wrapper
classes for the grouping, and attachments.css's .attachment-* classes for
each thumbnail; only the card row and its own gallery wrapper are new. */
.my-attachments-results-text {
margin: 0 18px 8px;
}
.my-attachments-card-wrapper {
margin: 8px 0;
}
.my-attachments-card-title {
display: inline-flex;
align-items: center;
gap: 6px;
font-weight: bold;
cursor: pointer;
}
.my-attachments-card-title i.fa-external-link {
font-size: 0.85em;
}
.my-attachments-gallery {
margin-inline-start: 12px;
}