Require source write access for authoritative and DDP link creation, including pointer changes. Treat explicit non-writing source roles as a ceiling on delegated writes, covering legacy self-created links. Match UI permissions and remove the link action from the non-writer menu. Record denied writes in bounded Problems summaries.
Actual shared permission decisions for every role, creation/deny inventory and existing link and role suites pass. Browser regression syntax-check passes; live execution pending.
Thanks to Wenhao Wu, Southeast University and xet7 !
Use existing native date formatting instead of the removed Moment dependency. Check real Upcoming entries before release tool installation or mutations, including explicit version overrides. Cover missing, empty and duplicate notes with read-only regression tests.
Apply Markdown, emojis and permitted HTML to card and sidebar activity values. Sanitize completed sentences and honor plain-link mode, retaining existing source URL guards and avoiding nested navigation anchors. Add positive, negative and browser regression coverage.
Thanks to xet7 !
Render chart headings and report table headers and cells through the shared security-aware viewer. Use rendered text and emoji for canvas labels and dataset titles, capturing them before afterFlush so policy changes remain reactive. Extend title adapter, chart context and cumulative-flow browser policy coverage.
Thanks to xet7 !
Render remaining board titles through the shared Markdown and emoji viewer, including DHTMLX task names. Escape rendered text in Frappe SVG labels and use formatted titles in chart popups. Observe settings when charts refresh. Import routing and date dependencies explicitly in the assignee view to prevent ReferenceErrors. Add runtime helper, compiler and browser regression coverage.
Thanks to xet7 !
Reuse the shared Markdown and emoji viewer, including Admin Panel plain-text security mode. Keep overtime status outside user-authored Markdown. Add normal and plain-text browser regressions.
Thanks to xet7 !
Replace the rejected legacy isRTL option in single-board and multi-board calendars. Verify both directions and absence of the old option; add browser coverage for rendered direction and console warnings.
Thanks to xet7 !
Override Meteor's native CSS module type for the existing style-loader/css-loader pipeline. Initialize the second-factor form with a literal native hidden attribute and toggle it only on the existing challenge/cancel paths.
Meteor bundle compilation, four Node test entries and Chromium/Firefox checks pass against an isolated database with zero users. Signed-out sign-in and sign-up remain styled without an unsolicited challenge, even if its hide class is removed.
Thanks to xet7.
Place the existing collapse control immediately after Home and before the page or board title. Preserve per-session collapse behavior and themed layout. Update header ordering guards and add desktop/narrow-layout browser coverage for position and retained Home/title visibility.
Five header suites pass. Browser regression syntax-checks and registers; runtime execution requires a running WeKan server, which is unavailable locally.
Thanks to xet7 !
Match all browser preferences using existing locale identifiers and explicit standard-to-legacy aliases, including Veps, Venetian, Latin American Spanish and Uzbek scripts. Prefer supported saved profile choices and fall back to English. Respond to browser languagechange without writing a profile choice. Checks cover all 245 locales and alias/error cases. Browser regression added and syntax-checked; execution pending.
Thanks to xet7 !
Verify all 245 registered popup locales and every translation file. Resolve regional flags from base languages with explicit legacy and script exceptions; preserve country-before-language order in RTL interfaces. Unit wiring and actual-helper checks pass. Add and syntax-check browser coverage; browser execution remains pending.
Thanks to xet7 !
Meteor merges top-level profile objects by publication precedence. Publish the private boardViewPreference field reactively so a narrow or empty profile cannot hide it during impersonation. Preserve pending choices until the private preference catches up, and route the remaining calendar helper through the same resolver. Cover preference precedence, updates, unsets, deletion, observer cleanup and the real impersonation browser path.
Thanks to gleneindre and xet7 !
Fixes#6691,
Resolve missing or invalid profile board views through the browser preference and Swimlanes default without reloading. Publish the authenticated user board-view preference privately, including after impersonation. Add fallback, selector-scope, publication-isolation and browser regressions.
Thanks to gleneindre and xet7 !
Fixes#6691,
Remove competing autofocus from the template search field and require the actual title field to retain entered text. Wait for the expected Meteor user in the browser across refresh initialization. The refresh regression passes ten WebKit repetitions without retries.
Thanks to xet7 !
Use same-origin cookie endpoints under the configured ROOT_URL path for prefixed deployments. Preserve native server validation, HttpOnly cookies, memory-only credentials and root deployment behavior. Keep browser fixture navigation under its base path.
Thanks to xet7 !
Cancel the header reset link default action before resetting the filter. Require the reset control and assert the document and board remain mounted while the label query is removed.
Thanks to xet7 !
Remove nested date popup height limits and excess spacing, keep the popup within the viewport and add a bottom-right resize handle. Capture pointer drags so resizing cannot close the popup and support arrow-key resizing with content and viewport limits. Extend documentation and regression coverage.
Thanks to xet7 !
Keep the selected calendar grid visible on opening and after selecting a day, including for Gregorian dates. Stack popup fields, size day buttons within their cells and show only hour/minute dropdowns while retaining the hidden combined value for existing save handlers. Update documentation and popup regressions.
Thanks to xet7 !
Apply the selected calendar to shared date displays, calendar month views and date inputs. Provide mouse and keyboard date navigation and hour/minute selection while preserving native date storage. Document the supported offline calendars and add display, picker and browser regressions.
Thanks to mimZD and xet7 !
The Board Settings menu (boardMenuPopup) is now four groups divided by a
rule, top to bottom:
Rules, Change color, Change Background Image
---
Board View, Swimlane, List, Card
---
Export, Import, Notifications, Outgoing Webhooks
---
Archived items, Move Board to Archive
Before, Archived items sat second in the first group, Notifications sat
among the colours, and Move Board to Archive was alone at the end. Every
entry keeps the guard it had: Rules, Change color, Change Background Image,
Board View, Swimlane, List, Notifications, Outgoing Webhooks and Move Board
to Archive are board-admin only, Export and Import stay behind withApi /
exportDisabled / canImportIntoBoard, Card stays open to any board member,
Archived items to everyone, and Move Board to Archive stays off the
templates board. No translation keys are added.
Two entries were not in the requested list and are kept where they fit:
Import (js-import-into-board), directly under Export in the third group,
and Archived items (js-open-archives), which is the "Archive" of the list,
opening the fourth group above Move Board to Archive.
tests/boardMenuOrder.test.cjs derives the sequence of entries and rules
from the jade and pins it exactly, pins each entry's guards so a reorder
cannot loosen who sees what, and pins the diagram in
docs/Features/Board/Board-View-Settings.md to the same order.
tests/boardSettingsSwimlaneListCard.test.cjs now expects two rules between
Card and Move Board to Archive, one under each group, and never two in a
row.
Thanks to xet7 !
"WIP Limit Groups" was a fourth top-level entry of the Board Settings group,
between List and Card. A group most often caps one swimlane's lists
together, so it is now a row of the Swimlane settings popup: Board Settings
/ Swimlane / WIP Limit Groups. The row opens the unchanged wipLimitGroupsPopup
stacked on the Swimlane popup, so its back arrow returns there. No new
translation keys; the existing wip-limit-groups key is reused.
tests/boardSettingsSwimlaneListCard.test.cjs pins the row in the Swimlane
popup and its single handler, and that the top-level Board Settings list no
longer carries the entry. Docs updated to the new path.
Thanks to xet7 !
Board Settings / Card was a three-column table (Show on Card, Show on
Minicard, the name) with a separate "Card field order" list of arrows at the
bottom that reordered five sections of the opened card. It is one heading,
"Card field order", over two lists now: "Show on Minicard" in the board's
minicard order and "Show on Card" in its card order, every row of either
`[checkbox] [up] [down] icon label`. The checkbox is whether that side shows
the field, the arrows move it on that side only, and the icon and name are
the field's own. The two lists are independent because the two orders are: a
field can be third on the minicard and last on the card.
models/lib/cardFieldOrder.js is the arithmetic, pure and tested without
Meteor: each surface is a fixed head, reorderable sections of fields, and a
fixed tail. A field moves within its section; at the section's edge it moves
the whole section; a section's header (Labels, Members, Sort number,
Description title) stays first. What is stored is one flat array of field
keys per surface - `cardFieldOrder`, which the first #4448 filled with five
section keys that stay valid and expand to what they rendered (Members
carried Dependencies and Sort, Custom Fields carried Vote/Poker), and the new
`minicardFieldOrder`. Two board setters normalise before storing; the update
allow rule keeps them to a board admin. The REST cardFieldOrder endpoints
still speak in section keys, eight now.
cardDetails.jade renders its eight sections in the board's order and, inside
Labels, Dates, Members, Sort and Vote/Poker, the fields in theirs;
Dependencies and Sort are their own templates. minicard.jade renders every
block under the title through the minicard order, with the dates line and
the badge strip ordering their own fields. Every gate is unchanged.
The popup's rows are a table, models/lib/cardSettingsRows.js, that the
template draws twice, so no row is written out by hand and each checkbox
reads the helper it always read. The tests that looked for a row's class in
the template look in the table now; tests/cardSettingsCoverage.test.cjs
derives each layout's default order from the templates and pins the popup's
shape; tests/cardFieldOrderLayout.test.cjs pins the arithmetic and its
negatives. No new translation keys: the heading and arrow keys already
existed in every locale.
Thanks to xet7 !
Each row of the Board View table now carries an up and a down arrow in front
of its name - real links, so the keyboard reaches them, titled with the
existing "Move up" / "Move down" keys of Card Settings' card field order -
and the Board View menu lists its entries in that order for everybody on the
board. Stored per board as boardViewOrder; normalizeBoardViewOrder() drops
unknown keys and duplicates and appends missing views in default order, and
moveBoardView() is a no-op for the first row up, the last row down and an
unknown view, so the menu always lists every view exactly once.
The menu itself is now rendered from the same table as the popup (one
`each boardViewMenuEntries` loop over models/lib/boardViewSettings.js)
instead of 25 static entries, keeping the per-view js-open-<view>-view class
each click handler listens for; the group separators are drawn only while
the order is the default one, since a custom order has no groups.
tests/boardViewMenu.test.cjs's order/icon/label/separator pins read that
table now, the same thing the template reads, and
tests/boardViewSettings.test.cjs pins the arrows, the schema field, the
setter and the normalize/move logic with positive and negative cases.
docs/Features/Board/Board-View-Settings.md describes it.
Thanks to xet7 !
A new "Board View" entry at the top of Board Settings, above Swimlane, opens
a table like Card Settings: one row per entry of the Board View menu, in the
menu's order, with the columns Default on Public Board, Show on Public Board,
Default on Private Board, Show on Private Board and Description. The Default
columns are radio groups drawn as checkboxes (one default per side, and
setting one also shows it; the default's Show box cannot be un-ticked), and
the two public columns are not rendered when Admin Panel / Settings /
Visibility hides public boards.
The Board View menu lists only the views ticked for the board's current
visibility, and Utils.boardView() resolves the stored choice through the
board, falling back to that side's default, so nobody is left on a hidden
view. Stored per board as boardViewSettings, defaultPublicBoardView and
defaultPrivateBoardView; the decisions are the pure module
models/lib/boardViewSettings.js, applied by the Board setters
setBoardViewShown and setDefaultBoardView, guarded by the existing
board-admin allow rule. The schema fields, setters and popup template were
swept into 148f8a2aa by the Card Settings commit made from the same checkout;
this commit carries the rest.
Four new column-header keys, translated in every locale (low confidence for
the languages without a WeKan translator: Cherokee, Inuktitut, Klingon,
Volapük, Wolaytta, Bambara, Ewe, Fulah, Nahuatl and the other small ones).
docs/Features/Board/Board-View-Settings.md describes the design; tests/
boardViewSettings.test.cjs pins it, and boardSettingsSwimlaneListCard's
hr/gate guards now anchor on the group's new first entry.
Thanks to xet7 !
Flowtime, Pomodoro, Stickers and Location shipped without an allows* board
toggle, so they rendered on every card and Card Settings had no way to hide
them. Dependencies, Vote, Planning Poker, Text Notes and the activity history
on the opened card had the same gap, as did the dependencies, stickers,
comment-count, vote and poker badges on the minicard.
Each now has a Boards field (default true, so an existing board keeps showing
what it showed), a setter, a REST card-setting key, a healed true-default in
the schema upgrade, a row in Board Settings / Card with its click handler,
and a gate in cardDetails.jade / minicard.jade. allowsActivities already
existed but gated nothing and its row was commented out; it is wired now.
The rows of the popup are in the order the fields appear on the opened card
(Mark complete, number, cover; then the reorderable sections through the
same orderedCardFieldSections source the card renders from, so a board's own
order applies to both; then checklists ... comments, activities), with the
minicard-only rows beside the card row they belong with. No new i18n keys:
every row reuses the field's existing name.
tests/cardSettingsCoverage.test.cjs derives the card's order from the
template and pins the popup to it, checks every gate has a row and every new
row is read, and that none of the four sections is unconditional.
Thanks to rmb82 and xet7 !
Fixes#6688.
Delete on an attachment used to remove the document and its file at once.
It is now the 'attachments.softDelete' method (History.md section 12): the
document gets deletedAt/deletedBy/deleteBatchId with the same helpers lists
use, the file is kept, and the card's cover is unset if this was it. Every
card-facing read - the opened card's gallery and "Attachments (N)" count,
the minicard paperclip badge, the slideshow, the cover, the board-background
picker, My Attachments, the API list endpoints and the exporters - filters
to live attachments with liveAttachments(); the publications keep sending
the deleted ones so the card history can reach them.
The card history records who deleted it and when, with the filename in the
row. Restore - the table's selection + Restore, or the row's own Restore
button, both through changeHistory.restore and applyAttachmentContent -
clears the mark, so the card, its count and the minicard badge include the
attachment again; the cover is never re-set. An attachment row previews
with the existing attachmentViewer slideshow and downloads with the same
link the gallery draws, and never offers cover or background. Uploads and
renames are recorded through the existing history hooks.
There is no per-attachment hard delete any more: api.attachment.delete,
DELETE /api/attachment/delete/:id and removeBoardBackground soft-delete,
permanentlyDeleteAttachmentFromFilesReport and the Files report's delete
button are gone, Attachments.allow remove and onBeforeRemove refuse every
client remove and log the attempt under Admin Panel / Problems. The one
hard delete is Admin Panel / Problems / Delete enabled, board archived,
board deleted from the archive: boardRemover now removes every attachment
of the board, live and soft-deleted, with its file.
One new i18n key, attachment-soft-delete-pop, replaces the "permanent, no
undo" confirmation text; it is inserted in English into every locale at
the same position for translation.
Thanks to xet7 !
Meteor's own accounts packages - accounts-google, accounts-github,
accounts-facebook, accounts-twitter, accounts-meteor-developer,
accounts-weibo, accounts-meetup and accounts-passwordless - are added, so
every way to log in that Meteor's accounts system offers is available.
models/lib/oauthProviders.js is the pure catalog of the seven providers
(env var names, ServiceConfiguration id field, login method, icon, label
key) with the decisions built on it: OAUTH_<PROVIDER>_ENABLED plus id and
secret (each also read from a <NAME>_FILE Docker secret), the Admin Panel
override winning over the env var, OAUTH_PROVIDERS_LOGIN_STYLE,
OAUTH_PROVIDERS_MERGE_EXISTING_USERS and PASSWORDLESS_ENABLED.
server/lib/oauthProviders.js writes ServiceConfiguration for every enabled
provider at startup and on demand (reconfigureOauthProviders, called by the
Admin Panel after a save) and removes it for a disabled one, so switching a
provider off takes effect without a restart. A first login through a
provider becomes a WeKan user the way OIDC does, fail-closed: an existing
account of another login method is only linked when merging is on and the
provider verified the address, otherwise the login is refused and the
attempt recorded on the new oauth.account-conflict canary for Admin Panel
-> Problems. Passwordless is gated on both the token-request method and
the login attempt while it is off.
getAuthenticationsEnabled reports each enabled provider key and
passwordless, and the login form shows one button per provider and a
two-step e-mailed-code form under the SAML button, with errors in the same
region as the password form. No credential ever reaches the client.
tests/oauthProviders.test.cjs covers the catalog, the env/_FILE/admin
resolution, the enabled and takeover decisions, the ServiceConfiguration
upsert/remove, the canary, the login form and the no-secret-on-the-client
negative checks.
Thanks to xet7 !
Admin Panel / People / Login gets a section for Meteor's own accounts-*
login services (Google, GitHub, Facebook, X/Twitter, Meteor Developer, Weibo,
Meetup) and for passwordless login, built the same way as the LDAP section:
every OAUTH_<PROVIDER>_ENABLED / _CLIENT_ID / _SECRET env var, the shared
OAUTH_PROVIDERS_LOGIN_STYLE and OAUTH_PROVIDERS_MERGE_EXISTING_USERS, and
PASSWORDLESS_ENABLED can be set there, a value set in the Admin Panel wins
over the env var, and a badge beside each field names the source in effect.
The secret is stored in Settings.oauthProviders.<key>.secret and, like the
LDAP bind password, is never published: only the boolean secretSet is, an
empty secret submission leaves the stored one untouched, and the sources
method reports it through hasConfigValue() only. saveOauthProviderSettings
validates the provider key against the catalog and both save methods call
reconfigureOauthProviders() so a change takes effect without a restart.
Tests: tests/oauthProvidersAdminOverride.test.cjs, and the whole-tree secret
sweep in tests/ldapAdminOverrideSecurity.test.cjs now also matches
hyphenated sub-document keys.
Thanks to xet7 !
Reported directly: Admin Panel / People / Roles threw from its status
table's column value functions, which call TAPi18n.__() in
client/components/settings/peopleBody.js - a file that never imported
TAPi18n (a named export of /imports/i18n, not a global). Sweeping the tree
for the same shape found it in two more files that would fail the same way
the moment their TAPi18n call ran: client/components/settings/
lockedUsersBody.js (the unlock confirmation) and client/components/boards/
multiboardCalendarView.js (its calendar locale and labels).
tests/clientSingletonImports.test.cjs now sweeps for TAPi18n too, beside
Utils and ReactiveCache.
Thanks to xet7 !
Reported directly, with screenshots: on Board Settings / Rules, clicking
"Workflow view" in the page sidebar changed the button's label to "List
view" but the page kept showing the "Add trigger" tab - the workflow
builder never appeared.
rulesMain.jade renders +rulesWorkflow only while its rulesCurrentTab
ReactiveVar is 'rulesList'. The toggle lives in rulesControls, a separate
template in the page sidebar with no handle on the rulesMain instance, so
it only flips Session 'rulesViewMode'; from the Add trigger / Add action /
rule details tabs that changed nothing visible. rulesMain now owns an
autorun that brings the page back to the list tab whenever the workflow
view is selected - the one place the tab state can be changed from.
tests/rulesWorkflowViewToggle.test.cjs pins it.
Thanks to xet7 !
Reported directly: the Frappe Gantt view (and the DHTMLX Gantt, WeKan Gantt,
Time and the ten report-chart views) each showed two untranslated
"Export to PDF" / "Export to Excel" links. They now share one translated
"Export" button that opens a new exportChartPopup - the same pop-over list
of formats the board/swimlane/list/card export popup uses, offering PDF
and Excel with the same icons and labels. The URL is built in exactly one
place, client/components/boards/charts/exportChart.js's chartExportUrl();
the five per-view copies of that helper (gantt.js, frappeGantt.js,
dhtmlxGantt.js, timeView.js, boardCharts.js) are gone. One delegated click
handler opens the popup with the view's data-chart-key as its data context.
The popup's title, exportChartPopup-title, is added to every locale from
that locale's existing "export" translation - no new words to translate.
Also from the same report: Frappe Gantt's own chrome was English in every
language. Its view-mode dropdown prints each mode's `name` and looks modes
up by it, so it now receives translated copies of Frappe's default modes
(GanttLib.VIEW_MODE) - Day/Week/Month from the existing keys, and four new
keys (gantt-view-hour, -quarter-day, -half-day, -year) added to every
locale as English placeholders to be filled next. Its hardcoded "Today"
button and "Mode" placeholder are rebuilt on every view change, so a
MutationObserver re-translates them (existing "today" key; new
gantt-view-mode), disconnected in onDestroyed.
tests/chartExportPopup.test.cjs pins all of it; boardViewMenu,
reportChartLibraries and timeViewReportAndExport updated from the old
per-view links to the shared button/builder.
Thanks to xet7 !
Reported directly: both Gantt board views showed English month names in
every language. Neither library reads WeKan's translations: Frappe Gantt
takes a `language` tag it hands to Intl.DateTimeFormat, and DHTMLX Gantt
takes a locale object and only bundles a fixed set (~40) of them,
defaulting to English.
New client/lib/ganttLocale.js (pure, unit-tested) feeds both:
- intlLocaleFor() maps WeKan's language tag to one Intl accepts - the
underscore tags ('ru_RU', 'ca_ES', 'zh_SG', ...) make Intl throw
RangeError, and an unknown tag falls back to its primary subtag, then
English, so nothing can throw inside a library's render loop. Every tag
under imports/i18n/data resolves (pinned by the test).
- intlDateNames() builds month_full/month_short/day_full/day_short from
Intl for any language, in dhtmlx's shape (weeks starting Sunday).
- dhtmlxLocaleFor() uses the locale dhtmlx bundles for the language when
there is one (it also translates dhtmlx's own labels), and otherwise
keeps the English labels with the Intl date names.
frappeGantt.js passes `language`; dhtmlxGantt.js calls
gantt.i18n.setLocale() on each reactive run before init/parse so a
language change takes effect. The Frappe view-mode dropdown's own
"Day/Week/Month/Year" labels are the library's and stay as they are.
Thanks to xet7 !
Reported directly: the Dashboard view showed nothing above its table, with
"Exception from Tracker afterFlush function: Error: There is no current
view" from client/components/boards/charts/boardCharts.js. The chart is
deliberately built inside Tracker.afterFlush so the <canvas> exists by
then, but that callback runs outside every Blaze view, where
Template.currentData() throws - and one such call (the dataset title) sat
inside it, aborting the whole chart build with nothing to retry it.
The data context is now read once in the autorun, before afterFlush, and
only the captured chartKey/titleKey are used inside the callback.
tests/boardChartsAfterFlushContext.test.cjs pins that no afterFlush body
in this file calls Template.currentData()/Template.instance().
Thanks to xet7 !
Reported directly, following the Flowtime "Add Interruption" fix: the
Timeline view's "Restore to this state" button was likewise an unthemed
default button. Searching every jade `button` for the same shape found two
more labelled action buttons from recent features with no theme class:
the List popup's "Sync now" (between a `.primary` Save and a `.negate`
Clear) and Admin Panel / Login's "Test LDAP Connection" (beside a
`.primary` Save). All three now carry `.primary`, like "Start Pomodoro".
Pagination arrows, sort headers, icon-only toggles and the vote/poker
buttons keep their own deliberate styling and were left alone.
tests/actionButtonsUseThemeClass.test.cjs pins the six labelled action
buttons (Flowtime start/interruption, Pomodoro start, and these three).
Thanks to xet7 !
Reported directly: on an opened card, "Add Interruption" rendered as an
unthemed default button next to "Start Pomodoro", which carries the
`.primary` theme class (as do "Start Flow" and every other primary action
button). The interruption button had no theme class at all. Added
`.primary`; tests/flowtimeSession.test.cjs now pins it.
Thanks to xet7 !
Reported directly: after adding a label to an opened card, clicking it in
the Labels popup no longer made it wider or applied it to the card. It
worked in the previous release.
The reorderable card detail sections (131514d61) are rendered by an `each`
over the board's stored section order. The plain `each
orderedCardFieldSections` form sets the data context of everything inside
it to the current item - the section NAME string ("labels", "dates", ...) -
so every section template, and every popup opened from one, received a
string where it expected the card. Popup.open uses the clicked element's
data context, so the Labels popup's `templateInstance.data` was "labels":
`card.toggleLabel` was undefined and the click handler returned silently,
`isLabelSelected ../_id` looked up `_id` on a string, and the section's own
`each labels` / `each stickers` / `each getLocations` rendered nothing. The
earlier fixes this session (global helpers, missing imports, the sortable
`stop` handler) each removed a real exception on this path but could not
restore the toggle, because the popup still had no card.
Switched the loop to `each section in orderedCardFieldSections`, the form
already used elsewhere in this file, which keeps `this` as the card and
exposes the item as `section`.
tests/cardFieldSectionsKeepCardContext.test.cjs pins the `in` form and that
every branch compares `section`; tests/cardFieldOrder.test.cjs updated to
the new loop text (its intent - the order-driven loop - is unchanged).
Thanks to xet7 !
Reported directly: clicking a label in the Labels popup no longer toggled
it onto the card (grow wider/apply on first click, shrink/remove on
second), with the browser console showing "card.board is not a function"
thrown from jQuery UI sortable's stop handler in
client/components/cards/labels.js (the label-reorder drag on
cardLabelsPopup).
jQuery UI's sortable widget runs its `stop` callback on mouseup whenever a
drag was registered, which ordinary mouse/trackpad clicks can trigger even
without an intentional drag - so this handler fires far more often than
"the user actually reordered labels." It resolved the card via
`Blaze.getData(this).board()`, where `this` is the sortable's root
`.edit-labels-pop-over` element; that does not reliably resolve back to a
real Card document with a callable `.board()`, so it threw. An uncaught
exception inside jQuery UI's own `_clear()` cleanup (which is what invokes
this `stop` callback) aborts the rest of that cleanup, consistent with the
toggle-on-click visuals getting stuck even though the click handler itself
runs independently.
The sibling `click .js-select-label` handler two lines below already had
the right fix for the same problem (added for linked-card labels): resolve
the board from the popup TEMPLATE's own data via `getCardLabelBoard(...)`,
never from `Blaze.getData` on a DOM node that may not carry the card
context the popup was actually opened with. Applied the same fix to the
`stop` handler.
tests/labelReorderStopHandler.test.cjs pins the fix and negatively checks
the old Blaze.getData(this) shape can't come back.
Verified against a real Meteor boot (`meteor run`) in-sandbox.
Thanks to xet7 !
Reported directly: clicking a newly created label did not enlarge it or
apply it to the card. The browser console showed "Exception in
Template.cardFlowtime canControlFlow" and the same for
Template.cardPomodoro canControlPomodoro - both call Utils.canModifyCard()
but never import Utils (a plain ES export from client/lib/utils.js, not a
Meteor global), so the helper threw a ReferenceError the moment either
template's reactive computation ran, which broke the surrounding card
render along with it.
Searching the whole tree for the same shape (a client file calling
Utils.<method>() or ReactiveCache.<method>() without importing it) found
two more real, independent instances:
- client/components/settings/notificationSettingsPopup.js's
currentBoard() called Utils.getCurrentBoardId() unimported.
- client/components/main/bookmarks.js's four helpers/events called
ReactiveCache.getCurrentUser() unimported - the header bookmarks/Starred
feature.
- client/lib/tests/Utils.tests.js did `import '../utils';` (a bare
side-effect import) and then used the bare `Utils` global throughout -
never actually reached by the fast Node suite (a mocha/browser test),
but would have thrown the same way if run.
None of this is caught by rspack's build (it does not type-check or
cross-check imports app-wide) or by tests/run-node-suites.cjs (nothing
exercises these code paths with the name deliberately left undefined) -
only the browser, live, the moment that render actually runs.
tests/clientSingletonImports.test.cjs sweeps every client/**/*.js file for
a call to Utils.<method>( or ReactiveCache.<method>( with no matching
import, so this shape cannot reappear anywhere else undetected.
Verified against a real Meteor boot (`meteor run`) in-sandbox.
Thanks to xet7 !
Reported directly: clicking a minicard did not open the card popup, with
the browser console showing "Error: No such function: isDateFormat" from
Template.cardFieldSectionDates. cardDetails.jade was split into several
per-section templates (cardFieldSectionLabels/Dates/Members/
DependenciesAndSort/CustomFields/VoteAndPoker), plus cardDetailsActionsPopup
and activities.jade are separate templates entirely - but twelve helpers
those templates actually call (isDateFormat, canShowCustomFieldsOnCard,
stickers, isWatching, dueDateChangeCount, getLocations, getDependencyCards,
customFieldsGrid, showActivities, showVotingButtons,
showPlanningPokerButtons, currentSwimlaneListsSorted, isCurrentListId) were
only ever registered on Template.cardDetails.helpers - template-local, so
invisible to every template that isn't cardDetails itself. Blaze only
surfaces this the moment that piece of UI actually renders (an
autorun/Tracker throw, not a build error), which is why it passed the
Node test suite and even a `meteor build` cleanly and only broke live.
Moved all twelve to Template.registerHelper (global), matching the
pattern the file already uses for isSectionOpen (this file) and
canModifyCard (client/config/blazeHelpers.js) - both deliberately global
for the same reason. The remaining Template.cardDetails.helpers entries
(orderedCardFieldSections, cardMaximized, cardCollapsed, presentParentTask,
linkForCard, isVerticalScrollbars, isLoaded) are confirmed used only from
cardDetails.jade itself, so they stay template-local.
tests/cardFieldSectionHelperScope.test.cjs pins all twelve as globally
registered and confirms none are shadowed by a stale local copy.
tests/recentIssueRegressions.test.cjs's currentSwimlaneListsSorted
extraction updated for the new registerHelper shape (behavior unchanged).
Verified against a real Meteor boot (`meteor run`) in-sandbox.
Thanks to xet7 !