Skip to content

Clearer album-source display, gated on InvokeAI backend#335

Open
lstein wants to merge 1 commit into
masterfrom
lstein/fix/album-source-display
Open

Clearer album-source display, gated on InvokeAI backend#335
lstein wants to merge 1 commit into
masterfrom
lstein/fix/album-source-display

Conversation

@lstein

@lstein lstein commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Summary

Two album-management UI tweaks around the album source type (filesystem directory vs. InvokeAI board):

  1. Clearer source display on edit. When editing an existing album, the disabled radio buttons are hard to read. They're replaced with a static line plus the existing small-font hint:

    Album Source: Directory of Image Files
    An album's source cannot be changed after creation

  2. Hide the InvokeAI source UI unless a backend is configured. The frontend checks GET /invokeai/config (a non-empty url means configured):

    • New-album form: the "Album Source" radio chooser is hidden and the source is forced to a directory of image files, so people who don't use InvokeAI never see the board option or the InvokeAI section.
    • Edit form: the source line is hidden too — except for albums that are themselves board albums, so an existing board album's (immutable) type never silently disappears.

The new-album card's appearance is otherwise unchanged when a backend is configured.

Testing

  • npm test — full frontend suite passes (381 tests), including 2 new cases covering the chooser show/hide + directory-force behavior.
  • npm run lint and npm run format:check clean.

🤖 Generated with Claude Code

Replace the disabled source-type radios in the album edit form with a
static "Album Source: <type>" line plus the small-font immutability hint,
so the selected backing is easy to read.

Also hide the entire InvokeAI album-source UI unless an InvokeAI backend
is configured in settings: the new-album radio chooser stays hidden (and
the source is forced to a directory of image files) and the edit form's
source line is hidden. The edit line still shows for existing board
albums so their (immutable) type never silently disappears.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.

1 participant