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: Port Schedulers to Mantine #3552

Merged
merged 12 commits into from
Jun 18, 2023

Conversation

blessedcoolant
Copy link
Collaborator

@blessedcoolant blessedcoolant commented Jun 18, 2023

  • Ports Schedulers to use IAIMantineSelect.
  • Adds ability to favorite schedulers in Settings. Favorited schedulers show up at the top of the list.
  • Adds IAIMantineMultiSelect component.
  • Change SettingsSchedulers component to use IAIMantineMultiSelect instead of Chakra Menus.

blessedcoolant and others added 11 commits June 18, 2023 20:02
- use full conditional syntax with `{}`
- do not mutate `action.payload` in a reducer
- remove UI-specific state (the enabled schedulers) from redux, instead derive it in a selector
- simplify logic by putting schedulers in an object instead of an array
- rename `activeSchedulers` to `enabledSchedulers`
- remove need for `useEffect()` when `enabledSchedulers` changes by adding a listener for the `enabledSchedulersChanged` action/event to `generationSlice`
- increase type safety by making `enabledSchedulers` an array of `SchedulerParam`, which is created by the zod schema for scheduler
@blessedcoolant blessedcoolant merged commit a11946f into invoke-ai:main Jun 18, 2023
@blessedcoolant blessedcoolant deleted the scheduler-select branch June 18, 2023 10:22
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.

2 participants