13 Commits
Author SHA1 Message Date
Lauri Ojansivu 650849f98d Keep the release metadata, source audit and title-link guard green after Meteor 3.6-rc.0.
- Dockerfile METEOR_RELEASE and the snapcraft description named Meteor
  3.6-beta.3 and 3.6-beta.1 after .meteor/release moved to 3.6-rc.0, which
  tests/releaseVersionConsistency and tests/websiteVersionInfo refuse.
- package-lock.json gained eight npm funding and deprecation links with the
  @wekanteam packages now in npm-packages; they are metadata nothing fetches,
  allowed for that file only and exactly in releases/risk-baseline.json, as
  the earlier funding links are.
- tests/titleClickToEdit read the viewer's link handler in fixed 1,000 and
  1,200 character windows; the #6753 branches at its top pushed the lines
  past them. It now reads the handler's own body: a card link is routed
  before window.open, and the click is stopped after it.

Thanks to xet7 !
2026-10-10 11:44:10 +03:00
Lauri Ojansivu a0f2550e5d Large board: set jQuery UI sortable options only when they changed.
The card, list and swimlane sortables re-applied handle, items and disabled
from autoruns. jQuery UI does not skip an unchanged value: setting handle
re-tags every card of the list, about k^2 work for k cards, in every list.
setSortableOptions (models/lib/sortableOptions.js) sets only what differs. The
swimlanes autorun also asked canModifyCard() with no card, which reads the
open card, so it re-ran on every open and close; it asks canModifyBoard().

Thanks to markusst1982 and xet7 !

Fixes #6745.
2026-10-07 03:08:48 +03:00
Lauri Ojansivu 19f740f509 Stabilize WeKan regression checks and macOS release jobs 2026-09-22 19:31:34 +03:00
Lauri Ojansivu 688a2b3c46 Fix minicard collapse test's off-by-scope index and a stale offset.
The collapsed-class assertion used jade.indexOf(')\n') with no start
offset, so it matched template(name="minicard")'s own closing paren before
.minicard( even began, slicing an empty/negative range. titleClickToEdit's
title-block boundary still referenced the pre-collapse `if showLabels`
marker instead of the new `unless minicardCollapsed` guard.

Thanks to xet7 !
2026-09-10 18:06:50 +03:00
Lauri Ojansivu c3a8d1931e Update UI regression expectations 2026-09-06 18:35:33 +03:00
Lauri Ojansivu 2c9896ef97 Use the minicard title as a drag surface
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 !
2026-09-05 11:54:43 +03:00
Lauri Ojansivu b8528e30ce Keep card title mouse selection native
Exclude inline title editors and their controls from card sorting and window dragging so selecting title text with the mouse stays a native editing gesture. Cover the sortable guard, opened-card drag guard, and real browser selection behavior.

Thanks to rmb82 and xet7 !

Fixes #6641,
2026-08-28 07:09:45 +03:00
Lauri Ojansivu 052aa291a4 Keep markdown links clickable in card titles
Remove the fixed-width minicard title overlay that intercepted short rendered links. Ordinary title text remains an accessible inline-edit control, while links keep their viewer click behavior.

Add positive, negative, accessibility, and browser regression coverage.

Thanks to jullbo and xet7 !

Fixes #6639,
2026-08-28 07:02:17 +03:00
Lauri Ojansivu 692207bf5e Improve accessibility and tab order across WeKan.
Thanks to xet7 !
2026-08-18 22:30:13 +03:00
Lauri Ojansivu f9934ebde2 Fix minicard title editing.
Thanks to Heart1010 and xet7 !

Fixes #6604.
2026-08-17 14:20:17 +03:00
Lauri Ojansivu f525b391a6 Opened card: the header row is the drag bar, and a label click stays at the label.
Dragging the opened card from the right half of its title did nothing with drag
handles off, and the reason is what a heading IS: only as wide as its own text.
So "the trailing half of the title" was a few pixels on a short title, and the
empty space beside it - the obvious place to take hold of - belonged to the
header row, which had no handler.

The row is the drag surface now, and the heading fills it, so half the title is
half the bar however long the title happens to be. The handler steps aside for
three things: the buttons in that row (they are links), the drag handle when
handles are on (it has its own handler, and both would move the window twice),
and the half that edits.

Clicking a label on a minicard opened the labels popup AND the card details
behind it - the click reached the minicard too, so one click did two things and
the one nobody asked for was underneath. It stops at the label now, and which
label was clicked is read from the event rather than from `:hover`, which
answers about the pointer and on a touch screen can still be true for whatever
was tapped last.

The stickers popup is as wide as the colour pickers, and its picker is a grid
that fits as many columns as the width allows: a hundred and fifty icons eight
to a row was a column taller than the screen.

Thanks to xet7 !
2026-08-14 15:35:46 +03:00
Lauri Ojansivu f4789e6810 Titles: the leading half edits, the trailing half drags.
With drag handles OFF a card is dragged by its own body, so a title that is
entirely an edit target leaves nowhere on that line to take hold of: a grab that
moves a few pixels is a click, and the editor opens instead of the card moving.

So the edit target is the LEADING half of the title - left in English, right in
Arabic, from one `inset-inline-start` - and the trailing half is there to drag
from. It is an overlay rather than a split of the text, because the text is a
`.viewer` and cutting it in two would cut the sentence in two; dragging still
works over the zone as well, since jQuery UI sortable's handle is the whole
minicard. What the zone decides is where a CLICK edits.

With drag handles ON the handle is the only drag source, so nothing has to be
reserved and the whole title edits again - one rule keyed off the same class the
handle is.

The opened card's title splits the same way, and its own drag handle now appears
only when drag handles are on: with them off the title bar is what moves the
window, and a handle would be a second way to do what the bar already does. The
window-drag handler steps aside for the edit zone, so the two do not fight over
one heading.

Thanks to xet7 !
2026-08-14 15:27:22 +03:00
Lauri Ojansivu c6ad795629 Edit a title where it is written: a card's on the board, a board's in the header bar.
A list's title has always been edited in place. A card's could only be changed
by opening the card, so fixing a typo on a board of forty cards was open, edit,
close, forty times. Clicking a minicard's title text now opens the same
inlinedForm the list heading uses - textarea, Save, X - for anybody who may
write; the complete checkbox, the linked-card icons and the card number keep
doing what they did, and the rest of the card still opens the card.

The minicard sits inside the link to the card, so a click in the open editor
would have navigated away mid-rename. That default is cancelled, except on the
Save button whose own default IS the submit. An empty save is a no-op rather
than a way to end up with a card that has nothing to click.

The board's name had a pencil beside it: two targets for one job, and the
smaller of them was the one that did it. The name itself now opens the same
boardChangeTitlePopup the pencil opened, with the board as its data context
because the header bar's context is the page. A board whose title is empty
renders no text, and a zero-width element cannot be clicked, so the clickable
title carries a minimum width and height - an empty title can still be given
one.

tests/titleClickToEdit.test.cjs pins both ends, including the two negatives:
the save button keeps its default while everything else in the editor does not,
and the empty title stays clickable.

Thanks to bonnebulle and xet7 !

Fixes #4990,
2026-08-14 03:59:38 +03:00