mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 08:53:36 +00:00
- Introduced a new `CommandsSection` component to manage both development and test commands, replacing the previous `DevServerSection` and `TestingSection`. - Updated the `SettingsService` to handle special cases for `devCommand` and `testCommand`, allowing for null values to delete commands. - Removed deprecated sections and streamlined the project settings view to enhance user experience and maintainability. This refactor simplifies command management and improves the overall structure of the project settings interface.
28 lines
814 B
TypeScript
28 lines
814 B
TypeScript
import type { LucideIcon } from 'lucide-react';
|
|
import {
|
|
User,
|
|
GitBranch,
|
|
Palette,
|
|
AlertTriangle,
|
|
Workflow,
|
|
Database,
|
|
Terminal,
|
|
} from 'lucide-react';
|
|
import type { ProjectSettingsViewId } from '../hooks/use-project-settings-view';
|
|
|
|
export interface ProjectNavigationItem {
|
|
id: ProjectSettingsViewId;
|
|
label: string;
|
|
icon: LucideIcon;
|
|
}
|
|
|
|
export const PROJECT_SETTINGS_NAV_ITEMS: ProjectNavigationItem[] = [
|
|
{ id: 'identity', label: 'Identity', icon: User },
|
|
{ id: 'worktrees', label: 'Worktrees', icon: GitBranch },
|
|
{ id: 'commands', label: 'Commands', icon: Terminal },
|
|
{ id: 'theme', label: 'Theme', icon: Palette },
|
|
{ id: 'claude', label: 'Models', icon: Workflow },
|
|
{ id: 'data', label: 'Data', icon: Database },
|
|
{ id: 'danger', label: 'Danger Zone', icon: AlertTriangle },
|
|
];
|