mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
1a4e87c19fe63d6444a65cbd52ddecc81b24ad0f
683
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1a4e87c19f |
Starred boards popup: a title, and so a close button.
The popup had no title, so it rendered as a no-title pop-over: no header, and the close button lives in the header, leaving nothing to shut it but clicking away. It is titled "Starred Boards" now, from starred-boards - the key the app ALREADY has for that phrase - through a new titleKey option on Popup.open. The convention is <popupName>-title, which is right when a title is that popup's own words and wrong here: adding starredBoardsPopup-title would put a second copy of one phrase into all 147 language files, English in every one of them at first, so most languages would show English for something they have already translated. The convention still applies to every popup that does not pass a key. The board's own Multi-Selection button carries its name beside the icon now. All Boards' got its label earlier; this is a different button in a different file and was left behind - a check-box outline says nothing about what either does. Thanks to xet7 ! |
||
|
|
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 ! |
||
|
|
0461de062f |
Board: the second header bar is gone. It was the last one.
Three things, as asked. NO DUPLICATE BOARD NAME. The second bar drew the board's title in an `h1` of its own, under the same name in the bar above it. The first bar has said it since the first step of this work; the h1 is gone. THE PENCIL IS BESIDE THE NAME. Renaming a board belongs next to the board's name, not in a bar of its own, so `boardEditTitleButton` renders immediately right of the title in the first bar. Board admins only, as before. EVERYTHING ELSE IS AN ICON, LEFT OF THE BELL. Visibility, watch, star, sort, the board's rule buttons, filter, search, dependencies and Multi-Selection, each named by a tooltip and none carrying a visible label. The bar is one row shared with the logo, the starred boards, the view menu, the bell and the user menu; ten labelled buttons do not fit at any width. The desktop/mobile duplication went with it. The old bar wrote the whole set out TWICE - `unless isMiniScreen` and `if isMiniScreen` - because a row of labelled buttons does not fit on a phone. Icons do, so one copy serves both, and the two switches that had to be kept in step are gone rather than kept in step. headerBarControls.jade is deleted. It held one Search button and one Multi-Selection button, written for this bar and All Boards'; both bars are gone now, so a template shared by nobody was indirection rather than sharing. Every route reference goes with the bar: config/router.js names no headerBar at all any more. Six guards followed, and four of them existed only to measure this bar: the title-plus-buttons row that a long board title split across two lines, the wrapper that fixed it, the phone layout, and the hamburger that shared the first row with the title. All of that was one problem, and the problem is gone with the row. Each says so where it used to measure it, rather than being deleted. Thanks to xet7 ! |
||
|
|
a1980ca67e |
All Boards sidebar: put the theme where a theme rule can see it.
The theme class was on the `.sidebar` element itself. Every themed sidebar rule
is a DESCENDANT selector -
.board-color-belize .sidebar .sidebar-content .sidebar-btn { ... }
- so a class on that same element matches nothing at all, and the panel stayed
exactly as it was: white icons and white text on a light grey background. On a
board the class sits on a CONTAINER around the sidebar, which is what makes
those rules apply, and that is what was missing here.
.all-boards-sidebar-theme is that container. It wraps only the sidebar, so the
theme cannot bleed into the board icons behind it, and it is out of flow - the
sidebar inside is fixed - so it costs no layout. Boards in Archive, and every
other .sidebar-btn in the panel, now gets the themed background with its white
icon and text on top of it, and the list rows get the themed hover.
The guard passed on the broken version, which is why it shipped: it asked
whether the theme class was somewhere in the file, not whether it was on an
ancestor of the sidebar. It now asserts both halves - that the sidebar element
does NOT carry it, and that a wrapper containing the sidebar does. Verified it
fails on the markup as it was.
Thanks to xet7 !
|
||
|
|
09003f0172 |
Boards in Archive is a page, not a modal.
It was Modal.open('archivedBoards'), from three different menus, so the one
place that lists every archived board - with its own search and its own pager -
was a box floating over whatever you happened to be looking at. It had no
address, so it could not be linked to a colleague, bookmarked or opened in a
second tab; there was nothing to come back to; and Escape closed it while you
were reading it. "Restore the board I archived last month" is a task, not a
glance.
/archive is a page now, in the default layout, with the same second top header
bar as every other page and the board session state cleared the way the other
non-board pages clear it. The template is the same one the modal used, minus its
own h2: a modal has no header bar to be named in, so it drew its own title, and
on a page that is the title printed twice. archivedBoardsHeaderBar names it
once, where every other page is named. The search, the per-board Restore and
Delete, and the SERVER-side paging all survive the move - the subscription still
publishes one page at a time, so a long archive stays fast.
All four entry points go to it by route NAME rather than by a path spelled out
in four places: the board menu, the member menu, the board sidebar, and the All
Boards sidebar.
That fourth one did not work at all. The row was drawn in the All Boards
sidebar's home view, and clicking it did nothing: the handler it relied on lived
in the header bar's events map and went when that map was rewritten for the
sidebar. A Blaze event map only sees events inside its own template, and the
button had moved out of it. It has its own handler now, and the sidebar closes
behind it - the page it opens replaces the page the panel belongs to.
Written down in docs/Design/Page/Archive.md.
Thanks to xet7 !
|
||
|
|
ae80d997eb |
All Boards sidebar: place it, size it, and give it a theme.
Three things xet7 reported with a screenshot, all of them mine, all of them in the shell the sidebar borrows from a board. It was WHITE TEXT ON LIGHT GREY. .sidebar .sidebar-content .sidebar-btn is a light grey box whose text is white; what makes that readable on a board is a .board-color-* ancestor replacing the grey with a themed colour. This page has no board, so nothing did. The shell carries board-color-belize now, the established default for a themed thing outside a board - globalSearch.js falls back to the same one. It is a class on the element, so the theme is the same on a phone and on a desktop; only the geometry below is desktop-only. It FLOATED OVER THE BOARD ICONS, starting halfway down the page and ending as soon as its content did. It had inherited position: absolute, which resolves against the nearest positioned ancestor: on a board that is the board container, which already starts below the header and runs to the bottom of the window, and this page has no such container. It is pinned to the viewport now - top is var(--wekan-header-height), the height the header MEASURES itself to be (it is not a constant: its buttons wrap to one, two or three rows depending on language and window width, and utils.js keeps the variable current with a ResizeObserver), and bottom is the window. Below the second top header bar, full height, like the board's. And the boards now move LEFT instead of being covered: .all-boards-wrapper.sidebar-open .boards-layout gives the panel its 420px back - the width the sidebar is - so the icons reflow into what is left between the menu and the panel and every one stays visible. Desktop only, both of those. On a phone .board-sidebar.sidebar in the board sidebar's own stylesheet already pins this element - it carries that class - to the full screen width below the header, and there is nothing to move aside from a full-width panel. All three views share the shell, so Search and the hamburger's home menu are fixed by the same change, not only Multi-Selection. 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 ! |
||
|
|
fa6bcd1f4c |
All Boards: drop Starred from the bar, and reorder what is left.
Starred was the first button in the header bar, and Starred is a section: the left menu already lists it beside Templates and Remaining, counts it, and highlights it when it is the one shown. A second way to reach one section, one click away from the first, is a control whose only job is to be kept in step with the menu - so it is gone, and with it the header bar's own js-select-menu handler and isSelectedMenu helper, which had no other caller there. The left menu is part of boardList and has always had its own. Multi-Selection moved to the right of the Lists/Table menu. The bar now reads left to right as what is shown - Sort, Search, Lists/Table - and then what is selected: Multi-Selection, followed by the archive, duplicate, star and home actions that appear with it. The search box is 150px wide, half of the 300px it was drawn at when it had a card of its own. Getting there turned up that it had no styling at all: its rules said .boards-path-header .board-search, the bar it used to live in, so from the moment the controls moved to the header bar they matched nothing and the box rendered at the browser's default input size. They are .all-boards-controls now - and because a white box on a themed bar cannot inherit that bar's light-on-dark colour without putting white text in a white box, the input, the magnifier and the clear button each set their own. The two guards that pinned the old order now pin this one and say why. Both of them, and the removed-bar guard beside them, had started reading the comments of the rules they were checking - the new rules explain themselves by naming the selector they replaced - so they strip comments before asserting. Thanks to xet7 ! |
||
|
|
57dd62badf |
All Boards: remove the white bar above the board icons.
Once every control had moved to the header bar, what was left above "+ Add Board" was a white strip carrying one thing: a Font Awesome icon for whichever left-menu section is selected. Three things already say which section that is - the left menu highlights it, the header bar names the page, and the Starred control is emphasised while Starred is on - so the strip said nothing and cost a bar's worth of height on every screen. The board icons start at the top of the right column now. It took more with it than the markup. currentMenuPath, sixty-four lines that resolved a workspace path to an icon and a name, had no other caller. Every .boards-path-header rule went - the seventeen that styled the bar and its contents, and the phone media query that had already been reduced to holding the title. So did the pulse keyframes, whose only user was the multi-selection hint that lived in the bar. The pager's flex: 0 0 auto was sharing a selector list with the bar, and is kept on its own: it is still the fixed-height thing above the scrolling list. Verified the stylesheet's braces still balance and that it has no empty at-rule left. Two guards named the bar and now assert it is gone, each saying why: the scroll-chain guard asked which element above the list keeps its own height, and the tile-height guard asked whether the bar wraps. Thanks to xet7 ! |
||
|
|
f56254e71f |
All Boards: the actions on a selection move into the header bar too.
The header bar took the controls of the page, but the actions ON a selection - Move Board to Archive, Duplicate Board, and the "Selected:" star and home - were left where they were, in a strip above the board icons, on the reasoning that they are about those boards rather than about the page. That still left two places to look for a button. They are in the header bar now, to the right of the controls that are always there, as .board-header-btn like every control beside them, and .boards-path-header holds the section title and nothing else. They appear only while something is selected: four buttons that would do nothing are worse than no buttons. Archive and duplicate carry their names; star and home stay icon-only under the "Selected:" label that already named them, because their names are sentences - "Set as Home board (opened after login)" - that belong in a tooltip, and spelling them out pushes the bar onto a second row. The label stays a label, with neither the button class nor any button behaviour. Two things had to move with the buttons, because Blaze binds both to a single template: their four click handlers, which an event map on boardList could no longer see, and hasBoardsSelected, which decides whether they are drawn. The stylesheet lost .path-right, .selected-action and .selected-actions, which now select nothing, and the phone media query lost the four rules that flattened a controls row this page no longer has. Two guards pinned the previous decision and now pin this one, each saying why it changed: the All Boards guard asserted the selection actions stay beside the boards, and the tile-height guard asserted that .path-right wraps - which the header bar's own button group does instead. 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 ! |
||
|
|
deab122723 |
/public: the row had white text on a white background.
The row carried the board's colour CLASS, but nothing in boardColors.css matches it: every board colour there is written for `.board-list .board-color-X a` - an anchor inside the All Boards list - and a table row is neither. So the background never arrived, while publicBoards.css forced `color: #fff` on top of it. White on white; only the emoji in a title was visible. Two fixes, and the second is the one that actually mattered. The colours now reach the row: `.public-board-row.board-color-X` is added to each of the seventeen existing selector lists in boardColors.css - the same declaration, one more selector - so the rows follow the board colours and the theme without a single hex value being repeated in the new stylesheet. The test counts both lists and fails if a colour reaches the All Boards tile but not the row. And a board with NO colour matches none of those rules however they are written, so the row needs a default background of its own. That is the case that was reported: without it the row keeps the table's white background and the light text vanishes. The All Boards tile has the same problem and answers it the same way - `.board-list-item` falls back to grey so its white text always has something to sit on - so the row does that too, and the text is the tile's own #f6f6f6 rather than a hardcoded white. |
||
|
|
3644b3b0cd |
/public: one heading, not two.
The route renders `boardListHeaderBar`, whose h1 already says "Public", and the pane then supplied `titleKey: 'public-boards'` to the shared table page - so "Public boards" appeared again directly underneath it. The shared table page prints a title only when it is GIVEN one, for exactly this reason: docs/Design/Page/Table.md says so in the template itself, and it is why the Admin Panel panes supply none either - their heading comes from the active left menu entry. This page had a heading too and asked for a second. The test now pins it, and reads the LAST `return` of the helper: the earlier one is the per-board row object, which legitimately has a `title` of its own - the first version of the guard matched that and failed on the fix. |
||
|
|
54915db250 |
/public is its own read-only table page, not All Boards with a different query.
docs/Design/Page/Public.md is the design; it describes only what is different
about this page and links back to docs/Design/Page/Table.md for everything shared,
which is that page's own rule.
WHAT IT WAS. /public rendered `boardList` - the All Boards page - with its query
swapped for `{ permission: 'public' }`. That brought the whole of All Boards with
it: the Starred / Templates / Remaining menu counting the user's OWN boards beside
a grid that was not, the workspaces tree, the org and team filters,
Multi-Selection with its archive and duplicate actions, the sort popup, board
dragging, and an "Add board" tile that made a private board from a page about
public ones. Multi-Selection offered to archive boards the visitor has no rights
to at all.
WHAT IT IS. Only the table. Two columns - board title and board description - ten
rows a page, paged and counted on the server. No left menu, no create, no
selection, no drag, and nothing on the page changes anything: a row's only action
is to open its board.
It supplies a rowTemplate rather than a text-cell column spec, because a row is a
LINK and carries its board's colour class and background image - so a board is
recognised here the way it is on All Boards (#5157) - and a text cell can express
neither. Read-only is about what the page can CHANGE: the row template renders one
anchor and no control.
WHAT A PAGE COSTS. Six fields for ten boards, not ten board documents: title and
description for the columns, slug for the link, color and backgroundImageURL for
the row. `members` is deliberately absent - it is the largest field on a busy
board and this page shows no avatars. The selector is built on the SERVER and
takes nothing from the client: public, not archived, a real board rather than a
template container, and not an internal ^Subtasks^ board. A search goes in as its
own $and term rather than replacing the title clause, or it would drop that last
exclusion.
Not carried over from the tile: member avatars, the per-list card counts, and the
spent-time clock. What a visitor needs of a board they do not belong to is what it
is called and what it is for; the rest is the inside of a board they have not
opened, and each costs a query the page would otherwise not make - the clock in
particular answers by looking for cards, which this page does not publish, so it
would read false for every board on every instance.
client/lib/reportPages.js now declares the DDP-only page-index collection, because
`new Mongo.Collection(name)` throws if the name is taken and it was declared
inside adminReports.js - so the second page to need it could not have one. The
guard in tests/adminPageRows.test.cjs that pinned that declaration is updated with
the reason: what it protects (declared once, from the shared constant, never a
typed string) is unchanged, it just lives in a different file.
tests/publicBoardsPage.test.cjs pins the route, that none of the All Boards chrome
is on the page, that a row carries no control, the two columns and one cell each,
that the labels are translation keys that exist, that paging is ten a page on the
server and the rows drawn are the ids the server named, exactly which six fields
the publication sends, that the selector is server-built and survives a search,
the row colouring, the shared collection, that the files are registered in the
bundle, and that every path the design doc names exists.
Thanks to xet7 !
|
||
|
|
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 !
|
||
|
|
744df41544 |
Document what each board role may and may not do, as one table, read from the code.
There was no comparison of the roles anywhere. docs/Features/Members/Members.md
listed three of them - Admin, Normal, Comment only - in one line each, and there
are NINE: board admin, normal, no comments, comment only, worker, read only, and
an assigned-only variant of normal, comment-only and read-only. docs/API/Role.md
shows how to set each flag over the API without saying what any of them does.
docs/Features/Members/Roles.md is the table: for every role, which cards it sees,
whether it may comment, create or edit cards, move cards, edit lists and
swimlanes, and change the board's settings and members. It also says WHERE each
column comes from, because the answer is only two helpers -
allowIsBoardMemberWithWriteAccess() and allowIsBoardMemberCommentOnly() in
server/lib/utils.js - plus isBoardAdmin() and, for visibility, the assigned-only
scope in the card publications. The table is what the SERVER allows, because the
server is the authority and the UI can only hide buttons.
VALIDATED FROM THE CODE, and three things do not match their own names. They are
recorded as gaps, not fixed here, because each needs a decision about which side
is wrong:
* "Comment only, assigned" (isCommentAssignedOnly) has FULL WRITE ACCESS.
Nothing outside the card publications ever reads that flag - it is not in
allowIsBoardMemberWithWriteAccess(), where isCommentOnly is - so the member
may create and edit cards, lists and checklists. The role is in practice
"Normal, but only sees the cards assigned to me", which is what
isNormalAssignedOnly already means.
* "No comments" (isNoComments) cannot write ANYTHING. That helper excludes it,
so the role blocks editing as well as commenting - while the schema describes
it as "is the member not allowed to make comments" and the UI's
canModifyCard() does not exclude it, so the member is offered the edit
affordances and the server refuses the write. The name and the schema comment
both point at the helper being the wrong side.
* The write helper does not exempt board admins. Every has*() helper on the
board requires isAdmin: false, so a flag on an admin is ignored, but that one
reads the raw flags. Not reachable from the Web UI, which writes all eight
flags at once and never leaves two set - but reachable over the REST API,
which takes them individually.
A fourth section lists where the UI is more generous than the server, i.e. the
buttons that do nothing: canModifyCard() does not exclude isNoComments, and
canModifyBoard() excludes neither isNoComments nor isWorker. None of these is a
security hole - the server rules hold - but a button that silently fails reads as
a bug to whoever clicks it.
tests/boardRoles.test.cjs keeps the page honest rather than trusting it, which is
the point: a permissions table that quietly goes stale is worse than none, because
it is what an admin decides who to trust with. It parses the table and checks that
every role memberRole() can return has a row and every row names a flag it really
reads, that the "create / edit" and "comment" columns match the flag lists in the
two server helpers, that the "which cards they see" column matches the
assigned-only scope, that only the board-admin row may change settings, that each
gap the table marks is still real AND still explained - so fixing one has to
update the page with it - and that the page is linked from both Members.md and
the API role page.
Thanks to xet7 !
|
||
|
|
0ef3d3d2a1 | Bump versions for v10.53 | ||
|
|
36bb123988 | Bump versions for v10.52 | ||
|
|
f8f3a7b9a6 | Bump versions for v10.51 | ||
|
|
bb29383101 |
Docs: how the variant snaps and the variant Docker images are published now.
Snap-Ondra-Gantt.md described the design as it was planned, not as it works: the snap depending on the repository push, one architecture, one snapcraft file renamed. It now says what the workflow does - two independent decisions (publish the snap / update the repository), amd64 and arm64, both snapcraft files, and the name check before the upload - and that the two repositories were synced by hand on 2026-07-29. It also points at the manual Docker path, which is new: wekanteam/wekan-gantt-gpl and wekanteam/wekan-ondra are published by .github/workflows/docker-variant.yml or releases/docker-publish-variant.sh, by retagging the released wekanteam/wekan manifest. Thanks to xet7 ! |
||
|
|
1232f16024 | Bump versions for v10.50 | ||
|
|
b9d8e11b1d | Bump versions for v10.49 | ||
|
|
1f3374c74b | Bump versions for v10.48 | ||
|
|
2699605627 | Bump versions for v10.47 | ||
|
|
f95f6ff439 | Bump versions for v10.46 | ||
|
|
eb8a77a4d3 | Bump versions for v10.45 | ||
|
|
9eedab13b6 |
Run every node suite and report all of them, instead of stopping at the first.
test:unit:node was `node tests/a.cjs && node tests/b.cjs && ...`, 260 suites
long. npm's && stops at the FIRST failing suite, so everything after it never
ran - and the summary said nothing about that. Tonight's run printed
"tests:508 fail:1" having skipped about 200 suites: the 01:21 run died at
recoveryReportWiring, which hid sandstormMigrationBridge, which hid whatever is
behind that. One stale guard per full test run, found one at a time.
tests/run-node-suites.cjs replaces the chain:
* it DISCOVERS the suites (tests/*.test.cjs|js and tests/unit/*), so writing
the file is registering it - the 72-suites-in-no-npm-script drift cannot
come back, and neither can a hand-maintained 260-entry line;
* every suite runs even when an earlier one failed, and the failures are
listed together at the end, so one run tells you everything that is broken;
* each suite still runs in its OWN node process, so a suite that throws,
exits or leaves a handle open cannot affect the next one;
* a per-suite timeout (5 min, WEKAN_SUITE_TIMEOUT_MS) means a hanging suite
fails that suite instead of hanging the run;
* output streams live and unchanged, so the " ok - " progress counter still
moves; `--list`, `--bail` and substring filters are there for working on one.
Discovery was compared against the old chain before switching: the same 260
suites, nothing gained and nothing lost.
build.sh reads the runner's own "===== node suites: N run, M failed" line for
the failure count now - exact, instead of guessing from error text - and falls
back to counting the failing suites it has already listed while the run is still
going. The note about the && chain is gone with the chain.
testsAreRegistered now guards the runner rather than a list: every suite on disk
is discovered, the only exclusion is the mocha entry point, every exclusion
carries a reason, and the loop does not stop on failure unless --bail was asked
for.
Thanks to xet7 !
|
||
|
|
2dde0b48aa |
Move the ppc64el and s390x snaps to Launchpad, and delete the dead snap-qemu job.
Both legs failed on every release, and not because of a secret or a flake:
##[error]Your build requires a base that this tool does not support (core24).
'base' or 'build-base' in your 'snapcraft.yaml' must be one of 'core',
'core18' or 'core20'.
They were built by snap-qemu with diddlesnaps/snapcraft-multiarch-action, whose
compiled dist/index.js caps at core22 in three independent places, whose build
image has no :core24 tag, and which is unmaintained. WeKan's snapcraft.yaml is
base: core24, so the build died the instant snapcraft read it - after the
version gate passed and QEMU had set up. There is no maintained QEMU multi-arch
snap action that does core24; Canonical's answer for an architecture with no
native runner IS Launchpad remote-build. The evidence, read out of the action's
source rather than off the error string, is in
docs/Design/Autoupdate/Forks/Snap-Core.md.
So: snap-launchpad's matrix is now [ppc64el, s390x, riscv64], and snap-qemu is
deleted rather than disabled.
These two arches once left Launchpad for QEMU because the old remote-build legs
ended in Launchpad state "Stopped" with no snap and then failed at snapcraft
upload ("is not a valid file", exit 64). Today's snap-launchpad job is what
those legs were not: it retries the remote build 3x, requires the .snap file to
exist, and uploads only when it is there. It stays continue-on-error,
fail-fast: false and timeout-minutes: 180, so the price of this path - a
Launchpad queue that can last hours - can neither fail the release nor cancel
another architecture, and each arch publishes the moment it finishes.
It needs LP_CREDENTIALS as well as SNAP_AUTH, which ppc64el and s390x did not
need before. Its first step names either secret when it is unset and decodes
LP_CREDENTIALS, and the remote-build step says by name when Launchpad answers
unauthorized - so a credential problem is one named line, not an ordinary
-looking build failure.
New guard test tests/releaseSnapArches.test.cjs pins it: no snap-qemu job and no
use of the core22-capped action, every platform in snapcraft.yaml built by some
job, the exotic three on Launchpad, the non-blocking options, both secret checks,
and the no-.snap-no-upload rule.
Thanks to xet7 !
|
||
|
|
5505f2dcbe | Bump versions for v10.44 | ||
|
|
4541fa99e1 |
Database tests run on their own ports, and survive their first real run.
Three things the first run on arm64 found. The FerretDB it built could not start: `panic: commit.txt value ... != vcs.revision value ...`. Go stamps the VCS revision into the binary and FerretDB's build/version panics when it disagrees with the committed commit.txt, which only the generator refreshes - so every commit made after the last refresh built a binary that panicked. Fixed in the fork (its act_build now regenerates them, as act_dist already did). Ports: FerretDB listened on 27017, which is where a dev server's database lives and where the compose files publish FerretDB - so this could not run beside anything else and, worse, could have pointed the tests at somebody else's database and rewritten it. It listens on 37017 now and publishes the database server on 35432, both moved on if busy, both overridable with WEKAN_CONFORMANCE_PORT and WEKAN_CONFORMANCE_DB_PORT, and its containers are named per run so a compose stack is never reused or stopped. And Ctrl-C only killed whatever was in the foreground - a registry lookup, a sleep - after which the loop carried on and reported the interrupted lookup as "NO linux/arm64", which is a lie about the image. An interrupt ends the run now, and the image check has three outcomes rather than two: has it, does not have it, could not ask. A FerretDB that will not start also prints the last lines of its log, because the reason is usually one line. Thanks to xet7 ! |
||
|
|
7a3783fbe6 |
Tests menu: run every database this CPU can, and check they answer the same.
FerretDB v1 translates one MongoDB query into five different SQL dialects, so
"WeKan starts on MariaDB" says very little. The question that decides whether a
backend can be trusted with a board is whether {n: {$gt: 5}} returns the same
documents, in the same order, as it does on SQLite - and nothing was asking it.
./build.sh -> Tests -> "All databases (sequential)" now does, and build.bat has
the same entry (running the same script through bash rather than a second
implementation that would drift).
It builds FerretDB v1 from source first: the FerretDB subdirectory is cloned
from git@github.com:wekan/FerretDB if it is not there, updated if it is, and
built through its own build.sh, which installs the Go toolchain and the module
dependencies when they are missing. The tests run against THAT binary, not a
downloaded release, so they test the newest code.
Then, for each backend whose database image has a build for THIS CPU - asked of
the registry with docker manifest inspect, so no table here can go stale - it
starts that database, runs the freshly built FerretDB against it, runs the whole
catalogue and stops everything. Sequential, because they all use the same
FerretDB port and a database under test should not be competing with three
others; the menu entry says so.
The catalogue is 100 cases in 15 groups, taken from FerretDB v1's own handler
sources rather than from MongoDB's manual: every query, update and bitwise
operator, the aggregation stages and accumulators, projection and sorting and
paging, count and distinct, indexes and uniqueness, capped collections (which is
how the OpLog exists at all), and the commands whose answers may legitimately
differ. The seed data is deliberately awkward - a null, a missing field, a
negative number, a zero, an empty array, an array of documents - because tidy
data lets a broken translation pass.
Answers are normalised and compared byte for byte against SQLite, so document
ORDER counts. Three cases are compared loosely and say so: an explain plan
differs per engine by definition, and collStats/dbStats are sizes a different
storage engine may answer differently. Two backends failing the same way is
agreement about a limitation; one answering where another fails is a difference.
Everything lands in ../log/<datetime>/ with every other test run: a JSON of what
each backend answered, each backend's container output, the build log, a summary
and db-conformance-report.md. SAP HANA is opt-in behind WEKAN_CONFORMANCE_HANA=1
- amd64-only, ~16 GB of RAM, and SAP's licence to accept - so a menu choice
cannot start it by accident.
Thanks to xet7 !
|
||
|
|
355360109d | Bump versions for v10.43 | ||
|
|
67991587d4 |
Alternatives.md: group the databases by family, and lead with the summary.
The page listed images and requirements, which left the reader to work out the pattern themselves. There is a pattern: the databases are not fifteen separate questions but seven families, and inside a family the answer is the same one. Each family now says what IT is missing. PostgreSQL-wire and MySQL-wire need no code at all, only a live run against their dialect - that is where CockroachDB's s390x image could be won. Enterprise SQL needs a whole backend each, and the driver is the obstacle only for Db2, whose cgo-only driver cannot be in a nine-architecture build. Embedded databases need a pure-Go driver before anything else. Columnar engines pass the driver gate and fail the second one: WeKan updates single cards constantly, and they are built for the opposite. Key-value stores would have to have indexes, filters and atomicity implemented inside FerretDB, which is not a backend but a database. And what already speaks MongoDB needs no FerretDB at all - the reason for this page is that on ppc64le, s390x, riscv64 and loong64 that family has no members. The page opens with all of it in five sentences and one table, because the conclusion - that the most valuable work is verifying the three backends that already exist, not writing a fourth - was previously only visible to whoever read to the end. Corrections while checking: Oracle DOES have a pure-Go driver (sijms/go-ora implements the TNS protocol itself), so it is not blocked by cgo the way Db2 is; and Cassandra belongs in the CPU table, since its image covers ppc64le and s390x. Thanks to xet7 ! |
||
|
|
69f2be1161 |
Document which other databases run on many CPUs, and what a backend costs.
WeKan runs on every CPU Node.js runs on, and this fork of FerretDB v1 exists because MongoDB does not publish a server for most of them. Two questions kept coming back: which databases even have images for those CPUs, and what would be missing in FerretDB v1 before it could store into one. docs/Databases/FerretDB/1/Alternatives.md answers both. The architecture table is read from each registry's own manifest, not from documentation, and it says plainly what that data shows: PostgreSQL is the only widely-portable database server - the only one publishing ppc64le, s390x AND riscv64 - MariaDB covers ppc64le and s390x, MySQL neither, and MongoDB itself and upstream FerretDB 2 are amd64 + arm64 only. This fork's own image covers nine platforms. What a new backend needs is taken from the code: a pure-Go driver, because the binaries are built CGO_ENABLED=0 and that is what makes one build serve nine architectures (which is why Oracle and Db2 are out, despite Db2's ppc64le and s390x images); the three backends interfaces, none of them stubbable; a metadata registry; the SQL features the translation actually uses - JSON path extraction, containment and type inspection, schemas, expression indexes, a parseable EXPLAIN, and the record-id column that capped collections and therefore the OpLog are built on; correct MongoDB semantics on top; and a live integration run, which is the whole difference between the confirmed and experimental rows. And the shortcut: a database that speaks the PostgreSQL or MySQL wire protocol needs no new backend, only an existing one that survives its dialect - CockroachDB brings s390x that way, for the price of a test run. Thanks to xet7 ! |
||
|
|
fea3c432e8 |
Organize docs/Databases: one directory per database.
It was a flat list where the database was a filename prefix, in three spellings - MongoDB-Driver-System.md, mongodb-avx-qemu.md, MongoDB_OpLog_Enablement.md - plus FerretDB2-PostgreSQL.md and a ToroDB-PostgreSQL directory. Somebody asking "how do I run WeKan on PostgreSQL" had to read the prefixes to find out which files were even about their database. Now: Migrations, MongoDB, FerretDB (with 1 and 2, because v1 and v2 are different products with different backends) and ToroDB (with PostgreSQL). Each file keeps its name minus the redundant prefix - MongoDB/Driver-System.md, MongoDB/avx-qemu.md - and the old PostgreSQL.md, which was an index of FerretDB and ToroDB rather than a document about PostgreSQL, becomes the directory's README.md. Every directory has a README.md saying what is in it and where to go next, including FerretDB/1, which had no documentation at all until now although it is WeKan's default database and just gained four more backends. Links to a directory point at the DIRECTORY, not at its README.md, because README.md is what is opened by default. Every link that pointed into the old paths is updated - in docs, in docker-compose-ferretdb-v2-postgresql.yml, and in the wekan.fi website - and the relative links inside the moved files, which gained a directory level and so needed one more "../". tests/docsDatabases.test.cjs pins the layout, the READMEs, the directory links, that every relative link resolves, and that nothing outside CHANGELOG.md still names an old path. Thanks to xet7 ! |
||
|
|
dcefd4b367 |
Enable every disabled job in release-all.yml, so their output is visible.
snap-qemu (ppc64el, s390x), snap-launchpad (riscv64), snap-variants, ucs and
nextcloud were hard-disabled with `if: ${{ false }}`, so a release never said
anything about them. They all carry continue-on-error: true, so running them
cannot fail a release or hold up another job - the point of running them is to
SEE what they report.
The three guarded jobs - snap-variants, ucs, nextcloud - skip their work while
their secrets are unset. That was a quiet ::notice::; now that they actually
run it is a ::warning::, so the missing secrets are visible in the run summary
instead of buried in a log.
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 ! |
||
|
|
b5b7f063a2 | Bump versions for v10.42 | ||
|
|
2214591bd9 | Bump versions for v10.41 | ||
|
|
3487d2519d |
One icon set: Font Awesome. The Grey Icons feature is removed.
WeKan used colourful Unicode emoji as its icon set in 8.00-8.24 only; before and after, the icons are Font Awesome 4.7. A handful of emoji had survived that change - every notification type, the board star, the vote-against thumb, the spent-time badge, the reaction and add buttons, the list width toggles, the bookmarks star, the back arrow, the custom-field pencil, the notification bin, the sidebar's plus and hash, the four date badges in cardDate.css and minicard.css, the mobile drag handle, the multi-selection tick, and the gantt day markers. Each of those is a different picture on every platform, at a size and colour the stylesheet does not control. They are Font Awesome glyphs now: either an `i.fa` element, or the codepoint (`content: "\f11e"`) with the font named, since `time::before` is not an `.fa` element. The helpers that produced an emoji return a class name instead, and their templates render an `<i>`. "Grey Icons" in Member Settings existed to grey exactly those emoji. It ran a MutationObserver over every rendered subtree, for the whole session, wrapping any text node that was one of ~50 emoji in a span it could greyscale - and only 13 of those emoji were still anywhere in the app. With them gone it has nothing left to find, so the feature is removed whole: the menu entry, the click handler, the `toggleGreyIcons` method, the `hasGreyIcons` helper, the `profile.GreyIcons` schema field and its published-fields entry, the `userGreyIcons` publication and its subscription, unicode-icons.js/.css and the feature import, twelve `body.grey-icons-enabled` CSS rules across six stylesheets, the `grey-icons` string in all 147 language files, the field in public/api/wekan.yml and wekan.html, and the two mentions in docs/DeveloperDocs. The language flags in the language picker stay: Font Awesome 4.7 has no flags. tests/fontAwesomeIcons.test.cjs fails on an emoji in any template or any CSS `content:`, checks the date badges name the font and use the four codepoints, checks the icon-producing helpers return class names, and checks that no part of the removed feature is left anywhere. Thanks to xet7 ! |
||
|
|
e85701ca98 | Bump versions for v10.40 | ||
|
|
f8bd3f21ae | Bump versions for v10.39 | ||
|
|
dfb2ae2957 | Bump versions for v10.38 |