fix(ui): make all Jira and time panels read-only everywhere

WorklogTimeline: add readOnly prop — hides 'Log Time' button and form.
TestPhaseTimeline: remove 'Sync to Tempo' button from TempoSyncBadge;
  only displays the green 'Tempo' badge when already synced. Cleans up
  unused imports (useState, useMutation, useQueryClient, syncTestToTempo).
CampaignDetailPage: JiraLinkPanel and WorklogTimeline both now rendered
  with readOnly=true; JiraLinkPanel receives campaign name as label.

Jira tickets and time worklogs are created automatically by the system
(campaign activation, test workflow) — no manual editing from detail pages.
This commit is contained in:
kitos
2026-05-29 11:33:55 +02:00
parent 069728a010
commit 6a4a153d59
3 changed files with 36 additions and 98 deletions
+3 -3
View File
@@ -629,10 +629,10 @@ export default function CampaignDetailPage() {
)}
</div>
{/* Jira & Worklogs */}
{/* Jira & Worklogs — read-only, automatically managed */}
<div className="grid gap-6 lg:grid-cols-2">
<JiraLinkPanel entityType="campaign" entityId={campaignId!} />
<WorklogTimeline entityType="campaign" entityId={campaignId!} />
<JiraLinkPanel entityType="campaign" entityId={campaignId!} readOnly label={campaign.name} />
<WorklogTimeline entityType="campaign" entityId={campaignId!} readOnly />
</div>
{/* Add Test to Campaign Modal */}