Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6db89f0
fix(studio): play a scenario one column per produced slot
92Infinitus92 Oct 26, 2026
f165aee
ci: add the Claude Code pull request review
92Infinitus92 Oct 26, 2026
c3467d2
fix(studio): keep the playback column when its registration or time t…
92Infinitus92 Oct 26, 2026
bd44da9
fix(studio): retry a failed step without registering its column again
92Infinitus92 Oct 26, 2026
b711966
feat(studio): play a scenario with a paused or a running clock
92Infinitus92 Oct 26, 2026
d85dc17
feat(studio): choose fetchBeforeUse in the PumpSwap and Phoenix marke…
92Infinitus92 Oct 28, 2026
c0ad325
refactor(studio): drop the unread slot-event pause guard and a stale …
92Infinitus92 Oct 28, 2026
4de56c0
fix(studio): step from the processed slot and resume the clock when p…
92Infinitus92 Oct 28, 2026
b81f5ba
fix(studio): register the first column again after a paused Play cann…
92Infinitus92 Oct 30, 2026
dec49c8
Merge upstream/main into feat/studio/play-modes
92Infinitus92 Oct 30, 2026
3f7983a
Merge feat/studio/play-modes into feat/studio/play-clock-modes
92Infinitus92 Oct 30, 2026
f03987e
test(studio): ignore a second Play while the first registers its column
92Infinitus92 Oct 30, 2026
2a6185b
feat(studio): choose fetchBeforeUse in the Phoenix presets
92Infinitus92 Oct 30, 2026
39e45df
fix(studio): register the first column again after Play cannot advance
92Infinitus92 Oct 30, 2026
b794d00
fix(studio): ignore a second Step while the first one registers its c…
92Infinitus92 Oct 30, 2026
bdf952d
Merge feat/studio/play-modes into feat/studio/play-clock-modes
92Infinitus92 Oct 30, 2026
392beda
test(studio): ignore a second Step with the running clock
92Infinitus92 Oct 30, 2026
e3959c1
refactor(studio): register the first column on every Play without the…
92Infinitus92 Oct 30, 2026
08a7c87
fix(studio): disable Stop during a Step and guard Step with a ref
92Infinitus92 Oct 30, 2026
396ac1a
Merge feat/studio/play-modes into feat/studio/play-clock-modes
92Infinitus92 Oct 30, 2026
2edaa03
ci: drop the Claude review workflow
92Infinitus92 Oct 30, 2026
e216e1d
Merge feat/studio/play-modes into feat/studio/play-clock-modes
92Infinitus92 Oct 30, 2026
2520905
Merge feat/scenarios/override/scenario-playback-support into feat/stu…
92Infinitus92 Nov 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 6 additions & 32 deletions apps/studio/src/components/svm/explorer-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import TransactionInspector from '@/components/svm/transaction-inspector';
import { useAppConfig } from '@/hooks/use-app-config';
import { S3Credentials, uploadToS3 } from '@/lib/s3-upload';
import { solanaWebSocketService } from '@/lib/solana-websocket-service';
import { fetchSurfnetClockSeconds, startSurfnetClockPolling } from '@/lib/surfnet-clock';
import { fetchSurfnetClockSeconds, setSurfnetClockPaused, startSurfnetClockPolling } from '@/lib/surfnet-clock';
import { CalendarIcon, PauseIcon, PlayIcon } from '@heroicons/react/24/outline';
import { ArchiveBoxArrowDownIcon, CloudArrowUpIcon } from '@heroicons/react/24/solid';
import { CheckoutModal, MoneyMQProvider } from '@moneymq/react';
Expand Down Expand Up @@ -315,37 +315,11 @@ const ExplorerHeader = ({ initialTransactionSignature }: ExplorerHeaderProps) =>

// Toggle clock pause/resume
const toggleClock = async () => {
try {
const method = isClockPaused ? 'surfnet_resumeClock' : 'surfnet_pauseClock';

const response = await fetch(rpcUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
jsonrpc: '2.0',
id: 1,
method: method,
}),
});

if (response.ok) {
const data = await response.json();
if (data.result !== undefined) {
const newPauseState = !isClockPaused;
setIsClockPaused(newPauseState);

// Dispatch global event so other components can sync
window.dispatchEvent(
new CustomEvent('clockPauseStateChanged', {
detail: { isPaused: newPauseState },
})
);
}
}
} catch (error) {
console.error('Error toggling clock:', error);
const newPauseState = !isClockPaused;
if (await setSurfnetClockPaused(rpcUrl, newPauseState)) {
setIsClockPaused(newPauseState);
} else {
console.error('Error toggling clock');
}
};

