mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
A "Roadmap" view for organizing/summarizing cards by version or release milestone in a timeline layout, similar in spirit to a ProductPlan-style release roadmap chart. Structurally this is the existing Frappe Gantt view grouped by the VALUE of a board custom field (a "Version"/"Release"-style text or dropdown field) instead of one flat list of cards: a dropdown lets the user pick which custom field to group by (defaulting to the first text/dropdown field, or a clear empty-state message when the board has none), each distinct value renders as its own row, and every row is its own small Frappe Gantt timeline built from the SAME cardsToTasks()/loadGanttLib() code the plain Gantt views already use, plotted over the same startAt/dueAt/endAt card dates - no new charting library, no custom-field creation UI, this view only consumes fields the board already has. client/components/boards/roadmapView.js reuses client/components/gantt/frappeGantt.js's loadGanttLib/cardsToTasks/ popupDetailsHtml verbatim, and models/lib/chartCalculations.js's computeCardsByCustomFieldGroup does the pure "group cards by a custom field's value" fold (mirroring computeCardsByAssigneeGroup's shape: a card with no value falls into a "no value" sentinel group, sorted last). Registered in client/features/boards.js like every other board view. Extends tests/boardViewMenu.test.cjs's VIEWS array for the end-to-end menu/helper/template/stylesheet wiring, and adds unit tests (positive, negative and sort-order) for computeCardsByCustomFieldGroup and its translateGroupLabel handling in tests/chartCalculations.test.cjs. Thanks to datenwort and xet7 ! Closes #627,