mirror of
https://github.com/wekan/wekan.git
synced 2026-11-25 04:49:41 -05:00
1a4e87c19fe63d6444a65cbd52ddecc81b24ad0f
209
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f62258b5cb |
Header bar: one star group, named view menus, and a Filter button that shuts.
The bar drew TWO stars in a row - one on the starred-boards dropdown and one for the board you are on - which reads as a single control somehow drawn twice. The dropdown has no star now: it is a caret and the COUNT of starred boards, which is what it is about, and the count is shown even at zero because it is the button's only label and a bare caret says nothing about what it opens. The board's own star sits immediately beside it, and the two are wrapped in a rounded outline of their own, shaped like the phone/desktop toggle's but WHITE where that one is black: the toggle is a white box sitting on the bar, so a dark border shows against it, while these buttons sit on the bar's own colour and need a light one. Without an outline the two read as unrelated icons that happen to be adjacent - which is what made the two stars confusing in the first place. The star is its own template so the bar can place it here rather than among the board's other controls further along. A Blaze event map only sees events inside its own template, so its helpers and its click came with its markup, and the copies left behind in boardHeaderButtons are gone. The two view menus and Multi-Selection carry their name beside the icon again. I had made them icon-only earlier and xet7 asked for the words back; that is the better call - six view glyphs are six things to learn, a check-box outline says nothing about multi-selection, and a tooltip is the one place a name cannot be read without hovering. The bar wraps to a second row when it runs out of width, which is what makes the word affordable now and did not before. Sort, Search and Boards in Archive stay icons: those glyphs are well known. A label does not wrap mid-button - two lines inside a one-line button is worse than the tooltip was. Clicking Filter while the filter sidebar is already showing closes it. It only ever opened, so a second click did nothing visible and the only way back was the sidebar's own X, somewhere else on screen from the thing you just clicked. Not while a filter is ON, though: the sidebar is then the one place that says WHAT is being hidden from the board, and closing it would leave a board showing a subset of its cards with nothing on screen to say so - so it stays open, and the X beside the button is what clears the filter. "Showing the filter" is open AND on that view, because a sidebar open on Activities is not showing the filter and clicking Filter there has to switch to it rather than close the panel. models/lib/filterButton.js holds that rule so "which way does this click go" is answered once, and the guard checks all four combinations without a DOM. tests/mobileModeConsistency stopped expecting js-star-board among the board header buttons and says where it went instead; tests/headerBars pins the group, its light-against-the-bar outline, the labels, and the filter toggle. Thanks to xet7 ! |
||
|
|
e755b60b37 |
Link to a swimlane or a list, the way you can link to a card.
A card has had an address since there has been a card route. A swimlane and a list had none: "the Backlog list of this board" could only be sent as "open this board and scroll down". Worse, List.absoluteUrl() answered with the URL of whichever CARD the cache returned first for that list, so the one place that did offer a list link - listMorePopup - showed a card's address, and an empty box for an empty list. Both have their own now: /b/<boardId>/<slug>/swimlane/<swimlaneId> /b/<boardId>/<slug>/list/<listId> FIVE segments against the card route's four, which is the whole reason the three can coexist: a card URL cannot match these and these cannot match a card. A guard checks all nine combinations, because losing a segment would silently turn a link to a list into a link to a card called "list". The kind is a word in the path rather than a query parameter - it is part of what the address names, and a reader can see which is which. config/router.js registers the routes from the same constants the links are built from, so the two cannot disagree about the path. Following one brings the thing into view. The route cannot do that: it runs before the board has rendered, and on a board that is already open it runs without re-creating anything, so at that moment there is nothing on screen to scroll. It names what to reveal in a Session value and the board body reveals it, WAITING for the element rather than assuming it - swimlanes and lists arrive as their subscriptions do and a large board renders in more than one pass, so a single look on the next tick finds nothing on a cold load. It gives up after a few seconds rather than spinning: a link to a list that was archived names an element that is never going to exist, and the board is still the right place to have landed. The Session value is cleared when acted on AND when given up on, so it is a one-shot instruction about the address you followed rather than a standing order that re-scrolls on every later render - and cleared BEFORE the scroll, because scrollIntoView can re-enter the autorun through the reactive read. Every other board route clears it too: without that, opening a card after a list link would scroll the board away from the card it had just opened. The element ids are the ones the templates already carry, held as a map and not derived by a rule. Deriving one name from another is how allBoardsMultiselectionSidebar happened, and this failure is silent - nothing is found and nothing is reported - so a guard checks each id against the markup that draws it. All three are copied the same way, from the FIRST row of the hamburger menu, with the link icon and the name beside it. The card carried this as an icon in its title header named only by a tooltip, which is the one place a name cannot be read without hovering; that button is gone, and so are its handler and the "Copied" tooltip only it used - a handler for markup that no longer exists is dead code that reads as a working feature. The copy row sits ABOVE every permission check in those menus. Copying an address is reading, not editing: somebody who may only read the board can still tell a colleague which list they mean, while everything else in those menus changes the board and stays guarded. It copies absoluteUrl(), because what lands in the clipboard is pasted into a chat and a relative path is only a link inside this page. copy-link-to-clipboard is added to all 147 language files, in the same position in each. 119 are really translated, each derived from that language's OWN existing copy-strings rather than invented. The 16 that keep the English placeholder are the ones whose existing copy-strings are already in the wrong language - Romanian holding Italian, Esperanto holding Spanish, Hindi holding Gujarati - where deriving from them would only spread the error; the en_* variants are English by design. docs/Design/Page/Header.md is written at last. Twenty-seven comments have been pointing at it since the header restructure began and it had never existed, so every one of them was a dead reference. Thanks to xet7 ! |
||
|
|
6051a4368b |
All Boards: four controls into the header bar, and no hamburger to open.
Sort, Search, Multi-Selection and Boards in Archive were rows of the right sidebar's home view, so reaching any of them meant opening a panel over the boards first. They are icons in the FIRST top header bar now, left of the notification bell - exactly where a board's own controls are - each named by a tooltip, like every other button of that bar. They have now been in three places: the page's own body, a second top header bar, and that sidebar view. The home view was the only thing the hamburger opened, so All Boards no longer offers one, nor the divider before it. A menu to reach what is already one click away is a step with nothing in it. NO_HAMBURGER_ROUTES in models/lib/pageSidebar.js is what says so, and a board is deliberately not in it: what a board's sidebar holds - members, labels, activities, settings - is not in the bar and has nowhere else to be opened from. The sidebar is still reachable, and that mattered enough to guard: removing the hamburger removes the only generic way in, so Search and Multi-Selection opening it ARE the way in, and if their event map went the panel would become unreachable and both features would stop existing. The home view is not dead markup either - it is what the back arrow of the other views leads to. Boards in Archive is drawn in two places now. A Blaze event map only sees events inside its own template, so each copy needs its own handler; a copy with markup and no map is a button that silently does nothing, which is exactly what happened to that button once before. The guard checks both copies rather than one. Three existing guards had to change, and each says why: the page-body check now scopes itself to the board-list markup rather than the whole file, since the controls live in that file again; the archive guard checks both copies instead of asserting the header must NOT handle it; and the hamburger guard learned that a page can have a sidebar and still not be offered one. docs/Design/Page/All-Boards.md described a second header bar that no longer exists, so its controls section is rewritten to what is there. Thanks to xet7 ! |
||
|
|
1164785d1d |
All Boards: the header bar names the list, and the workspace inside it.
The bar said "All Boards" on Starred, on Templates, on Remaining and inside every workspace - it named the page and not the list you were looking at. It shows the path now: All Boards / Starred, All Boards / Workspaces / Engineering / Backend. The section's words are the LEFT MENU's own key, so the title and the row highlighted beside it always say the same thing. A workspace's words are its NAME rather than the slug the URL carries - the slug is lowercase and hyphenated and is not what the workspace is called - and the name is printed as text rather than translated: it is what a person typed, and a workspace called "starred" is not the Starred section. A trail segment that names nothing stops the walk and the title shows what was still real, so a stale link names the part of the path that still exists rather than nothing at all. The header walks the tree itself, from the URL and from user.profile.boardWorkspacesTree, which is where the All Boards page reads it from too. It cannot ask the page: the header is a separate Blaze instance, and importing a page module from here once ran it before its own template was registered, and the throw aborted every module after it. The Admin Panel's two segments and these are ONE list now, not a helper per segment. The two pages do not have the same number of them - the panel always has two, a workspace has as many as its tree is deep - so a fixed set of helpers could only ever serve whichever page was written first. Each entry is one of the two forms a left-menu entry already has: a key for something translated, a title for text that must not go through the translator. Guards in tests/headerBars.test.cjs pin every section's key against the left menu's markup and against en.i18n.json, that an unknown section titles the default rather than nothing, the name walk including both ways it can stop early, that the tree comes from the user document, that a workspace name is pushed as a title and never as a key, and that a board has no path at all because its own title is the whole name. tests/adminUrls.test.cjs follows the panel's pane title into the same list. Thanks to xet7 ! |
||
|
|
03cb79bdd7 |
Admin Panel under /admin, and a header that says where you are.
The four pages sat at the TOP level - /settings, /people, /attachments - as if they were pages of the app rather than of the Admin Panel, and /attachments is also the path the file server serves attachments from (server/routes/universalFileServer.js), so the panel and the files were claiming one address. They are under /admin now: /admin/settings/version, /admin/people/login, /admin/problems/database, /admin/attachments/backup. The default pane is named too. It used to be left implicit in a bare page URL - /settings rather than /settings/version - so the address of "Settings" and the address of "Settings showing Version" were one string. The address is meant to say where you are, and the first pane is somewhere too. The bare /admin/settings still resolves; it redirects to the pane's own address rather than being a second name for it. Every path the panel used to answer on redirects - the bare old address, the old one with a pane in it, and /setting, /information, /translation. They are built from the same map the URLs are, so a page cannot be given an address without also being given its redirect, and a bookmarked /settings/global-webhooks keeps its pane instead of landing on the top of the panel. The title beside the house icon names the same three things: Admin Panel / Settings / Version. The page's words are the tab's own key and the pane's words are the menu row's own label, so the title, the tab that is marked active, and the row that opened the pane cannot say different things about one place. The pane title is read from the URL rather than from the page, because the header is a separate Blaze instance from the Admin Panel's pages and must not import them - doing that once ran a page module before its own template was registered, and the throw aborted every module after it. That makes ADMIN_PANE_TITLES a second copy of the menus' labels, and a guard checks every entry of it against the real menu entry for that pane. The button of the page you are ON keeps the hover background, permanently and a shade darker. The tabs had marked themselves .active all along, but the only rule that drew it was scoped to #header-main-bar - the second bar, which those tabs no longer live in - so the state had been computed and invisible since they moved. Darker than the hover rather than equal to it: hovering the tab you are already on must still look like a hover. --wekan-header-height measured #header - the SECOND bar - from when every page had one. Most pages have none now, so on those the variable was 0 and everything laid out against it started at the top of the WINDOW, underneath the first bar: the All Boards sidebar covered it. It measures both bars now, as the BOTTOM of the lowest rather than a sum of heights, so any margin between them counts and a bar that is absent contributes nothing without a special case - and each bar has its own ResizeObserver, because the first one wrapping to a second row is a resize of that element and of nothing else. A divider after the notification bell. Everything before it belongs to the page - its controls, its view menu, the panel's tabs; everything after belongs to you - help, your account, the sidebar toggle. Without it the run of icons reads as one list of unrelated things. The URLs went through a hyphenated shape - /admin-settings-version, /allboards-starred - before xet7 asked for the slash form instead. All Boards is back to exactly what it was; only the Admin Panel moved. Guards: tests/adminUrls.test.cjs pins the /admin prefix, that every pane is named in its URL including the default, that each page records the path it used to answer on, that the three redirect shapes exist and carry the pane along, and that every pane title matches the real menu entry's label - both directions, and a translation key has to be a real one. tests/headerBars pins the divider and the darker active mark; tests/sidebarBelowHeader pins that the height covers both bars. tests/adminOldUrlRedirect's route-body helper now understands a route whose path is an expression, since the panel's four take theirs from adminRoutePath(page) so the route and the links cannot disagree. Thanks to xet7 ! |
||
|
|
49f4e77aae |
First header bar: wrap rather than clip, and say where you are.
Six things, all in the one bar that is always on screen. The bar wraps. It was one row with `overflow: hidden`, so a button that did not fit was not drawn at all - and a button that is not drawn gives no sign that it exists. It is `flex-wrap: wrap` now with a row gap, and every height on it became a minimum, including the four phone rules that pinned 40px or 48px: a content box with a fixed height cannot hold two rows, so it would have cut off exactly what the wrap was for. A phone is where the buttons run out of room first, which makes it the last place that should hide them. Everything after the drag-handles toggle hugs the end of the bar, from one `margin-inline-start: auto` on a new `.header-quick-access-end` wrapper. That is a LOGICAL property, so a right-to-left language mirrors it by itself rather than needing a second rule kept in step with the first. Both view menus are icons now. The board's said "Swimlanes" beside its icon and All Boards' said "Lists"; the name is in the tooltip instead, where the other buttons of that bar already keep theirs. `boardViewName` maps the six views to their own keys, so the tooltip says which view is on. The button of the page you are ON keeps the hover background, a shade darker and permanently. The Admin Panel's tabs have marked themselves `.active` all along, but the only rule that drew it was scoped to `#header-main-bar` - the second bar, which those tabs no longer live in - so the state was computed and invisible from the moment they moved. Darker than the hover rather than equal to it: hovering the tab you are already on must still look like a hover. The Admin Panel says which of its four pages is open - "Admin Panel / Settings". All four of its routes answered the same key, so the bar said the same three words on every one of them. The second segment uses the same translation key as the tab's tooltip, so the title and the tab that is marked active cannot drift apart. Only the Admin Panel has one; a page whose name is the whole answer gets no slash, and neither does a board, whose own title IS its name. A sidebar button is no longer drawn under the close button. `.sidebar-xmark` is `position: absolute`, so it contributes no height and the row holding it collapsed to its padding - on a board that row also holds the keyboard shortcut buttons and so has a height anyway, which is why only the All Boards and shared page sidebars showed it. Two mistakes here were reverted rather than patched, because patching them would have left the damage in the file. A regex rewriting `header.css` matched inside `min-height` and produced `min-min-height`; and a slice of `boardHeader.jade` ran backwards, deleting every template between `boardVisibilityList` and `boardViewMenu` - that is what `Template.boardChangeTitlePopup is undefined` and `Template "boardVisibilityList" is set twice` were. Both files were restored from git and redone with exact replacements. Guards in tests/headerBars.test.cjs pin all six: that no rule on the bar forces one row, clips, or fixes a height; that the end group is pushed with a logical margin and never a physical one; that each view menu names its view through a real translation key; that the active mark is darker than the hover and survives being hovered; that the Admin Panel's second segment shares its key with the tab; and that both sidebars reserve the close button's height. The wrap guard reads the DECLARATIONS, not the comments - the rules that replaced these explain themselves by naming `nowrap` and `overflow: hidden`, and a guard that greps the whole body reads its own explanation. Thanks to xet7 ! |
||
|
|
f83234f0d8 |
Admin Panel: its four tabs are icons in the first header bar.
Fifth of the header restructure, and the answer to the question I had left open: the panel's tabs are navigation BETWEEN its four pages rather than controls of one, so they do not belong in a right sidebar with a page's controls. They belong where you can always see which of the four you are on - the first header bar, immediately left of the notification bell. Icon only, each named by a translated tooltip, because that bar is a single row shared with the logo, the starred boards, the notification bell and the user menu; four labelled buttons would not fit beside them. They link by route NAME, as they did. The tab bar goes with them, and its four route references. "Admin Panel" is already what the first bar says on all four routes - models/lib/pageTitles.js has mapped them since the first step - so the panel is named once, there, rather than by an h1 of its own. Which routes ARE the Admin Panel is read from the one place that already lists them, adminUrls.js, rather than spelled out again in the header. Three guards followed. The same mistake as last time was caught by the same guard: settingHeader.js still registered onCreated, onDestroyed and helpers on a template that no longer existed, which throws at module load and aborts every module after it - they are on adminPanelTabs now. The security-log guard checked for a `.setting-header-btn.problems`, and the multitenancy guard checked that Settings and Problems sit behind the site-admin check; both properties are unchanged and both now read the markup where it is. Remaining: the board's own second header bar, which is the last one with controls in it. Thanks to xet7 ! |
||
|
|
9f42cb1aaa |
Header: the six second bars that held only a title are gone.
Third of the header restructure, and the simplest: Support, Shortcuts,
Accessibility, Broken Cards, Import and Boards in Archive had nothing in their
second header bar but the page's name, which the first bar carries now. The bar
and the route reference go with it, so the page is its content and nothing else.
Three of them do not have a FIXED name, and dropping the bar would have lost it:
an admin can rename Support and Accessibility, and Import names the source it is
importing from ("Import / Trello"). Each of the three exports its title, and the
top header bar asks for it - a custom title beats the key and is printed as
text, exactly like a board's. So the title rule is three sources in order: the
board's, then a custom one, then the key.
Shortcuts and Import also had a back arrow to All Boards. The house icon in the
first bar is that link, on every page, so it went with the bar rather than being
carried over as a second one.
The repo's own guard caught the mistake in this: support.js and accessibility.js
still registered onCreated and helpers on templates that no longer existed,
which throws at module load and aborts every module after it. The registrations
are gone; the SUBSCRIPTION each one made is not, because the top header bar
reads the same setting to name the page - it just belongs to the page's own
template now.
Two guards updated: the archive page is named by the top bar rather than by one
of its own (its title has moved three times, and each move left the previous one
to remove or the name is printed twice), and the page-sidebar guard now covers
all ten removed bars rather than the first four.
Remaining: the board's own second bar, All Boards' own, and the Admin Panel's
tab bar.
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 ! |
||
|
|
ffacc9a7dc |
Header: one colour, the page's own name, and one hamburger.
First of the header restructure. Three things, all in the bar that is always on screen. ONE COLOUR. Each theme painted the two bars two shades apart, so the header read as two headers stacked. They are one colour now, and per theme it is stated once: the quick-access bar joins the selector list the main bar already has, rather than restating each hex a second time. moderndark said it its own way and was the one theme where the two really differed (#2a2a2a against #333); it is on the main bar's colour like the rest. THE PAGE'S NAME, not "All Boards". The first bar said "All Boards" beside its house icon on every page, whatever page it was - so the bar that is always visible named a place you were not. The house is still the link home, with that name as its tooltip; the text beside it is where you ARE, and on a board that is the board's title. models/lib/pageTitles.js maps a route to a title key, which is one answer to "what is this page called" in place of the thirteen `h1`s that each answer it separately. A board title is printed as TEXT and a page title goes through the translator: a board called "settings" is not the Admin Panel. ONE HAMBURGER, in this bar, to the right of the username, with the divider that came with it. It was the last item of the SECOND bar - the bar whose contents are moving into the sidebar it opens. On a board it toggles the board's own sidebar; on every other page the shared one. Two guards had to be corrected, and both were wrong before this change rather than because of it. The theme-accent guard derived each theme's accent by matching `.board-color-X#header`, which also matches `#header-quick-access`, so for clearblue it had recorded the quick-access shade (#2d8ce7) as the accent instead of the main bar's (#00aecc); it matches `#header` exactly now. And the new guard first checked that the two bars share a selector LIST, which is a spelling rather than the property - it compares the colours they resolve to. What is NOT in this commit: emptying each page's second header bar into a right sidebar. That is thirteen templates and a shared page sidebar for the pages that have none, and it is the next step. Thanks to xet7 ! |
||
|
|
5cc399b473 |
All Boards: a URL for every left-menu entry, workspaces included.
The page was three addresses - / (Starred), /templates and /remaining - and the workspaces tree had none at all. Which workspace you had open was a ReactiveVar, so a workspace could not be linked to a colleague, bookmarked, opened in a second tab or reached with the back button. /allboards/starred /allboards/templates /allboards/remaining /allboards/workspaces /allboards/workspaces/engineering/front-end/design-system The route is '/allboards/:section?/:path*'. :path* is zero or more SEGMENTS - [^/]+ would stop at the first slash and a workspace two levels down would not resolve - so a workspace nests as deep as its tree does. / stays the home and still shows Starred; /templates and /remaining redirect to the new form. A workspace is addressed by the slugs of its NAMES down the tree, not by its id: the id is a random string and a URL should say where you are. The slugs come from getSlug (limax), the same function that gives a board its slug in models/boards.js, so a workspace and a board turn a name into a URL the same way, including the scripts where a naive slugifier returns an empty string. When a name slugifies to nothing anyway - an emoji-only name - the node's id stands in, because a workspace with no address could not be opened from a link. The route resolves the section and splits the wildcard; the PAGE resolves the workspace, in an autorun, once its tree has loaded. The router cannot: the tree is on the user document, which it has no way to read before the page has it. And it has to be an autorun rather than a one-shot read, which would always run before the tree arrived and never select anything. A slug path that names nothing leaves the Workspaces section selected rather than an empty list. models/lib/allBoardsUrls.js takes slugify as an ARGUMENT rather than importing it, so it has no dependencies at all and is unit-tested with a stub - and with the real limax, for the tests that are about the real one. One thing this had to fix rather than add: boardsList.js filters boards by membership only on the All Boards routes, by route NAME, and a route missing from that list falls through to the public-boards branch - the page would have shown public boards instead of the user's own. The new name is in the list, and the guard pins all four. Written down in docs/Design/Page/All-Boards-URLs.md. Thanks to xet7 ! |
||
|
|
841479774e |
Admin Panel: a URL for every left-menu entry.
The panel was four addresses - /setting, /people, /admin-reports, /attachments - each opening whichever pane its page happened to open first. Which pane you were looking at was ReactiveVar state and nothing else, so a pane could not be linked to a colleague, bookmarked, opened in a second tab or reached with the back button, and /setting always landed on Version even if you had just been in Global Webhooks. Every entry has its own now: /settings/visibility, /settings/global-webhooks, /people/roles, /admin-reports/cpu, /attachments/s3. Lowercase, words separated by -, and the DEFAULT pane keeps the bare page URL - /settings, not /settings/version - so there is one address for "the Settings page" rather than two that show the same thing. The Settings path is plural: /setting was the odd one out beside /people, /attachments and /admin-reports, and it still resolves, as a redirect. The slug is NOT derived from the pane id. The ids are internal and read like it - tableVisibilityMode-setting, layout-setting, report-cpu - while a URL is something a person types and pastes into a chat, and a name derived from another name is wrong the moment the two spellings differ, which is what allBoardsMultiselectionSidebar was. So models/lib/adminUrls.js is an explicit map, and the guard checks it against the real menus in BOTH directions: every slug names a pane the page has, and every menu entry has a slug. Neither failure shows up until somebody clicks that row. A slug that is not one falls back to the page's default rather than rendering an empty panel, because a URL is typed. The route resolves the slug and hands the pane id to the page, which reads it in an autorun - reactive, not a one-shot read, because following a link to another pane while the page is open runs the route action again WITHOUT re-creating the template. A menu click does the same in reverse: open the pane, then go to its URL. go, not replace, so Back returns to the previous pane instead of leaving the Admin Panel, and only when the path would actually change. Each page now has ONE function that opens a pane by id, used by both the URL and the click. /information and /translation redirected to /setting and handed their pane over in a Session value the page consumed once. They redirect to the pane's own address now. Two guards pinned that Session mechanism and now pin the URLs, each saying why it changed. Writing the map turned up that the Settings page's pane list still named registration-setting, the Login pane that moved to People - which its own guard caught, correctly. Written down in docs/Design/Page/Admin-Panel-URLs.md, with every URL listed. 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 ! |
||
|
|
2537a52ec2 |
All Boards: make the Selected star a toggle, and name every button.
The "Selected: star" button only ever ADDED stars: it walked the selection and starred whatever was not starred yet. Once every selected board was starred it did nothing at all, so there was no way to undo from here what it had just done, and its tooltip read "Star the selected boards" whatever state the selection was in. It is a toggle now - none starred stars them all, all starred unstars them all, and a mixed selection stars the rest, leaving the starred alone. The mixed case deliberately does not flip each board independently: one click that starred some boards and un-starred others is not something a button may do. Only the boards that must change are called, because toggleBoardStar flips one board and calling it for an already-starred one would un-star it. The tooltip says which way the button goes right now, set-selected-starred or the new set-selected-unstarred, and it reads the SAME function the click does - two copies of "which way does this button go" would eventually be two answers, and the tooltip would lie about what the click does. The rule itself is models/lib/selectedStars.js: pure, so it is unit-tested rather than reasoned about, including the mixed case and an empty or junk selection. All four buttons on a selection are icon-only now, and they follow the "Selected:" label in the order star, home, archive, duplicate - the two that only mark a board first, the two that change what boards exist last. Archive and duplicate carried their names, which are sentences and pushed the bar onto a second row. Checking that each button says what it is turned up one that did not: the close button that turns Multi-Selection off said "Clear filter", which is what the OTHER one in this bar does, in the search box. It is multi-selection-off now. A guard requires every .board-header-btn in the bar to carry a title, and every title to come out of a translation key rather than being literal English. Both new keys are in all 147 language files as English placeholders, which is what the translation policy does with a string untranslated everywhere, so no language silently loses a tooltip. The seven language files that are symlinks share their target's copy rather than getting a second one, and the 43 files that have no trailing newline still have none. The Font Awesome guard flagged a character in a jade COMMENT, which renders nothing - the same exemption it already makes for arrows and box drawing. It skips comment blocks now, tracked by indentation so a continuation line is skipped too, with a self-check that a rendered line is still caught. 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 ! |
||
|
|
a4475e57eb |
Public Boards no longer lists the internal Subtasks boards.
WeKan creates boards of its own to hold machinery - a subtasks board, for one. They are real boards and the user "owns" them, but nobody chose to make one and nobody means to open one, so no list of boards shows them (#5582). They are recognised by their title being wrapped in carets: `^Subtasks^`. The selector for that was typed out at each list - five copies of the same `{ $not: { $regex: /^\^.*\^$/ } }` - and the sixth place forgot it. /public built its own query and listed every public subtasks board on the instance beside the real ones. models/lib/helperBoards.js is that selector now, once, and every list uses it - the four in boardsList.js, userBoards in models/boards.js, and /public, which gains it. A FUNCTION rather than a shared constant: Mongo selectors get merged and mutated by their callers, and a shared object would carry one caller's edit into the next list. The test fails if a copy of the pattern comes back anywhere, if a board list stops using the helper, or if /public in particular does - and pins what the pattern does and does not match, so a board somebody really named "Subtasks" is never hidden. Thanks to xet7 ! |
||
|
|
efa534fddf |
Board roles: one capability table, three roles fixed, and a Roles Status pane that shows it.
What each role may do was spelled out THREE times - in the server allow helpers,
in the client's canModify* helpers, and in prose in the docs - and the three had
drifted apart. Every place they disagreed was a role that did not do what its name
says. models/lib/boardRoleCapabilities.js is that table now, in code, and
everything reads it: the allow rules, the UI helpers, the new Admin Panel pane and
the documentation. There is nowhere left for a fourth opinion to appear.
THE THREE GAPS, fixed:
* "Comment only, assigned" (isCommentAssignedOnly) had FULL WRITE ACCESS.
Nothing outside the card publications read that flag and it was not in the
write rule, so the role could create and edit cards, lists and checklists - it
was "Normal, assigned only" under another name. It is comment-only now, like
the role it is named after; the two differ only in what they see.
* "No comments" (isNoComments) could not write ANYTHING. The write rule excluded
it, so the role blocked editing as well as commenting - a second read-only
role under a name that says otherwise, and one the UI still offered the edit
buttons for. It blocks commenting only now, which is what the name and the
board schema both say it is for.
* The write rule did not exempt board admins. Every has*() helper on the board
ignores a flag on an admin; that one read the raw flags, so an admin who also
carried isNoComments silently lost write access. Not reachable from the Web
UI, which writes all eight flags at once, but reachable over the REST API,
which takes them individually. memberRoleOf() resolves isAdmin first.
The UI helpers were part of the same drift - canModifyCard() did not exclude
isNoComments while the server did, and canModifyBoard() excluded neither
isNoComments nor isWorker - so each disagreement was a button offered to somebody
whose write the server then refused. All three ask the same table now.
A FOURTH gap found while building the table, NOT fixed: a Worker cannot move a
card, which is the one thing the role is for. Moving a card is a card UPDATE, so
it goes through the write rule, which excludes Worker. The fix is not a table
edit - it means letting a role write SOME fields of a card and not others, and
"assign himself" means validating that a member change only ever adds the caller.
That is a field-level policy on the path every card update takes and wants
deciding on purpose. It is recorded under "Known gaps" with what it would take.
ROLES STATUS, at Admin Panel / People / Roles, below the Save button: a READ-ONLY
table of what each role may do - which cards it sees, and whether it may comment,
create and edit, or change the board's settings. It is the shared table page
(docs/Design/Page/Table.md), so it looks and behaves like every other Admin Panel
table, with no markup of its own; it has no rowTemplate, no actions and no
editable cell, because a role's capabilities are a property of the code and not a
setting. Every string is a translation key, the Yes/No of each cell included - the
values are booleans, and a hard-coded "Yes" would be English in every language.
The "Invite to board" column reads the pane's WORKING copy, so the table follows
the checkboxes above the Save button as they are ticked, before saving, which is
the point of putting it there.
docs/Design/Page/Table.md listed Roles among the panes that do NOT use the shared
design, "so the gap is visible rather than forgotten" - it has a table now, so it
moved to the list of pages that use it, and the exclusion covers the two panes
that are still nothing but a form.
Two guards were checking the shape of the old code rather than what it guaranteed,
and are updated with the reason in the test: listDragPermission read the flag
exclusions out of canModifyBoard's own body (it has none now, so it checks the
BEHAVIOUR - anonymous is falsy, and each excluded role still cannot drag a list),
and tablePage counted the pager handlers file-wide, which also forbade a handler
on a different template - a separate event map is not a duplicate key.
tests/boardRoles.test.cjs is the suite: the module itself including each fixed
gap, that the server rules and the UI helpers ARE the table and name no flag
themselves, that every cell of the documentation matches it, that the
assigned-only column matches the publication scope, that the remaining gap is
still real and the three fixed ones are recorded as fixed, and that the Roles
Status pane renders from the table, is read-only, is the shared template, follows
the working copy, and translates every string it shows.
Thanks to xet7 !
|
||
|
|
550cd5c686 |
An assigned-only member sees only their own cards on a big board too.
Three board-member flags mean the same thing - isReadAssignedOnly,
isNormalAssignedOnly, isCommentAssignedOnly - the member may only see the cards
they are assigned to. The `board` publication has always narrowed its card cursor
with `assignees: { $in: [userId] }` for such a member. `boardCardsWindow`, which
is what ships the cards in LAZY card-loading mode, did not.
So whether the restriction applied at all depended on the board's card-loading
mode. The same member saw only their own cards on a small board and EVERY card in
the window on a big one (or on any board with CARDS_LOADING=lazy) - and with the
cards went their comments, attachments, checklists and checklist items, because
the window's children hang off the same selector.
The restriction is part of the window scope now, and of its COUNT: an
unrestricted `boardListCardCount` still told the member how many cards the list
really holds and offered to scroll in cards that would never arrive.
Two things this had to get right.
The FIELD PROJECTION. publish-composite hands each child the document as the
PARENT cursor published it, and that cursor projected to `{ _id: 1 }` - so
`board.members` was undefined in every child and the restriction would have been
dead code. The parent publishes `members` now, which also makes it reactive:
changing a member's assigned-only flag re-runs the window instead of taking effect
on the next subscribe. The board publication already ships this board's members to
the same client, so nothing new is exposed.
The MERGE. The scope was spread into the client's selector at the top level
because FerretDB v1 (SQLite) does not push a top-level `$and` down to its index -
the wrapped form full-scanned the whole cards table on every poll and cards never
loaded on a big board (10.22). But a top-level spread can only be used when the
two selectors do not both speak for the same key, and the board Filter HAS an
assignee filter, so this collision is reachable from the UI. In the direction the
publication spreads them the client's value would have won and the restriction
would have been silently dropped. The inline `safeCollides` guard covered
boardId/archived only; it is now mergeCardScope in models/lib/boardCardScope.js,
which merges when the keys are disjoint and falls back to `$and` - where BOTH hold
- when they are not. An assigned-only member filtering for someone else now gets
nothing rather than everything, and an unrestricted member keeps the fast path.
tests/boardCardScope.test.cjs covers each of the three flags, an ordinary member,
an INACTIVE assigned-only member document (matching the publication's
isActive: true lookup), a non-member and a logged-out visitor - both deliberately
unrestricted here, because this narrows what a MEMBER sees and board visibility is
decided before it - malformed member arrays, the assignee-filter collision, that
an unrestricted member keeps the top-level merge, that BOTH the window and its
count are narrowed, and that the parent cursor publishes the members its children
read.
Thanks to xet7 !
|
||
|
|
7d9a2e3037 |
A filter no longer leaves a spinner turning over an empty list, and a half-arrived card is not drawn as a blank box.
Two problems from one report with screenshots, both in how a list decides what to
draw at its bottom edge.
1. "ONCE A FILTER IS APPLIED FOR A MEMBER, THE 3 DOTS CONTINUE TO ANIMATE." The
screenshot shows a list with NO cards under the filter and the load-more spinner
still turning under it - and `_updateList` raising the window limit by ten every
idle callback for as long as it stayed on screen.
The spinner asked "does this list hold more cards than the window I asked for?"
and answered it from a total built somewhere else than the cards being drawn. The
cards come from the filtered selector; the total came either from
`list.cards(swimlaneId).length` or, in lazy card-loading mode, from a count
document published per list/swimlane - whose id was `listId::swimlaneId` and did
NOT include the filter. So changing the filter re-subscribed with a new selector
under the SAME document id, two publications wrote one document, and Meteor's
merge box serves whichever subscription it prefers, which during the changeover is
the older, pre-filter one. The list drew its empty filtered window while its count
still described the unfiltered list.
The count document now carries a short stable key for its selector, so each filter
counts into its own document and a count can never describe another filter's
cards. Both subscribers pass it; the two-argument form still returns the old id
for a caller with no selector to hand.
And the spinner no longer depends on that being right. There is nothing more to
fetch unless the window came back FULL: if we asked for twenty cards and got
three, those three are all there are, whatever any count says. That holds in both
card-loading modes and for a stale count in either direction, which is why it is
worth asking as well as the total.
While there: showSpinner asked `isLazyCards()` with no board while cardsWithLimit
asked `isLazyCards(list.boardId)`, so the two could take different branches for
the same list. Both ask about the board now, and both build the selector the same
way instead of from different sources - that disagreement was the bug.
2. "RANDOM BLANK CARDS ARE APPEARING ON THE BOARD." White minicards with the
handle icon and nothing else - no title, no members, no labels - mixed in among
the real ones. In the screenshot the only two that render are the two carrying the
viewer's own avatar.
A minicard renders blank when its document is in minimongo without its fields:
`Cards.getTitle()` returns null for `title === undefined`, and every badge is
conditional on a field that is not there either. That is NOT a card with an empty
title - the schema declares `title` as optional with `defaultValue: ''`, so a card
that went through it has the key, `''` at worst. A document without the key at all
is a partial replication, and several publications ship cards with a projection:
`openCardData` publishes `{ _id: 1 }` as the parent of its children cursors, the
search publications ship their own field lists, and minimongo merges what every
live publication says about an id.
WHICH of them produced these particular stubs is not settled - it needs the
running board to catch - so this is a guard where the card is drawn rather than a
fix at the source: a document that does not carry the field the minicard is built
around is not drawn. `$exists` is what separates the two cases; filtering on a
falsy title would hide real cards. It cannot hide a card, and when the full
document arrives the card appears, which is what the blank box was standing in for
anyway.
tests/listCardWindow.test.cjs covers the reported case (a filter empties the list
and the total still says 25), a short window in general, that a full window with
more behind it still offers to load more, a stale total in both directions,
missing input, that an empty title is still drawn while a missing one is not, that
the selector stays flat and an existing `title` clause is not silently replaced,
that two filters no longer share a count document while the same filter always
names one whatever order it was built in, and that every subscriber names it the
same way.
Thanks to xet7 !
|
||
|
|
08be34b70d |
Fix #6533: a busy write is now actually retried, which nothing had ever done.
The crash loop is gone - a transient database error no longer ends the boot
(00startupResilience) or the process (00processErrors) - and the reporter's 10.49
log is the same contention arriving in front of a user instead:
Exception while invoking method '/users/updateAsync' MongoServerError:
... [collection.go:191 sqlite.(*collection).UpdateAll]
[db.go:151 fsql.(*DB).InTransaction] database is locked (5) (SQLITE_BUSY)
That error goes to the CLIENT. The user's edit fails, and they reload to find out
what happened - which is exactly the complaint, "they only see new cards after a
reload". And it was not supposed to: models/lib/databaseErrors.js has classified a
locked SQLite as { id: 'deadlock', act: 'retry' } with "Retried automatically."
since it was written, and 00processErrors says "the write is retried by whatever
issued it". Nothing read `act`. No code in WeKan retried anything, anywhere.
SQLITE_BUSY is the one database error a client is meant to handle itself. SQLite
has a single writer; a second writer arriving while the lock is held is told to
come back, and nothing was applied - FerretDB takes the lock before the
transaction (_txlock=immediate), so a BUSY answer means the write did not happen.
Retrying the same write is the documented behaviour and stays idempotent: Meteor
has already chosen the _id, so a retry that raced a duplicate is refused by the
unique index rather than inserted twice.
server/00retryBusyWrites.js wraps insertAsync / updateAsync / upsertAsync /
removeAsync on Mongo.Collection.prototype: a transient database error is retried
with exponential backoff and full jitter, bounded at 5 attempts and 2s in total
(WEKAN_DB_RETRY_*). Bounded on purpose - retrying for longer holds a method
invocation and its slot in the connection pool while the contention it is waiting
for gets worse. When it still fails the ORIGINAL error is thrown unchanged, so a
database that is genuinely stuck looks exactly as it did before and nothing is
hidden; anything that is not transient is rethrown on the first attempt, so a full
disk is not waited on four times before being reported.
It is loaded from server/imports.js, which runs after the Meteor packages, so this
wrapper sits OUTSIDE the ones collection2 and collection-hooks put on the same
prototype - and that is how it sees the error at all, because by then the busy
error is collection2's ValidationError with the database's message inside it,
which is the form in the reporter's SyncedCron traces.
Writes only. Every error in the reports is a write, which is what contends for the
one writer; SQLite in WAL mode does not block a reader against a writer, and
wrapping every read would put this on the hottest path in the server for no
reported failure.
Retries are counted and summarised at most once a minute, so a contended database
is visible without the log becoming the new problem, and a write finally given up
on is recorded for Admin Panel / Problems - except an eventlog write, which is how
the recorder writes, and reporting its failure would call the recorder from inside
itself.
The reporter asked outright whether PostgreSQL is an option for a snap
installation. It is, and it has been: the deadlock rule's advice now says how -
snap set wekan wekan-ferretdb-handler=postgresql wekan-ferretdb-url=... , or
docker-compose-ferretdb-v1-postgresql.yml in Docker - instead of only saying that
SQLite has one writer.
tests/sqliteBusyRetry.test.cjs loads the real module against a stub collection
prototype and exercises the behaviour: a busy write is retried and succeeds with
its arguments and its collection unchanged, collection2's ValidationError form is
recognised too, a full disk is thrown at once and never retried, an endlessly busy
database gets the original error after a bounded number of attempts AND a bounded
wall-clock time, the backoff grows and is jittered and capped on the shipped
numbers, the summary is rate-limited, reads are left unwrapped, wrapping twice is
a no-op, and the eventlog write is retried without reporting on itself.
Thanks to Nissulya and xet7 !
Fixes #6533,
|
||
|
|
ca0e36e371 |
Database problems: show what the database actually said.
A database problem arrived in Admin Panel / Problems / Database problems with an empty Category, Name and Action, a severity of warning, and a detail that said "The database returned an error WeKan has no rule for. Read the message below" - with no message anywhere below, or above, or on the page at all. So the row said that something happened and nothing about what. Nothing was wrong with the classifier or the recorder. EventLog has a SimpleSchema attached, and collection2 cleans every insert against it with filter:true, so a field the schema does not declare is dropped silently on the way to the database. The four fields the database stream uses - type (the rule id), db (which database said it), kind and message - were never added to that schema, so they were the four things thrown away, and they are exactly the four the page shows in Category, Name, Action and the message it told the admin to read. The other four streams were unaffected because they only ever write schema fields. The schema declares them now, and a test pins the general rule instead of the one instance: for each of the five event loggers, every key of the document it inserts must be declared in the EventLog schema, so the next field somebody adds to a logger cannot vanish the same way. The message is shown too - the Detail cell carries WeKan's reading of the error and then the database's own sentence, which is the one thing an admin can search for or paste into an issue - and the stream search looks at message, db, kind and type, so searching for "postgresql" or for a phrase out of the message finds the row that displays it. The unclassified advice no longer promises a message "below": the message follows in the same cell. Because that message is now stored and displayed, it loses its credentials first. A database that refuses a login or cannot be reached quotes the connection URL back, password and all - "failed to connect to mongodb://wekan:s3cret@mongo:27017" - so classifyDatabaseError redacts the userinfo of any URL in the message before returning it, keeping the host, the port and the database name, which are what makes the message useful. It is done there rather than in the recorder so no future caller can forget it. The message is also sanitized like every other stream's detail: one line, control characters out, capped. Thanks to xet7 ! |
||
|
|
98bce97141 |
Fix #6545 OAuth2 scopes, #6546/#6555 bind IP, #6550 IPv6 database, #6551/#6553 TLS verification.
#6545 - a Keycloak login opened the popup and closed it immediately. The snap's default for OAUTH2_REQUEST_PERMISSIONS was "'openid profile email'" - the single quotes are part of the VALUE - so the scope sent to the provider was `'openid` … `email'`, which no provider knows and a strict one refuses outright. The default has no quotes now, and WeKan normalises the value anyway (models/lib/oauth2Scopes.js: strips surrounding quotes, accepts commas or spaces, drops duplicates), so an install still carrying the old value keeps working without anyone noticing the difference. #6546 / #6555 - there was a mongodb-bind-ip but no way to say where WeKan itself should listen, so it was always Meteor's default of 0.0.0.0 and IPv6 was unreachable. `snap set wekan bind-ip='::'` listens on IPv6 (and on IPv4 through it on a dual-stack host); empty keeps today's behaviour exactly. #6550 - an IPv6 database could not be reached at all: the snap built `mongodb://$MONGODB_BIND_IP:$PORT/wekan`, and an IPv6 LITERAL has to be bracketed - `mongodb://::1:27019/` is not a URL and the driver refuses it. The address is bracketed when it contains a colon, which no hostname and no IPv4 address does; the readiness probe builds its URI the same way, so it can no longer wait forever on a URL that cannot be parsed. #6551 - a mail server whose certificate does not match the name it is reached by ("Hostname/IP doesn't match certificate's altnames" - a wildcard one level too short, an internal CA) could not be used at all, because Meteor builds its transport from MAIL_URL with no say in it. MAIL_TLS_REJECT_UNAUTHORIZED=false installs a transport that connects anyway. #6553 - the same for an outgoing webhook to a server with a self-signed certificate: WEBHOOK_TLS_REJECT_UNAUTHORIZED=false. Both are OFF by default, both are per-purpose, and neither is NODE_TLS_REJECT_UNAUTHORIZED, which would drop certificate checking for everything the server connects to. The webhook switch changes nothing else: the connection is still pinned to the resolved address and private ranges are still refused, so the SSRF protection is untouched - what is given up is only the proof of who is on the other end, for the one endpoint the operator chose. tests/mailTransportTls.test.cjs covers the SMTP option building (ports, smtps, credentials with encoded characters), that only the exact string "false" turns verification off, that nothing is installed unless it is asked for, and that neither file reaches for the global switch. Thanks to lukasjelonek, sysblade, scoopex, 1977er, GuiGuiSoft, marioschulz93 and xet7 ! Fixes #6545, Fixes #6546, Fixes #6550, Fixes #6551, Fixes #6553, Fixes #6555. |
||
|
|
b46eecf58b |
Fix the 20 node suites the && chain had been hiding.
The new runner ran all 260 suites for the first time: 20 failed. Four were real
defects in the app, the rest were guards pinning a spelling or a design that had
since changed - each of them written when it was true, and none of them run
since, because npm stopped the chain at the first failure.
The app fixes:
* models/lib/themeAccents.js: accentOf('constructor') returned Object's
constructor - a FUNCTION - because a plain lookup answers from
Object.prototype. A board colour named after any prototype member would have
written a function into a stylesheet. Only the map's own keys are themes now.
* RTL: the dependency overlay and its connect handle each set a physical
left/right AFTER the logical property, so the physical one won and both were
pinned to the LTR side in an Arabic or Hebrew layout. The skip link, the
avatar's account badge, the stats value column and the theme-category label
were physical too. All logical now (inset-inline-*, text-align: start/end).
The guards, each corrected to what the code actually does now, with the reason:
* addBoardTileHeight, publicationArgumentGuard: a fixed-size slice
(jade + 3000, source + 1400) that a grown comment pushed the subject out of.
Both now take the whole block they are about.
* adminCheckboxStyle: the Grey Icons feature is gone; asserts its REMOVAL.
* boardsVisibilitySettings: the separator count was pinned at 3; the site-theme
picker group made it 4. Asserts the shape - one Save per section, none for
the picker that applies immediately.
* changelogFormat: "# Upcoming WeKan ® release" is a legitimate heading.
* dbConformanceWiring: the log directory honours WEKAN_LOGDIR now.
* domainTablePage: the default page is the app-wide 10, not 25.
* ferretdbOplogGating: the exec runs under the CPU launcher.
* leftMenu: peopleMenu takes the user (multitenancy option D).
* loginEmailPanesMoved: the board-member restriction is two checkboxes in
Organizations and Teams now; asserted there.
* mobileAllBoardsFit: the bell and the avatar are two rules with variants.
* narrowWindowLayout: the hamburger is the last button in the flow, not pinned.
* rulesApiTriggerNormalize: #6491 made a missing matching field mean "any
value", so the #2674 "can never match" case now matches - and removeMember
iterates assignees, not members.
* securityLog: the new-problems selector moved to models/lib/eventLogProblems.
* tablePage: the Cards report renders the page the SERVER named.
* tenantWiring: the site colour is read in two places; the autorun is the one.
* themeAccents: see above - the guard was right, the code was not.
* translationPane: the "no hand-written table" regex matched the +tablePage
include it also requires.
* uiDensity: admin table cells wrap in one td+th rule now.
* rtl: the dir attribute comes from a helper, `!important` is not part of a
value, and the scanner read CSS COMMENTS as declarations - the comment
explaining why `left: 50%` needs no RTL variant was reported as a violation.
Thanks to xet7 !
|
||
|
|
21300f5cb4 |
Say which database has which problem, in Admin Panel / Problems.
WeKan runs on MongoDB or on FerretDB v1 over SQLite, PostgreSQL, MySQL, MariaDB or SAP HANA, and each answers a broken query, a full disk or a refused login in its own words. Those words reached an admin as an opaque string: "Error 1064 (42000): You have an error in your SQL syntax" with no way to know which database said it, that it is FerretDB's bug rather than their data, and that upgrading FerretDB is the fix. models/lib/databaseErrors.js is the translation - pure, so it is unit-tested without a database: a message in, and out comes which database said it, what kind of problem it is, what it means, what the admin should do, and whether WeKan can do anything itself. Sixteen rules, every one of them a message a real database produced in the conformance runs or the documented wording of the condition: injection refused by FerretDB's SQL guard, the syntax errors of all four dialects, the two permission failures that stopped MySQL and MariaDB dead this week, authentication, disk full, connection limits, deadlocks (retried), lost connections (reconnected), timeouts, duplicate keys (which is an index doing its job, not a problem), unimplemented operations, and a handler the binary was not built with. server/lib/databaseProblems.js records them into a new `database` event stream, one per problem per minute - a database that is down answers every query - and watches Meteor._debug, which is where a database error surfaces without wrapping every call site in the app. Admin Panel / Problems has the pane, and its first column is the database that said it. Thanks to xet7 ! |
||
|
|
c1add5bc5e |
Paginate the admin lists honestly: one page of ten, index-backed.
Admin Panel / People showed the admin on every one of its 578 pages, and Admin Panel / Problems / Broken cards was one endless page under a pager that said "1 / 1". Same bug in two shapes: the pane subscribes to a publication that sends exactly one page, then reads the page back out of minimongo - which holds far more than the page. The logged-in user's own record is always there (accounts publishes it), and so is every card of every board the admin has opened. A plain find(query) cannot tell those apart from the page. So the server names the page. getPeoplePageIds returns the ids of the People page with the publication's own selector, sort and window; the Broken cards, Cards and Boards report publications send the ids of the page they just sent alongside it. Both panes render that list, in that order, and nothing else. Every paginated page in WeKan now loads ten rows at a time, from one constant - TABLE_PAGE_ROWS_PER_PAGE - including the pages that draw a pager of their own: the reports and event streams, the four People panes, Translation, the search pages and the archive. docs/Design/Page/Table.md records the rule and its two deliberate exceptions. And the counting behind those pagers is index-backed. Every count already asks the database for a count rather than fetching the rows, but several counted and paged on unindexed fields: People sorts users newest-first, so on an instance with 14000 users each page of ten sorted all 14000 first. Broken cards asks an $or over boardId/swimlaneId/listId/type, which uses no index at all unless every branch has one. The missing indexes are created at startup by the idempotent ensureIndex, so an upgrade adds them by itself. Thanks to xet7 ! |
||
|
|
c2fa9e0b3d |
Every upload threw in getFileStrategy, so no new file was mime-checked.
From the dev-server log, on a plain attachment upload:
[onAfterUpload] filename hardening failed: TypeError: Cannot read properties
of undefined (reading 'gridFsFileId')
at FileStoreStrategyFactory.getFileStrategy (models/lib/fileStoreStrategy.js:112)
at detectStoredFileMime (models/lib/fileTypeCorrection.js:120)
at FilesCollection.onAfterUpload (models/attachments.server.js:215)
`getFileStrategy` decided the storage like this:
storage = fileObj.versions[versionName].storage;
if (!storage) {
if (fileObj.meta.source == "import" || fileObj.versions[versionName].meta.gridFsFileId) {
A freshly uploaded file has no `meta` on its version - only a GridFS one does -
so that last read threw on EVERY upload. onAfterUpload catches and logs, so the
upload itself succeeded and looked fine, while the two things that hook does were
silently skipped for every new file: detecting the real mime type and correcting
the stored filename from it. `fileObj.meta` can be absent the same way, and so
can the version itself when a caller asks for one this file does not have.
All three reads are defensive now, and the decision is unchanged where the data
is there: a stated storage wins, an explicit argument wins over that, an import
or a GridFS version is still GridFS, and everything else is the filesystem.
tests/fileTypeCorrection.test.cjs replays that decision table, including the
document shape from the log (a version with no meta), a missing version, and no
file object at all - and fails if the unguarded read comes back.
Thanks to xet7 !
|
||
|
|
1f4bf0be13 |
Migrated images show in the card view again.
Reported after upgrading from WeKan 6 to 10.37/38/40: an attached image is
visible in board view, downloads correctly from the card, and yet the card view
shows an empty white box that cannot be maximized. Cards created AFTER the
upgrade are fine.
The card view does not look at the file; it looks at the flags Meteor-Files
writes at upload time:
if(isImage) img.attachment-thumbnail(src="{{link}}")
...
else span.attachment-thumbnail-text= extension
An attachment that came through a migration can arrive without them - no
isImage, and often no `extension` or `type` either - so it fell through to the
last branch and printed an extension that was not there: an empty box. The same
`link` in the download button worked, because a download needs no flag. The
viewer refused to open it for the same reason.
The kind of a file is derivable, and models/lib/attachmentKind.js is now the one
place that derives it: from the mime type where the document has one (in any of
the fields that have carried it over the years - type, mime, mime-type,
contentType, versions.original.type), and from the file NAME where it does not.
A flag the document states as true is believed, never contradicted; the name is
consulted only when there is no stated type, so a notes.txt that really is
image/png stays an image and does not also become text. The card gallery, the
"add cover" menu and the viewer all ask it, so a thumbnail that renders can also
be opened.
A startup repair (schema upgrade step `attachment-kind-flags`) writes the same
answer back to the documents, so the REST API, the exports and everything else
reading those flags agree with what is on screen. A file whose kind cannot be
told from either its type or its name is counted as unresolved rather than
guessed at.
tests/attachmentKind.test.cjs pins the rules - the reported case first - and the
wiring: 17 kinds derived from a name alone, mime beating a misleading name, a
name that must not be trusted to be a plain name (path separators, query
strings, dotfiles), the type read from each of the fields that carry it, and a
repair that writes exactly what is missing and nothing else.
NOT verified here: no server and no node in this environment, so the rules were
replayed against a model of the module rather than executed. That replay caught
three real mistakes in the first draft (a query string eating the extension, a
name overriding a stated type, and the repair rewriting a document that was
already correct), which are fixed.
Thanks to S0QR2 and xet7 !
Fixes #6532,
|
||
|
|
19a5ea0b71 |
Theme: every named theme publishes its accent, so the whole UI follows it.
Choosing a named theme recoloured the header - which has a `.board-color-<name>#header` rule of its own - and left everything that reads the `--theme-accent` CSS variable on the stock blue: the Admin Panel's selected left-menu row, its pane buttons, every Save button, the table-page controls and the popup header. That variable was only ever set when a user picked a CUSTOM colour for a flat/clear theme. models/lib/themeAccents.js now maps every allowed theme to the colour that theme paints its header with, and globalThemeColor.js publishes it as --theme-accent whichever theme is in force: the user's own override, the board's colour, or the site theme. A custom colour still wins over it, and the has-custom-theme-* classes stay tied to a custom colour - they exist to override a named theme's own header rule, which a named theme must not do to itself. tests/themeAccents.test.cjs parses boardColors.css and fails if the map and the stylesheet ever disagree, so a theme cannot be added in CSS alone and quietly fall back to blue. The Admin Panel edit popups (Edit User, Edit Organization, Edit Team) also got their layout fixed: they are centred on the window rather than positioned from the table row that opened them - which pushed their right-hand side, and the Save button, off the screen - and their fields lay out in as many columns as the window has room for, so a long form no longer has to be scrolled to reach Save. No popup can be wider than the window any more. And two smaller things in the Admin Panel: the Wait Spinner setting shows a live preview of the spinner beside its dropdown, which wraps below the dropdown when there is not enough room; and the Translation table's New column moved to the left, where every other Admin Panel table page has it. Thanks to xet7 ! |
||
|
|
f15d0c0cba |
Multitenancy: the three tenant modules must be ES modules.
Every app file is an ES module in Meteor, so `module.exports = {…}` in one of
them throws the moment the CLIENT bundle loads it:
Uncaught Error: ES Modules may not assign module.exports or exports.*,
Use ESM export syntax, instead: ./models/lib/tenantAdmin.js
and because it throws, every module after it in the client graph never runs -
models/users.js imports tenantAdmin, so the whole client went down with it.
models/lib/tenants.js, tenantAdmin.js and tenantBackup.js now export with ESM
syntax, and every importer uses import instead of require(). The .cjs unit tests
load them with a dynamic import(), the way tests/cardUrl.test.cjs already loads
its module.
tests/tenantWiring.test.cjs guards both halves, so the same crash cannot come
back quietly.
Thanks to xet7 !
|
||
|
|
36b899b9d6 |
Multitenancy: one WeKan server for many domains, with Organizations as tenants.
Implements option D of docs/Design/Multitenancy/Multitenancy.md, which that document now describes as shipped. An Organization may claim hostnames (Admin Panel / People / Organizations -> Edit), carry its own branding - product name, logos, help link, legal notice and theme colour - and have its own Organization admins, appointed from the row's "..." menu. The request's host picks the Organization; its branding replaces the instance branding for that request, and the client bundle that host serves points its DDP connection back at that host instead of at the one ROOT_URL. An Organization admin administers their own Organization and nothing else: its people, its Organizations row, its theme colour and its backups. They can never grant the site-wide Admin flag, never manage a site admin, and never see another Organization's people or archives. Per-tenant backup and restore is one new control in Admin Panel / Attachments / Backup - Scope. An Organization's archive holds its boards and everything on them plus the attachments those boards use, and no accounts, no instance settings and no org/team documents, because those are shared. A restore may only write to boards that Organization owns: the board ids are the intersection of what the archive claims with what the Organization really owns, every document is checked against that, and "replace all" replaces that Organization's documents rather than everyone's. Admin Panel / Settings / Visibility gains a Change color section above Logo: the site theme, rendered by the SAME shared picker as Board Settings and Member Settings - one template for all three, the way one shared table page serves every table. Its design is the new docs/Design/Page/Theme.md. The order of themes is WeKan's default theme, then the site theme (an Organization's own value on its own hosts), then a user's own override; a board's own colour still owns the board page. All of it is OFF unless the server is started with MULTITENANCY=true (plus MULTITENANCY_TRUST_PROXY_HOST=true when a trusted proxy sets X-Forwarded-Host), so an instance that has never heard of tenants answers exactly as before. One WeKan server per customer remains the supported topology for customers who must not share a process, and the design says plainly what this does NOT isolate. The decisions are three pure modules - models/lib/tenants.js, tenantAdmin.js and tenantBackup.js - so the same rules run on the client, on the server and in the tests. Four new suites pin the separation rather than the plumbing: forged Host headers, cross-tenant queries, privilege escalation and cross-tenant restores. Thanks to xet7 ! |
||
|
|
fc0fe31779 |
Admin Panel / Problems: Broken cards is a report, and the menu says which group is which.
Broken cards was the one entry in this menu with a different set of controls: no
search box, no total, no "page X / N", just a prev/next of its own - because it
ran on the global-search machinery (CardSearchPaged, a session document and the
nextPage/previousPage publications) instead of the shared table page. It is a
column spec in REPORT_TABLES now, like Files, Rules, Boards and Cards, driven by
the same loadReport(): a new admin-only `brokenCardsReport` publication takes a
search term plus limit/skip and publishes ONE page manually (a returned
sorted+limited cursor hangs on FerretDB's OpLog, as with the other reports), and
`getBrokenCardsReportCount` gives the total behind the counter.
What "broken" means - no board, swimlane or list, or a type that is not a card
type - is now one selector shared by the report and by the standalone
/broken-cards page, which still runs on the global search and keeps its own
publication unchanged.
The menu is two named groups. Summary, then a rule and a "Settings" title over the
two panes that came from Admin Panel / Features, then a rule and a "Reports" title
over the reports. A title is a new kind of menu item - `{ heading: true, labelKey }`
- with no id, no icon and no handler class, so there is nothing to click, nothing
for the page's click handler to read a data-id from, and it can never be the active
row (or a group name could end up as a pane title). Both use an i18n key the app
already has, so no language has to translate anything new.
Performance moves down to sit with the Speed, Tests and CPU usage streams it is
about, below Impersonation Report - it was three groups away from them, up with the
other two Features panes.
While there: the separator between groups is styled with the menu itself. The rule
for it lived in adminReports.css, twice, targeting a class the shared menu does not
render - so it had never applied to anything.
Thanks to xet7 !
|
||
|
|
d232194070 |
Admin Panel: the tables fit, every pane has a title, and Version opens first.
Reported one after another, all in the Admin Panel, and they turned out to share
two causes: a stylesheet deciding a table's width from outside the design that
owns it, and a pane having to write for itself what every pane needs.
The tables
* Admin Panel / People / People rendered NOTHING - no table, no search box, no
pager. `buildFilters` and `buildActions` were used in peopleTablePageData but
never imported. That is not a build error: it is a ReferenceError thrown inside
a helper while rendering, which Blaze answers by rendering nothing at all.
Organizations, Teams and Domains use neither function, so they drew normally,
which is what made it look like a People-only problem.
* The right-hand side of a table was off screen - reported on Domains, and just
as true of Admin Panel / Version, where the value column was cut off at the
window edge. Two admin stylesheets forced `min-width: 1200px !important;
width: max-content !important` with nowrap cells on a bare `table` selector.
peopleBody.css had no page in the selector at all, so it reached every table in
WeKan, and `!important` beat the shared table page's own width:100% +
table-layout:fixed. The same rules also made a SHORT table shrink to its
content, which is why Domains sat at a third of the panel on a narrow window.
No admin table is forced wide any more: it fits its panel and its cells wrap,
and the phone-width exception that used to undo the floor is simply the rule at
every width. The shared table page's width and wrapping are `!important` now -
a guarantee a stylesheet in another folder can silently override is not a
guarantee.
* An empty table page rendered no table at all, and the "New" link of
Organizations, Teams, People and Translation is a column HEADER - so an empty
pane had no way to create the first row. The table always renders now; the
"no items" message moved below it.
* The controls row: every control shares one height and no margin. forms.css is
`button { display: block; margin-bottom: 14px }`, written for stacked form
buttons, so a button that kept that margin was centred higher than one that did
not - "Unlock all users" sat lower and shorter than "Teams" beside it, since it
also carried a 20px margin and a 28px height from the old hand-written header.
Action buttons are themed with the pager, in the one stylesheet that owns those
colours, every state spelled out, or a bare <button> falls through to the
forms.css fallback, which is literally black.
Admin Panel / Settings / Translation now renders through the shared table page
(docs/Design/Page/Table.md) instead of a hand-written table: four columns, an
interactive row, the "New" link as a column header. It pages ONE page of 25
server-side with limit/skip and a count method, where it used to grow a window by
infinite scroll; the publication publishes the field it is sorted by, so the
client's sort matches the server's page.
The pane title
Every Admin Panel pane opens with the same heading, and the heading is the ACTIVE
LEFT MENU ENTRY's own label - `paneTitle()` in models/lib/leftMenu.js, one class
`.admin-pane-title`, which the shared table page's own title carries too. Before
this only the paginated table pages had a title at all: Domains said "Domains"
while Login, Announcement, Accessibility, PWA and Version opened with no heading.
Deriving it from the menu is what keeps them identical - a pane cannot end up with
a title of a different size or none at all - and it is why a table page inside the
Admin Panel now passes no titleKey: the section already rendered the heading.
The menus
* Version is the FIRST pane of Admin Panel / Settings and the one that opens with
the page, so what an admin sees first is the version, database and system
information they usually came for. Its page, its one-entry menu and its tab are
gone - a page whose menu had a single entry was a page in name only - and
/information redirects to Settings, the same move Translation made.
* Admin Panel / People: Domains moves up beside E-mail, the settings it is about.
* Admin Panel / Attachments: Backup moves to the top.
Tests: tests/tablePage.test.cjs gains the Translation conversion, the empty-table
header, the one-height controls row, the themed actions and a guard that no admin
stylesheet may force a table's width; tests/leftMenu.test.cjs gains the pane title
(helper, template, every page renders it, one shared size) and Version as the
first Settings pane; tests/translationPane.test.cjs is rewritten for the pane that
is left once the shared design owns the table.
Thanks to xet7 !
|
||
|
|
f1c89548e0 |
ZipBleed: a restored backup archive could write outside the files directory.
CRITICAL SECURITY ISSUE (CWE-22 Improper Limitation of a Pathname to a Restricted
Directory, "zip-slip").
A zip entry carries its own path, chosen by whoever built the archive, and path.join()
RESOLVES `..` segments instead of rejecting them. The restore checked only that an
entry's FIRST path segment was `attachments` or `avatars`, then joined the rest onto
the matching directory:
const rel = entry.path.split('/').slice(1);
const kind = rel[0];
if (kind !== 'attachments' && kind !== 'avatars') continue;
const destPath = path.join(attachmentsDir(), ...rel.slice(1));
So an entry named
2026-07-25_12-00-00/attachments/../../../../etc/cron.d/wekan
satisfied that check - its first segment really is `attachments` - and joined its way
clean out of the files directory. With attachmentsDir() = /data/files/attachments it
resolves to /etc/cron.d/wekan, and the entry's contents were streamed there. A crafted
backup.zip could drop or overwrite a file anywhere the WeKan process could write.
restoreBackup is behind requireAdmin(), which is less of a barrier than it sounds:
that is exactly how a hostile archive arrives - offered as a backup to restore, at the
one moment nobody inspects the file they were handed, and nothing in an archive is
visible before it is unpacked.
Fixed in models/lib/backupPaths.js, next to the other pure backup helpers so it is
unit-testable without Meteor: safeEntryPath() resolves the candidate to an absolute
path and requires it to sit under the target directory. It compares against the base
plus a separator, because a bare startsWith(base) also accepts a sibling directory
whose name merely begins with the same letters (/data/files/attachments-evil). An
absolute segment is caught by the same check, since path.resolve discards everything
before it.
The data half of an archive names the Mongo collection to restore into, and that name
came from the entry too, so safeCollectionName() constrains it to a plain
[A-Za-z0-9_-]+ name - which also keeps a restore out of the database's internal
system.* collections, excluded from backups in the first place.
A refused entry is skipped and logged rather than thrown on, so one hostile entry in
an otherwise good archive cannot abort a genuine restore.
This is WeKan's own code, not a dependency: it is the same class as the unzipper
advisory GHSA-884w-698f-927f, but WeKan runs unzipper 0.12.x, which that advisory does
not affect. Found while reviewing the open dependency pull requests.
tests/zipbleed.test.cjs asserts the exact traversal above is refused, that a plain
entry still restores where it belongs, that absolute segments and prefix-matching
siblings are refused, and that the restore really calls both guards. One assertion
reproduces what the OLD code did with the attack path - path.join returning
/etc/cron.d/wekan - so the suite states the danger, not just the remedy.
Tests: 1359 passing.
Thanks to xet7 !
|
||
|
|
d34d281595 |
Admin Panel: the left menu is back on every page.
Settings, People, Features, Attachments, Version and Problems all rendered an empty
panel where their left menu belongs.
The seam between the two halves of the shared menu was wrong. leftMenu.jade iterates
`each items`, and every page handed it the bare ARRAY that buildMenuItems returns - so
Spacebars looked `items` up ON the array, found nothing, and rendered nothing. The
template's own comment said the data context is `{ items }`; the six call sites did
not provide it.
Nothing failed anywhere: the template was correct, the helper was correct, every unit
test passed, and the menu was simply not there. Six pages lost their navigation to one
mismatched shape.
A new leftMenuData() states that shape once, in models/lib/leftMenu.js, and all six
pages build their context through it. buildMenuItems keeps returning an array, which
is what activeCount and the tests want.
The guard that was missing is the one that checks the SEAM rather than either half:
it reads which variable leftMenu.jade iterates, calls leftMenuData, and asserts the
returned context actually has an array under that name - so renaming the loop variable
or handing back an array fails the suite. A second test asserts no page calls
buildMenuItems directly in its menuItems helper, since that is exactly the mistake
that empties one page's menu while the others keep working.
Verified both fail when the bug is put back, then pass again when it is removed.
Tests: 1346 passing.
Thanks to xet7 !
|
||
|
|
13f40bf3ab |
Table page: row and header slots (option A), and Organizations converted.
Organizations could not be expressed as a column spec: its rows carry inline checkboxes and edit links, and three of its headers carry a select-all pair. The design gains two slots rather than those panes staying outside it: - rowTemplate + docs - the page supplies a template and one data context per row, and owns its <tr>. It is then responsible for matching the column count: the guarantee that a row can never be shorter than the header holds for the CELLS form only, and the doc says so. - headerTemplate + headerData on a column - the <th> still belongs to the shared template; only its contents come from the page. Everything else stays shared either way: layout, paging, search, the themed pager, the total. The doc says to prefer the column spec and reach for these only when a pane is genuinely interactive. Organizations now renders through the shared page - 1826 characters of its own table markup gone, plus its .org-pagination rules from both stylesheets, since it uses the shared pager. Its three feature headers share ONE new template parameterised by feature, instead of three copies of the select-all pair. One thing the conversion forced: all of People's panes render inside the SAME template, so a handler bound to a shared control class fires for every converted pane at once. The org pager is scoped to the open pane via activeMenuId - Domains was unaffected because its handlers live on its own child template. Tests: the two slots exist and the plain column path is unchanged; Organizations renders the shared page, keeps no table markup, uses both slots, and scopes its pager. Two doc/test pairs updated to say "Domains and Organizations". Five panes remain: Teams, People, Locked users, Roles, Shared templates. Thanks to xet7 ! |
||
|
|
1c1aefbd16 |
Admin Panel / Attachments: render its side menu from the shared left menu.
The last of the seven. 2525 characters of menu markup became one +leftMenu(menuItems); Attachments already tracked the open pane in activeSection, so nothing had to be derived, and its single click handler is untouched - the shared template puts js-attachments-menu on every entry alongside the shared class. One template addition: the Sandstorm entry is a proper noun, not a translated string, so an item may now carry a literal `label` where the others carry a `labelKey`. The Sandstorm-only condition survives as data, a null the builder drops, rather than markup wrapped in `if isSandstorm`. All seven Admin Panel pages now render the same menu from a data list. Across them: 8393 characters of duplicated markup gone, 44 entries described as data, and 19 near-identical click handlers collapsed to 7 - one per page. Tests: a check that ALL seven render the shared menu and none keeps .side-menu markup of its own - the design is only worth having if nothing is left outside it - plus the Sandstorm entry and the literal-label fallback. Remaining: People's seven pane tables still need converting to Table.md. Thanks to xet7 ! |
||
|
|
7e2f33387e |
Table page: adopt People's filter, actions and total into the shared controls row.
The three features that kept Admin Panel / People off this design are now part of
it, and they are ON by default - there is no enabling flag. A page that supplies a
filter or an action gets it rendered, and the total is shown whenever the page
knows one:
filters: buildFilters([{ id, labelKey, options: [{ value, labelKey }] }], current)
actions: buildActions([{ id, labelKey, icon, cls }])
total: <number> (+ optional totalLabelKey)
They are general - a Boards or Cards report wants a filter and a total as much as
People does - so they belong in the one template rather than in a per-page copy.
The controls row now reads: search, filters, actions, total, pagination.
A page identifies which control was used by its data attribute (data-filter,
data-action), so this adds no new handler pattern: the same one-handler-per-page
rule as the search and the pager.
The option matching `current` is selected as STRINGS, so a numeric filter value
still selects. The total sits with the controls, not in the table, because it
counts the whole result set rather than the page, and inherits its colour so it
stays readable on a dark theme.
Tests: the two new helpers (including junk input - a filter with no options
renders an empty select rather than crashing), that the four parts appear in
reading order between the search field and the pagination, that there is NO
opt-in flag, and that the doc says so.
One earlier guard needed fixing rather than the code: "the table page stylesheet
does not restate button colours" sliced the CSS by POSITION, so the new rules
landed inside the slice and tripped it. It now matches by selector, which is what
it always meant.
NOT done: People itself still renders its own markup. Its seven panes
(Organizations, Teams, People, Domains, Locked users, Roles, Shared templates)
are seven tables with their own columns and handlers, and converting them is a
larger piece of work than adding these features was. The blocker recorded in
Table.md is now gone, so that conversion is unblocked - the "Pages that do not
use this design" entry stays until it is actually done.
Thanks to xet7 !
|
||
|
|
f46aab011b |
Admin Panel / Problems: render its side menu from the shared left menu.
First page converted to docs/Design/Page/Left-Menu.md. Its thirteen entries were
six lines of markup each plus, for twelve of them, an identical click handler.
They are now a data list:
{ id, icon, labelKey } and { separator: true }
built by buildMenuItems() and rendered by the one leftMenu template. 1895
characters of markup in adminReports.jade became a single +leftMenu(menuItems).
Same styling, deliberately: the shared template reproduces all three icon shapes
the Admin Panel pages already used, so a conversion changes no pixel - an empty
span.emoji-icon before the icon (Settings, Features), the icon inside a coloured
span.emoji-icon (People / Locked users), or a bare i.fa (Problems, People,
Translation, Info). Problems uses the bare shape it had.
The twelve 'click a.js-report-<name>' handlers, all of which called switchMenu,
are one 'click .js-left-menu-item'. switchMenu no longer toggles the active class
by hand either: the active row is rendered from activeReport, so the manual
removeClass/addClass would have fought the next re-render. Its "already open"
guard now compares ids instead of reading a DOM class, and it resolves data-id
from the anchor rather than event.target, which may be the icon inside it.
Three suites looked for the menu ids in adminReports.jade; the menu is DATA now,
so they read the .js. Same intent, right file.
Tests: tests/leftMenu.test.cjs gains the conversion checks - the page renders the
shared menu, keeps no .side-menu markup of its own, builds its entries through
the shared helper, has exactly one menu handler and no manual active-class
toggling, and the three icon shapes are reproduced.
Still to convert: Settings, People, Features, Attachments, Translation and Info.
Settings, Features and the two single-entry pages are the same mechanical swap.
People and Attachments additionally need an active-id reactive var, because they
track the open pane by toggling a DOM class rather than in state.
Thanks to xet7 !
|
||
|
|
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 !
|
||
|
|
1fb382f0eb |
Stop Admin Panel / Problems showing a finished board-repair and info CPU rows.
#6520: the Problems "Status" page showed "Board data-repair — 146/146 boards" running forever (plus a matching "Migration or repair" login warning), and the CPU area showed dozens of "new problems" on an idle server. Board repair stuck at "running": getInProgress() trusted the raw `running` flag. The startup repair DOES write running:false on completion, but its progress callback also fired a NON-awaited running:true write when boardsDone === boardsTotal; being fire-and-forget, that write could land AFTER the awaited completion write and pin the doc at "running, 146/146". A process killed mid-repair leaves running:true too. Both now clear: * the startup progress callback no longer writes the terminal boardsDone === boardsTotal update (the completion write owns the final state), closing the race at the source; * getInProgress() now asks the new pure isStatusActive() instead of reading `running` directly - a doc is "in progress" only while running AND not in a terminal phase (completed/error/done) AND not already finished by count (done >= total) AND updated recently (a running flag with no recent progress write is a crashed run). This also heals docs already stuck on an instance, and fixes the same class of stale flag for the text migration. Because the login "Migration or repair" warning keys off getInProgress(), it clears too. CPU "57 new problems" on an idle server: the count in eventLogProblemAreas counted every unacknowledged row in a stream. The CPU monitor writes one 'detected' row when a high-CPU period starts and several severity:'info' rows ('remediated' when it ends, 'rate-limited' for mitigation, FerretDB governor chatter), so each brief, already-over spike looked like several "new problems". The count now excludes severity:'info' rows (via the new newProblemsSelector) - notices that a problem was handled or cleared are not problems. Rows with no severity are still counted, so nothing unclassified is silently dropped. Both decisions are pure, unit- and negative-tested (statusActive.test.cjs, eventLogProblems.test.cjs), and registered in test:unit:node. Thanks to Alishara and xet7 ! Fixes #6520, |
||
|
|
c0e71705f6 |
All Boards: a live drop gap that follows the drag, in place, not just at the end.
Replaces the fixed "drop at the end" placeholder with the standard sortable feel:
while a board is dragged, an empty dashed gap opens up before or after the tile
under the cursor, showing exactly where the board will land - anywhere in the
current view (Starred / Templates / Remaining / a workspace), not only at the
end.
How it works:
* `dragover .js-board` computes which side of the tile the cursor is on
(inline-centre, RTL-aware) and inserts a placeholder `<li>` there. The
placeholder is a plain DOM node, inserted next to the Blaze-managed tiles and
removed on dragend, so it never fights Blaze's reactive list.
* `drop .js-board` reads that side and reorders with the pure
computeReorderedIds(..., after), which now inserts on the target's leading OR
trailing side and returns null for a no-op (including a drop back into the
board's own slot). Dropping past the last tile reaches the end, so the
separate end target is gone.
The placeholder is a real grid cell, so the surrounding tiles flow around the gap
as it moves. Unit tests cover the new before/after side and the own-slot no-ops.
Still mouse-only: HTML5 drag-and-drop does not fire from touch (the jQuery-UI-
sortable + touch-punch move noted before is what would add finger dragging).
Thanks to xet7 !
|
||
|
|
da64c8a0f1 |
All Boards: add a trailing drop placeholder to move a board to the end.
Dropping one board onto another can only place it BEFORE that board, so the last slot in the order was unreachable by drag. A dashed "drop here to move to the end" tile now sits after the last board (only in the manual "custom" sort mode, where drag-reorder applies) and accepts a drop that moves the dragged board to the end. The move-to-end order math is the pure computeReorderedSortIndexToEnd in models/lib/boardSortReorder.js (a no-op when the board is already last); the dragover/drop handlers mirror the board-tile ones and light the placeholder with the same `.board-reorder-over` highlight. Thanks to xet7 ! |
||
|
|
5a1a661e01 |
Make the drag-handle toggle work on touch screens, and free the card body for panning.
"Show desktop drag handles" did nothing on a touch screen. The rule was isTouchScreenOrShowDesktopDragHandles() = isTouchScreen() || preference so on touch the OR was already true and the toggle could never hide the handles. Every place that decides whether to render a handle - minicard, list header, swimlane header - and every sortable handle selector goes through that one helper, so the setting was inert on exactly the devices that show handles. The setting is now THREE states, not two: on, off, and never-chosen. An explicit choice always wins (including OFF on a touch screen); only when the user has never chosen does the device decide, and then a touch screen still gets handles by default, because a finger needs something to grab. The rule lives in the pure models/lib/dragHandles.js so it can be unit-tested, and the toggle now stores a real `false` instead of removing the setting - that is what lets "turned off" be told apart from "never chosen". toggleDesktopDragHandles takes the explicit new state from the client (which alone knows whether this is a touch device) and still accepts no argument for older clients. Handles also decide what a DRAG MEANS, and that half was broken too: `.minicard` and `.list-header` carried `nodragscroll` unconditionally, so with handles ON a finger dragging across a card neither moved the card (only the handle does) nor panned the board (dragscroll was opted out) - it did nothing. They now opt out only when handles are OFF, i.e. only when the element IS the drag source. With handles on, the card body pans the board, which is the whole point of having handles. And the handle has to be reachable with a finger: it was a 20-28px icon in the bottom-right corner, a mouse-sized target that is close to unusable on a wall-mounted infoscreen. On a coarse pointer it becomes a 48px full-height strip down the leading edge (the Material minimum, and the easiest edge to thumb), with the card content padded to match. A mouse keeps the compact corner handle, since `pointer: coarse` does not match a mouse. Tab order: the keyboard card/list move buttons are focusable but `opacity: 0` and sit at the START of the card content, so tabbing went card (visible focus) -> invisible -> invisible -> next card and the focus ring kept vanishing and reappearing where it looked like it had gone backwards. They are now revealed while focused, the same pattern the skip-to-content link already uses. Adds tests/dragHandles.test.cjs: the three states, that an explicit OFF hides handles on touch (the reported bug), that an explicit choice always beats the device default, and that a corrupt stored value falls back to the device default rather than leaving a finger unable to drag. Thanks to xet7 ! |
||
|
|
642fa8e93f |
"Map to existing user" now searches every user, not only board members.
After importing a Trello board and choosing to map users later, "Map to existing user" listed only the admin: the picker offered nothing but the ACTIVE REAL MEMBERS of the board, and right after an import the real people have no membership at all - the placeholders do. There was no search box either, so on a board whose only real member is the importing admin there was literally nobody to pick. The picker now has a search box that goes through the same permission-checked `searchUsers` method the normal add-member typeahead uses, so the same board membership check and the same #6116 same-org/team restriction apply. With the box empty it still lists the board's real members (the common case, which changes no roles at all); typing searches every real user and labels the ones who are not on this board yet. Mapping onto a user who is not a board member adds them to the board with the PLACEHOLDER's OWN role - the role the import recorded for that person - never a higher one, and only after passing exactly the checks inviting them would: the Admin Panel "roles allowed to invite" setting, the same-org/team restriction, and the refusal to add a deactivated account. Adding a member with a chosen role is something the board admin doing the mapping can already do through the normal add-member flow, so this grants no capability the caller did not have; an existing active member is still left completely untouched, entry and role. Also fixes sanitizeUserForSearch dropping `profile` from every search result: it read the Mongo-style paths in its allowlist ('profile.fullname') as FLAT keys, so the lookup was always undefined and both this picker and the add-member typeahead showed a blank name with only the username in brackets. Dotted paths are now copied into the same nested shape, still allowlisting exactly the listed leaves. Adds positive and negative unit tests for the new planner contract, including that a comment-only placeholder can never yield an admin, that reactivating an inactive membership does not duplicate the entry, and that the invite policy runs before any write. Thanks to AmigaAbattoir and xet7 ! Fixes #6519, |
||
|
|
d168a9d302 |
Add a Repair button for "Broken cards N" in Admin Panel / Problems / Summary.
The Summary page reported "Broken cards N" and told the admin to "open the board to auto-repair, or run the repair migration", but there was no button anywhere to run one - and worse, no repair in the app could actually clear that count. countBrokenCards() counts every card missing a boardId OR a swimlaneId OR a listId. repairAllBoards() walks only NON-ARCHIVED boards and only ever sets swimlaneId, so three kinds of counted card could never be repaired by anything: cards on an archived board, cards with a missing listId, and cards with no boardId at all. The count sat there forever with nothing to press. The new repairBrokenCards method (admin only) runs the standard per-board pass and then closes those gaps: orphaned-swimlane cards on archived boards, and cards missing a listId and/or swimlaneId on any board, are assigned to that board's first usable list/swimlane (creating a default one if the board has none). Each board resolves its default list/swimlane once rather than once per card. Cards with no boardId cannot be placed on any board - guessing would drop a user's card onto an unrelated board - so they are reported back as `unfixable` and left alone, never deleted, and the result line says so instead of leaving a count that never reaches zero unexplained. What counts as broken now lives in one pure module, models/lib/brokenCardsRepair.js, used by BOTH the count and the repair, so they can no longer drift apart and leave the admin pressing a button that does not move the number. Progress is persisted through setBoardRepairStatus, so a running repair shows up in the same "in progress" list as the startup pass. Adds unit tests (positive + negative) for the shared rule, including the regression itself: every card the count reports as broken must be either repairable or explicitly unfixable, never silently neither. Thanks to xet7 ! |
||
|
|
52325228f8 |
Fix 6 pre-existing unit-test failures (stale source-guards + a cleanup race).
These failed before the ESM conversion and are unrelated to it: - addBoardTileHeight: the .path-right slice window was 1600 chars but js-board-search-input is at offset 2517 after the header grew; widen to 3000. - listWidthDefaults: isValidListWidth(269) is TRUE (269 >= MIN 200, no upper bound); drop 269 from the "invalid widths" list. - uiDensity: the js-open-board-menu cog moved to sidebar.jade; read that file. - exporterBackpressure: the leaky-pattern guard matched the pattern quoted in an explanatory comment; strip // comments before matching. - adminReportsPagination: a 6th report section was added; expect 6 .admin-report-controls, not 5. - fileTypeCorrection (real fix): streamHeaderToTemp unlinked the partial temp file fire-and-forget, racing the async write-stream open, so a caller could still see the file after the rejection. Remove it only after the write stream has closed, then reject. Remaining known failure: rulesApiTriggerNormalize (#2674 $in-matching) — left for a maintainer decision on the intended rule-normalization contract. |
||
|
|
d6908cf418 |
Convert client-reachable CJS helpers from CommonJS to ES modules (2/2).
A transitive walk from client/main.js found the remaining CommonJS
(module.exports) helpers that the rspack client build pulls into the ES
module graph and rejects: 3 client/lib helpers (cardDragGeometry,
inlinedFormManager, popupOffset), 4 imports/lib helpers (boardAutoScroll,
datePickerTime, fileNameDisplay, staleWhileRevalidate), imports/simpleSchema
(its meteor/aldeed:simple-schema require becomes a namespace import),
imports/i18n/loadHelpers, and 4 more models/lib helpers (cardLinkRedirect,
sandstormAutoOpen, securityCategories, securityLogFormat). All become
`export { ... }`; their .cjs unit tests use `await import(...js)`.
The only CJS files still reachable in the walk are server-only: the
server/lib/* files (Meteor never bundles server/ to the client) and the
fs-using models/lib file-storage helpers (reached only via the server-side
fileStoreStrategy; they would fail on require("fs") if they were actually in
the client bundle). Those correctly stay CommonJS.
Full tests/*.test.cjs suite: same 7 pre-existing failures, no new ones.
|
||
|
|
8d1fae4f7d |
Convert client-reachable models/lib helpers from CommonJS to ES modules (1/2).
The rspack client build treats a `module.exports` file imported into the
client bundle as an ES module and throws
"ES Modules may not assign module.exports" at evaluation time, aborting
the whole client module chain (No such template: swimlane / notifications
/ boardButtons, blank board, missing top bar). This is not an rspack
version regression (the lockfile has pinned ~1.7.x since v8.40); it is
that WeKan added CommonJS helpers to the client bundle.
Convert the 42 client-reachable pure-logic models/lib helpers from
`module.exports = { ... }` to `export { ... }`, and calendarFilter's
internal require('./swimlaneFilter') to an import with a .js extension
(node ESM needs it; rspack/reify tolerate it). Server-only helpers that
use node built-ins (fs/path/child_process) stay CommonJS. The plain-Node
.cjs unit tests for these helpers now use `await import(...js)` (wrapped
in an async IIFE); a source-guard in importVirtualMembers was updated
from module.exports to export. Verified: the full tests/*.test.cjs suite
has the SAME 7 pre-existing failures as before this change and no new
ones.
|
||
|
|
337035eb4c |
Fix #6515: the startup/board-open repair no longer unbinds per-swimlane lists.
repairBoardsOnStartup ran the shared board repair over every board and, via planBoardRepair, cleared swimlaneId to null on EVERY list that had one -- treating any swimlane-bound list as #6484 corruption. But a list with a swimlaneId is a legitimate PER-SWIMLANE list (rendered only in its swimlane via swimlaneLists()), indistinguishable from a #6484-corrupted board-wide list at the data level. So on upgrade to v10.26+ the routine silently unbound every per-swimlane list (the reporter: listsUnbound: 24) and all lists then rendered in every swimlane. Board open re-ran the same repair, so even a manual swimlaneId restore in the DB was nulled again. Remove list-unbind from the automatic plan (planBoardRepair.listsUnbind is always empty; repairBoardData no longer issues the swimlaneId: null write). The card repairs (missing-swimlane, orphaned) are kept. The #6484 CODE bug that could wrongly bind a board-wide list is already fixed, and an admin can still deliberately un-bind a specific board with the explicit repairBoardWideLists method. Affected boards keep their swimlaneIds now; a manual restore from a pre-upgrade backup will stick. Tests: boardRepair.test.cjs updated to assert per-swimlane lists are never auto-unbound and the applier no longer clears swimlaneId. Thanks to jullbo and xet7 ! Fixes #6515, |