Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 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x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | /**
* Dev Ticket Constants
*
* Configuration and display constants for the internal dev ticketing system.
*/
import {
DevTicketType,
DevTicketStatus,
DevTicketPriority,
DevTicketSeverity,
DevTicketCategory,
MilestoneStatus,
SprintStatus,
TicketLinkType} from '@/types/dev-ticket';
// ==========================================
// TICKET TYPE CONFIGURATION
// ==========================================
export const DEV_TICKET_TYPE_CONFIG: Record<
DevTicketType,
{
label: string;
icon: string;
color: string;
bgColor: string;
description: string;
}
> = {
BUG: {
label: 'Bug',
icon: '🐛',
color: 'text-red-700',
bgColor: 'bg-red-100',
description: 'Something is not working as expected'},
FEATURE: {
label: 'Feature',
icon: '✨',
color: 'text-purple-700',
bgColor: 'bg-purple-100',
description: 'New functionality to be implemented'},
ENHANCEMENT: {
label: 'Enhancement',
icon: '📈',
color: 'text-blue-700',
bgColor: 'bg-blue-100',
description: 'Improvement to existing functionality'},
TASK: {
label: 'Task',
icon: '📋',
color: 'text-gray-700',
bgColor: 'bg-gray-100',
description: 'General development task'},
DOCUMENTATION: {
label: 'Documentation',
icon: '📝',
color: 'text-teal-700',
bgColor: 'bg-teal-100',
description: 'Documentation updates or additions'},
REFACTOR: {
label: 'Refactor',
icon: '🔧',
color: 'text-orange-700',
bgColor: 'bg-orange-100',
description: 'Code refactoring without changing behavior'},
SECURITY: {
label: 'Security',
icon: '🔒',
color: 'text-red-800',
bgColor: 'bg-red-200',
description: 'Security-related issue or improvement'},
PERFORMANCE: {
label: 'Performance',
icon: '⚡',
color: 'text-yellow-700',
bgColor: 'bg-yellow-100',
description: 'Performance optimization'},
DEPLOYMENT: {
label: 'Deployment',
icon: '🚀',
color: 'text-indigo-700',
bgColor: 'bg-indigo-100',
description: 'Deployment or infrastructure related'},
RESEARCH: {
label: 'Research',
icon: '🔍',
color: 'text-cyan-700',
bgColor: 'bg-cyan-100',
description: 'Investigation or research spike'}};
// ==========================================
// TICKET CATEGORY CONFIGURATION (Hierarchy Levels)
// ==========================================
export const DEV_TICKET_CATEGORY_CONFIG: Record<
DevTicketCategory,
{
label: string;
icon: string;
color: string;
bgColor: string;
description: string;
level: number;
allowedParents: DevTicketCategory[];
}
> = {
EPIC: {
label: 'Epic',
icon: '🎯',
color: 'text-purple-700',
bgColor: 'bg-purple-100',
description: 'Large body of work representing a major initiative or plan',
level: 0,
allowedParents: []},
PHASE: {
label: 'Phase',
icon: '📦',
color: 'text-indigo-700',
bgColor: 'bg-indigo-100',
description: 'Major section or milestone within an epic',
level: 1,
allowedParents: ['EPIC']},
STORY: {
label: 'Story',
icon: '📖',
color: 'text-blue-700',
bgColor: 'bg-blue-100',
description: 'User-facing deliverable or feature',
level: 2,
allowedParents: ['EPIC', 'PHASE']},
TASK: {
label: 'Task',
icon: '✅',
color: 'text-green-700',
bgColor: 'bg-green-100',
description: 'Individual work item',
level: 3,
allowedParents: ['PHASE', 'STORY']},
SUBTASK: {
label: 'Subtask',
icon: '📌',
color: 'text-gray-600',
bgColor: 'bg-gray-100',
description: 'Granular piece of work within a task',
level: 4,
allowedParents: ['TASK']}};
// Category hierarchy rules for validation
export const CATEGORY_HIERARCHY_RULES: Record<DevTicketCategory, DevTicketCategory[]> = {
EPIC: [], // Epics can only be root-level
PHASE: ['EPIC'], // Phases must be under Epics
STORY: ['EPIC', 'PHASE'], // Stories can be under Epics or Phases
TASK: ['PHASE', 'STORY'], // Tasks can be under Phases or Stories
SUBTASK: ['TASK'], // Subtasks must be under Tasks
};
// Max hierarchy depth
export const MAX_HIERARCHY_DEPTH = 5;
// ==========================================
// TICKET STATUS CONFIGURATION
// ==========================================
export const DEV_TICKET_STATUS_CONFIG: Record<
DevTicketStatus,
{
label: string;
color: string;
bgColor: string;
description: string;
order: number;
}
> = {
OPEN: {
label: 'Open',
color: 'text-blue-700',
bgColor: 'bg-blue-100',
description: 'Ticket is open and awaiting work',
order: 1},
IN_PROGRESS: {
label: 'In Progress',
color: 'text-yellow-700',
bgColor: 'bg-yellow-100',
description: 'Work is actively being done',
order: 2},
IN_REVIEW: {
label: 'In Review',
color: 'text-purple-700',
bgColor: 'bg-purple-100',
description: 'Code review or PR in progress',
order: 3},
TESTING: {
label: 'Testing',
color: 'text-cyan-700',
bgColor: 'bg-cyan-100',
description: 'Being tested or QA verified',
order: 4},
BLOCKED: {
label: 'Blocked',
color: 'text-red-700',
bgColor: 'bg-red-100',
description: 'Blocked by external dependency',
order: 5},
ON_HOLD: {
label: 'On Hold',
color: 'text-gray-600',
bgColor: 'bg-gray-100',
description: 'Paused intentionally',
order: 6},
COMPLETED: {
label: 'Completed',
color: 'text-green-700',
bgColor: 'bg-green-100',
description: 'Work is done and merged',
order: 7},
CANCELLED: {
label: 'Cancelled',
color: 'text-gray-500',
bgColor: 'bg-gray-50',
description: 'Ticket was cancelled',
order: 8},
WONT_FIX: {
label: "Won't Fix",
color: 'text-gray-500',
bgColor: 'bg-gray-50',
description: 'Decided not to address',
order: 9}};
// ==========================================
// TICKET PRIORITY CONFIGURATION
// ==========================================
export const DEV_TICKET_PRIORITY_CONFIG: Record<
DevTicketPriority,
{
label: string;
icon: string;
color: string;
bgColor: string;
order: number;
}
> = {
LOWEST: {
label: 'Lowest',
icon: '⬇️',
color: 'text-gray-500',
bgColor: 'bg-gray-50',
order: 1},
LOW: {
label: 'Low',
icon: '↓',
color: 'text-blue-500',
bgColor: 'bg-blue-50',
order: 2},
MEDIUM: {
label: 'Medium',
icon: '➡️',
color: 'text-yellow-600',
bgColor: 'bg-yellow-50',
order: 3},
HIGH: {
label: 'High',
icon: '↑',
color: 'text-orange-600',
bgColor: 'bg-orange-50',
order: 4},
HIGHEST: {
label: 'Highest',
icon: '⬆️',
color: 'text-red-600',
bgColor: 'bg-red-50',
order: 5},
CRITICAL: {
label: 'Critical',
icon: '🔥',
color: 'text-red-700',
bgColor: 'bg-red-100',
order: 6}};
// ==========================================
// TICKET SEVERITY CONFIGURATION
// ==========================================
export const DEV_TICKET_SEVERITY_CONFIG: Record<
DevTicketSeverity,
{
label: string;
icon: string;
color: string;
bgColor: string;
description: string;
order: number;
}
> = {
COSMETIC: {
label: 'Cosmetic',
icon: '💅',
color: 'text-gray-500',
bgColor: 'bg-gray-50',
description: 'Minor visual issues',
order: 1},
MINOR: {
label: 'Minor',
icon: '🔹',
color: 'text-blue-500',
bgColor: 'bg-blue-50',
description: 'Small bugs, workarounds exist',
order: 2},
MAJOR: {
label: 'Major',
icon: '🔶',
color: 'text-orange-600',
bgColor: 'bg-orange-50',
description: 'Significant impact, no workaround',
order: 3},
CRITICAL: {
label: 'Critical',
icon: '🔴',
color: 'text-red-600',
bgColor: 'bg-red-100',
description: 'System unusable, data loss risk',
order: 4},
BLOCKER: {
label: 'Blocker',
icon: '🚫',
color: 'text-red-700',
bgColor: 'bg-red-200',
description: 'Completely blocks release/progress',
order: 5}};
// ==========================================
// MILESTONE STATUS CONFIGURATION
// ==========================================
export const MILESTONE_STATUS_CONFIG: Record<
MilestoneStatus,
{
label: string;
color: string;
bgColor: string;
}
> = {
OPEN: {
label: 'Open',
color: 'text-blue-700',
bgColor: 'bg-blue-100'},
IN_PROGRESS: {
label: 'In Progress',
color: 'text-yellow-700',
bgColor: 'bg-yellow-100'},
COMPLETED: {
label: 'Completed',
color: 'text-green-700',
bgColor: 'bg-green-100'},
CANCELLED: {
label: 'Cancelled',
color: 'text-gray-500',
bgColor: 'bg-gray-100'}};
// ==========================================
// SPRINT STATUS CONFIGURATION
// ==========================================
export const SPRINT_STATUS_CONFIG: Record<
SprintStatus,
{
label: string;
color: string;
bgColor: string;
}
> = {
PLANNING: {
label: 'Planning',
color: 'text-purple-700',
bgColor: 'bg-purple-100'},
ACTIVE: {
label: 'Active',
color: 'text-green-700',
bgColor: 'bg-green-100'},
COMPLETED: {
label: 'Completed',
color: 'text-gray-600',
bgColor: 'bg-gray-100'},
CANCELLED: {
label: 'Cancelled',
color: 'text-gray-500',
bgColor: 'bg-gray-50'}};
// ==========================================
// TICKET LINK TYPE CONFIGURATION
// ==========================================
export const TICKET_LINK_TYPE_CONFIG: Record<
TicketLinkType,
{
label: string;
inverseLabel: string;
description: string;
}
> = {
BLOCKS: {
label: 'blocks',
inverseLabel: 'is blocked by',
description: 'This ticket blocks the linked ticket'},
BLOCKED_BY: {
label: 'is blocked by',
inverseLabel: 'blocks',
description: 'This ticket is blocked by the linked ticket'},
RELATES_TO: {
label: 'relates to',
inverseLabel: 'relates to',
description: 'Tickets are related'},
DUPLICATES: {
label: 'duplicates',
inverseLabel: 'is duplicated by',
description: 'This ticket duplicates the linked ticket'},
DUPLICATED_BY: {
label: 'is duplicated by',
inverseLabel: 'duplicates',
description: 'This ticket is duplicated by the linked ticket'},
PARENT_OF: {
label: 'is parent of',
inverseLabel: 'is child of',
description: 'This ticket is a parent of the linked ticket'},
CHILD_OF: {
label: 'is child of',
inverseLabel: 'is parent of',
description: 'This ticket is a child of the linked ticket'}};
// ==========================================
// STATUS TRANSITIONS
// ==========================================
export const DEV_TICKET_STATUS_TRANSITIONS: Record<DevTicketStatus, DevTicketStatus[]> = {
OPEN: ['IN_PROGRESS', 'BLOCKED', 'ON_HOLD', 'CANCELLED', 'WONT_FIX'],
IN_PROGRESS: ['OPEN', 'IN_REVIEW', 'TESTING', 'BLOCKED', 'ON_HOLD', 'COMPLETED', 'CANCELLED'],
IN_REVIEW: ['IN_PROGRESS', 'TESTING', 'BLOCKED', 'COMPLETED', 'CANCELLED'],
TESTING: ['IN_PROGRESS', 'IN_REVIEW', 'BLOCKED', 'COMPLETED', 'CANCELLED'],
BLOCKED: ['OPEN', 'IN_PROGRESS', 'ON_HOLD', 'CANCELLED'],
ON_HOLD: ['OPEN', 'IN_PROGRESS', 'CANCELLED'],
COMPLETED: ['IN_PROGRESS', 'IN_REVIEW'], // Allow reopening
CANCELLED: ['OPEN'], // Allow reopening
WONT_FIX: ['OPEN'], // Allow reopening
};
// ==========================================
// PAGINATION DEFAULTS
// ==========================================
export const DEV_TICKET_PAGINATION = {
defaultLimit: 20,
maxLimit: 100};
// ==========================================
// STORY POINT OPTIONS
// ==========================================
export const STORY_POINT_OPTIONS = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89];
// ==========================================
// DEFAULT PROJECT COLORS
// ==========================================
export const PROJECT_COLOR_OPTIONS = [
'#6366f1', // Indigo
'#8b5cf6', // Violet
'#ec4899', // Pink
'#ef4444', // Red
'#f97316', // Orange
'#eab308', // Yellow
'#22c55e', // Green
'#14b8a6', // Teal
'#06b6d4', // Cyan
'#3b82f6', // Blue
'#6b7280', // Gray
];
// ==========================================
// LABEL COLOR OPTIONS
// ==========================================
export const LABEL_COLOR_OPTIONS = [
{ value: '#ef4444', label: 'Red' },
{ value: '#f97316', label: 'Orange' },
{ value: '#eab308', label: 'Yellow' },
{ value: '#22c55e', label: 'Green' },
{ value: '#14b8a6', label: 'Teal' },
{ value: '#06b6d4', label: 'Cyan' },
{ value: '#3b82f6', label: 'Blue' },
{ value: '#6366f1', label: 'Indigo' },
{ value: '#8b5cf6', label: 'Violet' },
{ value: '#ec4899', label: 'Pink' },
{ value: '#6b7280', label: 'Gray' },
];
// ==========================================
// BULK ACTION LABELS
// ==========================================
export const BULK_ACTION_LABELS = {
assign: 'Assign to',
change_status: 'Change Status',
change_priority: 'Change Priority',
change_category: 'Change Category',
change_parent: 'Move to Parent',
change_project: 'Move to Project',
change_milestone: 'Set Milestone',
change_sprint: 'Add to Sprint',
add_labels: 'Add Labels',
remove_labels: 'Remove Labels',
delete: 'Delete'};
// ==========================================
// HISTORY ACTION LABELS
// ==========================================
export const HISTORY_ACTION_LABELS: Record<string, string> = {
created: 'created the ticket',
status_changed: 'changed status',
priority_changed: 'changed priority',
severity_changed: 'changed severity',
type_changed: 'changed type',
category_changed: 'changed category',
parent_changed: 'moved to parent',
objectives_changed: 'updated objectives',
definition_of_done_changed: 'updated definition of done',
assigned: 'assigned',
unassigned: 'removed assignee',
project_changed: 'moved to project',
milestone_changed: 'set milestone',
sprint_changed: 'added to sprint',
labels_added: 'added labels',
labels_removed: 'removed labels',
title_changed: 'updated title',
description_changed: 'updated description',
due_date_changed: 'changed due date',
estimate_changed: 'updated estimate',
linked: 'linked ticket',
unlinked: 'unlinked ticket',
comment_added: 'added a comment',
attachment_added: 'added an attachment',
time_logged: 'logged time'};
|