mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
v10.39
1584
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
f8bd3f21ae | Bump versions for v10.39 | ||
|
|
202add9da4 |
All Boards on a phone: one drag-handle size, and a workspace name you can read.
Two things differed between mobile mode and desktop mode on the same phone. The board tile's drag handle was a 26px circle in mobile mode and a 40px one in desktop mode - two rules for the same handle, `.board-list.mobile-view .board-handle` and the `.board-list .board-handle` inside the phone media query. On a ~97px tile the big one covered a good part of the tile it was meant to sit on. Both are the smaller one now, which is still well over the ~24px a finger needs; the ≤360px block said 40px too, and says 26px now. A workspace had no readable name in EITHER mode. The row packs a drag handle, a folder icon, the name, a menu button and a count chip, and the rule for the phone said the name "must give way to the fixed items around it". It gave way completely: those items at their desktop paddings come to ~130px, the menu column on a 375px phone is ~145px, and the name was laid out in the 15px left over. The fixed items are trimmed to what they need on a phone - about 90px together - and the name is given a floor of 3.5em it may not shrink below, so there is always a name to read, with an ellipsis when it is long. It stays clipped to its own box, so it cannot spill over the menu button, which was a separate bug and is pinned by its own assertion. tests/allBoardsPhoneRow.test.cjs reads the sizes out of the cascade rather than trusting the comments: every phone handle rule is 26px, the name has an em floor and an ellipsis, each fixed item is trimmed, and the clip is still there. Thanks to xet7 ! |
||
|
|
eb56ea5895 |
A narrow WINDOW gets the narrow-window layout, not only mobile mode.
The phone/desktop toggle writes an explicit choice and Utils.isMiniScreen() returns it as-is, so a phone whose user picked DESKTOP mode is not a mini screen and its body carries no `.mobile-mode`. Every fix written for one of those two did nothing there - while the viewport was still 375px wide. Three of them showed up in the same set of screenshots. "Create board" opened 160px from the left with its right half off the screen, so its Create button could not be reached. The geometry laid the popup out as a floating box of min(380px, 55vw) anchored to the button, while popup.css - which has given every popup the full width and its own 48px header below 800px for years - then made it 375px wide. The two disagreed, and the inline `left` from the geometry stayed. Now the geometry returns the top-left corner for any viewport that narrow, and the CSS pins the sheet with `position: fixed` and `inset-inline-start: 0` (with `!important`, because left/top are inline styles), so neither can drift from the other. The board bar's hamburger was pushed onto a third row of its own, with the empty space that goes with it: it comes after the buttons in the flex order, and a flex line breaks in order. The three mobile-mode rules that take it out of the flow and pin it to the corner - and reserve its width as end padding - are now also written by width. The quick-access bar was still wider than the screen, so the avatar was cut off at the right edge. The drag-handle toggle's arrows and its check/ban were breaking onto two lines, which reads as two buttons; they are one line now. The mode toggle gave up 21px of padding on each side of its two icons, and the logo 20px of its cap - about 60px of a 375px bar, which is what the avatar needed. The logo cap names the `.iphone-device` variant explicitly, since that one sets 84px with one class more and would otherwise win. tests/narrowWindowLayout.test.cjs replays the sheet decision at 375/800/801px and pins each of the three rules; the popupOffset suite gains the narrow-window case beside its mini-screen one. Thanks to xet7 ! |
||
|
|
9f82877492 |
Admin Panel: /information and /translation showed the page you came from.
Playwright caught this on all three browsers: "Version page shows Reactivity
mode" got All Boards instead. Both old URLs are panes of Admin Panel / Settings
now, and both redirected with FlowRouter.go('setting') called from INSIDE
triggersEnter. A trigger runs while its own route is still entering, and a go()
from there is swallowed - the action() renders nothing, so whatever page the
browser was already showing simply stayed. A bookmark to either URL landed
nowhere.
A trigger redirects with the `redirect` it is HANDED, which is the form the
redirections table at the bottom of config/router.js has always used.
Each URL now also asks for the pane it used to be a page of - Version for
/information, Translation for /translation - so the bookmark lands where it
pointed rather than on the default pane. The request is consumed once, so a
later visit to /setting opens on the default, and it marks the open pane as
decided so the site-admin autorun does not undo it a moment later.
tests/adminOldUrlRedirect.test.cjs pins the redirect form (and that no
FlowRouter.go() creeps back in), the pane each URL asks for, and that the
ReactiveVars it sets are created before it runs.
Thanks to xet7 !
|
||
|
|
dfb2ae2957 | Bump versions for v10.38 | ||
|
|
89920762ac |
All Boards on a phone: size the scrollers by the viewport that is actually there.
The reporter says the board list still cannot be scrolled on a phone at v10.37, after the layout fix. There is a reason that fix cannot have covered it, and it is not visible in the Playwright run: a fixed test viewport has no browser toolbar. The page sizes its scroll containers as `100vh` minus a bit - the wrapper, the left menu, the board list, and the mobile body and content area. On a phone `100vh` is deliberately the LARGEST the viewport can be: the height with the browser's toolbars hidden. With the toolbar showing, every one of those boxes reaches under it - and the wrapper is `overflow: hidden`, so what is underneath cannot be scrolled to at all. The bottom of the board list is simply unreachable, which looks exactly like "the list does not scroll". Each of those rules now states the `vh` value first, as the fallback, and the same value in `dvh` - the viewport as it is at that moment - immediately after. A browser that understands `dvh` gets the real height; one that does not behaves exactly as before. The two scrollers also declare `overscroll-behavior: contain` and `touch-action: pan-y`, so a vertical swipe is given to them rather than to the page behind or to another gesture. NOT verified here: there is no phone in this environment, and no browser toolbar in Playwright, so this is reasoned from the source and from how the mobile viewport units are defined. What IS verified is that nothing else in the page's touch handling blocks the scroll: with drag handles on - which a touch screen turns on - a board drag may only begin on the handle, the tile itself stays free, and the touch drag-and-drop bridge honours that cancellation. tests/mobileViewportHeight.test.cjs pins all of it, including that the `vh` fallback is declared before the `dvh` value. Thanks to mimZD and xet7 ! Fixes #6488, |
||
|
|
2973240a7f |
Clicking a card closes the one that was open; keeping many open is a setting.
Opening a card APPENDED it to the open-cards list, so the card that was already open stayed open behind the new one - which the reporter saw as soon as the new card was dragged: the old one was still sitting there. Clicking another card means "show me that card", not "show me both". A click now opens THAT card and closes the previous one. Both ways of opening a card - the minicard and its title - go through one helper, so neither path can drift from the other again. Keeping several cards open at the same time is still possible, as the per-user setting it should always have been: Member Settings / "Open many cards at once", off by default, stored as `profile.openManyCardsAtOnce` and toggled by a server method like the settings beside it. A reader who is not logged in gets the default rather than an error. tests/openManyCardsAtOnce.test.cjs replays the decision in both states and guards the wiring: schema, helper, method, menu entry, check mark and translation. Thanks to mimZD and xet7 ! Fixes #6531, |
||
|
|
40de1799ae |
GHSA-3gcg-g6rf-w2rx: an invalid authToken crashed the server (remote DoS).
The board export REST endpoints look a user up by the login token in
`?authToken=`. A token that matches nothing makes that lookup answer `undefined`,
and the next line dereferenced it:
user = await ReactiveCache.getUser({ 'services.resume.loginTokens.hashedToken': … });
adminId = user._id.toString(); // TypeError on an unknown token
The handlers are async and had no try/catch, so the TypeError escaped as an
unhandled promise rejection - which this app turns into a full process crash (the
note in server/ldapGroupSync.js explains why). One crafted GET against a private
board id took the server down for every user. Reachable by anyone who can obtain a
private board id, which on an open-registration instance means anyone at all.
It was an incomplete fix: models/exportPDF.js and models/exportExcelCard.js
already had the `if (!user)` guard; three handlers in models/export.js and one in
models/exportExcel.js were missed.
Fixed on both levels:
* Every token lookup in the export models is now followed by the guard - 401
"Invalid token" and return - including the two handlers that did not crash
because they hand the user to canExport() instead of dereferencing it. One
rule for every lookup is what stops the next handler being the missed one.
* Every export route body is wrapped in safeRoute() (server/apiMiddleware.js),
which awaits the handler, answers 500 once and logs the request that failed.
A throw from any other cause is now one broken request instead of an outage.
tests/exportTokenGuard.test.cjs does not check four places by hand: it finds every
token lookup in the export models and requires a guard on each, that nothing
dereferences the user before it, that every route is wrapped, and that the two
handlers which were already guarded stay guarded.
Thanks to laijunyue for the coordinated disclosure, and xet7 !
|
||
|
|
ed910ea19b |
CHANGELOG: one short title per change, linking the commit by its hash.
An entry had grown into a paragraph - one ran to 1,600 characters - so the file could no longer be read as what it is: a list of what changed, by version. That is what the reporter asked for: "i just wanna see title of changes (fixes, new feature, improves, ...) by the time and version, as changelog was before". Every entry is now - <one-line title> ([<short hash>](https://github.com/wekan/wekan/commit/<hash>)). Thanks to ... with the long story left where it belongs: in the commit message the link points at. 3,000 entries were rewritten across the whole file, every commit link shows and uses the 9-character hash instead of a description or "merge commit", 61 bare long URLs became short links, and everything is wrapped at 80 columns - a line carrying a link excepted. A few malformed entries surfaced and are repaired on the way: a stray `](url)` whose opening bracket was never written, a doubled `/commit/commit/`, a link with no hash at all, and one URL missing its repository name. CLAUDE.md now states the rules - title not story, hash as link text, never a long URL as visible text, 80 columns - and tests/changelogFormat.test.cjs checks the file against them, strictly for the Upcoming section. Thanks to mimZD and xet7 ! Fixes #6524, |
||
|
|
8593e9411e |
Admin Panel / People / Login: the checkboxes threw instead of saving.
TypeError: can't access property "set", tpl.loading is undefined on every click in the Login pane - Forgot Password, Self-Registration, Username Change, Self delete user account, Display Authentication Method - and on the E-mail pane's Save. Blaze hands an event handler the instance of the template the handler is REGISTERED on. When those handlers moved onto Template.general and Template.email - which they had to, because Admin Panel / People renders those panes now - the state they poke, `loading`, stayed behind on Template.setting. So the first line of each handler threw, the setting was never written, and nothing on screen said so. Both templates create their own `loading` now. tests/adminTemplateState.test.cjs walks the Admin Panel components and fails when an events or helpers block reads `tpl.<name>` that its own template never created, so moving a handler without its state cannot pass again. Thanks to xet7 ! |
||
|
|
a9fbebde00 |
Admin Panel: the Settings checkboxes could not be ticked - the fields were not published.
"Support page enabled" animated to checked and fell back to unchecked. The reason was not the checkbox: Admin Panel / Settings / Visibility draws it from `currentSetting.supportPageEnabled`, and that field was not in the `setting` publication. On the client it was therefore always undefined - the box drew unchecked, ticking it wrote the setting to the server, and the next re-render drew it unchecked again. The setting was saved; the checkbox said it was not. Announcement's checkbox never had the problem because it reads the Announcements collection, which is published whole - which is exactly why that one worked and the Settings-backed ones did not. Now published, and each of them is a control that was unusable: supportPageEnabled, supportPagePublic, supportTitle, supportPageText, supportPopupText, hideBoardActivitiesOnAllBoards (Visibility / All Boards) and boardMembersFromSameOrgOnly / boardMembersFromSameTeamOnly (People / Organizations and Teams). The SMTP settings stay out: they carry a password and have their own admin-gated publication. tests/settingPublishedFields.test.cjs walks every `currentSetting.<field>` in every client template and fails when the publication does not carry it, so the next field added to a pane cannot silently render as undefined. Thanks to xet7 ! |
||
|
|
7f01afdc20 |
Admin Panel / Attachments / Backup: pick the schedule's day from buttons.
Day of week was a text field. It only ever accepted an English day name, typed exactly right, from an admin reading a page in their own language - and nothing said so. It is seven buttons now, each labelled in the reader's language. Day of month was a number spinner: 27 clicks to reach the end of the month, and no sign that the 29th to the 31st are not offered at all - a schedule there would skip February. It is 28 buttons, one per date. What is STORED is unchanged: the English day name and the number, because that is what the cron sentence is built from (models/lib/backupPaths.js scheduleText). Only the labels are translated. The chosen one is filled with the theme colour, the way the selected left-menu entry is, and the rows wrap rather than squeeze. The choice is template state now, seeded from the saved schedule when it arrives - and not overwritten by it once the admin has picked something. Thanks to xet7 ! |
||
|
|
362b14c3d9 |
Admin Panel: one checkbox look, and Allow Email Change becomes a checkbox.
WeKan hides the native checkbox app-wide and draws its own square with a green tick - `.materialCheckBox`, which is what Admin Panel / Settings / Announcement shows for "Active System-Wide Announcement". But several Admin Panel panes use a real <input type="checkbox">: the storage Read toggles, the Organizations and Teams feature columns, the Backup checkboxes, the Problems summary. Those were either invisible, because nothing re-enabled them, or re-enabled pane by pane and then drawn by the BROWSER - on Ubuntu a big orange box that ignored the chosen theme entirely (orange under clearblue), at a different size in every pane. The Admin Panel now styles them itself: `appearance: none` takes the browser's rendering out of it, and the tick is drawn the same way .materialCheckBox draws it - two borders of a rotated box, in the same green - so a native checkbox and a WeKan one are the same checkbox to look at. Grey icons, disabled and keyboard focus are handled with it, and the panes no longer each re-enable and re-size their own. Admin Panel / People / E-mail / Allow Email Change is one such checkbox now instead of a Yes/No radio pair: the setting is on or off. Save below writes it as it wrote the radios, and only when the checkbox is on screen. Thanks to xet7 ! |
||
|
|
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 ! |
||
|
|
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 ! |
||
|
|
047319fb21 |
Merge pull request #6527 from wekan/dependabot/npm_and_yarn/bson-7.3.1
Bump bson from 7.3.0 to 7.3.1 |
||
|
|
aa7abcf098 |
Merge pull request #6529 from wekan/dependabot/npm_and_yarn/unzipper-0.12.5
Bump unzipper from 0.12.3 to 0.12.5 |
||
|
|
36b54b1f57 |
Merge pull request #6530 from wekan/dependabot/npm_and_yarn/aws-sdk/client-s3-3.1095.0
Bump @aws-sdk/client-s3 from 3.1090.0 to 3.1095.0 |
||
|
|
b72a4996dd |
Admin Panel: remove the Features tab.
Its last three panes - Performance, Security and Notifications - moved to Admin Panel /
Problems in
|
||
|
|
4df87fd6b6 |
Admin Panel / Problems: reorder, rename Security Report, and take the three Features panes.
The Problems menu now reads: Summary Performance | Security | Notifications (moved from Admin Panel / Features) Speed, Tests, CPU usage -- Security Report Impersonation Report Broken Cards, Files, Rules, Boards, Cards, Recovery "Security" is renamed "Security Report" and moved above Broken Cards, with Impersonation Report directly between the two. The rename is what makes the rest safe: the pane arriving from Features is ALSO called Security, and the two now sit in one menu. It is the English SOURCE string that changed (securityReportTitle), so every other language keeps its existing translation until that string is retranslated - no human translation is overwritten, and the key is unchanged so nothing else moved. One correction worth stating: the request named Admin Panel / SETTINGS as the home of Performance, Security and Notifications. They are Admin Panel / FEATURES panes - Settings has no entry by any of those names - so they were taken from there, which is the only place they exist. Their handlers and helpers came with them, which is the half that fails silently. All twelve helpers and twelve toggles were registered on Template.adminFeatures; Blaze resolves a helper, and delivers an event, against the template the element is IN, never an enclosing one. Left there, each pane would have rendered on Problems with every checkbox reading as unchecked and no click doing anything. Each pane is its own template now, and the shared helper/handler pair is registered on all three - a handler whose element is not in a given pane simply never fires there, so splitting them per pane would buy nothing. That leaves Admin Panel / Features with no panes at all. Its page, menu and route stay, so nothing linking there breaks and a future feature has a home, but the tab is empty until it gets one. Removing the tab is a separate decision and is not made here. Tests: 1374 passing. Thanks to xet7 ! |
||
|
|
47b03ef894 |
Admin Panel: Login and E-mail move from Settings to People, above Organizations.
Both panes are about the people who can sign in and how they are reached, which is what the People page is for. They are its first two entries now, and Login is the pane that opens with the page. The move is only half markup. EVERY handler those two panes need was registered on Template.setting - the toggles for forgot-password, self-registration, same-org board members and Display Authentication Method, the invite-people button and its board chooser, the account-access Save, and on the E-mail side the TLS toggle, the SMTP Save and Send test e-mail. Blaze delivers an event to the handlers of the template the element is IN, so left on Template.setting each pane would have rendered on People and then quietly done nothing: no toggle sticking, no Save saving, nothing in the console. All ten moved onto Template.general and Template.email, the templates that draw them, where they work wherever the pane is rendered. Template.general also gains accountAccessHelpers, which Template.email already had - a helper the host template lacks renders as unchecked, which silently shows the wrong value. The pane TEMPLATES stay in settingBody.jade beside the other admin panes, since Blaze templates are global and their handlers now sit beside the other settings handlers. Both files say so where a reader would look for them. Settings loses the two entries, their id-map rows, their reactive vars and their isGeneralSetting / isEmailSetting helpers. generalSetting was the var that started true, so Visibility - the first entry left - is promoted to open with the page; without that the Settings page would open on no pane at all. The Sandstorm exception that drops the E-mail entry moves to People with it, so peopleMenu() is a function now rather than a bare array, because it has to read Meteor.settings at call time. Ids and i18n keys are unchanged, so every existing translation still applies. tests/loginEmailPanesMoved.test.cjs pins the whole move, including the half that fails silently: each handler must be on the pane template and NOT on Template.setting, the panes that stayed must keep theirs, exactly one pane may start open, and both pane templates must exist for their handlers - registering on a missing template throws at module load and takes out every module after it, which is how the password field vanished from /sign-in earlier in this series. Four existing suites asserted these panes were part of Settings and now assert them as part of People. Tests: 1368 passing. 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 !
|
||
|
|
73cd930a44 |
Admin Panel: table pages fit their panel, and Translation lists its rows again.
Two reports, one of them the same bug in a third place. Domains - and with it every other shared table page - needed scrolling to the right to see its last columns. settingBody.css gives EVERY table in the admin body a 1200px floor, `width: max-content` and nowrap cells, written years ago to force a horizontal scrollbar. Applied to `.table-page-table` that overrode exactly what makes the shared page fit: width:100%, table-layout:fixed and wrapping cells (docs/Design/Page/Table.md). The three rules now exclude `.table-page-table`; the genuinely wide admin tables - GridFS statistics, Version, Translation - keep them. The panel's `overflow-x: scroll` becomes `auto` in the same breath, so a page whose content fits no longer shows a scrollbar with nothing to scroll to. Admin Panel / Settings / Translation showed no rows and no way to add one. `translationList` is a helper of Template.translationSettings, but `each translation in translationList` is written inside translationGeneral - a different template. Blaze resolves a name against the current template's helpers, the global helpers and the data context, never an enclosing template, so the list came out undefined and the tbody was empty. The parent hands the list down now. This is the third instance of that one mistake today: Organizations, Teams and People had it too. Its Search button was BLACK. forms.css styles every bare <button> from `var(--theme-accent, #000)`, and with no per-user theme chosen that fallback is literally black. It takes the same colours as the other admin buttons now - the accent when one is set, the WeKan button blue when it is not. Every state is spelled out (:hover, :focus, :active, :active:hover) because forms.css sets each of those from the same variable with its own black-ish fallback; overriding only the resting state leaves a button that turns black the moment you touch it. tests/uiDensity.test.cjs asserted against the old unscoped td/th selectors and now asserts the scoped ones, with a note about which tables they are for. Tests: 1352 passing. Thanks to xet7 ! |
||
|
|
c596c5a3be |
Bump @aws-sdk/client-s3 from 3.1090.0 to 3.1095.0
Bumps [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-s3) from 3.1090.0 to 3.1095.0. - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-s3/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1095.0/clients/client-s3) --- updated-dependencies: - dependency-name: "@aws-sdk/client-s3" dependency-version: 3.1095.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
aa1165724d |
Bump unzipper from 0.12.3 to 0.12.5
Bumps [unzipper](https://github.com/ZJONSSON/node-unzipper) from 0.12.3 to 0.12.5. - [Release notes](https://github.com/ZJONSSON/node-unzipper/releases) - [Commits](https://github.com/ZJONSSON/node-unzipper/commits) --- updated-dependencies: - dependency-name: unzipper dependency-version: 0.12.5 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
ad5cfa0ad3 |
Bump bson from 7.3.0 to 7.3.1
Bumps [bson](https://github.com/mongodb/js-bson) from 7.3.0 to 7.3.1. - [Release notes](https://github.com/mongodb/js-bson/releases) - [Changelog](https://github.com/mongodb/js-bson/blob/main/HISTORY.md) - [Commits](https://github.com/mongodb/js-bson/compare/v7.3.0...v7.3.1) --- updated-dependencies: - dependency-name: bson dependency-version: 7.3.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
|
|
a5850296ad |
Mobile mode: the board fits the width, and the titles sit on their centre line.
The lists area was a little too wide - a horizontal scrollbar with a small amount to
scroll right and nothing there to see. Two causes.
`100vw` again. It was fixed in boardHeader.css in
|
||
|
|
61979c0f6c |
Mobile mode: Add List moves into the list header, no row of its own.
On a phone the "+ Add List" composer stood as a row above the lists, spending a whole
row on one button. The + now sits in each list header, BETWEEN the caret and the drag
handle, so the caret moves left and the + takes the middle of that group.
This is what desktop already did. #6465 moved Add List into the list header there and
left the mini-screen path alone, so the two had drifted apart. The mobile button now
uses the SAME class (js-add-list-here), therefore the same click handler and the same
behaviour - open the inline composer after this list - and the same Font Awesome icon,
fa-plus-square-o. One button in two layouts rather than two lookalikes that can drift
again.
The mobile list-header grid grows from four columns to five: title, caret, +, handle.
RTL mirrors on its own. Nothing here is placed with a physical left/right: the header
is a CSS grid, and a grid lays out along the INLINE axis, so under dir="rtl" column 1
is on the right and the whole row reverses - handle, +, caret, title. A test asserts
no physical side creeps into any of the three placements, since one `right:` would
strand a control on the wrong edge.
An empty swimlane and an empty board keep a + of their own, as on desktop: there is no
list header to host the button when there are no lists, and without it the first list
could never be created.
The addListForm template is removed. It rendered that standing row, mobile mode was
its last caller, and it is dead once the button moves. Its three handler blocks go
with it - a Template.X.events() left on a removed template throws at MODULE LOAD and
takes out every module after it in the client bundle, which is how the password field
disappeared from /sign-in in
|
||
|
|
72315d8f96 |
Mobile mode: same bar on a phone as on a desktop, list title back, board reflows.
Reported with two screenshots of the same app: on an iPhone 12 mini the second header
bar held a handful of icons and no board title, while a desktop Firefox window in
mobile mode showed the title and the full set of buttons. Same mode, two bars.
Mobile layout is driven from three switches that did not agree: `body.mobile-mode`
(the toggle), `Utils.isMiniScreen()` (which template branch renders) and
`@media (max-width: 800px)` (the viewport - true on a phone, false on a wide desktop
window even with mobile mode on). The first two were made to agree in a5246fbf5; the
rules that assumed the third are fixed here.
`.mobile-mode .board-header-btns.left { display: none }` is removed. The left group
holds edit title / visibility / watch / star / sort, and boardHeader.jade renders them
in EXACTLY ONE of the two groups - left `unless isMiniScreen`, right `if isMiniScreen`.
So in mobile mode the left group is already empty and hiding it changes nothing,
EXCEPT when the switches disagree, and then it deletes those five buttons from the bar
with no replacement. Gone, so that if the switches ever drift again the buttons survive
instead of vanishing.
The phone block gave the bar a fixed `height: 48px` for #6419's touch targets. A fixed
height CLIPS the second row the bar wraps to when title + buttons do not fit on one -
part of the bar was simply not there. Now `min-height`, so the targets keep their size
and the bar can grow; it still sits on one row whenever the content fits, which is the
normal case.
The list title is visible in mobile mode again, on both. listHeader.jade has two
shapes: on a mini screen the `h2.list-header-name` is a direct child of `.list-header`,
otherwise it is wrapped in a div (the one that rotates when a list is collapsed).
Mobile mode lays the header out as a grid and places the title by grid row/column,
which only applies to a direct grid ITEM - inside the wrapper the placement was ignored
and the title landed in the 30px first column, squeezed to nothing. `display: contents`
drops the wrapper from the layout so the title is a grid item in both shapes. Not for
`.list-rotated`, which needs a real box to rotate, nor for the screen-reader move
buttons.
The board reflows sideways again instead of overflowing by a sliver. The mobile board
rules sized the canvas, swimlanes, lists and list headers with `100vw` - the viewport
width INCLUDING the vertical scrollbar. The canvas scrolls vertically, so every one of
those was about a scrollbar's width wider than the box it sat in, at each nesting
level, and `min-width` pinned to the same value meant it could not shrink. All 18 are
now `100%`, which resolves against the parent's content box and already excludes the
scrollbar.
Tests: 1321 passing.
Thanks to xet7 !
|
||
|
|
114a0af31e |
Minicard: put the drag handle below the menu button, on the same edge.
On a coarse (touch) pointer the handle was a full-height strip down the LEADING edge. That was added for #6521 for a good reason - on a touch device the handle is the ONLY way to drag a card, since the card body deliberately pans the board instead, so the 20-28px corner icon was too small a target to hit. It reached the size goal but put the handle on the opposite side of the card from every other card control, and from where a mouse user's handle already sits. Both pointer kinds now put it in the same place: the details menu at the top of the trailing edge, the drag handle directly BELOW it, as one column. The touch version is just bigger. A mouse keeps the compact corner handle - `pointer: coarse` does not match a mouse - and that one was already below the menu button, so the two placements now agree instead of being mirror images of each other. The touch target is not given up: the handle is 44px wide and runs from under the menu button to the bottom of the card, so a tall card gives a tall target, with a 36px floor for a card holding nothing but a title. The card reserves the column as trailing padding so its text does not run underneath, and is at least 68px tall - menu (32) plus handle minimum (36) - so both fit. The menu button is pinned rather than floated inside that block: the card's new trailing padding would push a float:inline-end button inward, and it would no longer line up over the handle. Both are the same width, so they read as one column. Everything stays in logical properties, so the column mirrors to the left edge on an RTL board rather than being stranded. The handle renders on `canMoveCard && showDragHandles()`, the same pair of conditions that adds the `minicard-with-handle` class - so the reserved space and the handle always appear together, never one without the other. Tests: 1316 passing. Thanks to xet7 ! |
||
|
|
a5246fbf57 |
Mobile mode: drag-scroll the header bars, hamburger in the corner, full-width lists.
Four things reported while using mobile mode, three of them in the second header
bar.
Drag-to-scroll now works on BOTH top header bars, not only below them. Everywhere
else a drag scrolls - `.board-canvas.dragscroll` on a board, `<body>` / `#content`
on the whole-page layouts - but the two header bars were dead, and on a phone they
are a large share of what is on screen. They cannot simply be tagged `.dragscroll`:
that class scrolls the element carrying it, and neither bar is a scroll container -
`#header` sits outside `#content` and outside the board canvas. So a new module,
client/lib/headerDragscroll.js, forwards the drag to whatever actually scrolls: a
scroller inside the header first (the starred-boards list is overflow-x:auto), then
the board canvas, then the page scroller. Both bars are `.nodragscroll` so the
page-level dragscroll does not scroll a second time from the same gesture. Mouse and
touch are both handled - a phone sends no mouse events, and the dragscroll library is
mouse-only and element-bound. A tap is still a tap: scrolling starts only past a 4px
threshold, and only then is the click that ends the gesture swallowed, in the capture
phase, so dragging across the bar does not press whatever you let go over.
The second header bar on a phone now reads title, buttons, hamburger. The board title
is shown again - it was hidden by a `display: none !important` that predates this
work, which left the bar with nothing but icons, so you could not tell which board you
were on. A board name is how you know where you are, so it wraps rather than
truncating. The buttons start at the right of the title and drop to a second row as a
block when the space between the title and the menu button runs out; they are one flex
item, so they never split across the two rows.
The sidebar hamburger, with its divider to its left, is pinned in the TOP RIGHT
corner. It was lifted out of the `.right` group into its own flex item placed after
the title, because inside that group it could only ever wrap down together with the
other buttons - a flex line breaks in order. On a phone it is taken out of the flow
(position:absolute) and the bar reserves its width as end padding, so a long title or
a full row of buttons never runs underneath it; that reservation is board-only, since
the same bar on All Boards has no hamburger. On a wide screen `order: 1` puts it back
at the end of the bar, visually identical to before.
Lists and cards are full width in mobile mode on a DESKTOP browser too, not only on a
phone. Two causes, both from mobile mode being decided in two places that disagreed:
* Utils.isMiniScreen(), which drives the `mobile-view` class on each list, swimlane
and minicard, looked only at screen width and user agent. The explicit toggle was
honoured on iPhone only - and even there through a test that could never be false,
since getMobileMode() falls back to viewport detection and so always returns a
boolean. An explicit choice now wins on every device, via a new
getExplicitMobileMode() that can answer "never chosen"; the per-device branches
below it are the defaults for that case.
* `.mobile-mode .list { width: 100% !important }` was outranked by
`.js-swimlane .list[style*="--list-width"] { width: var(--list-width) !important }`
- both !important, and the second more specific. It never showed on a phone (no
inline --list-width is emitted there), only in mobile mode on a desktop window.
The override repeats those three selectors prefixed with body.mobile-mode, and
keeps the :not(.list-collapsed) exclusion so a collapsed list stays 30px (#5892).
Also adds tests/jadeCompiles.test.cjs, which compiles every .jade with the SAME
compiler the build uses. Nothing else caught a broken template: the other suites read
.jade as text and grep it, so a file the compiler rejects still passes them all. It
was written after a `<body>` inside an indented `//-` comment block broke the build
here - the comment text is still lexed, so the angle brackets opened a tag that never
closed. All 107 templates parse in ~0.2s.
tests/headerHamburger.test.cjs asserted the hamburger sits inside the `.right` group,
which is exactly what moved; it now checks the new wrapper, its divider, and that
`order` still puts it last on a wide screen.
Tests: 1309 passing.
Thanks to xet7 !
|
||
|
|
40de0df00f |
Stop element size and spacing changing when the browser window is resized.
Reported on /sign-in and /sign-up: making the window taller made every element
taller and every gap wider; making it shorter shrank them. That is what vh does -
`padding: 3vh 3vw`, `margin-top: 6vh`, `min-height: 4.5vh` - the box is a
percentage of the WINDOW, so the page reflows continuously as you drag the edge
and the same layout looks different on every screen.
It was not only those two pages. 355 such values across 24 stylesheets, on
padding, margin, gap, height, line-height, font-size, border-radius and
box-shadow. They are now the pixel sizes they rendered at on the window they were
tuned for (1vh -> 9px, 1vw -> 14px), so each page looks as it did at that size and
stays that size everywhere else.
Two of them were documented bugs already: minicard.css carries two comments
explaining that the global `.viewer { min-height: 2.5vh }` "reserves a big empty
band under a one-line title, so half of every minicard was white space" on tall
screens. That floor is 22px now, and the modal body's 20vh is 180px.
Viewport units are still right for three things and are kept: a full-viewport box
(100vh/100vw), a CAP that stops content overflowing a small screen (min(), max(),
clamp()), and max-/min-width limits. 274 such uses remain, all deliberate.
The conversion was a token substitution - it cannot move or delete a rule - and
brace balance was asserted unchanged for every file before writing it.
Tests: tests/noViewportSpacing.test.cjs scans every stylesheet under client/ and
fails on any size or spacing measured in vh/vw, while still permitting the three
legitimate shapes (it checks both directions). It blanks block comments first, so
the two minicard.css comments ABOUT this bug are not reported as uses of it. One
existing test pinned the literal `2.5vh` global floor; it now pins a px floor, and
the dependency it documents - that the minicard override compensates for a global
floor - is unchanged.
Thanks to xet7 !
|
||
|
|
696c490387 |
Fix the missing password fields at /sign-in and /sign-up.
My own regression, and a bad one: the login form had no password input.
When the Accounts pane was removed from Admin Panel / Settings - its three
settings having moved to Email and Login - its save handler was left registered on
the template that went with it:
Template.accountSettings.events({ ... }) // accountSettings no longer exists
That throws at MODULE LOAD, and because it throws, no module after it in the
client graph runs. client/features/users.js never executed, so passwordInput.jade
was never registered, and useraccounts logged
[UserAccounts] Warning no template passwordInput found!
then rendered nothing for the two fields that use it - password and
password_again. One dead reference in the Admin Panel took out the login form for
everyone.
The handler moved to Template.setting, which renders the Login pane its button
lives in.
Why nothing caught it: the file parses, every unit test passed, and the failure
only ever appears in a browser console. So the guard is new -
tests/templateHandlersExist.test.cjs walks every .js under client/components and
asserts each Template.X.events/helpers/onCreated/onRendered/onDestroyed has a
matching template(name="X") in some .jade. It ignores commented-out code (there is
a Template.cards.events() in a comment in minicard.js) and package-provided
templates. It fails on the pre-fix file.
Diagnosis notes, since "password field is missing" points nowhere near the Admin
Panel: the field was correctly registered - removeField returns the field object
and it is in addFields - and the compiled passwordInput template WAS in the served
bundle. What it was not was executed. The console error naming
Template.accountSettings is what tied the two ends together.
Thanks to xet7 !
|
||
|
|
783ebc32ac |
Admin Panel / Settings: move the two All Boards hide settings to Boards visibility.
"Hide card counter list on All Boards" and "Hide board member list on All Boards"
were in the Layout pane, which is about logos, links and head tags. They are about
what All Boards SHOWS, which is what the Boards visibility pane is for - its i18n
key is tableVisibilityMode, but the label admins see is "Boards visibility". Both
settings now sit there, saved by that pane's Save button.
The move had a trap. The Layout save read them as
$('input[name=hideCardCounterList]:checked').val() === 'true'
Once the radios are no longer in the Layout pane, :checked matches nothing,
.val() is undefined, the comparison yields FALSE, and pressing Save on Layout
would silently turn BOTH settings off - a data change from a pane that no longer
shows them. So the reads and the two $set keys are removed from the Layout save,
not just the markup.
The new save guards the same class of mistake from the other side: it writes each
flag only when its radio was actually found, and sends no update at all when it
found neither. The two flags live in Settings while the pane's own
allowPrivateOnly lives in TableVisibilityModeSettings, so this is a second,
separate write.
The i18n keys are untouched - the strings only moved - so no translation is lost.
Tests: tests/boardsVisibilitySettings.test.cjs pins that the pane it targets is
really the one labelled "Boards visibility", that both settings are in it and
gone from Layout, that the Layout save no longer writes them (the trap), that the
new save is guarded against writing a value it did not find, and that the i18n
keys are unchanged. It fails on the pre-move code.
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 ! |
||
|
|
f14dc6a784 |
Tests: one suite for the table page, asserting against the files the design lists.
tests/adminReportsPagination.test.cjs asserted against the same pages as tests/tablePage.test.cjs from a second file - the same split this change removed from the app code, and written when each report still had its own markup, controls row and stylesheet. It is merged into tests/tablePage.test.cjs, which is now the one suite for the design: the pure helpers, the template, the layout, the themed pager, the server-side index-backed paging, and the doc. Its last three checks cover the OTHER pagers (People/Org/Team/Domain, the board Table view, Translation). Those are not table pages, but they share the themed pager stylesheet the design lists, so a change there reaches them too - they are kept, next to what they depend on. Deduplicated on the way in: the merged "pagination controls use var(--theme-accent)" was a weaker copy of the check above it, which already pins all five button states; its two unique assertions were folded in and the copy dropped. 10 + 22 checks -> 31, no coverage lost. Two guards were pointed at the wrong file after the refactor: - fileNameDisplay's "the invisible-character filter is fully removed" read only adminReports.jade, which no longer holds ANY report markup - so it passed no matter what. It now reads the shared template too. - Table-Page.md's related-files table still listed the deleted test. The suite's own "every path in this table exists" check caught it; the row now describes the combined suite. Thanks to xet7 ! |
||
|
|
aebede877a |
Snap: a finished MongoDB -> FerretDB migration no longer leaves WeKan on 503.
Upgrading a Snap from 6.09 to 10.37 migrated successfully and then served 503
until the admin ran `snap restart wekan` by hand. WeKan sat in its startup loop
printing "MongoDB not ready yet, retrying in 5 seconds..." against a MongoDB the
migration had just shut down for good.
mongodb-control ends with `exec bash $SNAP/bin/migration-control`, so
migration-control IS the wekan.mongodb service process. The switch to FerretDB
ran, in this order:
snapctl start --enable <snap>.ferretdb
snapctl restart <snap>.ferretdb
snapctl stop --disable <snap>.mongodb <- stops the service THIS script is
snapctl restart <snap>.wekan running in: SIGTERM, dead here
so the restart that hands WeKan over to FerretDB never ran. The reporter's log
shows it exactly: "Migration succeeded. Switching to FerretDB (SQLite); MongoDB
will be shut down." at 13:15:12, systemd stopping snap.wekan.mongodb.service and
"[migration] Interrupted (snap refresh, stop or reboot)" one second later, then
minutes of wekan.wekan waiting for a MongoDB that was gone. The comment above
that block already noted the service can terminate us - the restart just needed
to be on the other side of it.
WeKan is now restarted onto FerretDB BEFORE MongoDB is stopped, and the stop is
the last command in the switch. The traps are disarmed just before it, so being
stopped there no longer logs "Interrupted (snap refresh, stop or reboot)" after a
migration that in fact SUCCEEDED, nor runs cleanup for a finished run.
The restart must not be the only way out of that loop either, since it is the
last act of a script being killed: wekan-control's MongoDB wait now re-reads the
live `database` setting each round and re-execs itself when it has become
ferretdb. A migration that finishes while WeKan waits therefore recovers on its
own within five seconds, with no admin action.
mongodb-control's equivalent switch ("a completed FerretDB migration exists")
already had the correct order; a test now pins that too.
The high FerretDB CPU right after migration is a separate matter and is expected:
WeKan creates its indexes on first start against the new database, and in this
report WeKan never reached FerretDB until the manual restart, so that work had
not even begun when the reporter looked.
Tests: tests/snapMigrationSwitchOrder.test.cjs pins the ordering, that no snapctl
command may follow the self-terminating stop, that the traps are disarmed first,
that the pre-switch verification still comes before any of it, and the
wekan-control self-recovery. It fails on the pre-fix scripts.
Thanks to S0QR2 and xet7 !
Fixes #6525,
|
||
|
|
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 !
|
||
|
|
90d9fb99e4 | Bump versions for v10.37 | ||
|
|
e876b6029e |
Security report script: flatten the paginated pages, so the dumps are not silently empty.
`./pull-security-reports.sh` reported OK for every endpoint and then wrote empty
split files and blank counts:
Counts (open / closed):
CodeQuality/StandardFindings: / -
Dependabot/Vulnerabilities: / -
`gh api --paginate --slurp` returns ONE ARRAY PER PAGE, so a list endpoint arrives
as [[alert,...],[alert,...]]. Nothing flattened that, so `.[]` yielded PAGES, not
alerts, and every `select(.state == "open")` was applied to an array. jq failed,
its error went to /dev/null, and the `>` redirect left a 0-byte file - which is
not valid JSON, so every later step on it failed too and printed nothing. A
security report that quietly claims there is nothing to see is worse than one
that fails, so:
- fetch() now concatenates the pages into a single list, but only when EVERY
element is itself an array; endpoints returning one object (/repos/{o}/{r},
the SBOM, default-setup) are slurped to [ {...} ] and are left alone, because
their renders index .[0].
- split() writes through a temp file, keeps a valid empty ARRAY and the jq error
on failure, and warns in the summary instead of truncating the destination.
- the secret-scanning redaction validates the redacted copy before deleting the
file that still holds live secrets - it used to write nothing and delete the
source anyway - and now removes that file on the failure path as well.
- count() always prints a number, so the summary can no longer show a blank
column, and the closed column starts at "-" rather than an empty string.
The same shape also broke the newest-analysis lookup (`sort_by | last | .id`
over pages) and the codeql-databases dump; both come right with the flatten.
Verified offline with the fake-gh harness the README documents, replaying the
real fixtures from the failed run: code scanning 4 pages -> 392 alerts,
Dependabot 1 page -> 86, analyses 152 pages -> 15118, advisories -> 22, and the
splits land as 2 open code scanning / 386 closed and 2 open Dependabot / 83
closed, with no zero-byte file anywhere in the run.
Tests: tests/securityReportScript.test.cjs guards the flatten, the non-truncating
split, the redaction ordering and the count helper, and - when jq is installed -
runs the actual filters, including a check that select() on an array-of-pages
still fails, so the guard cannot quietly stop being what protects the split.
Thanks to xet7 !
|
||
|
|
917a484ff3 | Bump versions for v10.36 | ||
|
|
f75b28cc81 |
Board bar on iPad: fit the second header bar on one line.
On iPad landscape the board bar wrapped onto two rows: board title, edit, visibility, watch, star and sort on the first, Filter / Search / view / dependencies / multi-selection / hamburger on the second. Measured from the report at a 1180 CSS px viewport, the two rows needed ~613px + ~691px = ~1304px on one line, about 124px more than the viewport. Nearly all of that is per-button CHROME rather than text: every .board-header-btn carries 12px side margins (24px), its icon another 10px per side (20px) and a 10px gap after the label - roughly 54px of empty space around a ~60px icon+label. So nothing has to be hidden at this width; halving the chrome between 801px and 1400px frees ~295px, which fits the bar on one line at 1180px with room to spare for languages whose labels are longer than the Finnish ones. Only empty space shrinks - icon and label sizes are untouched, so the buttons stay comfortable to tap. Tablet PORTRAIT (iPad 820px) cannot fit ~1009px of icons+labels even halved, so between 801px and 1000px the labels drop to icons only, the same treatment the phone block already gives below 801px. Titles, tooltips and popups are unchanged, so nothing becomes unreachable. Bounded at 1400px so wide desktops, which never wrapped, look exactly as before; 1400px still covers iPad Pro 12.9" landscape (1366px), and phones at 800px and below keep their existing 44px touch targets. Tests: tests/boardHeaderOneLine.test.cjs guards the arithmetic, not just the presence of the rules - it reads the base and override margins out of header.css and asserts the halving frees more than the measured 124px deficit (with 2x slack for longer translations), that button rules in the tablet block change only margins so the #6419 touch sizing cannot be shrunk back, that the phone block is untouched, that the overrides come after the base rules they override (a media query adds no specificity, so source order decides), and that every control on the bar is a .board-header-btn so the rules actually reach it. Thanks to xet7 ! |
||
|
|
1551e142ff |
Dev server: stop the error overlay covering the app for cross-origin "Script error.".
On iPad Safari the full-screen "Uncaught runtime errors: ERROR Script error." panel appeared after login and again when the Safari Share sheet was opened on All Boards to add WeKan to the home screen. That panel is webpack-dev-server's error overlay, shipped by the rspack DEV server (the stack frames are in /__rspack__/client-rspack.js, a path that only exists when isDevEnvironment; a production build has no dev server and no overlay at all). Its catchRuntimeError handler opens the overlay for every window 'error' event, including ones that carry no information: a browser sanitises an error thrown by a CROSS-ORIGIN script to the bare message "Script error." with a null error object and no stack, and iOS Safari raises those from its own machinery and from content blockers / extensions - which is why opening the Share sheet triggered it. Such an error cannot come from WeKan's own code: the bundle is served same-origin (WeKan sets no CDN_URL), so a real WeKan error always reaches the overlay with its actual message and stack, and WeKan registers no visibilitychange / pagehide / blur handlers that the Share sheet could run. There is nothing to act on in "Script error.", so the overlay now ignores exactly that message and keeps showing every other runtime error, plus all compile errors, as before. devServer.client.overlay.runtimeErrors takes an (error) => boolean filter that webpack-dev-server serialises with toString() and rebuilds in the browser with new Function(), so the filter is self-contained. Tests: tests/devOverlayRuntimeErrors.test.cjs round-trips the filter exactly the way the dev server does (encodeURIComponent(fn.toString()) -> new Function), checks real errors still open the overlay and malformed input never throws, that devServer stays out of production/server configs, and - because the base config puts devServer.client.webSocketURL there on a remote ROOT_URL - that the merge deep-merges instead of dropping the WebSocket URL. Thanks to xet7 ! |
||
|
|
8e58456c44 |
Change profile image window: fix the broken avatar rows and make every upload deletable.
The rows of changeAvatarPopup / adminChangeAvatarPopup rendered the delete link and the file name INSIDE the a.js-select-avatar anchor. An <a> inside an <a> is invalid HTML: the browser closes the outer anchor, so the file name and the "Delete" link fell out of the row's flex layout and rendered as bold text floating at the right edge, and a click on Delete also selected that avatar. Delete and the file name were also only rendered for the avatar currently in use, so no other upload could ever be removed, and an empty p.sub-name added a stray block in the middle of the row. Each row is now one flex line: thumbnail, file name (ellipsis-truncated, with the full name as a tooltip), a green check when it is the avatar in use, and a delete button that is a SIBLING of the select link - so deleting never also selects, and every uploaded avatar can be deleted. The row in use is highlighted like the other pop-over lists, the initials row shows its "Default avatar" sub-label under the name, and the upload hints (max filesize / allowed filetypes / invalid file) are grouped into one muted paragraph above the upload button. Deleting the avatar that is in use left profile.avatarUrl pointing at a file that no longer existed - a broken image everywhere - which is now much easier to hit since any avatar can be deleted. Both popups reset the avatar to the initials when the deleted file is the one in use. The admin popup also passed userData= to userAvatarInitials, which reads this.userId, so its initials rendered empty; it now passes userId. Tests: tests/changeAvatarPopup.test.cjs source-guards the row structure (delete never nested in the select anchor, never inside `if isSelected`), the reset to initials and the row CSS. Thanks to xet7 ! |
||
|
|
66fb87a3fa | Bump versions for v10.35 | ||
|
|
c29f5c7a66 |
Rename the dev helper rebuild-wekan.sh/.bat -> build.sh/.bat (shorter name).
Renames rebuild-wekan.sh -> build.sh, rebuild-wekan.bat -> build.bat, and the guard test tests/rebuildWekanDevServer.test.cjs -> tests/buildDevServer.test.cjs, and updates every reference across the repo: the docs (Build-from-source, Windows, Sandstorm, Raspberry Pi, virtual-appliance, Debugging, Developer-Documentation, FerretDB, OpLog, Rclone, Emoji, Multiverse roadmap, Security remediation, Tests), README.md, CONTRIBUTING.md, CLAUDE.md, package.json (test:unit:node), the release scripts (release-all.sh, fix-changelog-hashes.sh, node-update.sh), the disabled playwright workflow, playwright.config.js, the REST spec comment, tools/forge-mirror.js, and the CHANGELOG. The menu and every option are unchanged; only the filename and its references. The website has no references. Thanks to xet7 ! |
||
|
|
52d68be755 |
Remove the per-swimlane-lists-era board migrations that made spurious "Restored Items" columns and empty-looking cards.
#6521: after upgrading toward 10.33 a board grew a new "Restored Items" column full of cards that looked empty but were not. That column, and the card moves behind it, came from obsolete board migrations that fight the CURRENT data model: * restoreLostCards - created a "Lost Cards" swimlane and a "Restored Items" list (i18n lost-cards / lost-cards-list) and moved cards into them. It called a card "orphaned" when its list was merely ARCHIVED (archived lists are excluded from the set it checks) and "lost" when its swimlaneId was '' - which is NORMAL for a board-wide shared card - so it dragged real, fine cards into "Restored Items". * comprehensiveBoardMigration / fixMissingListsMigration - converted today's board-wide SHARED lists (swimlaneId '') back into per-swimlane DUPLICATE columns, i.e. the exact damage the startup schema step merge-per-swimlane-lists now UNDOES. * restoreAllArchived - un-archived every swimlane/list/card at once. All four had NO callers left - their admin migration dashboard was already removed - so they were dead code exposed only as admin-callable Meteor methods, a footgun that could re-corrupt a board if invoked. They are removed, along with their imports and the stale commented-out imports in 00checkStartup.js. The legitimate paths remain and are correct: the board-open self-heal (repairBoardData) assigns a genuinely missing swimlaneId / relinks orphaned cards to the board's real first list/swimlane, and the startup schema step merge-per-swimlane-lists merges any per-swimlane duplicate columns back into one shared list while cards keep their swimlaneId. It still keys off the era's board markers (fixMissingListsCompleted / comprehensiveMigrationCompleted) in existing data, so removing the code that once wrote them changes nothing for already-migrated boards. Adds tests/obsoleteBoardMigrationsRemoved.test.cjs so these cannot come back. Thanks to hmeunier95 and xet7 ! Fixes #6521, |
||
|
|
d2a80eacf4 | Bump versions for v10.34 | ||
|
|
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, |
||
|
|
1c2e1e2047 |
Add touch -> HTML5 drag-and-drop bridge so board icons drag by finger.
HTML5 drag-and-drop never fires from touch, so the board-icon reorder (and the
other HTML5-DnD spots) only worked with a mouse. This adds
client/lib/dragDropTouch.js: a long press on a `draggable="true"` element starts
a synthetic drag that dispatches REAL, bubbling
dragstart/dragenter/dragover/dragleave/drop/dragend DOM events with a
dataTransfer shim - so every existing delegated handler works from a finger with
no change to the reorder logic, the workspace drag-to-share, or the card/rule
drags.
Chosen to be safe alongside the existing touch scrolling:
* LONG PRESS (250 ms) to start - a quick swipe on a draggable tile still
scrolls; only a deliberate hold-then-move begins a drag, and preventDefault
is called ONLY once a drag is under way.
* It fires a `mousedown` on the pressed element first, so the board reorder's
handle gate (which records the mousedown target) works from touch too.
* setDragImage is honoured, so the ghost is centred on the finger exactly as it
is on the cursor for a mouse.
* It excludes form fields and jQuery-UI sortables (lists/swimlanes/cards
already get touch via touch-punch), and coexists with dragscrollTouch.js,
which already skips the `.nodragscroll` board tiles and handle.
Loaded globally (via pageDragscroll / boardBody, and imported in boardsList).
Adds tests/dragDropTouch.test.cjs pinning the properties above.
This is Option A from the discussion - it keeps every mouse fix and every other
HTML5-DnD feature, rather than rewriting reorder onto jQuery-UI-sortable.
Thanks to xet7 !
|