User Panel: Phase-8-Abschluss, Titelbild/Lizenzen/Zeitzonen und KI-Pruef-Pipeline
Phase 8 (Rest) + Umbauten vom 10./11.06.: - Ein Titelbild pro PM (Cover 1280x580), SVG-Platzhalter-Set + Picker, PressReleaseCoverImage-Resolver - Lizenz-/Rechteformular nach "Lizenztyp Bildupload" (7 Lizenztypen, Personen-/Sachrechte-Status, bedingte Pflichtfelder, Risikohinweise) - Veroeffentlichungs-Box vereinfacht (Embargo aus der Form-UI entfernt), geplante Termine in Europe/Berlin (Speicherung UTC, DISPLAY_TIMEZONE) - Quota-Stub (users.press_release_quota) + monatlicher Reset-Command - Einreichungs-Modal einheitlich in Show/Create/Edit; Ghost-Buttons auf filled; PM-Editor-Layout responsive entkoppelt (.pr-editor-layout) KI-Pruef-Pipeline (Phasen 1-5 des Entwicklungsplans): - API-Haertung: status nicht mehr per API setzbar, eigene Submit-Route durch denselben Funnel (Blacklist, Quota, Status-Log) - Klassifikation Rot/Gelb/Gruen asynchron (Queue classification, OpenAI-Treiber + deterministischer Fallback), ki_audits-Audit-Log - Routing: Rot -> rejected + Mail, Gelb -> Review-Queue, Gruen -> Auto-Publish; Scheduler publiziert nur gruene faellige PMs - Content-Score 0-100 -> Stufe (Standard/Geprueft/Hochwertig) inkl. Editor-Panel und Badges; Re-Klassifikation/-Score bei Aenderung - Admin: KI-Badge + Filter, On-Demand-Pruefung mit Anbieter-Override Suite: 442 passed, 4 skipped. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
0efabaf446
commit
a000238ca8
141 changed files with 5922 additions and 1001 deletions
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use App\Enums\PressReleaseClassification;
|
||||
use App\Enums\PressReleaseContentTier;
|
||||
use App\Enums\PressReleaseStatus;
|
||||
use App\Models\Company;
|
||||
use App\Models\PressRelease;
|
||||
|
|
@ -152,3 +154,54 @@ test('admin list zeigt KEINE Sub-Zeilen wenn weder scheduled_at noch embargo_at'
|
|||
->assertDontSee('geplant ·')
|
||||
->assertDontSee('Embargo bis');
|
||||
});
|
||||
|
||||
test('admin list zeigt Content-Score-Stufe', function () {
|
||||
/** @var TestCase $this */
|
||||
$admin = makeAdminForIndexPhase8b();
|
||||
$this->actingAs($admin);
|
||||
|
||||
PressRelease::factory()->create([
|
||||
'status' => PressReleaseStatus::Published->value,
|
||||
'content_score' => 84,
|
||||
'content_tier' => PressReleaseContentTier::Hochwertig->value,
|
||||
]);
|
||||
|
||||
LivewireVolt::test('admin.press-releases.index')
|
||||
->assertSee('84 · Hochwertig');
|
||||
});
|
||||
|
||||
test('admin list zeigt KI-Klassifikations-Badge', function () {
|
||||
/** @var TestCase $this */
|
||||
$admin = makeAdminForIndexPhase8b();
|
||||
$this->actingAs($admin);
|
||||
|
||||
PressRelease::factory()->create([
|
||||
'status' => PressReleaseStatus::Review->value,
|
||||
'classification' => PressReleaseClassification::Yellow->value,
|
||||
]);
|
||||
|
||||
LivewireVolt::test('admin.press-releases.index')
|
||||
->assertSee('KI: Gelb');
|
||||
});
|
||||
|
||||
test('admin list filtert nach KI-Klassifikation', function () {
|
||||
/** @var TestCase $this */
|
||||
$admin = makeAdminForIndexPhase8b();
|
||||
$this->actingAs($admin);
|
||||
|
||||
$yellow = PressRelease::factory()->create([
|
||||
'status' => PressReleaseStatus::Review->value,
|
||||
'classification' => PressReleaseClassification::Yellow->value,
|
||||
'title' => 'Gelber Grenzfall',
|
||||
]);
|
||||
$green = PressRelease::factory()->create([
|
||||
'status' => PressReleaseStatus::Review->value,
|
||||
'classification' => PressReleaseClassification::Green->value,
|
||||
'title' => 'Grüne Mitteilung',
|
||||
]);
|
||||
|
||||
LivewireVolt::test('admin.press-releases.index')
|
||||
->set('classificationFilter', PressReleaseClassification::Yellow->value)
|
||||
->assertSee('Gelber Grenzfall')
|
||||
->assertDontSee('Grüne Mitteilung');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue