Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/app/api/devops/standup/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ export async function GET(request: NextRequest) {

const displayColumnNames = new Set(displayColumns.map((c) => c.name));

// Map non-display states to the fallback column for their category
// Map non-display states to the fallback column for their category.
// 'Removed' is omitted because getStandupData filters those out before
// we get here (issue #277).
const categoryFallback: Record<string, string> = {
Proposed: 'New',
InProgress: 'Active',
Resolved: 'Resolved',
Completed: 'Closed',
Removed: 'Closed',
};

// Resolve any DevOps state to one of the 6 display columns
Expand Down
7 changes: 5 additions & 2 deletions src/lib/devops.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2448,11 +2448,14 @@ export class AzureDevOpsService {
nextDay.setDate(nextDay.getDate() + 1);
const nextDayStr = nextDay.toISOString().split('T')[0];

// Build state lists dynamically from categories
// Build state lists dynamically from categories.
// 'Removed' states are intentionally excluded — removed work items are
// hidden from the Kanban board (issue #277).
const doneStates: string[] = [];
const activeStates: string[] = [];
for (const [state, category] of Object.entries(stateCategories)) {
if (category === 'Resolved' || category === 'Completed' || category === 'Removed') {
if (category === 'Removed') continue;
if (category === 'Resolved' || category === 'Completed') {
doneStates.push(state);
} else {
activeStates.push(state);
Expand Down
Loading