Organigramm und Dokumente neu gestaltet
All checks were successful
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m30s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m34s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m45s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m35s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m42s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m7s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m15s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s
All checks were successful
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 2m30s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 2m34s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 2m41s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 2m45s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 3m35s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 3m42s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 3m7s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 3m15s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m8s
- Organigramm: grafischer Baum (Linien, Zoom, Verschieben) und Fokus-Ansicht mit Vorgesetzten, Team und direkt Unterstellten - Dokumente: Übersicht mit Bereichen und „Zuletzt aktualisiert“, sortierbare Dateiliste oder Kacheln (Wahl wird gemerkt) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
4fcc41ed30
commit
ab0384ceb1
99 changed files with 1292 additions and 443 deletions
|
|
@ -127,6 +127,22 @@ class DocumentsTest extends TestCase
|
|||
}
|
||||
}
|
||||
|
||||
public function test_overview_lists_areas_and_recent_documents(): void
|
||||
{
|
||||
$this->personal->update(['description' => 'Alles rund ums Personal']);
|
||||
$this->uploadTo($this->vertraege, [UploadedFile::fake()->create('Vertrag.pdf', 5)]);
|
||||
|
||||
$this->get('/dokumente')->assertInertia(fn (Assert $p) => $p
|
||||
->where('children.0.description', 'Alles rund ums Personal')
|
||||
->where('children.0.folders', 1)
|
||||
->where('children.0.documents', 0)
|
||||
->where('recent.0.title', 'Vertrag')
|
||||
->where('recent.0.folder_name', 'Verträge')
|
||||
->where('recent.0.updated_by', $this->hr->name));
|
||||
|
||||
$this->get("/dokumente/ordner/{$this->vertraege->id}")->assertInertia(fn (Assert $p) => $p->where('recent', [])->where('documents.0.folder_name', null));
|
||||
}
|
||||
|
||||
public function test_folders_can_only_be_deleted_when_empty(): void
|
||||
{
|
||||
$this->actingAs($this->hr)->delete("/dokumente/ordner/{$this->vertraege->id}")->assertRedirect(route('documents.folder', $this->personal));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue