From 7d764ce6bc7fa2279ccc7bc251a6c67d23e1b717 Mon Sep 17 00:00:00 2001 From: Webklar Deploy Date: Wed, 17 Jun 2026 10:54:28 +0000 Subject: [PATCH] chore: Debug-Instrumentierung aus TicketCard entfernt Co-authored-by: Cursor --- src/components/TicketCard.jsx | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/src/components/TicketCard.jsx b/src/components/TicketCard.jsx index a9e6b38..31eee58 100644 --- a/src/components/TicketCard.jsx +++ b/src/components/TicketCard.jsx @@ -44,37 +44,6 @@ export default function TicketCard({ ticket, onUpdate }) { const stop = (e) => e.stopPropagation() - // #region agent log - const logClip = (e, which) => { - try { - const root = e.currentTarget - const content = root.querySelector('.dropdown-content') - if (!content) return - requestAnimationFrame(() => { - const cr = content.getBoundingClientRect() - const clippers = [] - let el = content.parentElement - while (el && el !== document.body) { - const cs = getComputedStyle(el) - if (cs.overflowX !== 'visible' || cs.overflowY !== 'visible') { - const r = el.getBoundingClientRect() - clippers.push({ - cls: String(el.className || '').slice(0, 40), - ox: cs.overflowX, oy: cs.overflowY, - cutBottom: +(cr.bottom - r.bottom).toFixed(1), - cutRight: +(cr.right - r.right).toFixed(1), - cutTop: +(r.top - cr.top).toFixed(1), - cutLeft: +(r.left - cr.left).toFixed(1), - }) - } - el = el.parentElement - } - fetch('http://127.0.0.1:7284/ingest/0747da40-b90b-4354-9b84-c9b550a81ec9', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-Debug-Session-Id': '693b5f' }, body: JSON.stringify({ sessionId: '693b5f', runId: 'post-fix', hypothesisId: 'A', location: 'TicketCard.jsx:hoverClip', message: 'dropdown clip measure', data: { which, contentH: +cr.height.toFixed(1), clippers }, timestamp: Date.now() }) }).catch(() => {}) - }) - } catch { /* ignore */ } - } - // #endregion - const handleCreateWorksheet = async (worksheetData, currentUser) => { const result = await createWorksheet(worksheetData, currentUser) if (result.success && worksheetData.newStatus !== ticket.status) { @@ -109,7 +78,7 @@ export default function TicketCard({ ticket, onUpdate }) { -
logClip(e, 'side-status-prio')}> +
onUpdate(ticket.$id, { status: v })} />
@@ -122,7 +91,7 @@ export default function TicketCard({ ticket, onUpdate }) { {expanded && (
-
logClip(e, 'detail-editor-response')}> +
{ticket.startDate || format(createdAt, 'dd.MM.yyyy')} {ticket.deadline || '-'} {ticket.requestedBy && Angefragt von: {ticket.requestedBy}}