Skip to content

Commit

Permalink
feat(frontend): adapt to new gql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Dec 9, 2024
1 parent ec0c05d commit 67d557e
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions apps/frontend/app/routes/_dashboard.settings.integrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ const PRO_INTEGRATIONS = [IntegrationProvider.JellyfinPush];
const YANK_INTEGRATIONS = [
IntegrationProvider.Audiobookshelf,
IntegrationProvider.Komga,
IntegrationProvider.PlexYank,
];
const PUSH_INTEGRATIONS = [
IntegrationProvider.Radarr,
Expand Down Expand Up @@ -170,7 +171,9 @@ const createSchema = z.object({
syncToOwnedCollection: zx.CheckboxAsString.optional(),
providerSpecifics: z
.object({
plexUsername: z.string().optional(),
plexYankBaseUrl: z.string().optional(),
plexYankToken: z.string().optional(),
plexSinkUsername: z.string().optional(),
audiobookshelfBaseUrl: z.string().optional(),
audiobookshelfToken: z.string().optional(),
komgaBaseUrl: z.string().optional(),
Expand Down Expand Up @@ -498,11 +501,26 @@ const CreateIntegrationModal = (props: {
/>
</>
))
.with(IntegrationProvider.Plex, () => (
.with(IntegrationProvider.PlexYank, () => (
<>
<TextInput
required
label="Base URL"
name="providerSpecifics.plexYankBaseUrl"
/>
<TextInput
required
label="Plex token"
name="providerSpecifics.plexYankToken"
/>
</>
))
.with(IntegrationProvider.PlexSink, () => (
<>
<TextInput
required
label="Username"
name="providerSpecifics.plexUsername"
name="providerSpecifics.plexSinkUsername"
/>
</>
))
Expand Down

0 comments on commit 67d557e

Please sign in to comment.