mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
b77a1663d80cb3ee5d876c491da8508ca5f403bc
28
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
9c288c3d4d |
Date templates: one edit form and one badge instead of twenty-two copies.
Two shapes were copied across three files. The edit-a-date form - date, time, Save, Delete - existed eight times, letter for letter: the card's Received, Start, Due and End, a vote's end date, a planning poker's end date, a date custom field, and a ninth `datepicker` template that nothing included and no popup could open (a popup's template name ends in `Popup`). The date badge - the coloured date on a card and on a minicard - existed fourteen times. The JavaScript was already shared: client/lib/datepicker.js holds the state and the handlers, and each popup differs only in the field it stores. It was only the markup, so a change to the form meant eight edits and a change to the badge meant fourteen, with nothing to say so. Each is one template now - editDateForm and dateBadgeBody. They take what they draw as ARGUMENTS, because a helper is looked up on the template it is written in and not on the one including it: that is what lets one piece of markup serve them all while every popup keeps its own state, its own click and its own name. cardDate.jade went from 289 lines to 91, and the dead datepicker.js went with the template it wired up. The badge's `baseClass` is the trap this had to avoid: three of the fourteen - the custom-field dates - were never `.card-date` and must not become one, so the class each caller carried is passed in rather than baked into the shared markup. tests/dateTemplates.test.cjs pins that, the minicard kind classes, and that no state moved. Thanks to xet7 ! |
||
|
|
bd009cf601 |
Export a board, a swimlane or a list, in the card export's own layout,
with a popup for what to include. #1173 "Add Feature: Print Board with Params" has been open since 2017, and two things were missing. There was no CHOICE of what to print. The board's Excel and PDF exports took everything they knew how to render and nothing else, while the card export already had a popup with a checkbox per section. And they did not LOOK like the card export: the board's Excel export was a spreadsheet table, one row per card and eighteen columns, which is a data dump rather than a printed board. Both now render a board as its own header followed by every card as the CARD export's block, drawn by the card export's own code - cardBlockLines() for the PDF, ExporterExcelCard.renderCardBlock() for the Excel one. A card looks the same whether it was exported alone or inside its board, and the two cannot drift into two layouts again. Each card starts on its own page in the Excel export, because a printed board is read a card at a time. The swimlane and list menus offer the same export, which is the board export with one query parameter saying which cards are in scope. They sit beside "Copy link" rather than under the permission checks, because exporting is reading, and the file is named for what was exported - a PDF titled with the board that holds one list is a file nobody can place afterwards. The selection is one popup body used by all three menus, and one list: models/lib/exportFields.js, imported by the exporters and by every popup. The card export's list used to live twice, in the server and in cardDetails.js under a comment reading "Must match ALL_FIELDS ..." - which is a comment, not a mechanism, and a section added on one side is either a checkbox that does nothing or a section nobody can turn off. The same ?fields= now gates the same sections in both formats; the card popup's checkboxes used to say "fields to include in Excel export" and did nothing to the PDF. A card block cannot be streamed - it merges cells, styles them and returns to earlier rows - and models/server/ExporterExcel.js streams on purpose, after the in-memory version ate gigabytes on boards with thousands of cards. That exporter is still there and still reachable: unticking "Card details" asks for it. A checkbox, not a silent fallback. A board's per-card data is read once per collection and grouped by card. The card export's own per-card queries would be fifteen hundred round trips on a board of three hundred cards. tests/boardExportScope.test.cjs pins the shared block, the shared list, the gating, the three menus and the streaming exporter still being reachable. Two guards moved rather than being deleted: they pinned the board PDF building its own labels and the server's own copy of the field list, which is the behaviour that deliberately changed. Thanks to xet7 ! Fixes #1173, |
||
|
|
dcc6c8fe5d |
Version pane: five tables with a heading each, and what WeKan is installed as.
Admin Panel / Settings / Version was ONE table of 38 rows. The WeKan version, the OS load average, the DDP transport and a V8 heap counter were the same kind of thing in it: one flat list, read top to bottom, with no way to jump to the part you came for. Five tables now, each under a small heading, in the order somebody debugging reads them - Platform (what this IS), OS (what it runs on), Meteor (how it talks to the client: reactivity, reactivity order, DDP transport), Database (type, versions, commits, storage engine, OpLog, sessions) and Node (version, heap, memory). Reactivity and DDP moved to Meteor, where they belong: they are how the client is fed, and they were the two rows most often read as database settings. Whether an OpLog EXISTS stays with the database, because that is a property of it. No row was dropped; a test lists all 38 by name and requires each to still be shown. NEW ROW: what WeKan is installed as - bundle.zip, Snap, Docker or Sandstorm. It is the first thing a support answer turns on, and the pane never said it: the same version keeps its data somewhere else, carries a different database and gives the admin different reach in each of the four. models/lib/platformPackaging.js detects it, most-specific-first: an explicit WEKAN_PACKAGING wins (a packaging that knows what it is should say so, and it is how a future .deb or chart names itself), then Sandstorm, then snapd's own SNAP/SNAP_NAME, then a container runtime's marker file, then the bundle. Sandstorm and Snap are asked BEFORE the container markers on purpose: a grain is a container, and a confined snap can look like one, so the other order answers "Docker" for both. It claims nothing it cannot know - there is no "source checkout" answer, because a `meteor run` and an unpacked bundle are identical from inside the process. The detection is a pure function taking the environment, the Sandstorm flag and a file-exists callback, so all nine of its tests run here without a snap, a container or a grain - including that an empty SNAP is not a snap, that an empty WEKAN_PACKAGING falls through rather than blanking the field, and that an unreadable root answers bundle.zip instead of throwing an admin's Version page away. The headings are SMALLER than the pane title above them, and a test compares the two font sizes rather than trusting the CSS to stay that way: five headings at 1.25rem would read as five pane titles and "Version" would be lost among them, and an unstyled h3 - the browser default here - is larger still. Six new English strings; the other languages fall back to English until translated, as usual. tests/clientBundleImports.test.cjs caught the new stylesheet before it could matter: package.json sets meteor.mainModule, so a .css nobody imports is simply not in the bundle. It is imported from client/features/settings.js now. Thanks to xet7 ! |
||
|
|
2526552764 |
The left menu's caret does something when clicked.
The caret that folds the left menu away - on All Boards and in the Admin Panel - rendered, pointed down, and did nothing at all when clicked. Its template draws the caret; the click that folds the menu and the isLeftMenuCollapsed helper that says whether it is folded live in client/components/settings/leftMenu.js, and nothing imported that file. package.json sets meteor.mainModule, so the client is NOT eagerly loaded: a file nobody imports is not in the bundle at all. The click handler was never registered, so the caret was a dead control - and an unregistered Blaze helper is undefined, so the panel never took the collapsed class either, which is why even the caret itself never turned to point right. The same thing had happened to adminReports.css, which is why the Admin Panel reports lost their styling. One import fixes it. The new guard is what stops it happening a third time: tests/clientBundleImports.test.cjs walks the import graph from client/main.js and pins that every file under client/components which REGISTERS something with Blaze - a template's events, helpers or lifecycle, a global helper, a BlazeComponent - is reachable from the entry point, and that every stylesheet and template beside them is too. A file that only exports helpers is left alone: whoever uses it pulls it in. It carries the negative case as well, checking that removing this very import is reported rather than shrugged off. Thanks to xet7 ! |
||
|
|
0461de062f |
Board: the second header bar is gone. It was the last one.
Three things, as asked. NO DUPLICATE BOARD NAME. The second bar drew the board's title in an `h1` of its own, under the same name in the bar above it. The first bar has said it since the first step of this work; the h1 is gone. THE PENCIL IS BESIDE THE NAME. Renaming a board belongs next to the board's name, not in a bar of its own, so `boardEditTitleButton` renders immediately right of the title in the first bar. Board admins only, as before. EVERYTHING ELSE IS AN ICON, LEFT OF THE BELL. Visibility, watch, star, sort, the board's rule buttons, filter, search, dependencies and Multi-Selection, each named by a tooltip and none carrying a visible label. The bar is one row shared with the logo, the starred boards, the view menu, the bell and the user menu; ten labelled buttons do not fit at any width. The desktop/mobile duplication went with it. The old bar wrote the whole set out TWICE - `unless isMiniScreen` and `if isMiniScreen` - because a row of labelled buttons does not fit on a phone. Icons do, so one copy serves both, and the two switches that had to be kept in step are gone rather than kept in step. headerBarControls.jade is deleted. It held one Search button and one Multi-Selection button, written for this bar and All Boards'; both bars are gone now, so a template shared by nobody was indirection rather than sharing. Every route reference goes with the bar: config/router.js names no headerBar at all any more. Six guards followed, and four of them existed only to measure this bar: the title-plus-buttons row that a long board title split across two lines, the wrapper that fixed it, the phone layout, and the hamburger that shared the first row with the title. All of that was one problem, and the problem is gone with the row. Each says so where it used to measure it, rather than being deleted. Thanks to xet7 ! |
||
|
|
705bed7413 |
Header: a page's controls move into a right sidebar.
Second of the header restructure. The title moved to the first bar last time; the buttons move here, so a page is its content plus one panel rather than its content plus a strip of buttons above it. Four pages had controls in their second header bar: My Cards, Due Cards, Global Search and Rules. Each group becomes a <page>Controls template, and the shared page sidebar renders it. Their header bars are gone entirely - title moved, controls moved, nothing left to hold - and the routes no longer name them, which they must not: a route naming a template that does not exist renders "No such template" in that bar. The handlers followed their markup. A Blaze event map only sees events inside its OWN template, so Template.dueCardsHeaderBar.events would have fired for nothing once the buttons were somewhere else. The sidebar itself is the board sidebar's shell again - the same classes, the same close button, the same content area - with the two things the All Boards one had to learn: the theme goes on a WRAPPER, because every themed sidebar rule is a descendant selector and a class on `.sidebar` matches nothing; and it is pinned to the viewport below the measured header height, sharing that rule with the All Boards panel rather than restating it. Which sidebar the hamburger opens now depends on where you are: a board's own, All Boards' own, or this shared one. And it is only drawn where it opens something - a page with no controls has no sidebar and no hamburger, because a panel that opens empty is worse than no panel. One guard needed correcting: the All Boards geometry test read a single selector, and that rule is a selector list now. What is still NOT done: the board's own second bar and All Boards' own, whose controls have a sidebar to move into but have not moved yet, and the Admin Panel's tab bar. The pages that were only a title - Support, Shortcuts, Accessibility, Broken Cards, Import, Archive - keep their second bar for now; they have nothing to move, only a title to drop. Thanks to xet7 ! |
||
|
|
fcfed1fd37 |
All Boards: Search and Multi-Selection become the board header's controls.
All Boards had a search FIELD in its header bar, and a Multi-Selection button whose actions were four icons beside it. A board has a search BUTTON and a Multi-Selection button, and both open the right sidebar. Two pages, the same two control names in the same place, behaving differently - and one of them not the way the rest of WeKan does. They are the board's now, and they are the same markup: headerBarControls.jade holds one headerSearchButton and one headerMultiSelectionButton, included by the board header of the Swimlanes view and by the All Boards bar. The two copies had already drifted - the close button that turns Multi-Selection off said "Clear filter" on the board header, which is what a different control does, and says multi-selection-off in both now. Only the markup is shared. What a click does is not - a board searches and selects cards, All Boards searches and selects boards - and it does not need to be: a Blaze event map catches events from the templates rendered inside it, so each bar's own map sees the clicks on its own copy. isActive is passed in, because the two pages keep different selection objects. All Boards has a right sidebar of its own. Not the board one: that is built around a board's members, labels, activities and settings, and this page has no board. It borrows the SHELL - the same .board-sidebar.sidebar classes, the same close button, the same title-and-back-arrow above a view - so the two look and behave alike, and it has three views. home, what the hamburger opens, is the page's menu: Search, Multi-Selection, and Boards in Archive, which had a handler in the header bar and no way to reach it. search is the field that was in the bar, still writing the page's own search term so the boards behind it narrow as you type. multiselection is where the actions on a selection went - star, home, archive, duplicate and a way out - each with its name beside it instead of being a crowded icon. Open/closed and which view are separate, so closing does not forget where you were, and Escape closes it by KEY only: the click half of EscapeActions would close it on every click, including clicks inside it. The bar also gained the divider and the hamburger, in their own flex item and last in the source exactly as the board header has them, which is what keeps the hamburger in the top right on a phone while the other buttons wrap. Two things this turned up. A .jade file is not picked up by being on disk - it has to be imported from client/features/, and the shared controls threw "No such template: headerSearchButton" on render until they were; a guard now requires every .jade under client/components to be imported and every +template it includes to exist, and it found a dangling +subtaskDeleteDialog that has never had a template (unreachable, so it has never thrown, and it is recorded with that reason rather than hidden). And deriving a template name from a view name gave allBoardsMultiselectionSidebar for allBoardsMultiSelectionSidebar - one letter, renders nothing, no error worth the name - so the names are an explicit map the guard checks. Written down in docs/Design/Page/Search.md and Multi-Selection.md, one per shared control, each covering both pages, with All-Boards.md pointing at them. Four guards pinned the previous shape and now pin this one, each saying why it changed: the search field in the bar, the four selection buttons in the bar, the Multi-Selection parity check that is structural now that there is one template, and the home-board action that moved to the sidebar. Thanks to xet7 ! |
||
|
|
05e9cbc7c6 |
All Boards: one row of controls in the header bar, and a Table view.
Design: docs/Design/Page/All-Boards.md, whose Table view is the shared table page (docs/Design/Page/Table.md) and which describes only what is different here. ONE ROW OF CONTROLS. The page carried its own row above the board icons - Multi-Selection with its archive and duplicate actions, Sort, the search box - in .boards-path-header, while the second top header bar above it held only the title. Two rows of controls on one page, one of them styled like the board header of the Swimlanes view and one not. Starred, Sort, Search, Multi-Selection and the view menu are in the header bar now, as .board-header-btn with the same Font Awesome glyphs and the same emphasis state, so this page agrees with every other page about where a WeKan page puts its controls. The actions ON a selection stayed with the boards: Archive, Duplicate and the "Selected:" star/home actions appear only while something is selected and are about those rows, not about the page. SEARCH IS A FIELD, not a button that opens a search view. It filters as you type, searches across all your boards ignoring the selected section while it has text, and Escape clears it - the old right-pane behaviour exactly. That is a deliberate difference from the board header, whose Search opens a search view over cards; here it filters the list it sits above. THE VIEW MENU names the CURRENT view - "Lists" or "Table" - not the words "Board View", the same as the board header, which says "Swimlanes" or "Lists" rather than naming the menu. Lists is the default and is what an account that has never chosen sees. The choice is kept in localStorage rather than on the user document: it is a view preference for one page and changes nothing anybody else can see. A board's view IS on the profile, because it follows the user between devices; this deliberately does not. THE TABLE VIEW is the shared table page, editable - which is what separates it from the other board table, /public, which is read-only. Columns: Edit, Board title, Board description. Ten rows a page. Edit opens the SAME popup the Swimlanes view opens from its board menu, not a copy of it. That took one change: boardChangeTitlePopup's submit read Utils.getCurrentBoard(), which is the board you are looking at - and on All Boards you are not looking at one. It takes the board from its own data context when it has one and falls back to the current board, so the board header is unchanged. TWO THINGS THE REFACTOR NEEDED. The state had to be shared. boardListHeaderBar and boardList are separate Blaze instances - the bar is rendered into the layout's headerBar region, the page into its content region - so the search field would have filtered nothing. The search term and the selected section are module-level ReactiveVars now, assigned onto the page instance so every `tpl.boardSearchVar.get()` already written keeps working. And "which boards am I looking at" had to stay one answer: the `boards` helper's body is `boardsForView(tpl)` now, called by both views, because two copies of a membership + section + search + sort + paging query would drift. The view module is split in two for the same reason the others are: which views exist and which is the default is pure (models/lib/allBoardsView.js) and unit tested; the ReactiveVars and localStorage are Meteor glue and cannot be loaded in a plain Node test. The guard in tests/addBoardTileHeight.test.cjs pinned the ORDER of the three controls inside .path-right. That row is gone on purpose, so the guard now pins the order where the controls are - and that the page body does not also carry them, which is the thing that was wrong. Thanks to xet7 ! |
||
|
|
54915db250 |
/public is its own read-only table page, not All Boards with a different query.
docs/Design/Page/Public.md is the design; it describes only what is different
about this page and links back to docs/Design/Page/Table.md for everything shared,
which is that page's own rule.
WHAT IT WAS. /public rendered `boardList` - the All Boards page - with its query
swapped for `{ permission: 'public' }`. That brought the whole of All Boards with
it: the Starred / Templates / Remaining menu counting the user's OWN boards beside
a grid that was not, the workspaces tree, the org and team filters,
Multi-Selection with its archive and duplicate actions, the sort popup, board
dragging, and an "Add board" tile that made a private board from a page about
public ones. Multi-Selection offered to archive boards the visitor has no rights
to at all.
WHAT IT IS. Only the table. Two columns - board title and board description - ten
rows a page, paged and counted on the server. No left menu, no create, no
selection, no drag, and nothing on the page changes anything: a row's only action
is to open its board.
It supplies a rowTemplate rather than a text-cell column spec, because a row is a
LINK and carries its board's colour class and background image - so a board is
recognised here the way it is on All Boards (#5157) - and a text cell can express
neither. Read-only is about what the page can CHANGE: the row template renders one
anchor and no control.
WHAT A PAGE COSTS. Six fields for ten boards, not ten board documents: title and
description for the columns, slug for the link, color and backgroundImageURL for
the row. `members` is deliberately absent - it is the largest field on a busy
board and this page shows no avatars. The selector is built on the SERVER and
takes nothing from the client: public, not archived, a real board rather than a
template container, and not an internal ^Subtasks^ board. A search goes in as its
own $and term rather than replacing the title clause, or it would drop that last
exclusion.
Not carried over from the tile: member avatars, the per-list card counts, and the
spent-time clock. What a visitor needs of a board they do not belong to is what it
is called and what it is for; the rest is the inside of a board they have not
opened, and each costs a query the page would otherwise not make - the clock in
particular answers by looking for cards, which this page does not publish, so it
would read false for every board on every instance.
client/lib/reportPages.js now declares the DDP-only page-index collection, because
`new Mongo.Collection(name)` throws if the name is taken and it was declared
inside adminReports.js - so the second page to need it could not have one. The
guard in tests/adminPageRows.test.cjs that pinned that declaration is updated with
the reason: what it protects (declared once, from the shared constant, never a
typed string) is unchanged, it just lives in a different file.
tests/publicBoardsPage.test.cjs pins the route, that none of the All Boards chrome
is on the page, that a row carries no control, the two columns and one cell each,
that the labels are translation keys that exist, that paging is ten a page on the
server and the rows drawn are the ids the server named, exactly which six fields
the publication sends, that the selector is server-built and survives a search,
the row colouring, the shared collection, that the files are registered in the
bundle, and that every path the design doc names exists.
Thanks to xet7 !
|
||
|
|
3487d2519d |
One icon set: Font Awesome. The Grey Icons feature is removed.
WeKan used colourful Unicode emoji as its icon set in 8.00-8.24 only; before and after, the icons are Font Awesome 4.7. A handful of emoji had survived that change - every notification type, the board star, the vote-against thumb, the spent-time badge, the reaction and add buttons, the list width toggles, the bookmarks star, the back arrow, the custom-field pencil, the notification bin, the sidebar's plus and hash, the four date badges in cardDate.css and minicard.css, the mobile drag handle, the multi-selection tick, and the gantt day markers. Each of those is a different picture on every platform, at a size and colour the stylesheet does not control. They are Font Awesome glyphs now: either an `i.fa` element, or the codepoint (`content: "\f11e"`) with the font named, since `time::before` is not an `.fa` element. The helpers that produced an emoji return a class name instead, and their templates render an `<i>`. "Grey Icons" in Member Settings existed to grey exactly those emoji. It ran a MutationObserver over every rendered subtree, for the whole session, wrapping any text node that was one of ~50 emoji in a span it could greyscale - and only 13 of those emoji were still anywhere in the app. With them gone it has nothing left to find, so the feature is removed whole: the menu entry, the click handler, the `toggleGreyIcons` method, the `hasGreyIcons` helper, the `profile.GreyIcons` schema field and its published-fields entry, the `userGreyIcons` publication and its subscription, unicode-icons.js/.css and the feature import, twelve `body.grey-icons-enabled` CSS rules across six stylesheets, the `grey-icons` string in all 147 language files, the field in public/api/wekan.yml and wekan.html, and the two mentions in docs/DeveloperDocs. The language flags in the language picker stay: Font Awesome 4.7 has no flags. tests/fontAwesomeIcons.test.cjs fails on an emoji in any template or any CSS `content:`, checks the date badges name the font and use the four codepoints, checks the icon-producing helpers return class names, and checks that no part of the removed feature is left anywhere. Thanks to xet7 ! |
||
|
|
b72a4996dd |
Admin Panel: remove the Features tab.
Its last three panes - Performance, Security and Notifications - moved to Admin Panel /
Problems in
|
||
|
|
33a0cf6160 |
Design docs: move Table-Page.md under Design/Page/, and add Left-Menu.md.
docs/Design/Table-Page.md -> docs/Design/Page/Table.md, with every reference updated: the three design docs that link to it (History, CPU-usage, Recovery), the code comments in the shared template, stylesheet and helpers, and the four test suites that read it. Its own link to History.md is re-based, since the file is one level deeper now. docs/Design/Page/Left-Menu.md is the second page design: the menu beside the content on every Admin Panel page. It records what those seven menus share, which pages use it, the entry shape, and how a page adds one. Which side it is on is part of the design, not an accident of the markup: for a left-to-right language the menu is on the LEFT with the content to its right; for a right-to-left language the whole panel MIRRORS - the menu is on the right, the content to its left, and inside each entry the icon and label mirror too. That works only through the document direction plus logical CSS, so the doc says to never write left/right/margin-left/padding-left for this menu. Checking that turned up two places where the current CSS did exactly that: - .side-menu had `box-shadow: inset -0.2vh ...`. An inset shadow offset on the X axis is a PHYSICAL direction and does not mirror, so it shaded the wrong inner edge once the menu moved to the right. The X offset is dropped. - the entries used `padding: 1.3vh 0 1.3vh 1.3vw`, i.e. padding-LEFT, so under an RTL language the indent stayed on the left - the outer edge of a right-hand menu. Now padding-block + padding-inline-start. Theme: the menu was entirely hard-coded greys. Most of it stays neutral on purpose - it is chrome, and tinting the whole card would fight the content beside it - but the entry you are ON now takes the per-user theme accent (Member Settings -> Change color sets --theme-accent on :root), with `inherit` as the fallback so the WeKan default look is byte-for-byte unchanged when no colour is chosen. No brand colour is hard-coded in the menu. The shared pieces are in place: client/components/settings/leftMenu.jade renders the menu from an item list, and models/lib/leftMenu.js turns (items, activeId) into it - marking exactly ONE entry active, dropping conditional holes, and supporting group separators. Tests: tests/leftMenu.test.cjs is the one suite for this design - the pure helpers, the template, the mirroring, the theming, the shared narrow-window stacking, and that every path in the doc's related-files table exists. NOT done yet: the seven Admin Panel templates still render their own copy of the menu markup. Converting them to +leftMenu is the next step; the design, the template, the helpers and the tests it will be checked against are ready. Thanks to xet7 ! |
||
|
|
9791993d59 |
Table pages: one design, one implementation, and a layout that fits the window.
Files, Rules, Boards, Cards, Impersonation, Recovery and the four event streams
(Security, Speed, Tests, CPU usage) were ten copies of the same page: the same
title + search + prev/next markup, the same currentPage/totalPages helper pair,
and the same click/keydown handlers, retyped with a different js- prefix each
time. They had drifted apart, and any layout fix had to be made ten times.
They now render through ONE template and differ only in a column list:
{ label | labelKey, value(doc), align, nowrap, cls, userId(doc), data(doc) }
- client/components/settings/tablePage.jade - title, optional status row,
controls, table. The row ORDER is defined here once.
- client/components/settings/tablePage.css - the layout.
- models/lib/tablePage.js - pure pageInfo() / buildRows() / buildHeader() /
columnWidthPercent(), unit-tested without a browser or a database.
adminReports.jade 349 -> 112 lines, its CSS 134 -> 53, ten templates -> four,
twelve page/total helpers -> none, twenty-four control handlers -> four.
Layout fixes, now made once and reaching every page:
- The table is width:100% with table-layout:fixed, so every column gets the SAME
percentage of the width and the table can never grow wider than the panel. With
the default auto layout one long id or file name widened the table past the
panel and pushed its right-hand columns outside the browser window.
- Cells wrap: overflow-wrap:anywhere breaks even an unbroken id, URL or file name
inside its column. Datetime columns opt out with nowrap.
- .table-page has min-width:0 / max-width:100% so it can shrink inside the flex
.main-body instead of setting a min-content floor; only the table's own wrapper
may scroll sideways, never the page.
- At <= 800px the side menu goes full width on top and the table sits BELOW it.
This deliberately overrides the older "always side by side, even on narrow
windows" rule, which on a phone left the table a few dozen pixels wide with its
right-hand columns unreachable. Above that width the menu keeps its place and
the table sits beside it.
- Rows top to bottom: title, status (the live CPU figure on the CPU usage page),
controls, table.
Paging still loads only the current page - the publications apply limit/skip -
and loadReport now takes that window from the SAME pageInfo() call that renders
"page X / N", so what is fetched and what is displayed cannot drift apart.
Docs: the shared design moves out of the History design doc into
docs/Design/Table-Page.md, which lists every page that uses it (table name, menu
path, description) per group. History.md, CPU-usage.md and Recovery.md now link
to it and keep only what is specific to them.
Tests: tests/tablePage.test.cjs (18) covers the pure helpers - including a page
that no longer exists clamping to a real one, and a short row never shifting the
columns - plus the layout rules the doc promises and the "one implementation"
guarantee. Four existing tests that pinned the old per-report markup were updated
to the new mechanism, same intent.
Thanks to xet7 !
|
||
|
|
a440d44ea4 |
Remove the cron migration subsystem: it never ran and had no UI.
Nothing scheduled it and nothing rendered it, but every logged-in client still paid for it: - initializeCronJobs() (server/cronMigrationManager.js) was NEVER called, so the SyncedCron.add() registrations and the 5s job-queue processor never started. - boardMigrationDetector.start() sat behind a commented-out Meteor.startup hook, with the note "Automatic migration detector is disabled - migrations only run when opening boards". - The Admin Panel had no Cron page at all: no route in config/router.js, no button in settingHeader.jade, no template ever included, and every helper, event and reactive var for it commented out in settingBody.js. - Yet imports/cronMigrationClient.js WAS imported by client/imports.js, so every client subscribed to three publications and polled cron.getMigrationProgress every 10 seconds, forever, for a feature with no user interface. Migrations already run - and are already reported - through the paths that work: Admin Panel -> Attachments (database migration) and the on-board-open repair, both driven by the shared migrationProgress overlay dashboard mounted app-wide in defaultLayout, plus the in-progress list on Admin Panel -> Problems -> Summary. Removed: cronSettings.jade/.css, imports/cronMigrationClient.js, models/cronJobStatus.js, server/cronMigrationManager.js (28 admin-gated cron.* methods that no UI called), server/cronJobStorage.js, server/boardMigrationDetector.js and the three publications that fed only the deleted client module (cronJobs, cronMigrationStatus, migrationProgress). KEPT on purpose: server/cron/syncedCron.js, which is SyncedCron itself and is used by the backup schedule (server/methods/backup.js) and scheduled rules (server/scheduledRules.js). getInProgress() in server/lib/systemStatus.js no longer reads cronJobStatus. Leaving that check would have been worse than useless: a leftover status:'running' doc from an older version now has nothing to clear it, so Admin Panel -> Problems would report "Migration job X running" forever. The 40 i18n keys that only the deleted template used are left in place - dropping them from every language file would discard human translations for keys that may be reused. Thanks to xet7 ! |
||
|
|
1fb32b226f |
Admin Panel report styles were never loaded, so pagination buttons rendered black.
client/components/settings/adminReports.css was not imported anywhere, and
package.json sets meteor.mainModule, which disables Meteor's eager loading - so a
CSS file that nothing imports is simply not in the bundle. None of the Admin
Panel report styling was applied, and the prev/next buttons fell through to the
global rule in forms.css:
button { background: var(--theme-accent, #000) }
which is BLACK when no custom theme colour is set. Import it from
client/features/settings.js next to the other settings stylesheets.
Also add client/components/main/paginationControls.css: one themed look for
EVERY prev/next control in WeKan (admin reports, people/org/team/domain, All
Boards, board Table view, cron tables). forms.css also styles button:focus
(var(--theme-accent, #222)) and button:active (#111 / #e6e6e6) at a specificity
equal to or higher than a plain `.some-pagination button` rule, so even a loaded
stylesheet lost as soon as the button was clicked: pressing "next" left it with a
dark grey or grey background until it lost focus. Every state is now spelled out
at a specificity that beats the global rules, all colours come from
--theme-accent with WeKan blue as the fallback, disabled is the same themed
outline faded rather than a grey block, and the "3 / 42" page info inherits the
surrounding text colour instead of a hard-coded #333 that vanishes on dark
backgrounds.
Thanks to xet7 !
|
||
|
|
a82bb351e4 |
Fix cards not opening: register the cleanFilename client helper
client/components/main/safeFilename.js registers the global Blaze helpers
cleanFilename and downloadFilename, but it was never imported on the client, so
the helpers were never registered. Every template that uses {{cleanFilename name}}
-- card attachment thumbnails (client/components/cards/attachments.jade) and the
admin Files report -- therefore threw "No such function: cleanFilename" during
render. On a card with attachments this aborted the card's Tracker recompute, so
clicking a card did nothing (the card would not open).
Import safeFilename.js from client/features/main.js alongside the other
client/components/main modules so the helpers are registered at startup. Guarded
by tests/fileNameDisplay.test.cjs.
Thanks to mueschel, brlin-tw and xet7 !
Fixes #6493,
|
||
|
|
9ea7f11d27 |
Show a full-page maintenance spinner while data recovery is in progress
#6492: while the SQLite text data is being recovered/remediated, users should see a maintenance spinner instead of errors or half-loaded data. - A published singleton status (models/recoveryStatus.js) carries an "active" flag + message. The publication (server/publications/recoveryMaintenance.js) is PUBLIC so even logged-out users on the sign-in page see it; the toggle method (setRecoveryMaintenance) is admin-only. - The client overlay (client/components/main/recoveryMaintenance.*) shows a full-screen spinner + message when active; it is subscribed globally and rendered in both the app (defaultLayout) and sign-in (userFormsLayout) layouts, above modals/popups. - The startup scripts write a RECOVERY_IN_PROGRESS marker when they restore/re-migrate. On startup the WeKan server (server/recovery.js) shows the spinner while the marker is present, verifies the database serves reads (probe), then clears the marker and the spinner — or, if it still cannot read, keeps the spinner and records that manual recovery is required. Admins can also toggle maintenance for a server-initiated re-migration. Tests: tests/recoveryMaintenance.test.cjs (wired into npm run test:unit:node) — the publication is public while the toggle is admin-gated, the overlay is subscribed and rendered in both layouts above everything, the server shows the spinner from the marker and clears it only after a health probe, and the scripts write the marker. Mirror- validated (no Node runtime here); shell/brace/JSON all checked. Thanks to bluetopaz1204, mueschel and xet7 ! Fixes #6492, |
||
|
|
616304e2d0 |
Fix Statistics board view: import statsView so the template is registered
statsView.jade / statsView.js / statsView.css existed but were never imported anywhere in the client build, so the `statsView` Blaze template was never registered. The board body's `+statsView` include (selected when the user's boardView is 'board-view-stats') therefore rendered nothing — the board header showed "Statistics" (that only reflects the persisted boardView) while the board canvas stayed empty. The Statistics view had never actually rendered. Import the three files in client/features/boards.js alongside the other board views (tableView), so the template, its helpers and its styles are in the bundle. Thanks to xet7 ! |
||
|
|
0085f7fbfa |
Admin Panel: Problems button + page (Summary/Security/Speed/Tests), replaces banner & Reports button.
- 2nd header bar: add a Problems button (warning icon) to the RIGHT of the Info (version) button; it turns red when there are new problems (settingHeader.js polls eventLogProblemAreas). Remove the old Reports button; the Admin Panel still opens on Settings. - The former Reports page is now the Problems page: left menu Summary / Security / Speed / Tests, then a separator, then the moved Broken Cards/Files/Rules/Boards/ Cards/Impersonation items. - Summary (problemsSummary, renamed from the removed top banner): the checkbox list + one Acknowledge button — the ONLY place to acknowledge. - Security/Speed/Tests: read-only, paginated, searchable event tables via new admin-only eventLogPage/eventLogCount methods; acknowledgeEventLog now takes a stream or array. - i18n keys + CSS + source-guard tests + design doc updated. |
||
|
|
4f4140e02b |
Admin Panel: top banner for new Security/Speed/Tests problems, with Acknowledge.
Like the Announcement banner, the Admin Panel top now shows, for each problem
area with unacknowledged events, its menu path (Admin Panel -> Reports ->
Security/Speed/Tests) and the count of NEW problems. Each area has an Acknowledge
button that marks the newest problems seen, zeroing the count and removing the
info from the top.
- models/eventLog.js: add the eventlogAcks collection and admin-only methods
eventLogProblemAreas() (count of events newer than each stream ack) and
acknowledgeEventLog(stream) (upsert ack = now).
- client adminProblemBanner.{jade,js}: poll the counts, render path/count/button,
acknowledge on click; included in settingHeaderBar (top of every admin page).
- i18n keys (securityReportTitle/speedReportTitle/testsReportTitle/new-problems/
acknowledge) + banner CSS. Source-guard tests added.
|
||
|
|
3c9524f61a |
Member Settings / Font: pick an installed font + preset size (#4759).
New "Font" entry in the member menu opens a popup with a dropdown of fonts DETECTED as actually installed in the browser (no free typing) and a Font size dropdown of sensible presets (Smaller..Largest, no typed numbers). Both have a Default option that unsets the custom choice. Security: font names and size keys are validated server-side against a curated whitelist / preset list (models/lib/uiFonts.js), so only a known safe font name and a preset percentage ever reach the DOM. Labels are plain text (Blaze-escaped) — never HTML or markdown. No CSS-injection surface. - models/lib/uiFonts.js: UI_FONTS whitelist + SAFE_FONT_RE + isKnownFont / fontFamilyValue and UI_FONT_SIZES presets + isKnownFontSize / fontSizeValue. - client/lib/fontDetector.js: canvas width-comparison detection of installed fonts, filtered to the whitelist. - profile.uiFont / profile.uiFontSize schema + getters; setUiFont / setUiFontSize methods (validated, null/default unsets). - changeFontPopup (font + size dropdowns, both with Default) wired in userHeader.js; applied UI-wide via CSS variables in uiFont.js + uiFont.css (marker body classes), wired into client/features/main.js + client/styles.js. - i18n change-font/font/font-default/font-size(+presets); tests/uiFonts.test.cjs (pure + negatives + source guards) wired into test:unit:node. This is a Member Settings feature (not an Admin Panel option). Fixes #4759. |
||
|
|
d0a1e43f36 |
Select Color: two-level dropdown picker + custom colors (#5778).
Both Board Settings and Member Settings Change Color now use a shared
category -> theme two-level dropdown picker with custom color wheels for the
flat (1 color) and clear (2 colors, a color slide) categories; dark/special
are fixed. Custom colors are validated server-side as #rrggbb, stored in
board.customThemeColors / profile.globalThemeCustomColors, and applied as
CSS variables (--theme-accent / --theme-accent-2) consumed by customTheme.css
to recolor the header, primary buttons and sidebar button.
- client/components/main/themeColorPicker.{jade,js}: shared picker, scope
"board" or "global", reusing the #5514 native color wheel + themeCategories.
- board.setColor(color, custom) + setGlobalThemeColor(color, custom): validate
via isValidCustomColors (flat/clear + count + hex) before storing.
- boardChangeColorPopup and changeColorPopup now render the shared picker;
removed their old swatch-list helpers/events.
- globalThemeColor.js: apply custom colors as :root CSS variables (board own
colors on a board, else the user global override) + marker body classes;
customTheme.css consumes them.
- Wire globalThemeColor.js / themeColorPicker into client/features/main.js and
customTheme.css into client/styles.js. This also fixes globalThemeColor.js
never having been imported (so the #5778 override now actually loads).
- i18n theme / theme-category[-flat/clear/dark/special]; tests
themeColorPicker.test.cjs + updated globalThemeColor.test.cjs.
Fixes #5778.
|
||
|
|
09805a8a91 |
Lazy card loading (client) + Admin Panel / Features section
Client side of CARDS_LOADING=lazy. In lazy mode each list's cardsWithLimit subscribes to boardCardsWindow for just the cards it renders (growing with the infinite-scroll limit) and to boardListCardCount for the total; showSpinner uses that server count to decide whether more cards remain, since minimongo now holds only the loaded window. Default 'all' mode is unchanged (helpers short-circuit on isLazyCards()). Adds Admin Panel / Features — a new admin section (route /admin-features, nav entry, adminFeatures template) intended as the home for optional / performance / future tier-gated capabilities. First control: "Card loading" (all | lazy), which writes the cardsLoading Setting; it mirrors, and is overridden on startup by, the CARDS_LOADING env var. Includes an experimental-note (counters/WIP limits and the Calendar/Table/Gantt views reflect only loaded cards; reload boards after change) and the i18n keys. |
||
|
|
453fc3849f |
- Fix Board Table view not loading with "No such template: tableView" error.
The `tableView.jade`, `tableView.js` and `tableView.css` files of the new Board Table view were never imported in `client/features/boards.js`, so the `tableView` template was not bundled and selecting the Table view threw a Tracker recompute exception. Added the missing imports. Thanks to xet7. |
||
|
|
b909f82f89 |
Add card dependency 'Red Strings' connection lines / PI program board (#3392)
Visualize card-to-card dependencies as red connection lines drawn on top of the board (SAFe PI-planning program board). Cards gain a 'cardDependencies' array (target card ids on the same board), edited from a new Dependencies section in the card detail (pick/remove other board cards). A board header toggle (showDependencies board setting) renders an SVG overlay over the board canvas that draws a red, arrow-headed curve from each card to each of its dependencies, positioned from the live minicard rects and recomputed on board data changes, canvas scroll and window resize. The overlay is pointer-events:none so cards stay interactive. Fixes #3392. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|
|
f0bce67a3b |
More Import Export and Rules features.
Thanks to xet7 and Claude ! |
||
|
|
899617bd4d |
Greatly improved import from Trello to WeKan.
- Attachments now import. Trello attachment URLs require OAuth to download, so
WeKan could not fetch them. The Trello import page now has two separate file
fields: a **.json** field for a single Trello board, and a
**.zip** field for a package produced by the
[Trello Card Attachments Downloader](https://github.com/wekan/trello-attachments-downloader).
The .zip may contain one *or more* board .json files together with each
board's attachments in a board-name subfolder. The .zip is uploaded over HTTP
and processed entirely on the server (the attachment bytes never travel over
the realtime WebSocket, which previously overflowed the connection and made
the page flicker): WeKan detects every board .json, matches each board to its
attachment subfolder by name, streams each file straight into the Default
file storage, imports all boards, then opens All Boards. The upload is guarded
against abuse — it rejects oversized uploads, zip bombs (too many files or too
much uncompressed data, per-file size caps) and unsafe entry paths (absolute
paths or `..` traversal), and never overwrites existing files (stored under
generated ids). The importer also reads attachments from `card.attachments`
(newer Trello exports), not only from the action log, and uses the correct
Meteor-Files insert API (the previous calls were no-ops on Meteor 3). Single
board imports (the .json file or the pasted JSON, after the map-members step)
now run through the same server-side HTTP path rather than the realtime
`importBoard` method, so a heavy import can no longer drop the WebSocket and
get retried in an endless loop (the page flickering with "Invalid frame
header" / repeated "logged out" errors). When importing only a single board
.json and you have saved Trello API key and token, WeKan uses them on the
server to download that board's attachments, background image, member
avatars and card stickers from Trello (a .json export often omits stickers;
avatars only fill in mapped users who have none — an existing avatar is never
overwritten); each download is best-effort and a failure never aborts the
import. After a single-board import the new board's data is subscribed and
loaded before opening it, so it shows its swimlanes, lists and cards
immediately instead of needing a browser page reload (the HTTP import, unlike
the old realtime method, does not push the written documents to the client by
itself).
- Import Trello-only card features: stickers (shown as Font Awesome icons on
minicards and the card detail), card cover (color or attachment), card
location (name, address, coordinates with an OpenStreetMap link), and the
due-date "complete" checkbox shown on the minicard. Trello's two named
sticker packs are renamed and highlighted (the icon keeps its normal colour)
so they stay distinct: the "taco" pack becomes "mascot" with an underlined
icon, and the "pete" pack becomes "computer" with a ring around the icon,
e.g. "pete-ghost" imports as "computer ghost" with a Snapchat-ghost icon.
Several named stickers that used to share an icon now get their own Font
Awesome 4.7 icon (mascot active => heartbeat, pixel => qrcode, proto =>
flask, embarrassed => meh-o, clean => bath, computer shipped => truck).
- Live Trello API import: paste your Trello API key and token on the Trello
import page to list all your Trello workspaces and boards, then import all
or selected boards together with their attachments (downloaded
server-side). Imported boards are placed under a personal workspace named
after their Trello workspace, created by name if it does not exist, under an
optional parent workspace you choose. The API client respects Trello's rate
limits: it spaces out requests, honours `Retry-After` on HTTP 429, retries
transient 5xx and network errors with capped exponential backoff, and
reports a clear error on an invalid key/token (401). After a successful API
import you are taken to the All Boards page where the new boards appear.
- The live API import runs as a background job on the server: you can navigate
away and come back to the Trello import page to watch progress, see
per-board results, and read the full error log. Errors are shown in a
selectable text box with a one-click "Copy to clipboard" button (and you can
still select and copy just part of the text) so they are easy to share when
fixing issues. If the import stops on a fatal API error (invalid token, or
rate limit still failing after retries) you can fix the cause and Resume
from where it left off, and a server restart leaves the job paused for
resuming rather than lost. You can also Cancel the import, or Cancel and
delete the boards already imported, to start the whole process over cleanly.
- You can optionally save your Trello API key and token with the Save and
Delete buttons on the import page. When saved, they are stored only on the
server, never sent back to the browser, and are reused automatically when
you list workspaces or import (so you do not have to paste them again); a
"saved" indicator is shown, Save can overwrite them with new values, and
Delete clears them from the database. If you do not save them, they are kept
only in server memory for the running import and re-supplied when you resume.
- Larger Trello JSON exports can be selected as a file instead of pasted.
- Keep imported usernames for later mapping. Imported members that match an
existing WeKan user (by username, or by a previously recorded imported
username) are mapped automatically, and the imported username is remembered
on that user so future imports map too. Members with no matching WeKan user
are no longer lost: their usernames are kept on the board, so an admin can
map them to real users later in Admin Panel / People (Imported Usernames),
without having to map everyone up front at import time.
Thanks to xet7 and Claude.
- Board background images can now be stored in WeKan. A new `backgrounds` file
storage directory is created alongside `attachments` and `avatars` (using the
current default storage backend), and Board menu → Board backgrounds lets a
board admin upload background images, set one as the active board background,
download, and delete them. Board export now includes the board's background
images and re-imports them, and a Trello board's background image is
downloaded and stored on import (so it keeps working even if the original
Trello URL later changes). Thanks to xet7 and Claude.
- Stickers can be added to and removed from cards directly in WeKan, chosen from
a set of Font Awesome icons similar to Trello's stickers (previously stickers
only arrived via Trello import). The picker also includes every "mascot"
(underlined) and "computer" (ringed) highlighted sticker that a Trello import
can produce — generated from the same icon mapping the importer uses — so any
imported sticker can also be added by hand. Stickers show on the minicard and
in the card detail. Thanks to xet7 and Claude.
- The Trello-style "complete" checkbox (mark a card complete/incomplete,
independent of the due date) is shown as an animated green checkbox to the
left of the card title, both on the minicard and in the opened card, with
"Mark as complete" / "Mark as incomplete" tooltips. It uses the same animated
checkbox style as Admin Panel / Settings / Announcements and is vertically
centered with the title text, and the two stay in sync. The minicard and the
opened-card checkboxes use the same checked style (the board theme's colour, or
green when no theme is set), so they always look identical. Subtask checkboxes
and the card-detail custom-field checkbox now use the same animated checkbox as
checklist items (they previously used static square icons), so every checkbox
on a card animates consistently. Thanks to xet7 and Claude.
- Cards can now have multiple locations, similar to multiple members. The card
detail shows a Location section (after Labels and Stickers) listing each
location with its name, address and an OpenStreetMap link, with an "Add
location" button to add more and a button to edit or remove each one. A single
location imported from Trello keeps working and is shown in the same list. The
Add/Edit location popup can also detect a location from any map link (Google
Maps, OpenStreetMap, Bing Maps, Apple Maps, or generic `?q=`/`?ll=` links):
paste the link, press "Detect", and the latitude, longitude and (when present)
the place name/address are filled in automatically. The popup also has an
"Open map links at" setting (OpenStreetMap by default, or Google/Bing/Apple
Maps) saved to the user profile, controlling which map service the location
"Open in map" links use. Thanks to xet7 and Claude.
- The opened card now docks to the top of the window, overlaying the global and
board header bars, instead of opening downward from the clicked minicard, and
it can be dragged all the way to the top without its top hiding behind those
bars. (At 100% zoom the board wrapper no longer sets a `transform: scale(1)`,
which had made it the containing block for the fixed card and trapped it below
the headers.) Thanks to xet7 and Claude.
Fixes #5727,
fixes #2457,
fixes #5818,
fixes #755
|
||
|
|
8ffc0cb5ff | Centralize client boot and rspack package loading |