V2-Stand: UX-Dashboard, Personen v2, Starter-Paket und Dexie-Legacy entfernt.
Sichert den lokalen Entwicklungsstand nach Gitea: Nav/Dashboard, Personen-Excel/Archiv, Team-Setup, Assignment-Übergabe und C6/C7/T2. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
234f87d408
commit
d894c3c8e4
91 files changed
+7196
-2134
No files matched your search
@@ -24,6 +24,8 @@ export default function AssignmentEdit() {
|
||||
const [status, setStatus] = useState<'active' | 'done'>('active')
|
||||
const [instituteeIds, setInstituteeIds] = useState<number[]>([])
|
||||
const [instituteeEnrollments, setInstituteeEnrollments] = useState<Array<{ instituteeId: number; from?: string; to?: string }>>([])
|
||||
const [plannedStart, setPlannedStart] = useState('')
|
||||
const [plannedEnd, setPlannedEnd] = useState('')
|
||||
const [typeChanged, setTypeChanged] = useState(false)
|
||||
const [addInstituteeId, setAddInstituteeId] = useState(0)
|
||||
|
||||
@@ -48,6 +50,8 @@ export default function AssignmentEdit() {
|
||||
setStatus(a.status)
|
||||
setInstituteeIds(a.instituteeIds ?? [])
|
||||
setInstituteeEnrollments(a.instituteeEnrollments ?? [])
|
||||
setPlannedStart(a.plannedStart?.slice(0, 10) ?? '')
|
||||
setPlannedEnd(a.plannedEnd?.slice(0, 10) ?? '')
|
||||
}
|
||||
loadData()
|
||||
}, [assignmentId])
|
||||
@@ -63,6 +67,8 @@ export default function AssignmentEdit() {
|
||||
status,
|
||||
instituteeIds,
|
||||
instituteeEnrollments,
|
||||
plannedStart: plannedStart || undefined,
|
||||
plannedEnd: plannedEnd || undefined,
|
||||
})
|
||||
navigate(`/assignment/${assignmentId}`)
|
||||
}
|
||||
@@ -90,7 +96,7 @@ export default function AssignmentEdit() {
|
||||
)
|
||||
}
|
||||
|
||||
const availableConsultants = allConsultants.filter(c => !instituteeIds.includes(c.id!))
|
||||
const availableConsultants = allConsultants.filter(c => !instituteeIds.includes(c.id!) && !c.archivedAt)
|
||||
|
||||
if (!assignment) return <div className="text-center py-10 text-gray-400">Lädt…</div>
|
||||
|
||||
@@ -139,6 +145,26 @@ export default function AssignmentEdit() {
|
||||
onChange={e => setDescription(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
<div className="space-y-1">
|
||||
<label className="text-xs font-medium text-gray-500">Geplanter Beginn</label>
|
||||
<input
|
||||
type="date"
|
||||
className="w-full border border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-brand"
|
||||
value={plannedStart}
|
||||
onChange={e => setPlannedStart(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
<div className="space-y-1">
|
||||
<label className="text-xs font-medium text-gray-500">Geplantes Ende</label>
|
||||
<input
|
||||
type="date"
|
||||
className="w-full border border-gray-200 rounded-lg px-3 py-2 text-sm focus:outline-none focus:border-brand"
|
||||
value={plannedEnd}
|
||||
onChange={e => setPlannedEnd(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="space-y-1">
|
||||
<label className="text-xs font-medium text-gray-500">Assignment-Typ</label>
|
||||
<select
|
||||
|
||||
Reference in new issue
Block a user