Files
wekan/client/components/boards/statsView.jade
T
Lauri Ojansivu 876b0a2c12 Reorder the Board View menu and add its not-yet-built views
New order top to bottom: Swimlanes, Lists, Table, Calendar, Time,
Statistics, Dashboard, Burndown, Burnup, Cumulative Flow, Control, Cycle
Time, Flow Efficiency, Gantt, Lead Time, Throughput Histogram, WIP Run -
each with its own font-awesome icon. The ten views with no implementation
yet get a real grey page (client/components/boards/chartPlaceholderViews.jade)
titled like their menu entry, with a shared "not implemented yet" note,
instead of a menu item that opens nothing.

"Time spent summary" moves out of Statistics into its own new Time view
(timeView.jade/.js), which keeps the same boardStatus subscription
Statistics already used.

Two places had to learn every new view or switching to one silently failed:
models/users.js's profile.boardView schema only allowed the original six
values, so the server rejected Meteor.call('setBoardView', ...) for any new
one with a 400; and boardHeader.js's tooltip name map fell back to a
generic label for the same ones. tests/boardViewMenu.test.cjs pins the
menu order, that every entry has an icon/handler/isView* helper/placeholder
template, AND both of those - the schema and the tooltip map - against the
same view list, so this cannot drift out of sync silently again.

Thanks to xet7.
2026-09-08 17:49:25 +03:00

33 lines
1.2 KiB
Plaintext

template(name="statsView")
.stats-view
.stats-view-content
h1.stats-view-title {{ boardTitle }}
.stats-view-section
h2.stats-view-heading {{_ 'board-status'}}
table.stats-view-table
tbody
tr
td.stats-view-label {{_ 'board-status-loading-mode'}}
td.stats-view-value {{ loadingModeLabel }}
tr
td.stats-view-label {{_ 'swimlanes'}}
td.stats-view-value {{ swimlaneCount }}
tr
td.stats-view-label {{_ 'lists'}}
td.stats-view-value {{ listCount }}
tr
td.stats-view-label {{_ 'cards'}}
td.stats-view-value {{ cardCount }}
tr
td.stats-view-label {{_ 'card-archived'}}
td.stats-view-value {{ archivedCardCount }}
tr
td.stats-view-label {{_ 'labels'}}
td.stats-view-value {{ labelCount }}
tr
td.stats-view-label {{_ 'members'}}
td.stats-view-value {{ memberCount }}
tr
td.stats-view-label {{_ 'custom-fields'}}
td.stats-view-value {{ customFieldCount }}