Skip to content

fix(ui): auto-add newly created boards#9193

Open
YUHAO-corn wants to merge 1 commit into
invoke-ai:mainfrom
YUHAO-corn:yuhao/fix-new-board-auto-add-9169
Open

fix(ui): auto-add newly created boards#9193
YUHAO-corn wants to merge 1 commit into
invoke-ai:mainfrom
YUHAO-corn:yuhao/fix-new-board-auto-add-9169

Conversation

@YUHAO-corn
Copy link
Copy Markdown

@YUHAO-corn YUHAO-corn commented May 16, 2026

Summary

Fixes a gallery board UX inconsistency: when "Auto-Assign Board on Click" is enabled, creating a new board now updates the auto-add board to the newly-created board, matching the behavior of clicking an existing board. Previously, the UI selected the new board but generated images still saved to the previous auto-add board until the user clicked the board again.

This also adds a focused regression test for the created-board action sequence.

Related Issues / Discussions

Closes #9169

QA Instructions

Validated locally with:

  • pnpm -C invokeai/frontend/web test:run src/features/gallery/components/Boards/BoardsList/AddBoardButton.test.tsx
  • pnpm -C invokeai/frontend/web test:run
  • pnpm -C invokeai/frontend/web lint:tsc
  • pnpm -C invokeai/frontend/web lint:eslint
  • pnpm -C invokeai/frontend/web lint:prettier
  • pnpm -C invokeai/frontend/web exec eslint src/features/gallery/components/Boards/BoardsList/AddBoardButton.tsx src/features/gallery/components/Boards/BoardsList/AddBoardButton.test.tsx
  • pnpm -C invokeai/frontend/web exec prettier --check src/features/gallery/components/Boards/BoardsList/AddBoardButton.tsx src/features/gallery/components/Boards/BoardsList/AddBoardButton.test.tsx

Merge Plan

No special merge handling needed.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration N/A - no redux slice changes
  • Documentation added / updated (if applicable) N/A
  • Updated What's New copy (if doing a release after this PR) N/A

@github-actions github-actions Bot added the frontend PRs that change frontend files label May 16, 2026
@YUHAO-corn YUHAO-corn force-pushed the yuhao/fix-new-board-auto-add-9169 branch from 392dc16 to e770bb0 Compare May 16, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: Newly generated images go into previous board instead of newly-created one

1 participant