Ticketstatus: statusTone fuer die neuen Badge-Toene
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3179b9cb41
commit
bb110a734e
2 files changed
+27
No files matched your search
@@ -49,6 +49,19 @@ export function statusGroup(status) {
|
||||
return STATUS_GROUPS.find((group) => group.values.includes(status))?.id || null
|
||||
}
|
||||
|
||||
const GROUP_TONE = {
|
||||
open: '',
|
||||
working: 'blue',
|
||||
waiting: 'orange',
|
||||
review: 'violet',
|
||||
done: 'green',
|
||||
cancelled: 'plain',
|
||||
}
|
||||
|
||||
export function statusTone(status) {
|
||||
return GROUP_TONE[statusGroup(status)] || ''
|
||||
}
|
||||
|
||||
export function statusValuesFor(groupIds) {
|
||||
return STATUS_GROUPS.filter((group) => groupIds.includes(group.id)).flatMap((group) => group.values)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user