Center the minicard drag glyph directly beneath its menu without a scaled offset. Use the same compact swimlane handle markup and position on touch and mouse devices, and cover both computed positions in the live browser suite.
Thanks to xet7 !
Do not inject board list names into the quick-access bar when a list opens in Mobile Mode. Keep list navigation in the swimlane rows and verify the header text and height remain unchanged in the live browser test.
Thanks to xet7 !
Scope the mobile list-header selected state to the list whose ID is selected, so compact rows in other swimlanes retain the same controls and height. Extend source and live browser coverage to compare untouched row heights before and after opening another swimlane's list.
Thanks to xet7 !
Keep direct minicard title editing commented out. Without drag handles, the title moves the card; with handles, it remains available for board drag-scrolling.\n\nThanks to xet7 !
Both faults were inside the panel, which is why measuring its frame found
neither: the gaps around it were right the whole time.
THE EMPTY BAND ABOVE THE SEARCH BOX. `.content-container` holds the whole
popup STACK - one `.content` per entry, with the ones you are not looking at
collapsed by `.content.no-height { height: 0 }`. Making the container a flex
column turned those into flex items, and the growth rule applied to all of
them: `flex: 1 1 auto` says grow, and `height: 0` is only the basis it grows
from. So the card menu History was opened over stayed in the layout and took
336px of a 925px window. Only the entry being looked at grows now, and the
collapsed ones are pinned to `flex: 0 0 0 !important` - important because the
rule it has to beat, `.pop-over .content { flex: 1 1 auto !important }`,
carries one.
THE SCROLLBAR WITH NOTHING TO SCROLL. `width: 100%` on the table was wrong at
both ends, in opposite directions. Wide: WeKan's global `table, td, th` rule
gives the table a `border-inline-start: 1px` - those are the vertical lines
between the columns - and this file's reset makes `*` content-box, so 100%
sized the CONTENT and that border was added outside it. Columns summing to
993.047 in 993.047 of space, border box 994.047: one pixel of nothing, drawing
a bar across the foot of the panel at every width the table actually fitted.
Narrow: the table stayed at 100% while its columns needed 436px, so they
spilled OUT of it, and the scroll box measures the table rather than its
spill - the columns were unreachable, with a 1px scrollbar suggesting
otherwise. `width: max-content` sizes the table to what the columns want,
`min-width: 100%` keeps it filling the panel when they want less, and
`box-sizing: border-box` puts that 1px inside the 100%.
Two wrong turns are recorded in the comments because both looked right:
`border-collapse: separate` on the theory the 1px was a collapsed border (it
is not - the border is set explicitly by that global rule and survives), and
`box-sizing` alone, which removes the pixel by pinning the table to 100% and
so converts a real overflow into a hidden clip.
The gutter stays DESKTOP-ONLY. It was briefly made unconditional and that is
wrong: below 801px, and in mobile mode at any width, a popup is a full-screen
sheet flush to all four edges, and it should stay that way. The height chain
above it is NOT in a media query, for the opposite reason - the sheet still
has to pass its height down or the scrollbar ends up halfway up the panel. The
test now pins both directions, since they pull against each other.
Measured, desktop mode at 886x711: 10px on all four sides, no horizontal
scrollbar, 65px above the search box - the panel header and nothing else. At
375x812: edge to edge, and a horizontal scrollbar with 169px of real scrolling
instead of one pixel of none.
Thanks to xet7 !
Above 801px the panel already ended the same 10px from the bottom that it
starts from the top. Below that, where popup.css lays every popup out as a
full-screen sheet, it did not: the horizontal scrollbar sat halfway up the
panel with blank space beneath it, because nothing carried the sheet's height
down to the rows.
Measured at 375x812, three separate things were wrong, and all three were
percentage heights or caps that a diff cannot show:
THE CHAIN WAS DESKTOP-ONLY. The rules passing the height from the pop-over
shell to the template were written inside `@media (min-width: 801px)` - which
is exactly backwards, since above that width the panel is given a height
directly and below it the sheet is the only thing that needs help. Moved out,
and pinned there by a test that matches braces rather than looking for a
closing line: an earlier version of that guard searched for the next `\n}`
and a rule inside the block satisfied it, so it passed while the chain sat in
the media query it is meant to stay out of.
PERCENTAGES HAD NOTHING TO RESOLVE AGAINST. `.content-container` stopped at
588px - `max-height: calc(70vh + 20px)` from the base rule, whose
`.pop-over--bounded` override does not apply to a sheet because that class
comes from an inline max-height popupOffset.js does not send one of - and
`.content` collapsed to 10px, its `height: calc(100% - 20px)` resolving to the
padding alone. The chain is flex now, the whole way down: a flex item that may
grow and shrink needs no parent height, and `min-height: 0` is what lets it
shrink rather than being stretched by its own content.
AND TWO CAPS ATE THE EDGES. `.pop-over { max-height: 90vh !important }` left a
tenth of the screen empty under the sheet - 731px of 812. The mobile block
already tries to undo that and loses, having the same specificity and being
written earlier, so the override here carries the attribute selector and wins
on specificity instead. And this file's reset makes `*` content-box while
`.pop-over` has a 1px border, so the stated `calc(100vh - 20px)` drew 2px
taller than it says: 10px above against 8px below, at any width where
`.pop-over--bounded` happened not to be applied.
Verified in a browser at four sizes - 375x812, 768x1024, 886x711, 1280x720.
Under 801px the sheet fills the screen, as a sheet should; above it the gaps
are 10px on all four sides; and in every one of them the horizontal scrollbar
is at the foot of the panel.
The guard now strips CSS comments before matching declarations. It had started
passing on the comment that QUOTES `height: calc(100vh - 20px)` while
explaining it - prose satisfying an assertion about code.
Thanks to xet7 !
The panel was pinned 10px below the top of the window and then stopped
wherever its contents ended: a two-row table sat in the top eighth of the
screen with the rest of it blank. It now ends 10px above the bottom, so the
space a reader sees under it is the space they see over it - measured at
1280x720: 10px on all four sides, a 700px panel, unchanged in RTL.
Three separate rules were needed and each was found by measuring rather than
by reading:
A HEIGHT. popupOffset.js already sent a max-height of the right size, and a
maximum alone lets a short table stay short. Stating `height: calc(100vh -
20px)` is what fills the window.
NO MARGIN. The base .pop-over adds `margin-top: 6px` - the little gap between
a menu and the button that opened it. These panels are not hung off a button;
popupOffset.js pins them to the viewport's 10px gutter, so the margin was
added to a position that was already final. Every full-width panel sat 16px
from the top while its own comment said 10, and on History, which now has a
stated height, it also pushed 6px past the bottom: 16px above against 4px
below. Zeroed for the export panels too, which have the same contract.
FIXED POSITIONING. Every other popup is absolute in DOCUMENT coordinates,
which is right for a menu that should travel with its button and wrong for a
box sized from the viewport. Opened on a page scrolled 53px down and then
scrolled back, the panel stayed at document y=63 - 63px below the window with
43px of itself past the bottom. It is positioned from the viewport now, like
the Admin edit popups above it, which solve the same problem the same way.
The height then had to reach the table, or the blank space would only have
moved indoors: the three wrappers between the pop-over shell and the template
pass it down, .history-main is a column so the rows take what the controls
leave, and .history-scroll grows instead of being capped at 55vh. With 40 rows
the panel stays 700px and the rows scroll inside it.
The offsets are logical rather than `left`, because tests/rtl.test.js rejects
physical ones - and both ends are named, since the template writes an inline
`left:` that a start-only rule would leave in force in RTL.
tests/historyOneTemplate.test.cjs pins all three rules and that the height
reaches the rows. The height assertion excludes `max-height` explicitly: it
matched a loose pattern and passed while testing nothing, which is the exact
state this commit fixes.
Thanks to xet7 !
The change history and its table were written without a Meteor runtime
available, and both documents said so. Opening it found four things that no
amount of reading the source would have shown, three of which made the
feature useless.
THE TABLE WAS BLANK. `{{#each row in rows}}` binds `row` as a NAME and leaves
the data context alone - unlike `{{#each rows}}`, which replaces it - so
`{{_id}}`, `{{contentSummary}}` and the rest resolved against the OUTER
context and rendered nothing. Nothing errors: the table drew one row of four
empty cells and a checkbox with no id. Same bug in the contributor loop. Every
field now goes through its loop variable.
THE ROW COULD NOT BE SELECTED. WeKan hides every bare checkbox app-wide -
forms.css: `[type="checkbox"] { display: none }` - and draws `.materialCheckBox`
divs instead, so the real one here rendered 0x0. The row was visible, could
never be ticked, and Restore stayed disabled with nothing that could enable
it. It is now the control the rest of the app uses, clicked rather than
changed, drawn from the selection state.
THE PANEL WAS 380px WIDE. A popup's default width left 129px for the
contributor pane and 201px for a four-column table; the search box was
squeezed to 32px and one row had to be scrolled sideways to be read. History
is the same shape as the export panels - two panes, opened from a menu at the
edge of the screen - so it joins them in popup.css and in the FULL_WIDTH_POPUPS
list in popupOffset.js, which is the other half that decides where a panel is
placed. The rows also scroll in a wrapper now rather than in the table itself:
`display: block` on a <table> stops the cells sharing column widths, so the
header and the rows beneath it drift apart.
AND A RESTORE WAS RECORDED TWICE. This one is a correct decision with a
consequence: History.md 8.2 says a restore re-applies content through the
SAME setters an ordinary edit uses, so validation, hooks and Activities all
still run. The field-diffing after.update hook is one of those hooks, so it
saw the restore's own write and recorded it - and restoring a title left an
`edited` row nobody made sitting above the `restored` row describing the same
write. Recording, and only recording, is now switched off for the duration of
the applier.
That switch is an AsyncLocalStorage scope, not a module-level boolean, and the
difference is not stylistic: the server handles several requests at once, and
a shared flag set during one user's restore would have silently swallowed
another user's edit landing in the same window - a data-loss bug that appears
only under concurrency and would never be seen in testing.
Verified against a running server rather than by reading: a card renamed
through the UI recorded one row with the right group, previous and new value;
History showed it; selecting it and pressing Restore put the title back and
left exactly two rows, the edit and the restore.
tests/historyOneTemplate.test.cjs pins the loop-variable rule, the checkbox
control, the panel width in both files that decide it, and the scroll wrapper.
tests/historyRestoreRecordsOnce.test.cjs pins the suppression, that a restore
still writes through the normal setters, and - running two overlapping async
operations for real - that a concurrent edit by another user is still
recorded.
Thanks to xet7 !
The client build failed outright:
ERROR in ./client/components/history/historyTable.js
× Module not found: Can't resolve 'moment'
moment was removed from WeKan and replaced with native Date functions -
imports/i18n/moment.js says exactly that - so it is not a dependency and nothing
resolves it. The History table now uses formatDateTime from
/imports/lib/dateUtils, which is what the rest of the app uses.
`import moment from 'moment'` is the most ordinary-looking line in a JavaScript
file, and reading the diff would never have shown it, because what was wrong was
somewhere else entirely: the dependency list. So the guard is worth more than
the fix. tests/importsResolve.test.cjs asks the question the bundler asks - can
this specifier resolve, against the real node_modules - across client, models,
imports and server. It finds this class in under a second where `meteor build`
takes two minutes, which is the difference between noticing while writing a file
and noticing after handing the work over.
It also pins the two packages the app imports directly without declaring,
body-parser and mime-types. Those resolve today only because something else
pulls them in, and would vanish if that dependency changed; the list is pinned so
it cannot quietly grow, not because it is fine.
Two more things the build turned up, both about scanning generated files:
tests/undoRecordsWhatItClaims.test.cjs walked into _build/, the bundled copy of
the whole app, and reported the bundler's own rewritten imports as a source file
breaking the import rule. Build output is skipped now.
And the failure count this suite reports has been wrong all along, in the
other direction: 18 "pre-existing failures" were mostly modules that were simply
not installed in this checkout. With dependencies present the suite runs 718
suites with 5 failures, and those 5 are real environment limits - no Docker, no
bundle to boot, macOS bash without globstar.
Thanks to xet7 !
Phases 3, 5 and 6 of docs/Features/Reports/History/History.md, and the viewer of
phase 2.
RECORDING EVERYTHING, FROM ONE PLACE. §5 suggests "a thin, central choke point
... avoids sprinkling calls everywhere", and server/models/changeHistoryHooks.js
is that: an after.update hook per collection that diffs the changed fields, plus
insert/remove for the sub-entities. Cards, lists, swimlanes, checklists,
checklist items and comments are covered across every group §3 names.
The advantage over editing twenty setters is not brevity, it is COVERAGE: the
REST API, the CSV and Trello importers and the rules engine all write through
the collection and none of them call the client setters, so a per-setter rollout
would have recorded a description edited in the UI and silently missed the same
edit made over the API.
What a hook must not do is record too much, so models/lib/changeHistoryGroups.js
is a table rather than a rule: modifiedAt and dateLastActivity change on nearly
every write and would bury the changes a person actually made, and the four
fields of a move only mean anything together - reported separately, one drag
becomes four rows and undo puts back a quarter of it. Card.move and the list
soft delete therefore record themselves, as one change each. The description
setter records nothing now: the hook covers it, and recording in both places
would have needed two presses of Ctrl+Z to undo one edit.
ONE TABLE, EVERY SCOPE. §7a: "there is ONE implementation, parametrised by
scope". client/components/history/historyTable is that one - contributor pane,
search, pagination, row selection, Restore, RTL - and the card, list and
swimlane menus each open it with a different scope. Adding History to a menu is
a menu item and a two-line handler, exactly as the design promises.
tests/historyOneTemplate.test.cjs keeps it that way. Six copies of a table
drift: one gets RTL and the others do not, one gets the search fixed and the
others keep the bug. The test walks every .jade under client/ and fails if a
second History table is ever defined.
Two things the UI needed that were nearly wrong. The scope has to travel as
`dataContextIfCurrentDataIsUndefined`, because Popup.open's second argument is
OPTIONS - a bare object there is ignored and the popup opens on the menu's own
data context, showing the wrong history. And the popup needs a title key or it
renders with no header and no close button; it reuses the existing `history`
key rather than adding one.
FOUR NEW WORDS. Removed, Edited, Moved, Restored - the Action column is the one
a reader must understand. 'Added' the app already had, and every other label
reuses the word the card view already uses for that section, so a group is
labelled Description or Labels in the language the card beside it speaks. That
kept this to four keys in 197 locales instead of twenty-six. Low confidence on
the same long tail as before.
NOT VERIFIED LIVE. There is no Meteor runtime here, so none of this has been
opened in a browser. §10 asks for each phase to be verified live before the
next; that has not happened, both documents now say so, and the UI in
particular should be treated as unproven.
Thanks to xet7 !
Phase 1 of docs/Features/Reports/History/History.md §10, plus the write half of
phase 2. Ctrl+Z is no longer a position-only feature.
THE STORE. models/changeHistory.js is the append-only collection of §4: one row
per change, carrying every container id it sits inside (boardId, swimlaneId,
listId, cardId) so a container scope is a plain equality rather than a join the
database cannot do - which is what makes a swimlane's history include its lists'
and cards' rows.
It imports NO other model, deliberately. Its predecessor imports Cards, Lists,
Swimlanes, Checklists and ChecklistItems so its undo() can write to them, and
that is precisely why models/cards.js could not import it, guarded on an assumed
global instead, and recorded nothing for years. A collection that entities must
import cannot import entities. Applying a change back to a document therefore
lives in server/models/changeHistory.js, which nothing imports and which may
import anything.
THE RULES ARE PURE. models/lib/changeHistoryQuery.js holds the scope-to-selector
translation, the search and the selection normalisation, with no Meteor and no
database, because that is where this feature is either right or quietly wrong:
a scope that resolves to the wrong id column shows one board's history under
another board's menu, and a selection that does not normalise its input restores
the wrong rows. Both are silent. 17 tests, including that an unknown or
half-given scope is REFUSED rather than widened into a selector that matches
everything.
UNDO IS NOW THE WHOLE HISTORY. changeHistory.undoLast/redoLast replace the
position-only methods; the keyboard bindings and the tested pickUndo/pickRedo
rule are unchanged. One rule covers every change type instead of a case per
action: undo applies previousContent, redo applies newContent. Restores go
through the same setters an ordinary edit uses, so validation, hooks and
Activities still run, and each restore is itself recorded twice - once
attributed to whoever made the change being restored, once to whoever pressed
Restore (§8.3).
RECORDED SO FAR: card description edits (§10.2's first content group - the
previous text is read BEFORE the write, since after it the old value is gone),
card moves, list moves, and list soft-delete/restore, which is what makes
"undo a deleted list" work.
changeHistory is in the snap's MERGE_COLLECTIONS, as §9a.4 requires the moment
the collection exists: a history row written on the copy that is not served is
work that would otherwise be stranded in a database nobody opens.
NOT BUILT: every UI in §7, §7a and §8 - the popup, the table, the contributor
avatars, the Restore button, the "History" menu items - and recording for the
remaining groups of §3. The methods those screens need exist and are tested;
nothing calls them yet. Both docs now say which half is which, because the last
time this document claimed more than the code did, the gap survived for months.
Thanks to xet7 !
Boards opened under the versions before #6515 had every per-swimlane list
un-bound automatically: the board data-repair treated any list with a
swimlaneId as #6484 corruption and cleared it, and a per-swimlane list is
indistinguishable from a corrupted board-wide one at the data level. #6515
stopped it. Nothing put the bindings back, so those lists still render under
every swimlane, and deleting one from a swimlane deletes the only list document
there is - which is what #6670 reports.
The old value is recoverable, not guessable. That clearing went through
Lists.direct.updateAsync, which bypasses collection hooks, so it only ever
touched the list document - while the binding each list was CREATED with is
recorded in a different collection:
// models/lists.js - Lists.after.insert -> trackOriginalPosition()
originalSwimlaneId: this.swimlaneId || null,
if (!existingHistory) { PositionHistory.insertAsync(document); }
That insert is insert-ONLY, written once at creation and never overwritten, so
it survived untouched for every list created since list position tracking
landed (2025-10-16, 2543df942).
Admin Panel / Problems / Summary now detects this the way it detects broken
cards - "Lists missing their swimlane N", with a Restore button beside it -
and restoring puts each list back in the swimlane its own record names.
Every rule is a reason to SKIP, because the failure mode here is worse than
doing nothing:
- a list that already has a swimlaneId is never touched, so the repair is
idempotent and cannot undo a binding an admin has since set by hand;
- a list with no record, or one recorded as board-wide (null), stays
board-wide;
- a swimlane that has since been deleted is not resurrected, and one on
another board is refused - either would hide the list in every swimlane,
which is worse than leaving it shared.
Nothing is inferred from the cards, and a test pins that the planner cannot
grow a use for them. Inference is the obvious idea and it is wrong: on a board
whose second swimlane is new every card is still in the first one, so it would
bind every list to swimlane 1 and hide them from the others - #6484 again,
the bug the clearing existed to fix.
Detection is read-only and swallows its own errors, because the Problems page
polls it every 30 seconds and a detection that throws would take the other
problems on that page with it. The repair writes swimlaneId and nothing else,
through .direct, one update per swimlane rather than one per list.
One new string, translated into all 197 locales that were complete, each
following that file's own "Repaired __fixed__ card(s)." sibling so the count
style and script match what the language already uses here. Low confidence on
the long tail - Bislama, Buryat, Cherokee, Ewe, Fijian, Greenlandic, Inuktitut,
Klingon, Nahuatl, Sakha, Tamazight, Venda, Volapük, Wolof - which a speaker
should correct. Noted while writing them: the `lists` value is wrong-language in
mn (Russian), sk (Czech), sr and wa-RR (Tagalog); not touched here.
Also fixed a guard that the parallel worktree exposed:
tests/noIdentityReplacement.test.cjs walked into .claude/worktrees/, a full
second checkout, and reported the deliberate samples in ITS copy of that test
file as real findings.
Thanks to TawsTm and xet7 !
Replace ten copies of the solid-colour theme structure with one CSS custom-property-backed rule set. Keep each palette explicit and leave exceptional themes unchanged. Update guards to validate resolved theme coverage instead of requiring the former selector layout.\n\nThanks to xet7 !
Keep token login on its live Meteor connection, subscribe from the pane that owns the email form, and retain the new mail fields in the Settings schema.\n\nThanks to xet7 !
Keep service-specific values on the server, never publish passwords to the browser, and let the administrator opt out of MAIL_URL in favor of Nodemailer's bundled SMTP service profiles. Add unit, negative, publication, and browser coverage.\n\nThanks to xet7 !
Apply the selected sort mode locally as soon as the popup closes while the server persists it, and roll back the local choice if persistence fails. Use the same effective mode for paging, popup state and custom ordering, with browser coverage for visible order and stored profile state.
Thanks to jullbo and xet7 !
Fixes#6664,
Guard deferred swimlane setup after reactive view destruction, keep authenticated browser navigation inside the live application, and wait for Meteor before checking invalid verification tokens. Route database conformance through host Docker when running inside Flatpak and make card opening resilient to subscription rerenders.\n\nThanks to xet7 !
Use the one pending-aware board-view source for both the switcher label and every content layout. Resolve each rendered list container swimlane explicitly so an undefined relative Jade context cannot duplicate cards across lanes, and persist every board favorite through the authenticated server method.
Thanks to hmeunier95 and xet7 !
Fixes#6660,
Include archived swimlanes when distinguishing real card homes from deleted-swimlane orphans, while choosing the first active swimlane for genuine fallback cards. Keep an authenticated board-view choice pending until the reactive profile confirms it so method callback ordering cannot snap the interface back.
Thanks to hmeunier95 and xet7 !
Fixes#6659,
Render an authenticated user's pending board-view choice reactively while the server persists it, and remove the forced full-page reload that made Calendar and Gantt briefly appear and then disappear.
Thanks to hmeunier95 and xet7 !
Fixes#6657,
Save language, full name and initials through authenticated, awaited server methods instead of direct optimistic client writes that roll back. Validate supported languages and field lengths, and cover logged-out rejection.
Thanks to mzch and xet7 !
Fixes#6655,
Read the newest component versions from the fixed wekan.fi/version.txt endpoint and render its strictly validated five lines as escaped preformatted text in the Admin Version pane.
Generate the same manifest and install-page block from the release's Dockerfile pins and latest validated FerretDB tag in both local and release-all website flows. Add positive, negative, workflow and UI coverage.
Thanks to xet7 !
Use dedicated translations for the Version pane check button and its safe network-failure message. Keep every previously complete locale complete, retain English placeholders only in the existing 37 incomplete locales, and cover key order and representative translations.\n\nSome low-confidence translations use each locale's existing Check, Version and Error terminology and can be refined by native speakers.\n\nThanks to xet7 !
Show the latest published WeKan and FerretDB release from the Version pane while keeping GitHub access server-side and restricted to Global Admins. Validate version tags and exact release URLs before rendering escaped text, and report network or invalid-response failures without exposing upstream content. Add unit, negative, RTL and browser coverage.\n\nThanks to xet7 !
Start Meteor's cookie login after WeKan enables HttpOnly-cookie mode, because the Accounts client constructor has already passed its one-time resume check by then. Full refreshes and board-view navigations now restore the authenticated private-board session without returning the user to Sign In.
Thanks to lucasarrudadev and xet7 !
Fixes#6654,
Enable Meteor 3 native HttpOnly resume authentication with in-memory client credentials, remove the JavaScript cookie and local-storage synchronization, and harden header-login cookies.
Thanks to binary-lover and xet7 !
Bind create-board events to the included form template that renders their DOM, and pass each owning template instance explicitly so visibility, template-board, and header-star behavior retain their state. Read the title from the submitted form and add positive and negative regression checks for the event ownership.\n\nThanks to xet7 !
Replace per-date-badge intervals with one reference-counted ticker. Unsubscribing is idempotent, and destroying the final subscriber clears the shared interval so removed views leave no background timer behind.
Thanks to xet7 !