20 KiB
UI terminology and native/web boundaries
The dashboard web UI launched with ./isa_dashboard/run_local_remote_dashboard.sh --web-ui is the browser build of chat-ui-3. The native app uses the same Svelte frontend source with a different platform implementation. The dashboard server hosts the browser assets and provides backend services; the browser renders the UI.
This document defines the vocabulary and source locations for discussing UI changes. See web architecture for detailed execution, storage, authentication, and security contracts, web deployment for hosting, and the design system for styling.
The cloud/native parity audit, UI plan and features plan track the work to align cloud with the native reference through shared components and behavior, with focused platform adapters.
Terms to use in requests and reviews
| Term | Meaning in this repository |
|---|---|
| Shared UI | Svelte pages, components, styling, and translations used by both build targets. Shared source can still contain capability-gated controls or target-specific initialization. |
| Native app or desktop app | The native build of chat-ui-3, displayed in a Tauri webview and backed by the local Rust/Tauri process. “Native” describes its host and capabilities; its presentation is still Svelte/HTML/CSS. |
| Dashboard web UI or browser app | The web build of chat-ui-3, opened in an ordinary browser and served by the dashboard. This means the whole browser application, including login, chat, dashboard management, and supported extensions. |
| Cloud/web version | Informal name for the dashboard web UI. Prefer “dashboard web UI” when specifying a UI change. It can run on localhost, an organization's server, or cloud infrastructure. |
| Dashboard management UI | The workspace/resource administration interface opened from the sidebar's dashboard button. It is shared UI under src/routes/components/dashboard/, available within both app targets subject to permissions and capabilities. |
| Dashboard server | The Rust backend under isa_dashboard/. It handles accounts, workspaces, permissions, resources, and supported remote execution. Native clients can also connect to it. |
| Platform shell | Target-specific startup and service setup selected through $platform: NativeShell.svelte or WebShell.svelte. It wraps the shared route content. |
| Platform adapter | Code that provides an operation using the current host: for example Tauri commands on native or dashboard HTTP/gRPC-Web requests in the browser. |
| Capability | A declared platform feature used to select UI behavior, such as desktopWindows or localModels. A capability flag does not establish user permission or guarantee a configured, healthy backend executor. |
| Extension UI | An extension's own iframe content. Distinguish it from the shared extension launchpad and toolbar, and from the platform-specific iframe host and bridge. |
| Thread synchronization | The optional workspace setting that synchronizes conversation records with the dashboard. Serving the browser app does not automatically enable it. |
| Cloud-managed session | A separate server-side generation/session feature controlled by workspace settings. It is not a synonym for opening the browser app or using a remote model. |
Avoid “dashboard” alone when the distinction matters: specify dashboard server, dashboard management UI, or dashboard web UI. Likewise, distinguish local browser storage, native local storage, and dashboard storage; “local” does not necessarily mean native.
How the launched browser app is assembled
- The local launcher prepares dependencies and loopback configuration and builds the dashboard server with embedded web UI support. The default browser URL is
http://localhost:19912; use the URL printed by the launcher when configuration overrides are present. - The embedding build script invokes
pnpm run build:webor consumes a source-hash-checked prebuilt bundle. It embeds the resulting static assets into the Rust build. This command serves an embedded build, not a Vite live-reload server; frontend edits need a rebuilt/restarted dashboard to appear there. - Vite configuration selects
ISA_UI_TARGET=weband resolves$platformtosrc/lib/platform/web. SvelteKit configuration selects the web command adapter and static output. Standalone builds normally write tobuild/weborbuild/native; embedding overrides the output directory. - The browser loads the shared root layout, which imports translations and
app.css. AppShell.svelte delegates to the selected platform shell. - WebShell.svelte loads
/web-ui-config.json, sets up browser authentication and dashboard services, restores a session or presents browser login, loads account-scoped preferences, and initializes account-scoped chat storage. Shared route content uses those services once available. Chat storage has its own loading/unavailable state; dashboard functionality can remain available while another tab holds the chat database lock. - The shared main page composes the sidebar, conversation settings, messages, and extension presentation. Platform capabilities determine which host-dependent controls and initialization paths apply.
flowchart TD
Source[chat-ui-3 shared Svelte UI] --> Native[Native build and platform adapters]
Source --> Web[Web build and platform adapters]
Native --> Tauri[Tauri webview and local Rust process]
Tauri -->|native gRPC client| Server[Dashboard server]
Web --> Embedded[Assets embedded in dashboard server]
Embedded --> Browser[Browser renders the UI]
Browser -->|HTTP and gRPC-Web| Server
The native app's connection to a dashboard and the browser app's connection to its dashboard are different transport paths to backend functionality. The launcher name “local remote dashboard” describes a locally running server used to exercise remote-dashboard behavior; it does not turn the browser into a native client.
What is shared and what differs
| Area | Shared across targets | Native-specific behavior | Browser-specific behavior |
|---|---|---|---|
| Layout and appearance | Main route, sidebar, message components, semantic CSS tokens, English/Dutch translations, workspace branding | Desktop/window integration where enabled | Browser viewport and web startup/error states |
| Dashboard management | Dashboard modal and workspace, group, model, agent, tool, file, and extension components | Operations through native command/client plumbing | Supported operations through browser adapters and allowlisted server APIs; shared screens do not imply complete command parity |
| Login and startup | auth/AuthenticationModal.svelte owns forms, validation, pending/errors and native-led layout; root layout initializes appearance before either shell |
Native login adapter, local-account and dashboard selection operations | Thin WebLogin.svelte adapter, fixed dashboard endpoint, cookie session and CSRF handling; no local-account bypass |
| Commands and events | Many existing component-facing command names and data shapes | Generated Specta bindings and Tauri commands/events | Registered browser implementations behind the web command adapter; unsupported commands fail explicitly, with a few compatibility no-ops |
| Conversations | Thread/message presentation, canonical records, shared Rust text-only-copy transformation and remote request/parser behavior | Local Rust storage and native model execution wiring | Account/origin-scoped SurrealDB storage through a WASM worker backed by IndexedDB; remote generation through the dashboard |
| Models and tools | Model-facing builtin contracts and shared Rust Rig integration for supported remote-model execution | Local models and native host tool implementations are possible | Browser does not run Rig or local models; dashboard resolves authorized remote models, credentials, and available server tools |
| Preferences | One settings owner, defaults/normalization and saver | Native settings persistence and native reset/relaunch | Versioned account/origin allowlist independent of chat lock; coordinated scoped browser reset |
| Files | Workspace/group resource concepts and supported management UI | Local filesystem access and native sync/download integrations | Browser upload/download flows where implemented; no general native filesystem access. localFiles: false does not mean all dashboard file operations are unavailable |
| OS integration | Capability-gated entry points | Desktop windows, updater, local audio capture and related native operations | These native capabilities are disabled |
| Extensions | Launchpad, toolbar, extensions/ExtensionFrame.svelte, exclusive status lifecycle and theme subscription |
Native extension host and detachable windows | Separate web host/bridge, authorized assets on the app listener with opaque sandbox origins, one live extension iframe, launch-scoped browser threads and connection-bound remote chat; document/image context and native operations are unavailable |
Implemented adapters and capability flags are distinct from completed runtime proof; see the architecture verification boundaries.
Shared Settings and resource controls use supportsCommand at the existing $platform seam to check the current command adapter. Compatibility no-ops do not advertise support. Platform capabilities additionally gate OS services and execution paths; browser imageAttachments and executionSettings now route supported content/options through shared Rust execution rules, while native filesystem and OS operations remain unavailable. Provider compatibility and live execution require separate validation. Unknown conflict counts and redacted resource fields remain unknown rather than becoming zero or empty.
“Unified” means shared presentation or an explicit shared contract. It does not mean identical storage, authentication, transport, execution, or feature availability. In particular, native connection settings and browser session handling are separate even when the resulting management screen looks the same.
Source map for UI work
Paths below are relative to chat-ui-3/ unless otherwise stated.
| Change being discussed | Start here |
|---|---|
| Shared page layout and panel composition | src/routes/+page.svelte, src/routes/+layout.svelte |
| Main sidebar and dashboard entry point | src/routes/components/sidebar.svelte, SidebarDashboardAccess.svelte in the same directory |
| Dashboard management UI | src/routes/components/dashboard/Dashboard.svelte and neighboring components |
| Conversation settings and messages | src/routes/components/conversationSettingsContent.svelte, thread_messages.svelte, chat_message.svelte |
| Shared tokens, styles, and language | src/app.css, src/styles/app/, src/langs/en/, src/langs/nl/; follow design-system guidance |
| Browser startup/login/storage status | src/lib/platform/web/WebShell.svelte, thin WebLogin.svelte, shared auth/AuthenticationModal.svelte and RuntimeStatus.svelte; chat storage status belongs to the main page |
| Native startup/login | src/lib/platform/native/NativeShell.svelte, native branches in src/routes/+page.svelte, src/routes/components/login_modal.svelte |
| Build selection and platform capabilities | vite.config.ts, svelte.config.js, src/lib/platform/capabilities.ts, src/lib/platform/contracts.ts |
| Preference persistence and local reset | src/lib/settingsNormalization.js, Settings.svelte.js, platform/web/preferences.ts, local-reset.ts; account lifecycle belongs to WebShell.svelte |
| Browser command and API behavior | src/lib/platform/web/native-bindings-stub.ts, dashboard-resource-commands.ts, dashboard.ts, rpc-registry.ts, tauri-stub.ts |
| Native command behavior | Generated src/lib/bindings.ts (do not edit manually), src-tauri/src/commands/, src-tauri/src/dashboard_commands/ |
| Extension launchpad versus iframe host | src/routes/components/ExtensionLaunchpad.svelte; native src/routes/components/ExtensionTab.svelte; web src/lib/platform/web/WebExtensionTab.svelte, extension-chat.ts, and extension-chat-threads.ts |
| Backend hosting or authorization | Repository isa_dashboard/isa_dashboard_web_ui/, isa_dashboard/isa_dashboard_server_lib/, and isa_dashboard/isa_dashboard_server_cli/ |
Some shared components still import Tauri APIs or $bindings. The web build aliases these imports to browser compatibility modules. An import that compiles in both targets is not evidence that its operation works in the browser. Trace the selected implementation and its capability guard before changing such a call.
Browser hosting, synchronization, and execution are separate
Three independent concepts often get called “cloud”: serving the browser application ([web_ui].enabled), synchronizing threads (thread_sync_enabled), and admitting cloud-managed sessions (cloud_managed_sessions_enabled). Cloud session admission requires thread synchronization; browser hosting alone enables neither workspace setting.
Ordinary connection-bound web generation streams through the dashboard and is cancelled on disconnect. Existing cloud-session admission and stored-event replay APIs do not yet provide the completed durable executor, live execution watcher, or restart recovery. A durableCloudSessions capability flag is not proof of that completed behavior. See the architecture's execution and storage section before promising background completion or cross-client conversation behavior.
Workspace inventory and group availability also remain distinct. A shared model picker or management component must respect the current workspace, group, permissions, and executor availability; visually sharing a component does not widen access.
Both extension bridges carry the captured launch workspace/group into thread and document operations. Native extension streaming validates its persisted thread through the scoped bridge and supplies NativeGenerationContext to the general streaming command; setup must still belong to the active launch before generation starts. Thread updates preserve stored ownership and context. Upload operation identities use the same shared preparation helper on both targets. Capability reporting must describe supported commands and actual tool executor availability. Browser stop_stream cancels launch streams; native model-wide stopping is not an equivalent extension operation and is not advertised as one.
How to specify and validate a change
Describe a request with target + surface + behavior. Examples:
- “Dashboard web UI: change the browser login layout.” This targets the web login component and shell.
- “Both targets: reduce spacing in the dashboard management model list.” This targets shared dashboard components and styling.
- “Dashboard web UI only: hide the unavailable local-model action in conversation settings.” This targets capability-dependent behavior in shared presentation.
- “Extension UI: change the extension's own project picker.” This targets the extension package, rather than the launchpad or host toolbar.
For a shared component edit, consider its effect on both targets. For a web-only change, identify the web shell/adapter or explicit capability condition that limits its scope. Styling and translations remain shared unless deliberately scoped.
After Svelte or JavaScript changes, the repository requires pnpm run build -l error from chat-ui-3; its default target is native. Browser changes also need web validation: pnpm run build:web, relevant platform/web contract tests, and a browser check against the rebuilt launcher output. A successful native build alone does not verify browser behavior. The dashboard web UI testing skill describes reproduction and browser diagnostics. Apply the repository's Rust and extension validation rules when those areas change.
Check the affected light/dark, focus, hover, disabled, loading, empty, and error states as applicable. For browser failures, distinguish failure to load assets, failure to restore authentication, unavailable chat storage, rejected backend requests, and accidental native-only calls; they belong to different layers even if each appears as a blank or incomplete page.
Shared file acquisition
Both targets mount src/lib/FileSelectionHost.svelte inside their platform shell. Its src/routes/components/FileSelectionModal.svelte serves chat attachments, extension document/import selection, file/folder grant selection, and dashboard management uploads and explicit replacements. src/lib/fileSelection.ts owns the typed request/result and snapshot helper contract; src/lib/platform/file-selection-adapter.ts resolves managed native copies or browser File objects and authenticated scoped dashboard transfers. Profile/branding images, extension packages, model uploads, and output-directory selection retain their separate workflows. Ordinary browser chat prepares selected, dropped, and pasted PNG, JPEG, GIF, and WebP images as model-ready thumbnail attachments through the shared image pipeline, with a two-image pending limit. Document attachments use scoped native storage for native execution and dashboard conversation attachments for dashboard execution. Remote host image capability permits sending images; acceptance depends on the selected provider model.
The shared upload destination uses GroupFolderTree.svelte on native and web. Its first row is the captured group name; only server-authorized ordinary folders are shown. Extension and system storage are unavailable throughout user file selection. Search, keyboard navigation, and inline folder creation share the same component and permission-aware behavior. Root creation requires the existing workspace administrator/link permissions; subfolders require write access to their real parent. The group heading is not a storage resource or upload destination.
Model execution and attachments
The shared chat UI selects explicit native or dashboard deployments. Native local chat and tools execute in the native app; both native remote and browser remote chat execute on the dashboard server. Auxiliary-only OCR and embedding models appear in dashboard management, outside the chat picker. The browser cannot select native deployments. Private attachment location follows this selected deployment, independently of persistent group sharing. Model templates, hosted replica administration and workspace attachment retention are shared dashboard management UI.
The shared composer prepares document attachments with the images strategy when the selected model advertises vision support. Generation renders authorized PDF/DOCX sources into page images for vision models, within the existing 16-image request limit; other formats use extracted text. Text-only models use extraction and retrieval. Repeated selection reuses current prepared attachments within the same account, workspace, group, conversation, source revision and processing strategy. Reuse must recheck authorization and expiry. The shared conversation attachments panel exposes failed preparation details, and native Application Logs records attachment/OCR failures.