mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
refactor: rename phase models to model defaults and reorganize components
- Updated imports and references from 'phase-models' to 'model-defaults' across various components. - Removed obsolete phase models index file to streamline the codebase.
This commit is contained in:
@@ -5,7 +5,7 @@ import { Button } from '@/components/ui/button';
|
|||||||
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
|
||||||
import { useAppStore } from '@/store/app-store';
|
import { useAppStore } from '@/store/app-store';
|
||||||
import type { ModelAlias, CursorModelId, PhaseModelKey, PhaseModelEntry } from '@automaker/types';
|
import type { ModelAlias, CursorModelId, PhaseModelKey, PhaseModelEntry } from '@automaker/types';
|
||||||
import { PhaseModelSelector } from '@/components/views/settings-view/phase-models/phase-model-selector';
|
import { PhaseModelSelector } from '@/components/views/settings-view/model-defaults/phase-model-selector';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Normalize PhaseModelEntry or string to PhaseModelEntry
|
* Normalize PhaseModelEntry or string to PhaseModelEntry
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* This ensures we have a single source of truth for model selection logic.
|
* This ensures we have a single source of truth for model selection logic.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { PhaseModelSelector } from '@/components/views/settings-view/phase-models/phase-model-selector';
|
import { PhaseModelSelector } from '@/components/views/settings-view/model-defaults/phase-model-selector';
|
||||||
import type { PhaseModelEntry } from '@automaker/types';
|
import type { PhaseModelEntry } from '@automaker/types';
|
||||||
|
|
||||||
// Re-export types for convenience
|
// Re-export types for convenience
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { KeyboardMapDialog } from './settings-view/components/keyboard-map-dialo
|
|||||||
import { DeleteProjectDialog } from './settings-view/components/delete-project-dialog';
|
import { DeleteProjectDialog } from './settings-view/components/delete-project-dialog';
|
||||||
import { SettingsNavigation } from './settings-view/components/settings-navigation';
|
import { SettingsNavigation } from './settings-view/components/settings-navigation';
|
||||||
import { ApiKeysSection } from './settings-view/api-keys/api-keys-section';
|
import { ApiKeysSection } from './settings-view/api-keys/api-keys-section';
|
||||||
import { PhaseModelsSection } from './settings-view/phase-models';
|
import { ModelDefaultsSection } from './settings-view/model-defaults';
|
||||||
import { AppearanceSection } from './settings-view/appearance/appearance-section';
|
import { AppearanceSection } from './settings-view/appearance/appearance-section';
|
||||||
import { TerminalSection } from './settings-view/terminal/terminal-section';
|
import { TerminalSection } from './settings-view/terminal/terminal-section';
|
||||||
import { AudioSection } from './settings-view/audio/audio-section';
|
import { AudioSection } from './settings-view/audio/audio-section';
|
||||||
@@ -104,8 +104,8 @@ export function SettingsView() {
|
|||||||
onPromptCustomizationChange={setPromptCustomization}
|
onPromptCustomizationChange={setPromptCustomization}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
case 'phase-models':
|
case 'model-defaults':
|
||||||
return <PhaseModelsSection />;
|
return <ModelDefaultsSection />;
|
||||||
case 'appearance':
|
case 'appearance':
|
||||||
return (
|
return (
|
||||||
<AppearanceSection
|
<AppearanceSection
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const NAV_ITEMS: NavigationItem[] = [
|
|||||||
{ id: 'providers', label: 'AI Providers', icon: Bot },
|
{ id: 'providers', label: 'AI Providers', icon: Bot },
|
||||||
{ id: 'mcp-servers', label: 'MCP Servers', icon: Plug },
|
{ id: 'mcp-servers', label: 'MCP Servers', icon: Plug },
|
||||||
{ id: 'prompts', label: 'Prompt Customization', icon: MessageSquareText },
|
{ id: 'prompts', label: 'Prompt Customization', icon: MessageSquareText },
|
||||||
{ id: 'phase-models', label: 'Phase Models', icon: Workflow },
|
{ id: 'model-defaults', label: 'Model Defaults', icon: Workflow },
|
||||||
{ id: 'appearance', label: 'Appearance', icon: Palette },
|
{ id: 'appearance', label: 'Appearance', icon: Palette },
|
||||||
{ id: 'terminal', label: 'Terminal', icon: SquareTerminal },
|
{ id: 'terminal', label: 'Terminal', icon: SquareTerminal },
|
||||||
{ id: 'keyboard', label: 'Keyboard Shortcuts', icon: Settings2 },
|
{ id: 'keyboard', label: 'Keyboard Shortcuts', icon: Settings2 },
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ export type SettingsViewId =
|
|||||||
| 'providers'
|
| 'providers'
|
||||||
| 'mcp-servers'
|
| 'mcp-servers'
|
||||||
| 'prompts'
|
| 'prompts'
|
||||||
| 'phase-models'
|
| 'model-defaults'
|
||||||
| 'appearance'
|
| 'appearance'
|
||||||
| 'terminal'
|
| 'terminal'
|
||||||
| 'keyboard'
|
| 'keyboard'
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
export { ModelDefaultsSection } from './model-defaults-section';
|
||||||
|
export { PhaseModelSelector } from './phase-model-selector';
|
||||||
@@ -98,7 +98,7 @@ function PhaseGroup({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PhaseModelsSection() {
|
export function ModelDefaultsSection() {
|
||||||
const { resetPhaseModels } = useAppStore();
|
const { resetPhaseModels } = useAppStore();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -118,7 +118,9 @@ export function PhaseModelsSection() {
|
|||||||
<Workflow className="w-5 h-5 text-brand-500" />
|
<Workflow className="w-5 h-5 text-brand-500" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-lg font-semibold text-foreground tracking-tight">Phase Models</h2>
|
<h2 className="text-lg font-semibold text-foreground tracking-tight">
|
||||||
|
Model Defaults
|
||||||
|
</h2>
|
||||||
<p className="text-sm text-muted-foreground/80">
|
<p className="text-sm text-muted-foreground/80">
|
||||||
Configure which AI model to use for each application task
|
Configure which AI model to use for each application task
|
||||||
</p>
|
</p>
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export { PhaseModelsSection } from './phase-models-section';
|
|
||||||
export { PhaseModelSelector } from './phase-model-selector';
|
|
||||||
Reference in New Issue
Block a user