From c50cd17e792ae7d95b3ffb2458ec8201bf23ae60 Mon Sep 17 00:00:00 2001 From: li4nee Date: Sun, 29 Nov 2026 14:00:08 +0545 Subject: [PATCH 1/3] feat(ui): refine admin and docs experience Signed-off-by: li4nee --- .hallmark/.gitignore | 1 + DESIGN.md | 14 +- apps/admin/src/components/app-shell.tsx | 10 +- apps/admin/src/components/auth-card.tsx | 66 ++- apps/admin/src/components/ui/alert.tsx | 2 +- apps/admin/src/components/ui/dialog.tsx | 4 +- apps/admin/src/components/ui/table.tsx | 12 +- .../account/components/delete-account.tsx | 2 +- .../account/components/password-form.tsx | 6 +- .../account/components/profile-form.tsx | 2 +- .../auth/components/forgot-password-form.tsx | 16 +- .../features/auth/components/login-form.tsx | 16 +- .../auth/components/reset-password-form.tsx | 16 +- .../features/auth/components/signup-form.tsx | 16 +- .../bots/components/bot-appearance-form.tsx | 208 ++++---- .../bots/components/bot-behavior-form.tsx | 194 +++---- .../bots/components/bot-create-form.tsx | 6 +- .../bots/components/bot-general-form.tsx | 11 +- .../features/bots/components/bot-install.tsx | 9 +- .../bots/components/bot-instructions.tsx | 11 +- .../bots/components/bot-interactions-form.tsx | 14 +- .../bots/components/bot-model-form.tsx | 177 ++++--- .../features/bots/components/bots-list.tsx | 12 +- .../components/contact-sidebar.tsx | 6 +- .../components/conversation-detail.tsx | 4 +- .../components/conversation-list.tsx | 9 +- .../conversations/components/inbox.tsx | 6 +- .../components/reply-composer.tsx | 6 +- .../admin/src/features/eval/evaluate-page.tsx | 37 +- .../components/connect-integration-form.tsx | 2 +- .../components/provider-setup-guide.tsx | 6 +- .../knowledge/components/document-viewer.tsx | 14 +- .../knowledge/components/freshness-report.tsx | 20 +- .../knowledge/components/source-detail.tsx | 12 +- .../knowledge/components/sources-table.tsx | 6 +- .../components/suggestions-queue.tsx | 14 +- .../components/test-retrieval-panel.tsx | 80 +-- .../members/components/invitations-panel.tsx | 3 +- .../members/components/leave-workspace.tsx | 2 +- .../notifications/preferences-form.tsx | 6 +- .../playground/components/playground.tsx | 18 +- .../saved-replies/saved-replies-panel.tsx | 4 +- .../features/tools/components/bot-tools.tsx | 38 +- .../usage/components/feedback-report.tsx | 2 +- .../components/knowledge-gaps-report.tsx | 6 +- .../usage/components/outcomes-report.tsx | 2 +- .../usage/components/unanswered-report.tsx | 2 +- .../features/usage/components/usage-chart.tsx | 2 +- .../usage/components/usage-report.tsx | 4 +- .../usage/components/usage-totals.tsx | 4 +- .../components/general-settings.tsx | 5 +- apps/admin/src/routes/__root.tsx | 4 +- apps/admin/src/routes/_app/account/index.tsx | 4 +- .../src/routes/_app/account/sessions.tsx | 4 +- apps/admin/src/routes/_app/instance.tsx | 4 +- apps/admin/src/routes/_app/new-workspace.tsx | 4 +- .../bots/$botId/knowledge/index.tsx | 6 +- .../_app/w/$workspaceId/bots/$botId/route.tsx | 57 ++- .../routes/_app/w/$workspaceId/bots/new.tsx | 2 +- .../src/routes/_app/w/$workspaceId/index.tsx | 20 +- .../src/routes/_app/w/$workspaceId/route.tsx | 6 +- .../w/$workspaceId/settings/audit-log.tsx | 2 +- .../_app/w/$workspaceId/settings/members.tsx | 8 +- .../w/$workspaceId/settings/notifications.tsx | 3 - .../_app/w/$workspaceId/settings/route.tsx | 4 +- apps/admin/src/styles.css | 474 +++++++++++++++++- apps/admin/src/tokens.css | 8 +- .../content/docs/agent-assist-evaluation.md | 2 - .../src/content/docs/agent-productivity.md | 2 - apps/docs/src/content/docs/analytics.md | 2 - apps/docs/src/content/docs/architecture.md | 2 - apps/docs/src/content/docs/backups.md | 2 - apps/docs/src/content/docs/configuration.md | 2 - apps/docs/src/content/docs/data-handling.md | 2 - apps/docs/src/content/docs/faq.md | 4 +- apps/docs/src/content/docs/integrations.md | 2 - .../src/content/docs/integrations/hubspot.md | 2 - .../src/content/docs/integrations/intercom.md | 2 - .../content/docs/integrations/pipedrive.md | 2 - .../src/content/docs/knowledge-freshness.md | 2 - apps/docs/src/content/docs/licensing.md | 2 - .../src/content/docs/providers/anthropic.md | 2 - .../docs/src/content/docs/providers/gemini.md | 2 - apps/docs/src/content/docs/providers/groq.md | 2 - apps/docs/src/content/docs/providers/index.md | 2 - apps/docs/src/content/docs/providers/local.md | 2 - .../src/content/docs/providers/mistral.md | 2 - .../docs/src/content/docs/providers/ollama.md | 2 - .../docs/providers/openai-compatible.md | 2 - .../docs/src/content/docs/providers/openai.md | 2 - apps/docs/src/content/docs/security.md | 2 - .../src/content/docs/self-hosting/domains.md | 2 - .../src/content/docs/self-hosting/ollama.md | 2 - .../src/content/docs/self-hosting/scaling.md | 2 - apps/docs/src/content/docs/tool-calling.md | 2 - apps/docs/src/content/docs/troubleshooting.md | 2 - apps/docs/src/content/docs/upgrades.md | 2 - apps/docs/src/content/docs/widget.md | 2 - apps/docs/src/styles/custom.css | 381 ++++++++++++++ packages/widget/src/main/styles.css.ts | 96 ++-- packages/widget/src/main/ui/feedback.tsx | 28 +- packages/widget/src/main/ui/header.tsx | 13 +- packages/widget/src/main/ui/message-list.tsx | 10 +- packages/widget/src/main/ui/panel.tsx | 9 +- .../src/main/ui/welcome-interactions.spec.tsx | 6 +- .../src/main/ui/welcome-interactions.tsx | 28 +- 106 files changed, 1737 insertions(+), 653 deletions(-) diff --git a/.hallmark/.gitignore b/.hallmark/.gitignore index 35cbd5fd..408df846 100644 --- a/.hallmark/.gitignore +++ b/.hallmark/.gitignore @@ -3,3 +3,4 @@ before/ before.json before.txt compare.html +review/ diff --git a/DESIGN.md b/DESIGN.md index 64d518c7..8b433772 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -4,9 +4,9 @@ description: A support answer ledger for grounded AI and human handoffs. colors: charcoal: 'oklch(20% 0.008 150)' charcoal-rail: 'oklch(20% 0.008 150)' - silver-canvas: 'oklch(96.5% 0.004 260)' + silver-canvas: 'oklch(97% 0.004 260)' silver-surface: 'oklch(99% 0.002 260)' - silver-rule: 'oklch(85% 0.006 260)' + silver-rule: 'oklch(87% 0.006 260)' lime: 'oklch(84% 0.16 125)' lime-deep: 'oklch(53% 0.12 130)' warning: 'oklch(96% 0.018 90)' @@ -96,8 +96,9 @@ monospace for code, identifiers, and measurements. ## Layout The signed-in shell uses a charcoal product bar followed by a silver workspace navigation rail. -Keep the working area wide enough for conversation records and evidence, while settings forms use a -narrower readable measure. At small widths, keep workspace navigation reachable and reflow dense +The working container is capped at 1440px. Keep the working area wide enough for conversation +records and evidence, while settings forms use a narrower readable measure. At small widths, keep +workspace navigation reachable and reflow dense records into stacked cards before their values become too narrow to read. Settings subnavigation uses a two-column list so every destination stays visible without a hidden tab strip. Conversation rows prioritize the customer, current state, and latest message before secondary metadata. At wide @@ -147,8 +148,9 @@ surface fill behind long text. ### Authentication -- Signed-out forms use a charcoal title band and a silver content surface; the primary action carries the lime signal. -- Keep the form centered, single-column, and comfortable to use on narrow screens. +- Signed-out pages pair a charcoal product rail with a silver form surface; the rail collapses above + the form on mobile. The primary action carries the lime signal. +- Keep fields in one reading column, with generous spacing and a clear loading state for submission. ### Answer Ledger diff --git a/apps/admin/src/components/app-shell.tsx b/apps/admin/src/components/app-shell.tsx index 6ff384fd..4a8e791c 100644 --- a/apps/admin/src/components/app-shell.tsx +++ b/apps/admin/src/components/app-shell.tsx @@ -1,6 +1,6 @@ // SPDX-License-Identifier: AGPL-3.0-only import { Link, useParams } from '@tanstack/react-router'; -import { CircleUser } from 'lucide-react'; +import { CircleUser, MessagesSquare } from 'lucide-react'; import type { ReactNode } from 'react'; import { Button } from '@/components/ui/button'; @@ -35,7 +35,11 @@ export function AppShell({ me, children }: { me: MeResponse; children: ReactNode
- + +
+
+
+

+ {appearance.welcomeMessage} +

+
+
+
+ {strings.bots.messagePlaceholder} +
+ +
- - + - + + -
+
diff --git a/apps/admin/src/features/bots/components/bot-behavior-form.tsx b/apps/admin/src/features/bots/components/bot-behavior-form.tsx index ee9e638a..d7250f14 100644 --- a/apps/admin/src/features/bots/components/bot-behavior-form.tsx +++ b/apps/admin/src/features/bots/components/bot-behavior-form.tsx @@ -54,7 +54,7 @@ export function BotBehaviorForm({ workspaceId, botId }: { workspaceId: string; b return ( { event.preventDefault(); const normalized = normalizeOrigins(originLines.split('\n')); @@ -97,84 +97,97 @@ export function BotBehaviorForm({ workspaceId, botId }: { workspaceId: string; b }); }} > -
- -