fix(issues): allow priority+status change for assignees, dynamic owner transitions, kanban droppable columns; feat(persoenliche-ausruestung): configurable zustand
This commit is contained in:
@@ -52,7 +52,9 @@ function PersoenlicheAusruestungWidget() {
|
||||
<ListItem key={item.id} disablePadding sx={{ py: 0.5 }}>
|
||||
<ListItemText
|
||||
primary={item.bezeichnung}
|
||||
secondary={item.artikel_kategorie_name ?? item.kategorie ?? undefined}
|
||||
secondary={item.artikel_kategorie_parent_name
|
||||
? `${item.artikel_kategorie_parent_name} > ${item.artikel_kategorie_name}`
|
||||
: item.artikel_kategorie_name ?? item.kategorie ?? undefined}
|
||||
primaryTypographyProps={{ variant: 'body2', noWrap: true }}
|
||||
secondaryTypographyProps={{ variant: 'caption' }}
|
||||
/>
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
useSensor,
|
||||
useSensors,
|
||||
closestCorners,
|
||||
useDroppable,
|
||||
} from '@dnd-kit/core';
|
||||
import type { DragStartEvent, DragEndEvent } from '@dnd-kit/core';
|
||||
import {
|
||||
@@ -163,18 +164,21 @@ function KanbanColumn({
|
||||
onClick: (id: number) => void;
|
||||
}) {
|
||||
const chipColor = MUI_THEME_COLORS[statusDef.farbe] ?? statusDef.farbe ?? '#9e9e9e';
|
||||
const { setNodeRef, isOver } = useDroppable({ id: statusDef.schluessel });
|
||||
|
||||
return (
|
||||
<Box
|
||||
ref={setNodeRef}
|
||||
sx={{
|
||||
minWidth: 260,
|
||||
maxWidth: 320,
|
||||
flex: '1 1 260px',
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
bgcolor: 'background.default',
|
||||
bgcolor: isOver ? 'action.hover' : 'background.default',
|
||||
borderRadius: 1,
|
||||
overflow: 'hidden',
|
||||
transition: 'background-color 0.15s',
|
||||
}}
|
||||
>
|
||||
{/* Column header */}
|
||||
|
||||
Reference in New Issue
Block a user