Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ui): model manager UI pass #5886

Merged
merged 24 commits into from Mar 8, 2024
Merged

Conversation

psychedelicious
Copy link
Collaborator

@psychedelicious psychedelicious commented Mar 7, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Description

Numerous MM UI enhancements and fixes, see commits for details.

Notable changes:

  • Only main models and loras get trigger_phrases. The backend is updated accordingly.
  • Noticed that we were invalidating all model lists whenever any model mutation occurs. I started to optimize this and added manual cache updates for the updateModel endpoint. The model images endpoints still need the same treatment, didn't get to it today.
  • Did cache-busting for model image URLs on the backend, adding a random query param to the URL. Maybe that should be on the client?

QA Instructions, Screenshots, Recordings

Take the MM tab for a spin.

Merge Plan

This PR can be merged when approved

@github-actions github-actions bot added python PRs that change python files backend PRs that change backend files services PRs that change app services frontend PRs that change frontend files labels Mar 7, 2024
- Move image display to left
- Move description into model header
- Move model edit & convert buttons to top right of model header
- Tweak styles for model display component
When we change a model image, its URL remains the same. The browser will aggressively cache the image. The easiest way to fix this is to append a random query parameter to the URL whenever we build a model config in the API.
Without this, the form will incorrectly compare its state to its initial default values to determine if it is dirty. Instead, it should reset its default values to the new values after successful submit.
@psychedelicious psychedelicious enabled auto-merge (rebase) March 8, 2024 01:18
@psychedelicious psychedelicious merged commit 5118160 into main Mar 8, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/ui/model-manager-ui branch March 8, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files frontend PRs that change frontend files python PRs that change python files services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants