Frag das Portal als schwebende Blase, Suchliste im Bild (0.65.0)
All checks were successful
CI / PHP 8.3 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:10.6 (pull_request) Has been skipped
CI / PHP 8.3 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.4 / mariadb:11.4 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.0 (pull_request) Has been skipped
CI / PHP 8.3 / mysql:8.4 (pull_request) Has been skipped
CI / PHP 8.4 / mysql:8.4 (pull_request) Has been skipped
CI / Browser-Tests (pull_request) Successful in 14m21s
CI / PHP 8.3 / mysql:8.4-1 (pull_request) Successful in 19m7s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 5m20s
CI / Build-Artefakte aktuell (pull_request) Successful in 5m46s

- AskBubble unten rechts (abschaltbar), Gespräch bleibt beim Seitenwechsel
- Antwortanzeige als gemeinsame Komponente AskAnswer
- Trefferliste der Kopfzeilen-Suche in der App-Oberfläche linksbündig
- CI: optionale Kern-Plugins für Browser-Tests einschalten, Suchtest mit Demo-Inhalt

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-10-07 19:02:18 +00:00
parent 55c1d85ed7
commit 4d58364104
192 changed files with 717 additions and 507 deletions

View file

@ -38,6 +38,12 @@ class AskPortal
return (bool) $this->settings->get('ask.enabled', false) && $this->ai->available();
}
/** Schwebende Blase unten rechts auf allen Seiten (in der Verwaltung abschaltbar) */
public function showsBubble(): bool
{
return (bool) $this->settings->get('ask.bubble', true);
}
/**
* @return array{answer: string, found: bool, sources: list<array{n: int, title: string, url: string, label: string, meta: ?string}>, suggestions: list<array{title: string, url: string, label: string}>}
*/

View file

@ -52,6 +52,11 @@ class AskSettings extends Page
Notification::make()->success()->title($enabled ? '„Frag das Portal“ ist eingeschaltet' : '„Frag das Portal“ ist ausgeschaltet')->send();
}
public function toggleBubble(Settings $settings): void
{
$settings->set('ask.bubble', ! (bool) $settings->get('ask.bubble', true));
}
public function setDays(int $days): void
{
$this->days = in_array($days, [7, 30, 90, 365], true) ? $days : 90;
@ -76,6 +81,7 @@ class AskSettings extends Page
return [
'enabled' => (bool) app(Settings::class)->get('ask.enabled', false),
'bubble' => (bool) app(Settings::class)->get('ask.bubble', true),
'aiReady' => $ai->available(),
'provider' => AiAssistant::PROVIDERS[$ai->provider()],
'external' => $ai->isExternal(),

View file

@ -59,7 +59,7 @@ class HandleInertiaRequests extends Middleware
// Schnellzugriffe für „Anwendungen“ in der Kopfzeile (je Person gefiltert)
'apps' => fn () => $user ? app(QuickLinks::class)->forUser($user) : [],
// „Frag das Portal“ eingeschaltet (KI eingerichtet)?
'ask' => fn () => $user && app(AskPortal::class)->enabled(),
'ask' => fn () => $user && app(AskPortal::class)->enabled() ? ['bubble' => app(AskPortal::class)->showsBubble()] : false,
'impersonation' => fn () => $user && app(Impersonation::class)->active() ? ['name' => $user->name, 'by' => app(Impersonation::class)->impersonator()?->name] : null,
'notifications' => fn () => $user ? ['unread' => $user->unreadNotifications()->count()] : null,
// Web-Push: öffentlicher Schlüssel für dieses Portal

View file

@ -9,5 +9,5 @@ namespace App;
*/
final class Version
{
public const VERSION = '0.64.0';
public const VERSION = '0.65.0';
}