The behaviour did not change; each guard read source that later commits
moved, and failed on what it could no longer find:
- sidebarBelowHeader: Template.header.onRendered also wires the full
screen button since f25957dcf3, and the slice now ran into the new
onDestroyed. The slice ends at onDestroyed, and the fake environment has
an inert Fullscreen API.
- maximizedCardPosition: since efaf94242e the maximized selector is also in
a narrow-screen @media rule that only moves `top` below the header bar on
a phone. The regex found that rule first; it now reads the top-level one.
- titleClickToEdit: since 1b05673200 the opened card moves with Pointer
Events, and what a header press does is cardHeaderPress() in
models/lib/windowDrag.js. The guards read the pointerdown handler and call
that decision, keeping every assertion: the title edits, links stay links,
the drag handle wins when drag handles are on, the editor is never dragged.
Each still fails when the behaviour it pins is removed (checked by deleting
onTitleEditZone and by making the maximized card absolute).
Thanks to xet7 !
The opened card's title was split like a minicard's: the leading half
opened the editor and the trailing half dragged the window, so clicking
the right of the title, or beside a short last line, did not edit. Now
all of the title edits. With drag handles off, the window is moved from
the empty space of its header row above the title - between the collapse
caret and the menu; with drag handles on, only by the drag handle. A
reader who may not edit has no edit zone and still drags by the title.
Every popup now moves the same way - by its title bar with drag handles
off, by the handle before its title alone with them on - where only the
Drawing, Board View and Board Card settings popups and the date popups
moved before. A dragged popup is kept inside the window as it grows. The
drag pins a popup where it is before moving it: one placed from the
right edge (the member menu) jumped across the window, and one with a
margin by that margin, as the drag began.
card-title-edit-and-move-6839.e2e.js, in Chromium and WebKit: a two-line
title edits from its right, middle and left; the empty header row moves
the window by exactly the drag with handles off and not at all with them
on, when the handle does; and the card menu, Labels and the member menu
move by their title bar, or with handles on by the handle alone.
titleClickToEdit, popupMoveMaximize and popupBounds pin it.
Thanks to mimZD and xet7 !
Fixes#6839,
- 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 !
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.
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 !
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 !
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,
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,
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 !
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 !
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,