Skip to content

Refactor settings Edit config with shadcn comps#1823

Draft
stvncode wants to merge 5 commits into
mainfrom
refactor-settings
Draft

Refactor settings Edit config with shadcn comps#1823
stvncode wants to merge 5 commits into
mainfrom
refactor-settings

Conversation

@stvncode

Copy link
Copy Markdown
Contributor
Screenshot 2026-05-30 at 10 21 58 Screenshot 2026-05-30 at 10 22 16

@stvncode stvncode self-assigned this May 30, 2026
Copilot AI review requested due to automatic review settings May 30, 2026 08:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the Settings “edit config” experience to use the project’s shadcn-style UI components and a TanStack Vue Form–based form model, replacing a number of Vuetify widgets across provider/core/player settings views.

Changes:

  • Replace Vuetify controls in settings views with shadcn UI components (Select/Switch/Slider/Input/Dialog/Alert/Card/etc.).
  • Rework EditConfig.vue to use @tanstack/vue-form + a new Zod-backed schema/helpers (src/lib/forms/config-entry.ts) for validation, defaults, disabled-state, and “unsaved changes” detection.
  • Introduce ConfigEntryRow.vue as a wrapper row component and add a new shadcn-style Alert component.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
src/views/settings/PlayerOptionField.vue Refactors player option inputs to shadcn Field/Select/Switch/Slider/Input.
src/views/settings/EditProvider.vue Migrates provider settings header/banner/dialog/overlay to shadcn components.
src/views/settings/EditPlayerOptions.vue Converts player options cards to shadcn Card components.
src/views/settings/EditPlayer.vue Migrates player settings header/banners/dialog/overlay to shadcn components.
src/views/settings/EditCoreConfig.vue Migrates core config header and loading overlay to shadcn components.
src/views/settings/EditConfig.vue Replaces Vuetify form implementation with TanStack Vue Form + new row rendering and protocol accordion.
src/views/settings/ConfigEntryRow.vue New component to render a config entry + advanced/help affordances.
src/views/settings/ConfigEntryField.vue Refactors individual field rendering to shadcn components and TanStack field APIs.
src/views/settings/AddProviderDetails.vue Migrates add-provider flow layout/overlay to shadcn components.
src/lib/forms/config-entry.ts New shared helpers: defaults, schema/validation, disabled-state detection, “value entry” filtering.
src/components/ui/alert/* New shadcn-style Alert component + variants and subcomponents.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/views/settings/ConfigEntryField.vue
Comment thread src/views/settings/PlayerOptionField.vue
Comment thread src/views/settings/EditProvider.vue Outdated
Comment thread src/views/settings/AddProviderDetails.vue Outdated
Comment thread src/views/settings/ConfigEntryRow.vue
Comment thread src/views/settings/EditPlayer.vue
Comment thread src/views/settings/EditConfig.vue
Comment thread src/views/settings/EditConfig.vue
Comment thread src/views/settings/EditProvider.vue
Comment thread src/views/settings/EditProvider.vue
@stvncode stvncode requested a review from MarvinSchenkel May 30, 2026 08:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 12 comments.

Comment thread src/views/settings/EditPlayer.vue
Comment thread src/views/settings/EditPlayer.vue
Comment thread src/views/settings/EditProvider.vue
Comment thread src/views/settings/EditProvider.vue Outdated
Comment thread src/views/settings/AddProviderDetails.vue Outdated
Comment thread src/views/settings/EditPlayer.vue
Comment thread src/views/settings/EditProvider.vue
Comment thread src/views/settings/EditProvider.vue Outdated
Comment thread src/views/settings/AddProviderDetails.vue Outdated
Comment thread src/views/settings/PlayerOptionField.vue
stvncode and others added 3 commits May 31, 2026 08:25
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@stvncode stvncode marked this pull request as draft June 3, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants