fe54496d79
- todos table with title, description, status (todo/in_progress/done), priority (urgent/high/medium/low), optional device link, due date - List view: sorted by priority, inline edit, click-to-advance status circle (empty → blue dot → green check), edit/delete actions - Kanban board view: three columns, move buttons between statuses, priority badges, device links, due dates - Toggle between List and Board views via URL param - Optional link to a device for repair-related todos - Sidebar nav item added Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
80 lines
1.9 KiB
TypeScript
80 lines
1.9 KiB
TypeScript
export const DEVICE_CATEGORIES = ['Computer', 'Audio Equipment', 'Peripheral', 'Other'] as const;
|
|
|
|
export const DEVICE_CONDITIONS = [
|
|
'Working',
|
|
'In Repair',
|
|
'Waiting for Repair',
|
|
'Waiting to be Tested',
|
|
'Unrepairable'
|
|
] as const;
|
|
|
|
export const COMPONENT_CONDITIONS = ['Working', 'Faulty', 'Unknown', 'Refurbished'] as const;
|
|
|
|
export const COMPONENT_TYPES = [
|
|
'Logic Board',
|
|
'RAM',
|
|
'HDD',
|
|
'SSD',
|
|
'CPU',
|
|
'GPU',
|
|
'PSU',
|
|
'ROM',
|
|
'BlueSCSI',
|
|
'SCSI2SD',
|
|
'Network Card',
|
|
'Sound Card',
|
|
'Video Card',
|
|
'Floppy Drive',
|
|
'CD/DVD Drive',
|
|
'Belt',
|
|
'Head',
|
|
'Motor',
|
|
'Capacitor Kit',
|
|
'Battery',
|
|
'Cable/Adapter',
|
|
'Other'
|
|
] as const;
|
|
|
|
export const INSTALLATION_ACTIONS = ['installed', 'removed', 'swapped'] as const;
|
|
|
|
export const DEVICE_LOG_TYPES = [
|
|
'repair',
|
|
'inspection',
|
|
'cleaning',
|
|
'modification',
|
|
'diagnostic',
|
|
'recap',
|
|
'other'
|
|
] as const;
|
|
|
|
export type DeviceLogType = (typeof DEVICE_LOG_TYPES)[number];
|
|
|
|
export const TODO_STATUSES = ['todo', 'in_progress', 'done'] as const;
|
|
export const TODO_STATUS_LABELS: Record<string, string> = {
|
|
todo: 'To Do',
|
|
in_progress: 'In Progress',
|
|
done: 'Done'
|
|
};
|
|
|
|
export const TODO_PRIORITIES = [
|
|
{ value: 0, label: 'Urgent', color: 'red' },
|
|
{ value: 1, label: 'High', color: 'orange' },
|
|
{ value: 2, label: 'Medium', color: 'blue' },
|
|
{ value: 3, label: 'Low', color: 'gray' }
|
|
] as const;
|
|
|
|
export const VOLTAGE_OPTIONS = [
|
|
'110V AC', '115V AC', '120V AC', '127V AC', '220V AC', '230V AC', '240V AC',
|
|
'5V DC', '6V DC', '9V DC', '12V DC', '15V DC', '19V DC', '24V DC',
|
|
'USB powered',
|
|
'Battery'
|
|
] as const;
|
|
|
|
export const FREQUENCY_OPTIONS = ['50Hz', '60Hz', '50/60Hz'] as const;
|
|
|
|
export type DeviceCategory = (typeof DEVICE_CATEGORIES)[number];
|
|
export type DeviceCondition = (typeof DEVICE_CONDITIONS)[number];
|
|
export type ComponentCondition = (typeof COMPONENT_CONDITIONS)[number];
|
|
export type ComponentType = (typeof COMPONENT_TYPES)[number];
|
|
export type InstallationAction = (typeof INSTALLATION_ACTIONS)[number];
|