Skip to content

Commit 569bd3d

Browse files
committed
fix: Disable TypeScript language option with coming soon label
TypeScript support is not ready yet. Grey out the option, make it non-selectable, and add "(coming soon)" to indicate future availability.
1 parent 96dafbf commit 569bd3d

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

src/cli/tui/screens/agent/AddAgentScreen.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ export function AddAgentScreen({ existingAgentNames, onComplete, onExit }: AddAg
166166
const byoCurrentIndex = byoSteps.indexOf(byoStep);
167167

168168
// BYO language options (include "Other" for BYO path)
169-
const languageItems: SelectableItem[] = useMemo(() => LANGUAGE_OPTIONS.map(o => ({ id: o.id, title: o.title })), []);
169+
const languageItems: SelectableItem[] = useMemo(
170+
() => LANGUAGE_OPTIONS.map(o => ({ id: o.id, title: o.title, disabled: o.disabled })),
171+
[]
172+
);
170173

171174
const frameworkItems: SelectableItem[] = useMemo(
172175
() => FRAMEWORK_OPTIONS.map(o => ({ id: o.id, title: o.title, description: o.description })),
@@ -218,6 +221,7 @@ export function AddAgentScreen({ existingAgentNames, onComplete, onExit }: AddAg
218221
},
219222
onExit: handleByoBack,
220223
isActive: isByoPath && byoStep === 'language',
224+
isDisabled: item => item.disabled ?? false,
221225
});
222226

223227
const frameworkNav = useListNavigation({

src/cli/tui/screens/agent/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ export const AGENT_TYPE_OPTIONS = [
7575
] as const;
7676

7777
export const LANGUAGE_OPTIONS = [
78-
{ id: 'Python', title: 'Python' },
79-
{ id: 'TypeScript', title: 'TypeScript' },
80-
{ id: 'Other', title: 'Other' },
78+
{ id: 'Python', title: 'Python', disabled: false },
79+
{ id: 'TypeScript', title: 'TypeScript (coming soon)', disabled: true },
80+
{ id: 'Other', title: 'Other', disabled: false },
8181
] as const;
8282

8383
export const FRAMEWORK_OPTIONS = [

src/cli/tui/screens/generate/GenerateWizardUI.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function GenerateWizardUI({ wizard, onBack, onConfirm, isActive }: Genera
3737
const getItems = (): SelectableItem[] => {
3838
switch (wizard.step) {
3939
case 'language':
40-
return LANGUAGE_OPTIONS.map(o => ({ id: o.id, title: o.title }));
40+
return LANGUAGE_OPTIONS.map(o => ({ id: o.id, title: o.title, disabled: o.disabled }));
4141
case 'sdk':
4242
return SDK_OPTIONS.map(o => ({ id: o.id, title: o.title, description: o.description }));
4343
case 'modelProvider':
@@ -82,6 +82,7 @@ export function GenerateWizardUI({ wizard, onBack, onConfirm, isActive }: Genera
8282
onSelect: handleSelect,
8383
onExit: onBack,
8484
isActive: isActive && isSelectStep,
85+
isDisabled: item => item.disabled ?? false,
8586
});
8687

8788
// Handle confirm step input

src/cli/tui/screens/generate/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export const STEP_LABELS: Record<GenerateStep, string> = {
4040
};
4141

4242
export const LANGUAGE_OPTIONS = [
43-
{ id: 'Python', title: 'Python' },
44-
{ id: 'TypeScript', title: 'TypeScript' },
43+
{ id: 'Python', title: 'Python', disabled: false },
44+
{ id: 'TypeScript', title: 'TypeScript (coming soon)', disabled: true },
4545
] as const;
4646

4747
export const SDK_OPTIONS = [

0 commit comments

Comments
 (0)