Skip to content

Commit

Permalink
feat(ai.notebooks): fixing rebase issues
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Bullet <[email protected]>
  • Loading branch information
abullet33 committed Nov 14, 2024
1 parent 7e269d1 commit 3afe14e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ export const FrameworkTile = ({
selectedVersion={selectedVersion}
isFrameworkSelected={selected}
onChange={(versionName) => {
console.log(framework.versions);
// console.log(framework.versions.find((v) => v === versionName));
console.log(versionName);
setSelectedVersion(framework.versions.find((v) => v === versionName));
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ const VersionSelector = ({
key={fmkVersion}
value={fmkVersion}
onSelect={(value) => {
console.log(value);
onChange(value);
setOpen(false);
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
SelectTrigger,
SelectValue,
} from '@/components/ui/select';

import { DataStoresWithContainers } from '@/hooks/api/ai/datastore/useGetDatastoresWithContainers.hook';
import { FormVolumes, OrderVolumes } from '@/types/orderFunnel';
import { VOLUMES_CONFIG } from './volume.const';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@ vi.mock('@/data/api/sshkey/sshkey.api', () => ({

describe('useAddSshKey', () => {
it('should create a SshKey', async () => {
const onSuccess = vi.fn();
const onAddKeySuccess = vi.fn();
const onError = vi.fn();

vi.mocked(sshkeyApi.addSSHKey).mockResolvedValue(mockedSshKey);

const { result } = renderHook(() => useAddSshKey({ onError, onSuccess }), {
wrapper: QueryClientWrapper,
});
const { result } = renderHook(
() => useAddSshKey({ onError, onAddKeySuccess }),
{
wrapper: QueryClientWrapper,
},
);

const addSshKeyProps: sshkeyApi.AddSSHKey = {
projectId: 'projectId',
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -528,33 +528,6 @@ const OrderFunnel = ({
</CardContent>
</Card>
</section>
<section
id="options-sshkeys"
className="divide-y-[1rem] divide-transparent"
>
<FormField
control={model.form.control}
name="sshKey"
render={({ field }) => (
<FormItem>
<FormLabel className={classNameLabel}>
{t('fieldConfigurationSSHKeysLabel')}
</FormLabel>
<FormControl>
<SshKeyForm
{...field}
configuredSshKeys={sshKeys}
sshKeyList={field.value}
onChange={(newSshKey) =>
model.form.setValue('sshKey', newSshKey)
}
/>
</FormControl>
<FormMessage />
</FormItem>
)}
/>
</section>
</div>
<Card className="sticky top-4 h-fit shadow-lg">
<CardHeader>
Expand Down Expand Up @@ -599,20 +572,6 @@ const OrderFunnel = ({
>
{t('orderButton')}
</Button>

<Button
type="button"
variant="link"
disabled={isPendingCommand}
onClick={() => {
getCliCommand();
cliEquivalentModale.open();
}}
className="flex flex-row gap-2 items-center"
>
<TerminalSquare className="size-4 text-primary-700" />{' '}
{t('cliCode')}
</Button>
</CardFooter>
</Card>
</form>
Expand Down

0 comments on commit 3afe14e

Please sign in to comment.