fix working files
This commit is contained in:
parent
ff822aaf81
commit
b3c8a04b71
@ -348,7 +348,6 @@ export const OrchestratorPage: React.FC = () => {
|
|||||||
selectedJob={selectedJob}
|
selectedJob={selectedJob}
|
||||||
onSelectJobId={handleSelectJobId}
|
onSelectJobId={handleSelectJobId}
|
||||||
onJobUpdated={loadJobs}
|
onJobUpdated={loadJobs}
|
||||||
onSetActiveTab={setActiveTab}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
@ -382,7 +381,6 @@ export const OrchestratorPage: React.FC = () => {
|
|||||||
selectedJob={selectedJob}
|
selectedJob={selectedJob}
|
||||||
onSelectJobId={handleSelectJobId}
|
onSelectJobId={handleSelectJobId}
|
||||||
onJobUpdated={loadJobs}
|
onJobUpdated={loadJobs}
|
||||||
onSetActiveTab={setActiveTab}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</DrawerContent>
|
</DrawerContent>
|
||||||
|
|||||||
@ -7,9 +7,9 @@ import {
|
|||||||
PIPELINE_SOURCES_STORAGE_KEY,
|
PIPELINE_SOURCES_STORAGE_KEY,
|
||||||
} from "./constants";
|
} from "./constants";
|
||||||
|
|
||||||
const resolveAllowedSources = (enabledSources?: JobSource[]) =>
|
const resolveAllowedSources = (enabledSources?: readonly JobSource[]) =>
|
||||||
enabledSources && enabledSources.length > 0
|
enabledSources && enabledSources.length > 0
|
||||||
? enabledSources
|
? (enabledSources as JobSource[])
|
||||||
: DEFAULT_PIPELINE_SOURCES;
|
: DEFAULT_PIPELINE_SOURCES;
|
||||||
|
|
||||||
const normalizeSources = (
|
const normalizeSources = (
|
||||||
@ -24,7 +24,7 @@ const sourcesMatch = (left: JobSource[], right: JobSource[]) =>
|
|||||||
left.length === right.length &&
|
left.length === right.length &&
|
||||||
left.every((value, index) => value === right[index]);
|
left.every((value, index) => value === right[index]);
|
||||||
|
|
||||||
export const usePipelineSources = (enabledSources?: JobSource[]) => {
|
export const usePipelineSources = (enabledSources?: readonly JobSource[]) => {
|
||||||
const allowedSources = useMemo(
|
const allowedSources = useMemo(
|
||||||
() => resolveAllowedSources(enabledSources),
|
() => resolveAllowedSources(enabledSources),
|
||||||
[enabledSources],
|
[enabledSources],
|
||||||
|
|||||||
@ -2,6 +2,14 @@ import * as api from "@client/api";
|
|||||||
import { RefreshCw } from "lucide-react";
|
import { RefreshCw } from "lucide-react";
|
||||||
import type React from "react";
|
import type React from "react";
|
||||||
import { useCallback, useEffect, useState } from "react";
|
import { useCallback, useEffect, useState } from "react";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
import {
|
||||||
|
Select,
|
||||||
|
SelectContent,
|
||||||
|
SelectItem,
|
||||||
|
SelectTrigger,
|
||||||
|
SelectValue,
|
||||||
|
} from "@/components/ui/select";
|
||||||
|
|
||||||
type BaseResumeSelectionProps = {
|
type BaseResumeSelectionProps = {
|
||||||
value: string | null;
|
value: string | null;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user