Skip to content

fix(pulse): let configured kanban columns take precedence over legacy aliases (#2796) - #2801

Open
isihussain wants to merge 1 commit into
danielmiessler:mainfrom
isihussain:fix/work-board-column-aliases
Open

isihussain wants to merge 1 commit into
danielmiessler:mainfrom
isihussain:fix/work-board-column-aliases

Conversation

@isihussain

Copy link
Copy Markdown

Summary

Fixes #2796.

In the Pulse Work board (LIFEOS/PULSE/modules/work.ts), when a user configured KANBAN_COLUMNS with a column whose name matches an aliased status (such as Ready, where
eady is mapped to Queued in LEGACY_STATUS_ALIASES), deriveColumn() previously resolved LEGACY_STATUS_ALIASES[raw] before inspecting configured columns.

As a result, issues with Status:ready were remapped to Queued even when Ready existed as an explicit column in columns.

Solution

  1. In deriveColumn(), check for a configured column matching the raw status first (columns.find((c) => c.toLowerCase() === raw)), falling back to LEGACY_STATUS_ALIASES only when no direct match is found in the column set.
  2. Export deriveColumn and add work.columns.test.ts verifying that configured columns take precedence while legacy fallbacks remain functional for default setups.

Signed-off-by: isihussain isihussain@users.noreply.github.com

… aliases (danielmiessler#2796)

When a user adds a column to KANBAN_COLUMNS that matches a status remapped by
LEGACY_STATUS_ALIASES (e.g. "Ready" where "ready" maps to "Queued"), deriveColumn
previously applied the alias first, placing all Status:ready items into Queued
and leaving Ready empty.

Update deriveColumn to look for a configured column matching the raw status
first, falling back to LEGACY_STATUS_ALIASES only when no configured column
matches. Export deriveColumn and add work.columns.test.ts covering configured
and fallback scenarios.

Closes danielmiessler#2796

Signed-off-by: isihussain <isihussain@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pulse Work board: a configured column named after a status stays empty because the legacy alias is applied first

1 participant