Commit Graph
11 Commits
Author SHA1 Message Date
Lauri Ojansivu 0fff9d4828 Board view fixes, and failed calls reported in the reader's language.
- Calendar, Calendar Mode and Multi Board Calendar showed archived cards
  once the Archive sidebar had loaded them; every calendar selector leaves
  them out now.
- Timeline offered "Restore to this state" to every viewer, and a refused
  restore vanished, since nothing awaited it. The button is shown to those
  who may change the card, and a refusal is reported.
- Table: a swimlane header row spanned a fixed 11 columns, one short with
  all four date columns and too wide on a phone; it spans the columns the
  table has. Its add-card error was an English sentence.
- Map showed the raw "upload-failed" for a failed upload; it is translated.
- client/lib/errorMessage.js turns a failed call into a message in the
  reader's language: the translation when the error code is a translation
  key, otherwise the translated "Something went wrong" with the server's
  reason after it. 25 alert() calls with their own English fallback use it.

tests/errorMessageI18n.test.cjs runs the helper and fails on an alert()
that falls back to English again; calendarFilter tests the archived cards
for all four selectors.

Thanks to xet7 !
2026-10-17 01:01:34 +03:00
Lauri Ojansivu 0a566dc9ac Table view: add cards, and drag a row onto another to move its card.
The Table view only listed cards. Now a member who may write gets an add
row under the table - a title, a list and a swimlane - and can drag a row
onto another: the dragged card goes just before the target card, in the
target's list and swimlane, through the same card.move the board uses.
Adding goes through tableViewAddCard, which checks that list and swimlane
are on that board and not archived and that the member may write in that
list, as for any card added. Rows are not draggable without the right.

models/lib/tableViewDrop.js places the card; tests/tableViewDrop.test.cjs
covers between, first and same-list drops, a drop onto itself, the
server's checks and that only writers get the controls.

Thanks to guakamole and xet7 !

Fixes #864.
2026-10-14 15:13:09 +03:00
Lauri Ojansivu c273b12e23 Resolve authorized linked dates for lazy Table pages
Use one-hop source dates for ordering and badges, observe source data and permissions, and recheck them after each scan. Handle partial linked-board member metadata without breaking row rendering.

Cover source edits, access revocation/restoration, assigned-only readers, source moves, all four date fields and ordinary lazy pagination.

Thanks to ghost, neooleg, Creanimo, GusevVictor, avatar1024 and xet7 !

Fixes #935,
2026-09-28 19:19:26 +03:00
Lauri Ojansivu 1c1b78d473 Load authorized Table view pages in lazy card mode
Search and sort projected board metadata before fetching a 25-card page. React to board/card/list/swimlane edits, retract revoked pages, and nest table cells beneath their rows. Verify pagination beyond 5000 cards and document remaining linked-source date ordering parity.

Thanks to neooleg and xet7 !
2026-09-28 19:06:47 +03:00
Lauri Ojansivu 0847af8ec6 Add optional swimlane grouping to Table view
Keep the flat table as the default and let each user persist an optional grouped mode. Group cards in board swimlane order, preserve the selected column sort inside each lane, and insert section rows after pagination so headers never consume card slots.

Add user-isolation, empty-state, section-boundary and browser persistence coverage.

Thanks to rmb82 and xet7 !

Fixes #6634,
2026-08-25 17:39:23 +03:00
Lauri Ojansivu 828cb5e534 Restore sorting to board Table view
Make text, member, label and date headers toggle a shared client-side ascending or descending comparator. Keep empty date values last and use card title as a deterministic tie-breaker.

Add comparator boundary coverage and a browser header-toggle regression.

Thanks to rmb82 and xet7 !

Fixes #6633,
2026-08-25 17:32:57 +03:00
Lauri Ojansivu ad6a7b7c8c Make board Table view responsive
Use the available browser width and default card titles to a compact single line with an escaped native tooltip. Add a per-user wrap preference that persists locally.

Cover default, toggled and user-isolated preference behavior plus the rendered browser layout.

Thanks to rmb82 and xet7 !

Fixes #6632,
2026-08-25 17:31:29 +03:00
Lauri Ojansivu bdec1744f4 Apply board filters in Table view
Build the Table card query from the active board Filter and an immutable board and archive scope, while retaining the view-specific text search.

Thanks to rmb82 and xet7 !

Fixes #6629,
2026-08-25 01:14:39 +03:00
Lauri Ojansivu 6d3c550d8d Remove clickable column-header sorting (board Table view + Admin Domains table).
Per request, clickable column-header sorting is removed everywhere it existed:

- Board Table view: the sortable `th.js-table-view-sort` headers become plain
  headers; the sortField/sortDirection state, the sort click handler and the
  sortIndicator arrow are gone. The table now always shows a stable order (card
  title ascending). Search + pagination are unchanged.
- Admin Panel → People → Domains: same removal; the getDomainsWithUserCountsPage
  method no longer takes sortField/sortDirection and returns a fixed domain-
  ascending order (paginateDomains' default). Server-side search + pagination stay.

Dead sort-header CSS removed. Guarded in tests/adminReportsPagination.test.cjs.

Thanks to xet7 !
2026-07-20 03:11:06 +03:00
Lauri Ojansivu 2b9eab7667 - Board Table view: the table now has the columns Card, List, Swimlane, Assignees,
Members, Labels, Received, Start, Due and End. The Received, Start, Due and End
  dates are formatted and styled the same way as on the opened card details and the
  Gantt view (reusing the cardReceivedDate / cardStartDate / cardDueDate / cardEndDate
  badge templates), and can be sorted by clicking their column headers. Clicking a
  date opens the date-select popup so it can be changed, and an add (+) button is
  shown for empty dates — both only for board roles that have permission to change
  the card (the same `canModifyCard` check used on card details). A Received, Start,
  Due or End column is hidden when both its "Show at Card" and "Show at Minicard"
  Card Settings are unchecked for the board. The Labels cell now word-wraps so long
  label names no longer overflow across the other columns. Each row also has a
  leftmost "Edit" link (pencil icon + text) styled like the one on the Admin Panel /
  People page; clicking it opens the Card Details popup on top of the Board Table
  view.

Thanks to xet7 !
2026-06-17 23:05:12 +03:00
Lauri Ojansivu e085e5bfeb - Board Table view.
The board view menu (Swimlanes, Lists, Calendar, Gantt) gains a new "Table" entry
  below Gantt. It shows every card of the current board in a table — Card, List,
  Swimlane, Members, Labels and Due Date — using the same styling as the My Cards
  table view (the `.my-cards-board-table` CSS classes). Whereas My Cards' table spans
  all of the user's cards across boards, this is the per-board equivalent showing all
  of the current board's cards. The view is stored like the others as the user's
  `board-view-table` boardView. It also has a search box and previous/next pagination
  styled like the Admin Panel / People page, and Excel-like column sorting: click the
  Card, List, Swimlane or Due Date header to sort by it, click again to reverse, with
  an arrow showing the active column and direction. Search, sort and pagination run
  client-side over the board's already-loaded cards.

Thanks to xet7 and Claude.
2026-06-17 15:37:36 +03:00