Skip to content

Commit b7393d1

Browse files
msujawsclaude
andcommitted
feat(board): allow unassigned bugs to move to todo column
Unassigned bugs (nobody@mozilla.org) can now be dragged from the backlog to the todo column. Assignment is still required for moves to in-progress, in-testing, or done columns. This allows triaging bugs into the sprint backlog before assignment. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent aeee2ec commit b7393d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Board/Board.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ export function Board({
190190
// Get all assignees from bugs on the board
191191
const allAssignees = useBoardAssignees(bugs)
192192

193-
// Check if a bug can be moved out of backlog
193+
// Check if a bug can be moved to a column
194194
// Returns error message if invalid, undefined if valid
195195
const validateMove = useCallback(
196196
(bugId: number, fromColumn: KanbanColumn, toColumn: KanbanColumn): string | undefined => {
197-
// Only validate moves OUT of backlog
198-
if (fromColumn === 'backlog' && toColumn !== 'backlog') {
197+
// Only validate moves OUT of backlog (except to todo, which allows unassigned bugs)
198+
if (fromColumn === 'backlog' && toColumn !== 'backlog' && toColumn !== 'todo') {
199199
const bug = bugs.find((b) => b.id === bugId)
200200
if (!bug) return undefined
201201

@@ -204,7 +204,7 @@ export function Board({
204204
const effectiveAssignee = stagedChange?.assignee?.to ?? bug.assigned_to
205205

206206
if (effectiveAssignee === NOBODY_EMAIL) {
207-
return 'Cannot move unassigned bug out of backlog. Please assign someone first.'
207+
return 'Cannot move unassigned bug to this column. Please assign someone first.'
208208
}
209209
}
210210
return undefined

0 commit comments

Comments
 (0)