mirror of
https://github.com/bitbaum/botsmann.git
synced 2026-12-04 04:27:47 +01:00
- APIKeyInput: add focusRing field to ProviderColorClasses, replace
focus:${colors.ring} with static ${colors.focusRing} lookup
- ProfessionalCard: add groupHoverText field to accent color classes,
replace group-hover:${colors.text} with static ${colors.groupHoverText}
- Zero dynamic Tailwind interpolations remain in the codebase
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
44 lines
987 B
TypeScript
44 lines
987 B
TypeScript
// Infrastructure Types - Single Source of Truth for AI Provider and Storage type definitions
|
|
|
|
export type ProviderColor = 'orange' | 'green' | 'purple' | 'blue';
|
|
|
|
export type ProviderId = 'groq' | 'openrouter' | 'ollama';
|
|
|
|
export type StorageId = 'cloud' | 'local' | 'usb';
|
|
|
|
export type StorageStatus = 'available' | 'coming' | 'future';
|
|
|
|
export type ConnectionStatus = 'connected' | 'not-configured' | 'validating' | 'error';
|
|
|
|
export interface AIProvider {
|
|
id: ProviderId;
|
|
name: string;
|
|
tagline: string;
|
|
description: string;
|
|
features: string[];
|
|
color: ProviderColor;
|
|
keyRequired: boolean;
|
|
keyPlaceholder: string;
|
|
helpUrl: string;
|
|
logo: string;
|
|
}
|
|
|
|
export interface StorageOption {
|
|
id: StorageId;
|
|
name: string;
|
|
description: string;
|
|
status: StorageStatus;
|
|
icon: string;
|
|
}
|
|
|
|
export interface ProviderColorClasses {
|
|
bg: string;
|
|
bgLight: string;
|
|
bgGradient: string;
|
|
text: string;
|
|
border: string;
|
|
hover: string;
|
|
ring: string;
|
|
focusRing: string;
|
|
}
|