Nenne im Stand-Chip die Fassung, die die Bibliothek zeigt.
Zeigt die Mitgliederbibliothek eine ältere Fassung, stand „In der Mitgliederbibliothek“ neben „Fassung 2“ und las sich, als wäre Fassung 2 sichtbar. Der Chip heißt dann nur „Bibliothek zeigt Fassung 1“ (Arbeitsplatz- karten und Register „Fassungen und Verwendung“). Das Menü im Detailbereich des Aufbaus trägt einen eigenen zugänglichen Namen, damit es sich vom Seitenmenü „Weitere Aktionen“ unterscheidet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
105d27f9c9
commit
60f5b8e6c0
3 files changed
+13
-8
No files matched your search
@@ -761,13 +761,13 @@ public function statusChips(Composition $composition, bool $offered): array
|
|||||||
$chips[] = ['label' => 'Entwurf offen', 'tone' => 'yellow'];
|
$chips[] = ['label' => 'Entwurf offen', 'tone' => 'yellow'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$chips[] = $stand['released_number'] !== null
|
// Zeigt die Bibliothek eine ältere Fassung, nennt der Chip sie; „In der Mitgliederbibliothek“ neben
|
||||||
? ['label' => 'In der Mitgliederbibliothek', 'tone' => 'pine']
|
// „Fassung 2“ läse sich sonst, als wäre Fassung 2 sichtbar.
|
||||||
: ['label' => 'Nicht in der Mitgliederbibliothek', 'tone' => 'quiet'];
|
$chips[] = match (true) {
|
||||||
|
$stand['released_number'] === null => ['label' => 'Nicht in der Mitgliederbibliothek', 'tone' => 'quiet'],
|
||||||
if ($stand['released_number'] !== null && $stand['released_number'] !== $stand['number']) {
|
$stand['released_number'] === $stand['number'] => ['label' => 'In der Mitgliederbibliothek', 'tone' => 'pine'],
|
||||||
$chips[] = ['label' => 'Bibliothek zeigt Fassung '.$stand['released_number'], 'tone' => 'pine'];
|
default => ['label' => 'Bibliothek zeigt Fassung '.$stand['released_number'], 'tone' => 'pine'],
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
$chips[] = ['label' => 'Nicht auf der Website', 'tone' => 'quiet'];
|
$chips[] = ['label' => 'Nicht auf der Website', 'tone' => 'quiet'];
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
<p class="vw-kopf-typ">Verwendung {{ $ort }} „{{ trim($this->displayTitle) !== '' ? $this->displayTitle : $this->designation }}“ · Stelle {{ $auswahl + 1 }}</p>
|
<p class="vw-kopf-typ">Verwendung {{ $ort }} „{{ trim($this->displayTitle) !== '' ? $this->displayTitle : $this->designation }}“ · Stelle {{ $auswahl + 1 }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="vw-mehr" x-data="{ offen: false }" x-on:keydown.escape.stop="offen = false; $refs.knopf.focus()" x-on:click.outside="offen = false">
|
<div class="vw-mehr" x-data="{ offen: false }" x-on:keydown.escape.stop="offen = false; $refs.knopf.focus()" x-on:click.outside="offen = false">
|
||||||
<button type="button" class="vw-btn" x-ref="knopf" x-on:click="offen = ! offen" x-bind:aria-expanded="offen" aria-haspopup="true">Weitere Aktionen @include('filament.verwaltung.icon', ['name' => 'runter'])</button>
|
<button type="button" class="vw-btn" x-ref="knopf" x-on:click="offen = ! offen" x-bind:aria-expanded="offen" aria-haspopup="true" aria-label="Weitere Aktionen für {{ $gewaehlt['title'] }} an dieser Stelle">Weitere Aktionen @include('filament.verwaltung.icon', ['name' => 'runter'])</button>
|
||||||
<div class="vw-mehr-menue" x-show="offen" x-cloak>
|
<div class="vw-mehr-menue" x-show="offen" x-cloak>
|
||||||
@if (! empty($gewaehlt['open_url']))
|
@if (! empty($gewaehlt['open_url']))
|
||||||
<a href="{{ $gewaehlt['open_url'] }}" target="_blank" rel="noopener" x-on:click="offen = false"><span>Inhaltsvorschau in neuem Tab</span></a>
|
<a href="{{ $gewaehlt['open_url'] }}" target="_blank" rel="noopener" x-on:click="offen = false"><span>Inhaltsvorschau in neuem Tab</span></a>
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
use App\Filament\Resources\Exercises\Pages\EditExercise;
|
use App\Filament\Resources\Exercises\Pages\EditExercise;
|
||||||
use App\Filament\Resources\LicenseArticles\LicenseArticleResource;
|
use App\Filament\Resources\LicenseArticles\LicenseArticleResource;
|
||||||
use App\Filament\Resources\LicenseArticles\Pages\ViewLicenseArticle;
|
use App\Filament\Resources\LicenseArticles\Pages\ViewLicenseArticle;
|
||||||
|
use App\Filament\Support\EditorialCatalog;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
use Filament\Facades\Filament;
|
use Filament\Facades\Filament;
|
||||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
@@ -242,6 +243,10 @@ public function test_the_library_note_names_the_version_members_actually_see():
|
|||||||
->call('showAufbauTab', 'verlauf')
|
->call('showAufbauTab', 'verlauf')
|
||||||
->assertSee('In der Mitgliederbibliothek ist Fassung 1 sichtbar, die neuere Fassung 2 noch nicht.')
|
->assertSee('In der Mitgliederbibliothek ist Fassung 1 sichtbar, die neuere Fassung 2 noch nicht.')
|
||||||
->assertDontSee('noch keine Fassung sichtbar');
|
->assertDontSee('noch keine Fassung sichtbar');
|
||||||
|
|
||||||
|
$labels = array_column(app(EditorialCatalog::class)->statusChips($module->fresh(), false), 'label');
|
||||||
|
$this->assertContains('Bibliothek zeigt Fassung 1', $labels);
|
||||||
|
$this->assertNotContains('In der Mitgliederbibliothek', $labels);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_an_expanded_module_stays_expanded_when_it_moves(): void
|
public function test_an_expanded_module_stays_expanded_when_it_moves(): void
|
||||||
|
|||||||
Reference in new issue
Block a user