Expand Down
30 changes: 30 additions & 0 deletions apps/studio/src/components/svm/fetch-before-use-switch.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { Switch } from '@surfpool/ui';

interface FetchBeforeUseSwitchProps {
checked: boolean;
onChange: (checked: boolean) => void;
disabled?: boolean;
}

export default function FetchBeforeUseSwitch({ checked, onChange, disabled }: FetchBeforeUseSwitchProps) {
// DERIVED STATE
const hint = checked
? 'Play fetches each account from the upstream datasource before changing it.'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

For Phoenix, turning this on is the risky choice (a refetch puts one account out of sync with the market's other accounts), but the "on" hint describes it neutrally. Consider an optional warning prop so the Phoenix dialog can say this next to the switch.

: 'Play changes each account as it is in the local VM, so state prepared there is kept. An account that is not there is skipped.';

return (
<div>
<div className="flex items-center justify-between">
<span className="text-sm font-medium text-zinc-300">Fetch before use</span>
<Switch
aria-label="Fetch before use"
checked={checked}
onChange={onChange}
disabled={disabled}
color="purple"
/>
</div>
<p className="mt-1.5 text-xs text-zinc-500">{hint}</p>
</div>
);
}
56 changes: 42 additions & 14 deletions apps/studio/src/components/svm/phoenix-state-dialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ vi.mock('@surfpool/ui', async () => ({
CheckboxGroup: ({ children }: any) => <div>{children}</div>,
Description: ({ children }: any) => <span>{children}</span>,
Label: ({ children }: any) => <span>{children}</span>,
Switch: ({ onChange, color, ...props }: any) => {
const handleChange = (event: any) => onChange(event.target.checked);

return <input type="checkbox" role="switch" {...props} onChange={handleChange} />;
},
Combobox: (await import('@/test-utils')).MockCombobox,
ComboboxDescription: ({ children }: any) => <span>{children}</span>,
ComboboxLabel: ({ children }: any) => <span>{children}</span>,
Expand Down Expand Up @@ -149,7 +154,12 @@ describe('PhoenixStateDialog', () => {
// (highRiskMargin + backstopMargin) / 2, rounded toward zero
const prepared = (trader: string) => expect.objectContaining({ trader, collateral: '450' });
await waitFor(() =>
expect(createMock).toHaveBeenCalledWith('http://studio', [prepared(TRADER), prepared(OTHER_TRADER)], undefined)
expect(createMock).toHaveBeenCalledWith(
'http://studio',
[prepared(TRADER), prepared(OTHER_TRADER)],
undefined,
false
)
);
});

Expand Down Expand Up @@ -188,7 +198,7 @@ describe('PhoenixStateDialog', () => {
// effectiveCollateral before the moves - after them + (backstopMargin + maintenanceMargin) / 2 after them
const prepared = (trader: string) => expect.objectContaining({ trader, collateral: '1343' });
await waitFor(() =>
expect(createMock).toHaveBeenCalledWith('http://studio', [prepared(TRADER), prepared(OTHER_TRADER)], moves)
expect(createMock).toHaveBeenCalledWith('http://studio', [prepared(TRADER), prepared(OTHER_TRADER)], moves, false)
);
const loadedMoves = vi.mocked(fetchPhoenixTraderPositions).mock.calls.map((call) => call[3]);
expect(loadedMoves).toEqual([undefined, undefined, moves, moves]);
Expand Down Expand Up @@ -230,7 +240,7 @@ describe('PhoenixStateDialog', () => {

// Healthy before the move from 908 after it, liquidatable below 1000: the middle is 954, 947 before the move.
const prepared = expect.objectContaining({ trader: TRADER, collateral: '947' });
await waitFor(() => expect(createMock).toHaveBeenCalledWith('http://studio', [prepared], expect.any(Array)));
await waitFor(() => expect(createMock).toHaveBeenCalledWith('http://studio', [prepared], expect.any(Array), false));
});

// A move too small to cross leaves no collateral both healthy before it and liquidatable after it; one that
Expand Down Expand Up @@ -308,7 +318,7 @@ describe('PhoenixStateDialog', () => {
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));

await waitFor(() => {
expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'AMAT', '31350');
expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'AMAT', '31350', false);
});
});

Expand Down Expand Up @@ -336,7 +346,7 @@ describe('PhoenixStateDialog', () => {
expect(screen.getByLabelText('Phoenix market')).toHaveValue('XYZ');
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));
await waitFor(() => {
expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'XYZ', '1000');
expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'XYZ', '1000', false);
});
});

Expand All @@ -357,7 +367,7 @@ describe('PhoenixStateDialog', () => {
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));

await waitFor(() => {
expect(createMock).toHaveBeenCalledWith('http://studio', 'SOL', '10000');
expect(createMock).toHaveBeenCalledWith('http://studio', 'SOL', '10000', false);
expect(onCreated).toHaveBeenCalledWith('maintenance');
});
});
Expand All @@ -382,7 +392,7 @@ describe('PhoenixStateDialog', () => {
fireEvent.click(screen.getByRole('button', { name: 'ETH' }));
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));
await waitFor(() => {
expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'ETH', '12345');
expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'ETH', '12345', false);
});
});

Expand Down Expand Up @@ -439,7 +449,25 @@ describe('PhoenixStateDialog', () => {
expect(screen.queryByRole('status')).not.toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));

await waitFor(() => expect(createMock).toHaveBeenCalledWith('http://studio', 'SOL', '2001'));
await waitFor(() => expect(createMock).toHaveBeenCalledWith('http://studio', 'SOL', '2001', false));
});

it('fetches each account before use when the switch is on', async () => {
let finishLoading!: (options: DynamicRefOption[]) => void;
fetchSymbolsMock.mockReturnValue(
new Promise((resolve) => {
finishLoading = resolve;
})
);
createMarketMoveMock.mockResolvedValue({ id: 'fetched' });
renderDialog();
fireEvent.change(screen.getByLabelText('Target price'), { target: { value: '12345' } });

await act(async () => finishLoading([{ value: 'BTC', markTicks: 85957, tickSize: 100, baseLotDecimals: 4 }]));
fireEvent.click(screen.getByRole('switch', { name: 'Fetch before use' }));
expect(screen.getByText(/Play fetches each account from the upstream datasource/)).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));
await waitFor(() => expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'BTC', '12345', true));
});

it('keeps an amount typed while markets load in the ticks it was typed in', async () => {
Expand All @@ -455,7 +483,7 @@ describe('PhoenixStateDialog', () => {

await act(async () => finishLoading([{ value: 'BTC', markTicks: 85957, tickSize: 100, baseLotDecimals: 4 }]));
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));
await waitFor(() => expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'BTC', '12345'));
await waitFor(() => expect(createMarketMoveMock).toHaveBeenCalledWith('http://studio', 'BTC', '12345', false));
});

it('converts percent and USD inputs to the raw values the backend takes', async () => {
Expand All @@ -475,18 +503,18 @@ describe('PhoenixStateDialog', () => {
};
submit('Target price', '-10');
expect(screen.getByText('$85,957 → $77,361 (-10%), 77361 ticks')).toBeInTheDocument();
await waitFor(() => expect(createMarketMoveMock).toHaveBeenLastCalledWith('http://studio', 'BTC', '77361'));
await waitFor(() => expect(createMarketMoveMock).toHaveBeenLastCalledWith('http://studio', 'BTC', '77361', false));
fireEvent.change(screen.getByLabelText('Unit'), { target: { value: 'usd' } });
submit('Target price', '85000.4');
await waitFor(() => expect(createMarketMoveMock).toHaveBeenLastCalledWith('http://studio', 'BTC', '85000'));
await waitFor(() => expect(createMarketMoveMock).toHaveBeenLastCalledWith('http://studio', 'BTC', '85000', false));
fireEvent.click(screen.getByRole('button', { name: 'kBONK' }));
submit('Target price', '0.000015');
await waitFor(() => expect(createMarketMoveMock).toHaveBeenLastCalledWith('http://studio', 'kBONK', '1500'));
await waitFor(() => expect(createMarketMoveMock).toHaveBeenLastCalledWith('http://studio', 'kBONK', '1500', false));

fireEvent.click(screen.getByRole('button', { name: 'BTC' }));
fireEvent.change(screen.getByLabelText('State goal'), { target: { value: 'maintenance-margin' } });
submit('Maintenance risk factor', '62.5');
await waitFor(() => expect(createMarginMock).toHaveBeenCalledWith('http://studio', 'BTC', '6250'));
await waitFor(() => expect(createMarginMock).toHaveBeenCalledWith('http://studio', 'BTC', '6250', false));
});

it('creates an oracle price scenario, not a market move, from a percent of the mark', async () => {
Expand All @@ -501,7 +529,7 @@ describe('PhoenixStateDialog', () => {
expect(screen.getByText('$85,957 → $81,659 (-5%), 81659 ticks')).toBeInTheDocument();
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));

await waitFor(() => expect(createOracleMock).toHaveBeenCalledWith('http://studio', 'BTC', '81659'));
await waitFor(() => expect(createOracleMock).toHaveBeenCalledWith('http://studio', 'BTC', '81659', false));
expect(createMarketMoveMock).not.toHaveBeenCalled();
});
});
11 changes: 7 additions & 4 deletions apps/studio/src/components/svm/phoenix-state-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import {
ListboxOption,
} from '@surfpool/ui';
import { useEffect, useState, type ChangeEvent, type FormEvent } from 'react';
import FetchBeforeUseSwitch from './fetch-before-use-switch';
import { findOptionByTypedValue } from './token-selector-options';

const PhoenixStateMode = {
Expand Down Expand Up @@ -228,6 +229,7 @@ export default function PhoenixStateDialog({ open, studioUrl, rpcUrl, onClose, o
const [depth, setDepth] = useState<LiquidationDepth>(LiquidationDepth.OneLiquidation);
const [movePercent, setMovePercent] = useState('2');
const [unit, setUnit] = useState<PhoenixUnit>('percent');
const [fetchBeforeUse, setFetchBeforeUse] = useState(false);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This defaults to false, while the PR body says the Phoenix mark and maintenance-margin presets keep their default of on. false does match the earlier hard-coded Phoenix value (the comment moved into createPhoenixScenario), so the code is probably right and the description is wrong. Please fix one of them so they agree.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This defaults to false, which matches the old Phoenix behavior. The PR description says "on by default as before" for the Phoenix presets, which doesn't match. Please update the description so reviewers and QA know what to expect.

const [error, setError] = useState<string | null>(null);
const [isCreating, setIsCreating] = useState(false);
const [marketOptions, setMarketOptions] = useState<DynamicRefOption[]>([]);
Expand Down Expand Up @@ -317,7 +319,7 @@ export default function PhoenixStateDialog({ open, studioUrl, rpcUrl, onClose, o
if (unhealthy.length) {
throw new Error(`${unhealthy.map((plan) => plan.trader).join(', ')} would not stay healthy until the move.`);
}
return createPhoenixCollateralLiquidationScenario(studioUrl, prepared, moves);
return createPhoenixCollateralLiquidationScenario(studioUrl, prepared, moves, fetchBeforeUse);
};

// HANDLERS
Expand Down Expand Up @@ -385,12 +387,12 @@ export default function PhoenixStateDialog({ open, studioUrl, rpcUrl, onClose, o
try {
const result =
mode === PhoenixStateMode.MarketMove
? await createPhoenixMarketMoveScenario(studioUrl, marketSymbol, rawAmount)
? await createPhoenixMarketMoveScenario(studioUrl, marketSymbol, rawAmount, fetchBeforeUse)
: mode === PhoenixStateMode.OraclePrice
? await createPhoenixOraclePriceScenario(studioUrl, marketSymbol, rawAmount)
? await createPhoenixOraclePriceScenario(studioUrl, marketSymbol, rawAmount, fetchBeforeUse)
: isCollateralLiquidation
? await createCollateralLiquidationScenario()
: await createPhoenixMaintenanceMarginScenario(studioUrl, marketSymbol, rawAmount);
: await createPhoenixMaintenanceMarginScenario(studioUrl, marketSymbol, rawAmount, fetchBeforeUse);
onCreated(result.id);
} catch (requestError) {
setError(requestError instanceof Error ? requestError.message : 'Failed to create Phoenix state scenario');
Expand Down Expand Up @@ -538,6 +540,7 @@ export default function PhoenixStateDialog({ open, studioUrl, rpcUrl, onClose, o
</div>
)}
{amountField}
<FetchBeforeUseSwitch checked={fetchBeforeUse} onChange={setFetchBeforeUse} disabled={isCreating} />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The PR body says Phoenix collateral hides this switch and that a test covers it. Here the switch renders in every mode, and its value goes to createPhoenixCollateralLiquidationScenario on line 322. If collateral should not offer it (its flag is set on the backend side, per 'Not in this PR'), wrap the switch in {!isCollateralLiquidation && …} and pass false for collateral. Otherwise, update the description.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The switch now shows in every mode, including collateral liquidation, and its value reaches createPhoenixCollateralLiquidationScenario. The PR description says collateral hides the switch.

The comment in createPhoenixScenario also explains why fetching is risky here: a refetch resets this account apart from the market's other accounts. The generic hint in FetchBeforeUseSwitch doesn't warn about that. Either hide the switch for collateral, which the description says this PR does, or add a Phoenix-specific warning when it is on.

{!!error && <p className="text-sm text-red-400">{error}</p>}
</div>
<DialogActions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ vi.mock('@surfpool/ui', () => ({
DialogDescription: ({ children }: any) => <p>{children}</p>,
DialogTitle: ({ children }: any) => <h2>{children}</h2>,
Input: (props: any) => <input {...props} />,
Switch: ({ onChange, color, ...props }: any) => {
const handleChange = (event: any) => onChange(event.target.checked);

return <input type="checkbox" role="switch" {...props} onChange={handleChange} />;
},
}));

const createScenarioMock = vi.mocked(createPumpSwapPriceShockScenario);
Expand All @@ -38,11 +43,26 @@ describe('PumpSwapPriceShockDialog', () => {
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));

await waitFor(() => {
expect(createScenarioMock).toHaveBeenCalledWith('http://studio', ' MigratedMintpump ', '15000000000000');
expect(createScenarioMock).toHaveBeenCalledWith('http://studio', ' MigratedMintpump ', '15000000000000', true);
expect(onCreated).toHaveBeenCalledWith('scenario-id');
});
});

it('creates the scenario on the local pool when fetch before use is off', async () => {
createScenarioMock.mockResolvedValue({ id: 'scenario-id' });
render(<PumpSwapPriceShockDialog open studioUrl="http://studio" onClose={vi.fn()} onCreated={vi.fn()} />);

expect(screen.getByRole('switch', { name: 'Fetch before use' })).toBeChecked();
fireEvent.change(screen.getByLabelText('Token mint'), { target: { value: 'MigratedMintpump' } });
fireEvent.change(screen.getByLabelText('Virtual quote reserves'), { target: { value: '1' } });
fireEvent.click(screen.getByRole('switch', { name: 'Fetch before use' }));
fireEvent.click(screen.getByRole('button', { name: 'Create scenario' }));

await waitFor(() =>
expect(createScenarioMock).toHaveBeenCalledWith('http://studio', 'MigratedMintpump', '1', false)
);
});

it('rejects a zero reserve amount before calling the backend', () => {
render(<PumpSwapPriceShockDialog open studioUrl="http://studio" onClose={vi.fn()} onCreated={vi.fn()} />);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { createPumpSwapPriceShockScenario } from '@/lib/scenarios-api';
import { Button, Dialog, DialogActions, DialogDescription, DialogTitle, Input } from '@surfpool/ui';
import { type ChangeEvent, type FormEvent, useState } from 'react';
import FetchBeforeUseSwitch from './fetch-before-use-switch';

interface PumpSwapPriceShockDialogProps {
open: boolean;
Expand All @@ -20,6 +21,7 @@ export default function PumpSwapPriceShockDialog({
// STATE
const [tokenMint, setTokenMint] = useState('');
const [virtualQuoteReserves, setVirtualQuoteReserves] = useState('');
const [fetchBeforeUse, setFetchBeforeUse] = useState(true);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

After a successful create, the dialog resets tokenMint and virtualQuoteReserves but not fetchBeforeUse. If a user turns the switch off once, the next scenario is silently created with it off. Consider resetting it to true together with the other fields. The same applies to the Phoenix dialog, which should reset to false when it opens.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

After a successful create, tokenMint and virtualQuoteReserves are cleared, but fetchBeforeUse keeps its last value. If the user turned it off once, the next scenario silently gets false even though the default is true. Reset it with the other fields; the Phoenix dialog has the same issue.

const [error, setError] = useState<string | null>(null);
const [isCreating, setIsCreating] = useState(false);

Expand Down Expand Up @@ -53,7 +55,7 @@ export default function PumpSwapPriceShockDialog({
setError(null);

try {
const result = await createPumpSwapPriceShockScenario(studioUrl, tokenMint, normalizedReserves);
const result = await createPumpSwapPriceShockScenario(studioUrl, tokenMint, normalizedReserves, fetchBeforeUse);
setTokenMint('');
setVirtualQuoteReserves('');
onCreated(result.id);
Expand Down Expand Up @@ -101,6 +103,7 @@ export default function PumpSwapPriceShockDialog({
Raw WSOL units written to the pool&apos;s virtual quote reserves.
</p>
</div>
<FetchBeforeUseSwitch checked={fetchBeforeUse} onChange={setFetchBeforeUse} disabled={isCreating} />
{!!error && <p className="text-sm text-red-400">{error}</p>}
</div>
<DialogActions>
Expand Down
Loading