Files
jobtrackingapp/.gsd/milestones/M001/slices/S02/tasks/T02-SUMMARY.md
T

2.4 KiB

title, status, files, verification
title status files verification
T02 summary done
job-tracker-ui/src/components/JobDetailsDialog.tsx
job-tracker-ui/src/job-details-generated-drafts.test.tsx
CI=true npm --prefix job-tracker-ui test -- --watch=false --runTestsByPath src/job-details-generated-drafts.test.tsx
$HOME/.dotnet/dotnet build JobTrackerApi/JobTrackerApi.csproj
docker run --rm -v "$PWD":/src -w /src mcr.microsoft.com/dotnet/sdk:9.0 bash -lc '...dotnet test /tmp/apptests/AppPkgTests.csproj...'

Turned the Tailored CV tab into a real package workspace instead of a one-shot draft preview.

What changed:

  • job-tracker-ui/src/components/JobDetailsDialog.tsx
    • added package workspace state for cover letter, application answer, and recruiter message alongside the tailored CV
    • initialized that workspace from saved job material so reopening the dialog shows the last trusted copy, not just blank/generated state
    • generation now replaces the editable working copy for all package artifacts, not only the tailored CV
    • added package-level save flow that writes the tailored CV plus draft artifacts back to the job together
    • added explicit saved/generated/unsaved status chips so the user can tell what is persisted versus still in the working draft
    • added reset-to-saved behavior so the workspace can recover from unwanted edits
    • normalized application-answer persistence into a replaceable notes block instead of endlessly appending
  • job-tracker-ui/src/job-details-generated-drafts.test.tsx
    • expanded the focused dialog test to prove saved material loads into the workspace, generation replaces the working copy, edits can be saved, and the save payload reflects the coherent package state

Backend support tightened during T02:

  • JobTrackerApi/Controllers/JobApplicationsController.cs
    • SaveApplicationDrafts now replaces Notes when notes are provided, which makes the saved application-answer loop trustworthy instead of append-only
  • JobTrackerApi.Tests/JobApplicationsApplicationPackageTests.cs
    • added focused proof that notes replacement no longer appends indefinitely

Verification:

  • Frontend focused test passed: CI=true npm --prefix job-tracker-ui test -- --watch=false --runTestsByPath src/job-details-generated-drafts.test.tsx
  • Backend host build passed: $HOME/.dotnet/dotnet build JobTrackerApi/JobTrackerApi.csproj
  • Focused backend package tests passed in isolated Docker harness (2 passed)