feat(tests): remove Time Log, move Tempo sync to Phase Timeline

- Remove WorklogTimeline (manual time log) from test detail page
- TestPhaseTimeline now accepts testId, fetches its own worklogs,
  and shows Tempo sync status on the Red Team Execution row:
    • green badge if already synced (with worklog ID tooltip)
    • 'Sync to Tempo' button (blue) if not yet synced
- Add POST /tests/{id}/sync-tempo backend endpoint for manual sync:
  finds unsynced red_team_execution worklogs and pushes them to Tempo
This commit is contained in:
kitos
2026-05-28 14:09:16 +02:00
parent 1a974265de
commit 8b48716766
5 changed files with 214 additions and 34 deletions
+2 -6
View File
@@ -28,7 +28,6 @@ import TeamTabs from "../components/test-detail/TeamTabs";
import ValidationModal from "../components/test-detail/ValidationModal";
import ConfirmDialog from "../components/ConfirmDialog";
import JiraLinkPanel from "../components/JiraLinkPanel";
import WorklogTimeline from "../components/WorklogTimeline";
import TestPhaseTimeline from "../components/TestPhaseTimeline";
// ── Page Component ─────────────────────────────────────────────────
@@ -541,11 +540,8 @@ export default function TestDetailPage() {
{/* Jira Integration */}
<JiraLinkPanel entityType="test" entityId={testId!} />
{/* Phase Timeline (read-only, derived from test timestamps) */}
<TestPhaseTimeline test={test} />
{/* Time Tracking (manual worklogs) */}
<WorklogTimeline entityType="test" entityId={testId!} />
{/* Phase Timeline (read-only, with Tempo sync) */}
<TestPhaseTimeline test={test} testId={testId} />
</div>
</div>