Reported directly: the Frappe Gantt view (and the DHTMLX Gantt, WeKan Gantt,
Time and the ten report-chart views) each showed two untranslated
"Export to PDF" / "Export to Excel" links. They now share one translated
"Export" button that opens a new exportChartPopup - the same pop-over list
of formats the board/swimlane/list/card export popup uses, offering PDF
and Excel with the same icons and labels. The URL is built in exactly one
place, client/components/boards/charts/exportChart.js's chartExportUrl();
the five per-view copies of that helper (gantt.js, frappeGantt.js,
dhtmlxGantt.js, timeView.js, boardCharts.js) are gone. One delegated click
handler opens the popup with the view's data-chart-key as its data context.
The popup's title, exportChartPopup-title, is added to every locale from
that locale's existing "export" translation - no new words to translate.
Also from the same report: Frappe Gantt's own chrome was English in every
language. Its view-mode dropdown prints each mode's `name` and looks modes
up by it, so it now receives translated copies of Frappe's default modes
(GanttLib.VIEW_MODE) - Day/Week/Month from the existing keys, and four new
keys (gantt-view-hour, -quarter-day, -half-day, -year) added to every
locale as English placeholders to be filled next. Its hardcoded "Today"
button and "Mode" placeholder are rebuilt on every view change, so a
MutationObserver re-translates them (existing "today" key; new
gantt-view-mode), disconnected in onDestroyed.
tests/chartExportPopup.test.cjs pins all of it; boardViewMenu,
reportChartLibraries and timeViewReportAndExport updated from the old
per-view links to the shared button/builder.
Thanks to xet7 !
Frappe Gantt was embedded below WeKan's own Gantt view on the same page.
It is now its own separate Board View menu entry and page, matching how
every other view (Swimlanes, List, Calendar, Statistics, ...) works: pick
it from the Board View menu, see only that view.
Adds a third Gantt option the same way: DHTMLX Gantt Community Edition,
genuinely MIT-licensed as of v10 (verified against the LICENSE.md text
inside the published package, not just the npm license field - the
project's own issue #2870 rejected an earlier DHTMLX Gantt proposal in
2020 for being GPL, so that distinction matters here). Zero runtime
dependencies, lazy-loaded the same way as Frappe Gantt. Unlike Frappe
Gantt's CSS, dhtmlx-gantt's package.json has no "exports" map at all, so
its CSS resolves through plain subpath resolution with no vendoring
needed. It is a page-wide singleton (`gantt`, not a class instantiated per
container), so it is torn down with destructor() on every re-render and
template destroy rather than merely cleared.
Both alternatives draw the same start/due/end task set as WeKan's own
Gantt view and export through the existing 'gantt' chart export route.
A separator now also sits between Statistics and the Gantt group in the
Board View menu, matching the existing grouping convention.
Thanks to xet7 !
meteor build (and the dev server) failed with "Package subpath
'./dist/frappe-gantt.css' is not defined by exports" - frappe-gantt's
package.json only exposes a "style" CONDITION on its "." export, not a
"./dist/frappe-gantt.css" subpath, so rspack's Node exports-map enforcement
rejected the dynamic import() outright, on every build.
Its CSS is vendored verbatim into frappeGanttLib.css instead (~7 KB,
unminified structure kept for a readable diff on a later upgrade) and
loaded with a plain static import, the same way gantt.css/ganttCard.css
already are for the view above it - only the JavaScript itself still uses a
dynamic import(), which is the part actually worth lazy-loading.
Two repo-wide CSS policy tests (WeKan's own font-scale variable, and
left/right -> logical-property conversion for RTL) scan every client
stylesheet and do not have a precedent for a vendored file that is shipped
byte-for-byte on purpose; both gained a narrow, explicit exclusion for
files whose own header says "Vendored verbatim from", checked against that
header so the exclusion cannot silently drift from what it claims to cover.
Thanks to xet7 !
Two full-featured, permissively-licensed charting libraries replace the
plain CSS bars used so far, chosen for a copyfree license and a minimal,
auditable dependency tree over feature richness: Frappe Gantt (MIT, zero
runtime dependencies, ~15 KB gzipped) and Chart.js (MIT, one dependency -
@kurkle/color, also MIT). Both are loaded with a dynamic import() so their
code only reaches the browser when the relevant view is actually opened.
WeKan's own hand-rolled Gantt view (the week-grid table) is kept exactly as
it is; Frappe Gantt is added below it in the same board view
(client/components/gantt/frappeGantt.js/.jade/.css), drawing the same
start/due/end task set from the board's cards, opening a card on click, and
exporting to PDF/Excel through the existing 'gantt' chart export route
(models/exportCharts.js) rather than a second pipeline for identical data.
The 10 board report chart views (client/components/boards/charts/) draw a
Chart.js bar chart instead of a stack of CSS-width divs, reusing the same
computeBarRows data normalization and the same per-chartKey export route
unchanged - only the rendering changed.
Thanks to xet7 !