feat(cookie): Pro-Cookie-Library-Abgleich (2287er OCD + 35er rich) + Panel
- analyze_cookies gleicht Cookies gegen BEIDE Libraries ab: compliance.cookie_library
(2287, OCD/CC0 — Kategorie/Retention) + 35er rich-DB (technical_necessity/reid/
schrems/eu_alternative). 5 Befund-Typen: tracker_as_necessary, missing_purpose,
excessive_lifetime (Art.5), third_country (Art.44), eu_alternative (kommerziell).
- Endpoint GET /snapshots/{id}/cookie-check (load_big_library batch + analyze).
- Frontend CookieLibraryPanel im Snapshot-Detail.
- Fix CookieResultView: Zweck nicht mehr auf 60 Zeichen gekuerzt; Rolle 'unknown'
als Strich statt 'Unbekannt'.
Tests: 7 backend + frontend vitest gruen.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -112,11 +112,19 @@ function VendorRow({ v }: { v: SnapshotVendor }) {
|
||||
</thead>
|
||||
<tbody>
|
||||
{cookies.map((c, i) => (
|
||||
<tr key={i} className="border-t border-gray-100">
|
||||
<td className="px-2 py-1 font-mono text-gray-700 break-all">{c.name}</td>
|
||||
<td className="px-2 py-1 text-gray-500">{ROLE_LABEL[c.functional_role || 'unknown'] || c.functional_role}</td>
|
||||
<td className="px-2 py-1 text-gray-500">{c.purpose ? c.purpose.slice(0, 60) : <span className="text-amber-600 italic">kein Zweck</span>}</td>
|
||||
<td className="px-2 py-1 text-gray-400">{c.expiry || '—'}</td>
|
||||
<tr key={i} className="border-t border-gray-100 align-top">
|
||||
<td className="px-2 py-1 font-mono text-gray-700 break-all w-40">{c.name}</td>
|
||||
<td className="px-2 py-1 text-gray-500 w-24">
|
||||
{c.functional_role && c.functional_role !== 'unknown'
|
||||
? (ROLE_LABEL[c.functional_role] || c.functional_role)
|
||||
: <span className="text-gray-300">—</span>}
|
||||
</td>
|
||||
<td className="px-2 py-1 text-gray-500 break-words">
|
||||
{c.purpose
|
||||
? c.purpose
|
||||
: <span className="text-amber-600 italic">kein Zweck</span>}
|
||||
</td>
|
||||
<td className="px-2 py-1 text-gray-400 w-24 whitespace-nowrap">{c.expiry || '—'}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user