// Predefined topic categories for board ↔ management/board topic threads. // Kept as a constant for now; can be moved to a DB table later if associations // need to customize the list. Order here is the order shown in the dropdown. export const MESSAGE_TOPICS = [ "Maintenance", "Landscaping", "Finances / Budget", "Violations", "Architectural (ARC)", "Meetings", "Vendors", "Other", ] as const; export type MessageTopic = (typeof MESSAGE_TOPICS)[number]; // Tailwind classes for the topic badge so each category is visually distinct. const TOPIC_BADGE_CLASS: Record = { Maintenance: "bg-amber-100 text-amber-800 border-amber-200", Landscaping: "bg-green-100 text-green-800 border-green-200", "Finances / Budget": "bg-blue-100 text-blue-800 border-blue-200", Violations: "bg-red-100 text-red-800 border-red-200", "Architectural (ARC)": "bg-purple-100 text-purple-800 border-purple-200", Meetings: "bg-indigo-100 text-indigo-800 border-indigo-200", Vendors: "bg-teal-100 text-teal-800 border-teal-200", Other: "bg-gray-100 text-gray-700 border-gray-200", }; export function topicBadgeClass(topic: string): string { return TOPIC_BADGE_CLASS[topic] ?? TOPIC_BADGE_CLASS.Other; }