Files
wekan/client/components/boards/statsView.css
T
Lauri Ojansivu 8dad0d0506 Add a "Group by Assignee" board view for team-meeting-friendly overviews.
Group cards by assignee, clustered under each assignee's name as a
heading, for a read-only overview well suited to a team stand-up. A
card with several assignees appears under each; a card with none falls
into "No assignee". Reuses the same grouping/translation fold the
Dashboard and Time views already use (models/lib/chartCalculations.js's
NO_ASSIGNEE_GROUP/translateGroupLabel), now generalized into
computeCardsByAssigneeGroup, which returns the grouped cards themselves
rather than a count/hours total. Wired end to end like every other
board view: a "Group by Assignee" Board View menu entry, an
isViewGroupByAssignee() helper/boardBody.jade branch, the
client/lib/utils.js whitelist, the profile.boardView schema, and a
tooltip-name-map entry. Each card row is a simple title + due date +
overtime marker, deliberately not a minicard re-render, and clicking a
card navigates to it like any other view - no drag-and-drop, no export.

Thanks to xet7 !

Closes #4688,
2026-09-10 19:41:33 +03:00

102 lines
2.0 KiB
CSS

/* Board "Statistics" view — full width, like the other board views. Its text is
selectable so any value can be highlighted and copied. */
.stats-view {
width: 100%;
height: 100%;
overflow: auto;
user-select: text;
-webkit-user-select: text;
}
.stats-view-content {
max-width: 900px;
margin: 0 auto;
padding: 24px;
}
.stats-view-title {
margin: 0 0 16px;
font-size: calc(22px * var(--wekan-ui-font-scale, 1));
font-weight: bold;
}
.stats-view-section {
margin-bottom: 28px;
}
.stats-view-heading {
margin: 0 0 8px;
font-size: calc(16px * var(--wekan-ui-font-scale, 1));
font-weight: bold;
border-bottom: 2px solid #dbdbdb;
padding-bottom: 4px;
}
.stats-view-table {
width: 100%;
border-collapse: collapse;
}
.stats-view-table td {
padding: 8px 4px;
border-bottom: 1px solid #eee;
user-select: text;
-webkit-user-select: text;
}
.stats-view-table .stats-view-label {
color: #666;
width: 60%;
}
.stats-view-table .stats-view-value {
font-weight: bold;
/* A number is read from its END edge - the right in LTR, the left in RTL. */
text-align: end;
}
/* A chart view's "loading"/"no data" note (chartPlaceholderViews.jade). */
.stats-view-placeholder-note {
color: #888;
font-style: italic;
}
/* "Group by Assignee" board view (#4688) - the card rows under each
assignee heading. Kept simple (a title + optional due date/overtime
marker), not a minicard re-render, so a board-wide view stays lightweight. */
.group-by-assignee-cards {
list-style: none;
margin: 0;
padding: 0;
}
.group-by-assignee-card {
border-bottom: 1px solid #eee;
}
.group-by-assignee-card-link {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 4px;
color: inherit;
text-decoration: none;
}
.group-by-assignee-card-link:hover {
background: rgba(0, 0, 0, 0.04);
}
.group-by-assignee-card-title {
flex: 1;
}
.group-by-assignee-card-due {
color: #666;
font-size: calc(12px * var(--wekan-ui-font-scale, 1));
}
.group-by-assignee-card-overtime {
color: #d9534f;
}