Menüleiste am Handy, Updater in zwei Schritten, Absturzerkennung ohne Merkdateien (0.62.0)
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 11m34s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 12m8s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 15m14s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 15m47s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m48s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 14m15s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 16m38s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 17m2s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m16s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m53s
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 11m34s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 12m8s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 15m14s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 15m47s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m48s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 14m15s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 16m38s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 17m2s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m16s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m53s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
623d423ad8
commit
c275db4dce
147 changed files with 760 additions and 498 deletions
57
resources/js/components/nav/BottomNav.vue
Normal file
57
resources/js/components/nav/BottomNav.vue
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<script setup>
|
||||
import { computed } from 'vue';
|
||||
import { Link, usePage } from '@inertiajs/vue3';
|
||||
import { House, ListChecks, Menu, Search, Users } from '@lucide/vue';
|
||||
|
||||
// Untere Menüleiste der Mitarbeiter-App-Oberfläche am Handy – wie in der App:
|
||||
// die festen Ziele des Kerns, alles andere hinter „Mehr“ (das Hauptmenü).
|
||||
defineProps({ moreOpen: { type: Boolean, default: false } });
|
||||
const emit = defineEmits(['more']);
|
||||
|
||||
const page = usePage();
|
||||
const path = computed(() => page.url.split('?')[0]);
|
||||
|
||||
const items = [
|
||||
{ href: '/', label: 'Start', icon: House, match: (p) => p === '/' },
|
||||
{ href: '/aufgaben', label: 'Aufgaben', icon: ListChecks, match: (p) => p.startsWith('/aufgaben') },
|
||||
{ href: '/personen', label: 'Personen', icon: Users, match: (p) => p.startsWith('/personen') },
|
||||
{ href: '/suche', label: 'Suche', icon: Search, match: (p) => p.startsWith('/suche') },
|
||||
];
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<nav
|
||||
class="fixed inset-x-0 bottom-0 z-40 border-t bg-card/95 pb-[env(safe-area-inset-bottom,0px)] shadow-[0_-4px_16px_rgb(0_0_0/0.04)] backdrop-blur lg:hidden print:hidden"
|
||||
aria-label="Schnellnavigation"
|
||||
>
|
||||
<ul class="mx-auto grid h-16 max-w-xl grid-cols-5">
|
||||
<li v-for="item in items" :key="item.href">
|
||||
<Link
|
||||
:href="item.href"
|
||||
class="flex h-full flex-col items-center justify-center gap-1 text-[11px] font-medium"
|
||||
:class="item.match(path) && !moreOpen ? 'text-brand-text' : 'text-muted-foreground hover:text-foreground'"
|
||||
:aria-current="item.match(path) ? 'page' : undefined"
|
||||
>
|
||||
<span class="grid h-7 w-12 place-items-center rounded-pill transition-colors" :class="{ 'bg-brand-soft': item.match(path) && !moreOpen }">
|
||||
<component :is="item.icon" class="size-5" />
|
||||
</span>
|
||||
{{ item.label }}
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<button
|
||||
type="button"
|
||||
class="flex h-full w-full flex-col items-center justify-center gap-1 text-[11px] font-medium"
|
||||
:class="moreOpen ? 'text-brand-text' : 'text-muted-foreground hover:text-foreground'"
|
||||
:aria-expanded="moreOpen"
|
||||
@click="emit('more')"
|
||||
>
|
||||
<span class="grid h-7 w-12 place-items-center rounded-pill transition-colors" :class="{ 'bg-brand-soft': moreOpen }">
|
||||
<Menu class="size-5" />
|
||||
</span>
|
||||
Mehr
|
||||
</button>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</template>
|
||||
|
|
@ -19,6 +19,7 @@ import NotificationBell from '@/components/NotificationBell.vue';
|
|||
import AppLauncher from '@/components/apps/AppLauncher.vue';
|
||||
import PersonAvatar from '@/components/PersonAvatar.vue';
|
||||
import NavLink from '@/components/nav/NavLink.vue';
|
||||
import BottomNav from '@/components/nav/BottomNav.vue';
|
||||
import AppIcon from '@/components/AppIcon.vue';
|
||||
import GlobalSearchBox from '@/components/GlobalSearchBox.vue';
|
||||
import PageContent from '@/pagebuilder/PageContent.vue';
|
||||
|
|
@ -54,6 +55,8 @@ const isApp = computed(() => branding.value.interface === 'app');
|
|||
// In der App eingebettet: Kopf- und Fußzeile übernimmt die App
|
||||
const embedded = computed(() => !!page.props.embedded);
|
||||
const navigation = computed(() => page.props.navigation);
|
||||
// Mitarbeiter-App am Handy: untere Menüleiste statt Burger-Menü (nicht eingebettet und nur angemeldet)
|
||||
const bottomNav = computed(() => isApp.value && !embedded.value && !!user.value);
|
||||
|
||||
// Was nicht in die Kopfzeile passt, kommt unter „Mehr“. Gemessen wird an einer
|
||||
// unsichtbaren Kopie der Menüpunkte – so passt es bei jeder Breite und Beschriftung.
|
||||
|
|
@ -126,7 +129,8 @@ const themeOptions = [
|
|||
<!-- Administration sieht das Portal als andere Person -->
|
||||
<div
|
||||
v-if="page.props.impersonation"
|
||||
class="fixed bottom-4 left-1/2 z-[60] flex max-w-[calc(100vw-2rem)] -translate-x-1/2 items-center gap-3 rounded-pill bg-amber-400 py-2 pr-2 pl-4 text-[13px] font-medium text-amber-950 shadow-lg"
|
||||
class="fixed left-1/2 z-[60] flex max-w-[calc(100vw-2rem)] -translate-x-1/2 items-center gap-3 rounded-pill bg-amber-400 py-2 pr-2 pl-4 text-[13px] font-medium text-amber-950 shadow-lg"
|
||||
:class="bottomNav ? 'bottom-20 lg:bottom-4' : 'bottom-4'"
|
||||
role="status"
|
||||
>
|
||||
<span class="min-w-0 truncate">Angemeldet als <strong>{{ page.props.impersonation.name }}</strong></span>
|
||||
|
|
@ -148,7 +152,7 @@ const themeOptions = [
|
|||
<Sheet v-model:open="mobileNavOpen">
|
||||
<SheetTrigger
|
||||
class="-ml-2 flex h-10 min-w-10 items-center justify-center gap-2 rounded-md text-foreground/80 hover:bg-accent"
|
||||
:class="burgerOnDesktop ? 'lg:px-3 lg:text-sm lg:font-medium' : 'lg:hidden'"
|
||||
:class="[burgerOnDesktop ? 'lg:px-3 lg:text-sm lg:font-medium' : 'lg:hidden', { 'max-lg:hidden': bottomNav }]"
|
||||
aria-label="Menü öffnen"
|
||||
>
|
||||
<Menu class="size-5" /><span v-if="burgerOnDesktop" class="hidden lg:inline">Menü</span>
|
||||
|
|
@ -272,7 +276,7 @@ const themeOptions = [
|
|||
<div class="ml-auto flex shrink-0 items-center gap-1">
|
||||
<GlobalSearchBox v-if="!isApp" :initial="searchQuery" class="mr-2 hidden w-64 md:block xl:w-80" />
|
||||
|
||||
<Link href="/suche" class="grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden" aria-label="Portal durchsuchen">
|
||||
<Link href="/suche" class="grid size-10 place-items-center rounded-md text-foreground/70 hover:bg-accent hover:text-foreground md:hidden" :class="{ hidden: bottomNav }" aria-label="Portal durchsuchen">
|
||||
<Search class="size-5" />
|
||||
</Link>
|
||||
|
||||
|
|
@ -361,6 +365,11 @@ const themeOptions = [
|
|||
</nav>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<template v-if="bottomNav">
|
||||
<div class="h-[calc(4rem+env(safe-area-inset-bottom,0px))] shrink-0 lg:hidden" aria-hidden="true" />
|
||||
<BottomNav :more-open="mobileNavOpen" @more="mobileNavOpen = !mobileNavOpen" />
|
||||
</template>
|
||||
</div>
|
||||
|
||||
<Toaster position="bottom-right" />
|
||||
|
|
|
|||
|
|
@ -241,7 +241,7 @@
|
|||
<div class="ih-progress" x-show="progress.pct >= 0"><div :style="`width: ${Math.max(progress.pct, 3)}%`"></div></div>
|
||||
<template x-if="progress.step === 'error'">
|
||||
<x-filament::callout color="danger" icon="heroicon-o-x-circle" heading="Aktualisierung fehlgeschlagen">
|
||||
<x-slot name="description"><span x-text="progress.text"></span> Die bisherige Version läuft weiter.</x-slot>
|
||||
<x-slot name="description"><span x-text="progress.text"></span><span x-show="!progress.text.startsWith('Die neue Version')"> Die bisherige Version läuft weiter.</span></x-slot>
|
||||
</x-filament::callout>
|
||||
</template>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue