Commit Graph
4 Commits
Author SHA1 Message Date
Lauri Ojansivu 4f20f24201 Card actions in their sections: Filter: Subtasks, Edit voting, Edit Planning Poker, Change spent time and Card kind in the opened card's section hamburgers and in Card Settings' panes.
- The five leave the card's actions menu. On the opened card each is in
  the hamburger of its section: Subtasks (Filter: Subtasks, and the
  subtask settings), Voting, Planning Poker, Spent time, and a new Scrum
  settings heading over the Scrum fields the card shows (Card kind).
  Voting, Planning Poker and Spent time show their heading when ticked
  "On this card" before there is anything in them, so the hamburger can
  fill them in.
- Card Settings: everything in a section's hamburger is also at the top
  of that section's pane, under its title - the card's actions when it
  is opened from a card, Subtask settings also from Board Settings.
  tests/cardSectionActions.test.cjs fails for a hamburger that is not.
- Filter: Subtasks is one function, client/lib/filterSubtasks.js.
- Card Settings: no select-all rows for Show on Minicard and Show on Card
  in its first entry, where there is nothing under them; the popup is
  high enough for every entry of its menu.

Docs: docs/Features/Cards/Card-Fields.md.

Thanks to xet7 !
2026-10-25 16:55:03 +02:00
Lauri Ojansivu e612fdfee9 Custom fields: everything about them on the section that shows them.
They were spread over three places. Board Settings had the board's list of
fields behind a right-sidebar view; the card menu had an entry for that list and
another for the picker of which fields are on this card; and the picker had a
cog that jumped back to the sidebar, closing the menu and the card pane on the
way.

One place now: the hamburger at the end of the card's own Custom Fields
heading. It opens every field the board has, ticked when it is on this card,
with a pencil each and, under a rule, "Add custom field". Edit and Add open in
the same pop-over on top of that list, so the back arrow returns to it and the
card stays open behind, and they are the board's own forms rather than second
copies of them.

Gone with it: the card menu's Custom Fields entry, the Board Settings row, the
wrapper popup that nothing opened any more, and the styles that existed only to
make a sidebar list look right inside a pop-over. The sidebar view template
stays where it is, with a note that nothing opens it.

tests/customFieldsSectionMenu.test.cjs pins the popup's three parts, that the
forms are the shared ones, and that none of the three old places came back.

Thanks to xet7 !
2026-08-14 08:20:30 +03:00
Lauri Ojansivu 18076c138d Subtasks Settings: a hamburger on the Subtasks heading, and gone from Board Settings.
What subtasks do on a board - whether they are shown at all, which board and
list a new one is deposited in, and how a parent is named on a minicard - is
behind a hamburger at the end of the Subtasks heading on an opened card, where
the card and the minicard already keep theirs. It opens the same popup Board
Settings did, and Board Settings no longer has the entry.

The heading is the control that folds the section, so the hamburger's click
stops there: without that, opening the menu would close the thing it was opened
from.

The hamburger is a `menuClass` on the shared section header, so any other
section can be given one, and it is pushed to the end of the row by
`margin-inline-start: auto` - a logical margin, so a right-to-left card needs no
second rule. A subtask's own menu is about the subtask again: the settings
belong to the section, not to one subtask of it.

tests/subtaskSettingsMenu.test.cjs pins all of it, including that the click
does not reach the heading.

Thanks to xet7 !
2026-08-14 08:12:03 +03:00
Lauri Ojansivu ec8ba58753 Subtasks Settings is in the menu of the subtask it is about.
What subtasks do on a board - whether they are shown at all, which board and
list a new one is deposited in, and how a parent is named on a minicard - was
in Board Settings only: open the sidebar, open the board menu, find Subtasks
Settings. Somebody who wants to change it is usually looking at a subtask on an
opened card at that moment.

It is at the bottom of that subtask's own menu now, under a rule, below the
things the menu does to the subtask itself. A board admin's, as it is in Board
Settings, whose entry is unchanged.

The settings are their own template with their own state, helpers and handlers,
included by both places, so neither needs code of its own and the two cannot
drift. That is what the move needed: a template included in two places cannot
reach its parent's helpers, because a helper is looked up on the template it is
written in.

tests/subtaskSettingsMenu.test.cjs pins the placement, the rule above it, the
permission, and that nothing was left behind on the popup.

Thanks to xet7 !
2026-08-14 06:52:56 +03:00