|
7 | 7 | import IconXRegular from 'phosphor-icons-svelte/IconXRegular.svelte'; |
8 | 8 | import IconTrash from 'phosphor-icons-svelte/IconTrashRegular.svelte'; |
9 | 9 | import IconArrowsClockwise from 'phosphor-icons-svelte/IconArrowsClockwiseRegular.svelte'; |
| 10 | + import IconUsersThreeRegular from 'phosphor-icons-svelte/IconUsersThreeRegular.svelte'; |
10 | 11 | import IconHeartRegular from 'phosphor-icons-svelte/IconHeartBold.svelte'; |
11 | 12 | import * as Resizable from '$lib/components/ui/resizable/index.js'; |
12 | 13 | import * as Accordion from '$lib/components/ui/accordion/index.js'; |
|
69 | 70 | import CopyButton from '$lib/components/copy-button.svelte'; |
70 | 71 | import Pip from '$lib/components/pip.svelte'; |
71 | 72 | import OptionField from './OptionField.svelte'; |
| 73 | + import IconRobotRegular from 'phosphor-icons-svelte/IconRobotRegular.svelte'; |
| 74 | + import SidebarTab from './SidebarTab.svelte'; |
72 | 75 |
|
73 | 76 | type CreateSessionRequest = NonNullable< |
74 | 77 | operations['createSession']['requestBody'] |
|
888 | 891 | <Resizable.Pane defaultSize={50} minSize={25} class="bg-card flex min-h-0 flex-col gap-4"> |
889 | 892 | <Tabs.Root bind:value={currentTab} class="w-full grow overflow-hidden"> |
890 | 893 | <Tabs.List class="bg-sidebar flex w-full rounded-none border-0 *:rounded-none"> |
891 | | - <Tabs.Trigger value="agent" class="flex items-center truncate"> |
892 | | - <IconMenu class="m-auto size-6 xl:hidden xl:size-0 " /> |
893 | | - <span class=" m-auto hidden xl:inline">Agent editor</span> |
894 | | - </Tabs.Trigger> |
895 | | - |
896 | | - <Tabs.Trigger value="session" class="flex items-center truncate"> |
897 | | - <IconWrenchRegular class="m-auto size-6 xl:hidden xl:size-0 " /> |
898 | | - <span |
899 | | - class=" m-auto hidden xl:inline {$errors?.sessionRuntimeSettings?.ttl |
900 | | - ? 'text-destructive' |
901 | | - : ''}">Session details</span |
902 | | - > |
903 | | - </Tabs.Trigger> |
904 | | - <Tabs.Trigger value="groups" class="flex items-center truncate"> |
905 | | - <IconWrenchRegular class="m-auto size-6 xl:hidden xl:size-0 " /> |
906 | | - Agent Groups |
907 | | - </Tabs.Trigger> |
| 894 | + <SidebarTab |
| 895 | + value="agent" |
| 896 | + icon={IconRobotRegular} |
| 897 | + invalid={Object.values($errors?.agents ?? {}).length > 0}>Agent</SidebarTab |
| 898 | + > |
| 899 | + <SidebarTab |
| 900 | + value="groups" |
| 901 | + icon={IconUsersThreeRegular} |
| 902 | + invalid={Object.values($errors?.groups ?? {}).length > 0}>Groups</SidebarTab |
| 903 | + > |
| 904 | + <SidebarTab |
| 905 | + value="session" |
| 906 | + icon={IconWrenchRegular} |
| 907 | + invalid={Object.values($errors?.sessionRuntimeSettings ?? {}).length > 0} |
| 908 | + >Session</SidebarTab |
| 909 | + > |
908 | 910 | </Tabs.List> |
909 | 911 | {@const availableOptions = {}} |
910 | 912 | {#key selectedAgent} |
|
0 commit comments