Skip to content

feat(ui): new model picker combobox #7904

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

Merged
merged 54 commits into from
Apr 23, 2025

Conversation

psychedelicious
Copy link
Collaborator

Summary

  • Add a button to go to the model manager next to every model combobox.
  • Add onClickGoToModelManager prop to override what the button does. If this is provided, the button will render, even if the model manager is set as a disabled tab (the tab will not render).
  • Abstract out the workflow editor's model input field component. Previously every model field copied the same combobox components and there were subtle inconsistencies across them - now they are all identical (and have the model manager button).

Well, it turns out that is a crapload of added buttons. Too many? Maybe. Demo:

Screen.Recording.2025-04-09.at.4.33.00.pm.mov

Related Issues / Discussions

Offline discussion

QA Instructions

n/a

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Apr 9, 2025
@psychedelicious psychedelicious force-pushed the psyche/feat/ui/go-to-mm-buttons-everywhere branch from 15b2cf7 to 09021df Compare April 14, 2025 10:07
@github-actions github-actions bot added the frontend-deps PRs that change frontend dependencies label Apr 14, 2025
@psychedelicious psychedelicious force-pushed the psyche/feat/ui/go-to-mm-buttons-everywhere branch from 3b33984 to 60d8dfd Compare April 17, 2025 10:18
@psychedelicious
Copy link
Collaborator Author

This PR has turned into a new-combobox-component PR. The most important one is the model picker, which is fully customized and functional now:

Screen.Recording.2025-04-17.at.10.27.50.pm.mov

TODO:

  • User the picker for other model comboboxes.
  • Clean up the model manager buttons I had added everywhere.
  • Use the generic combobox in other places where it makes sense to use it. Hopefully we can totally remove the one based on chakra-react-select.

…ionality

If provided, `<NavigateToModelManagerButton />` will render, even if `disabledTabs` includes "models". If provided, `<NavigateToModelManagerButton />` will run the callback instead of switching tabs within the studio.

The button's tooltip is now just "Manage Models" and its icon is the same as the model manager tab's icon ([CUBE!](https://www.youtube.com/watch?v=4aGDCE6Nrz0)).
…undefined`

This fixes an issue where the refiner combobox doesn't clear itself visually when clicking the little X icon to clear the selection.
@psychedelicious psychedelicious force-pushed the psyche/feat/ui/go-to-mm-buttons-everywhere branch from a12e696 to da619ec Compare April 22, 2025 09:41
@psychedelicious
Copy link
Collaborator Author

psychedelicious commented Apr 22, 2025

I've finalized the main model picker:

  • When no model bases are selected, show everything instead of nothing.
  • When no models are installed, fallback links to the model manager's starter models tab.
  • Highlight red when no model selected.

Screen.Recording.2025-04-22.at.8.15.19.pm.mov

Looks like this when no models are installed:

Screen.Recording.2025-04-22.at.8.13.49.pm.mov

Still some items to finish up in future PR, but lets get this merged for now:

  • Use the picker for other model comboboxes.
  • Partially done: remove excessive go-to-mm buttons I had added everywhere.
  • Use the generic combobox in other places where it makes sense to use it. Hopefully we can totally remove the one based on chakra-react-select.
  • Support overriding the fallback component w/ studio prop.

@psychedelicious psychedelicious changed the title feat(ui): add button to go to model manager next to all model combobox feat(ui): new model picker combobox Apr 22, 2025
@psychedelicious psychedelicious merged commit 19a63ab into main Apr 23, 2025
12 checks passed
@psychedelicious psychedelicious deleted the psyche/feat/ui/go-to-mm-buttons-everywhere branch April 23, 2025 07:45
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 frontend-deps PRs that change frontend dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants