mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 20:03:37 +00:00
- Refactored profiles view into modular components for better maintainability - Fixed input/textarea borders showing consistently when not focused (border-input -> border-border) - Added animated hover effects on profile cards (border color and icon animations) - Removed redundant Create Profile button, made empty state interactive - Added confirmation dialog for profile deletion to prevent accidental removal - Improved dialog scrolling behavior with max-height constraints - Added ARIA labels to profile card buttons for better accessibility - Created reusable DeleteConfirmDialog component
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
TypeScript
import {
|
|
Brain,
|
|
Zap,
|
|
Scale,
|
|
Cpu,
|
|
Rocket,
|
|
Sparkles,
|
|
} from "lucide-react";
|
|
import type { AgentModel, ThinkingLevel } from "@/store/app-store";
|
|
|
|
// Icon mapping for profiles
|
|
export const PROFILE_ICONS: Record<
|
|
string,
|
|
React.ComponentType<{ className?: string }>
|
|
> = {
|
|
Brain,
|
|
Zap,
|
|
Scale,
|
|
Cpu,
|
|
Rocket,
|
|
Sparkles,
|
|
};
|
|
|
|
// Available icons for selection
|
|
export const ICON_OPTIONS = [
|
|
{ name: "Brain", icon: Brain },
|
|
{ name: "Zap", icon: Zap },
|
|
{ name: "Scale", icon: Scale },
|
|
{ name: "Cpu", icon: Cpu },
|
|
{ name: "Rocket", icon: Rocket },
|
|
{ name: "Sparkles", icon: Sparkles },
|
|
];
|
|
|
|
// Model options for the form
|
|
export const CLAUDE_MODELS: { id: AgentModel; label: string }[] = [
|
|
{ id: "haiku", label: "Claude Haiku" },
|
|
{ id: "sonnet", label: "Claude Sonnet" },
|
|
{ id: "opus", label: "Claude Opus" },
|
|
];
|
|
|
|
export const THINKING_LEVELS: { id: ThinkingLevel; label: string }[] = [
|
|
{ id: "none", label: "None" },
|
|
{ id: "low", label: "Low" },
|
|
{ id: "medium", label: "Medium" },
|
|
{ id: "high", label: "High" },
|
|
{ id: "ultrathink", label: "Ultrathink" },
|
|
];
|
|
|