From fe4d2a56f2ab1f147faa683980bdbbe3b7593268 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sat, 20 Jun 2026 14:39:02 +0300 Subject: [PATCH] Fix #6135: board/list/swimlane numbering broke first-letter keyboard nav The move/copy card popups prefixed a number to each option (e.g. '3. Board'), which broke jumping to an entry by typing its first letter and made digit-named boards confusing. Remove the numeric prefix so options start with their name again. Pure boardOptionLabel helper added (numbering off by default) with tests. Co-Authored-By: Claude Opus 4.8 (1M context) --- client/components/boards/boardLabelHelpers.js | 42 ++++++++++++ client/components/cards/cardDetails.jade | 32 ++++----- client/lib/tests/boardNumbering.tests.js | 65 +++++++++++++++++++ 3 files changed, 123 insertions(+), 16 deletions(-) create mode 100644 client/components/boards/boardLabelHelpers.js create mode 100644 client/lib/tests/boardNumbering.tests.js diff --git a/client/components/boards/boardLabelHelpers.js b/client/components/boards/boardLabelHelpers.js new file mode 100644 index 0000000000..271be07191 --- /dev/null +++ b/client/components/boards/boardLabelHelpers.js @@ -0,0 +1,42 @@ +/** + * Pure helpers for building the option labels shown in board / list / + * swimlane selectors (e.g. the move-card and copy-card popups). + * + * Regression #6135 ("numbering boards, list, swim caused some issues"): + * a previous change prepended a sequential number to every option label + * (e.g. "3. My Board"). That broke two things: + * + * 1. Boards whose name itself starts with a digit became hard to read. + * 2. First-letter keyboard navigation in the native