diff --git a/ui/src/App.tsx b/ui/src/App.tsx index 7c941d2615..1011501dfe 100644 --- a/ui/src/App.tsx +++ b/ui/src/App.tsx @@ -269,8 +269,10 @@ function boardRoutes() { } /> } /> - } /> - } /> + } /> + } /> + } /> + } /> } /> } /> } /> @@ -298,6 +300,11 @@ function InboxRootRedirect() { return ; } +function LegacyTrainingRedirect() { + const { id } = useParams<{ id: string }>(); + return ; +} + function LegacySkillStudioRedirect() { const location = useLocation(); const { companies, selectedCompany, loading } = useCompany(); diff --git a/ui/src/components/DecisionTrainingDrawer.tsx b/ui/src/components/DecisionTrainingDrawer.tsx index 5b5c436290..7e31f83b1e 100644 --- a/ui/src/components/DecisionTrainingDrawer.tsx +++ b/ui/src/components/DecisionTrainingDrawer.tsx @@ -18,7 +18,7 @@ import { Link } from "@/lib/router"; import { decisionTrainingApi, type DecisionTrainingTarget } from "../api/decisionTraining"; import { useToastActions } from "../context/ToastContext"; import { queryKeys } from "../lib/queryKeys"; -import { codeResolutionLabel, trainingTargetForItem } from "../lib/decisionTraining"; +import { codeResolutionLabel, decisionTrainingHref, trainingTargetForItem } from "../lib/decisionTraining"; import { relativeTime } from "../lib/utils"; import { Button } from "./ui/button"; import { Textarea } from "./ui/textarea"; @@ -385,7 +385,7 @@ function SavedState({

{decisionTitle(example)}

{issueIdentifier} · {outcomeLabel(example.decisionOutcome)} · cutoff {formatDateTime(example.cutoffAt)}

+

{decisionTitle(example)}

{issueIdentifier} · {outcomeLabel(example.decisionOutcome)} · cutoff {formatDateTime(example.cutoffAt)}

Training notes

Last edited {formatDateTime(example.updatedAt)} · edits are versioned

{!editing ? : null}
{editing ?