Files
g-butandClaude Opus 4.5 b15cdcd432 refactor: consolidate accent colors into SSOT config
- Create lib/config/colors.ts as single source of truth for all colors
- AccentColor (16 colors) for bot templates
- CustomBotAccentColor (5 colors) for custom bots (matches DB constraint)
- Remove hardcoded color maps from QuickChat.tsx
- Derive types from Zod schemas instead of separate definitions
- Add justification comment for any type in supabase mock
- Remove console.error from production code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-27 23:23:04 +01:00

55 lines
1.1 KiB
TypeScript

import React from 'react';
import { type CustomBotAccentColor } from '@/lib/config/colors';
export interface Feature {
title: string;
description: string;
icon?: React.ReactNode;
}
export interface Step {
title: string;
description: string;
image?: string;
}
export interface BotPageProps {
title: string;
overview: string;
features: Feature[];
howItWorks: Step[];
demo?: React.ReactNode;
}
/**
* Menu item for bot page navigation
*/
export interface BotMenuItem {
id: string;
label: string;
icon?: string;
section?: string;
}
/**
* Accent colors available for bot pages (restricted set of 5 colors)
* Re-exported from SSOT in lib/config/colors.ts
*/
export type { CustomBotAccentColor as BotAccentColor } from '@/lib/config/colors';
/**
* Navigation configuration for bot pages
*/
export interface BotNavConfig {
/** Display title in navigation */
navTitle: string;
/** Emoji displayed in navigation */
emoji: string;
/** Short description shown in nav */
navDescription?: string;
/** Accent color theme */
accentColor: CustomBotAccentColor;
/** Menu items for page sections */
menuItems: BotMenuItem[];
}