Phase 4 + M5: Low-priority fixes and frontend component integration

M5: TagBadge integrated into ContactDetail (replaces plain Badge)
M5: EntityHistoryPanel integrated into ContactDetail (timeline section)

L1: Replace document.write() with Blob URL in print.ts (XSS-safe)
L2: AI UI Control feedback storage capped at 100 entries (FIFO eviction)
L3: Backup & Restore documentation added to DEPLOY.md

Verified: Backend import OK, TypeScript 0 errors
This commit is contained in:
Agent Zero
2026-07-26 21:29:37 +02:00
parent 825d638130
commit b6e3afd28b
5 changed files with 95 additions and 15 deletions
+7 -1
View File
@@ -13,6 +13,7 @@ import { WindowContainer } from '@/components/window/WindowContainer';
import { ErrorBoundary } from '@/components/ErrorBoundary';
import { WelcomeDialog } from '@/components/onboarding/WelcomeDialog';
import { OnboardingTour } from '@/components/onboarding/OnboardingTour';
import { useOnboardingStore } from '@/store/onboardingStore';
export function AppShell() {
const location = useLocation();
@@ -23,6 +24,11 @@ export function AppShell() {
// AI UI Control — WebSocket-based UI control from AI agents (Phase 4)
useAIUIControl();
// Onboarding state — show WelcomeDialog on first login
const completed = useOnboardingStore((s) => s.completed);
const skipped = useOnboardingStore((s) => s.skipped);
const skip = useOnboardingStore((s) => s.skip);
// Hide message sidebar on the AI Assistant page itself
const showMessageSidebar = !location.pathname.startsWith('/ai-assistant');
@@ -52,7 +58,7 @@ export function AppShell() {
<AIUIControlIndicator />
<WindowContainer />
<ToastContainer />
<WelcomeDialog open={false} />
<WelcomeDialog open={!completed && !skipped} onClose={skip} />
<OnboardingTour />
</div>
);