* feat(ui): add chat infrastructure modules (slice 1 of dashboard-v2) New self-contained chat modules extracted from dashboard-v2-structure: - chat/slash-commands.ts: slash command definitions and completions - chat/slash-command-executor.ts: execute slash commands via gateway RPC - chat/slash-command-executor.node.test.ts: test coverage - chat/speech.ts: speech-to-text (STT) support - chat/input-history.ts: per-session input history navigation - chat/pinned-messages.ts: pinned message management - chat/deleted-messages.ts: deleted message tracking - chat/export.ts: shared exportChatMarkdown helper - chat-export.ts: re-export shim for backwards compat Gateway fix: - Restore usage/cost stripping in chat.history sanitization - Add test coverage for sanitization behavior These modules are additive and tree-shaken — no existing code imports them yet. They will be wired in subsequent slices. * feat(ui): add utilities, theming, and i18n updates (slice 2 of dashboard-v2) UI utilities and theming improvements extracted from dashboard-v2-structure: Icons & formatting: - icons.ts: expanded icon set for new dashboard views - format.ts: date/number formatting helpers - tool-labels.ts: human-readable tool name mappings Theming: - theme.ts: enhanced theme resolution and system theme support - theme-transition.ts: simplified transition logic - storage.ts: theme parsing improvements for settings persistence Navigation & types: - navigation.ts: extended tab definitions for dashboard-v2 - app-view-state.ts: expanded view state management - types.ts: new type definitions (HealthSummary, ModelCatalogEntry, etc.) Components: - components/dashboard-header.ts: reusable header component i18n: - Updated en, pt-BR, zh-CN, zh-TW locales with new dashboard strings All changes are additive or backwards-compatible. Build passes. Part of #36853. * feat(ui): dashboard-v2 views refactor (slice 3 of dashboard-v2) Complete views refactor from dashboard-v2-structure, building on slice 1 (chat infra, #41497) and slice 2 (utilities/theming, #41500). Core app wiring: - app.ts: updated host component with new state properties - app-render.ts: refactored render pipeline for new dashboard layout - app-render.helpers.ts: extracted render helpers - app-settings.ts: theme listener lifecycle fix, cron runs on tab load - app-gateway.ts: refactored chat event handling - app-chat.ts: slash command integration New views: - views/command-palette.ts: command palette (Cmd+K) - views/login-gate.ts: authentication gate - views/bottom-tabs.ts: mobile tab navigation - views/overview-*.ts: modular overview dashboard (cards, attention, event log, hints, log tail, quick actions) - views/agents-panels-overview.ts: agent overview panel Refactored views: - views/chat.ts: major refactor with STT, slash commands, search, export, pinned messages, input history - views/config.ts: restructured config management - views/agents.ts: streamlined agent management - views/overview.ts: modular composition from sub-views - views/sessions.ts: enhanced session management Controllers: - controllers/health.ts: new health check controller - controllers/models.ts: new model catalog controller - controllers/agents.ts: tools catalog improvements - controllers/config.ts: config form enhancements Tests & infrastructure: - Updated test helpers, browser tests, node tests - vite.config.ts: build configuration updates - markdown.ts: rendering improvements Build passes ✅ | 44 files | +6,626/-1,499 Part of #36853. Depends on #41497 and #41500. * UI: fix chat review follow-ups * fix(ui): repair chat clear and attachment regressions * fix(ui): address remaining chat review comments * fix(ui): address review follow-ups * fix(ui): replay queued local slash commands * fix(ui): repair control-ui type drift * fix(ui): restore control UI styling * feat(ui): enhance layout and styling for config and topbar components - Updated grid layout for the config layout to allow full-width usage. - Introduced new styles for top tabs and search components to improve usability. - Added theme mode toggle styling for better visual integration. - Implemented tests for layout and theme mode components to ensure proper rendering and functionality. * feat(ui): add config file opening functionality and enhance styles - Implemented a new handler to open the configuration file using the default application based on the operating system. - Updated various CSS styles across components for improved visual consistency and usability, including adjustments to padding, margins, and font sizes. - Introduced new styles for the data table and sidebar components to enhance layout and interaction. - Added tests for the collapsed navigation rail to ensure proper functionality in different states. * refactor(ui): update CSS styles for improved layout and consistency - Simplified font-body declaration in base.css for cleaner code. - Adjusted transition properties in components.css for better readability. - Added new .workspace-link class in components.css for enhanced link styling. - Changed config layout from grid to flex in config.css for better responsiveness. - Updated related tests to reflect layout changes in config-layout.browser.test.ts. * feat(ui): enhance theme handling and loading states in chat interface - Updated CSS to support new theme mode attributes for better styling consistency across light and dark themes. - Introduced loading skeletons in the chat view to improve user experience during data fetching. - Refactored command palette to manage focus more effectively, enhancing accessibility. - Added tests for the appearance theme picker and loading states to ensure proper rendering and functionality. * refactor(ui): streamline ephemeral state management in chat and config views - Introduced interfaces for ephemeral state in chat and config views to encapsulate related variables. - Refactored state management to utilize a single object for better organization and maintainability. - Removed legacy state variables and updated related functions to reference the new state structure. - Enhanced readability and consistency across the codebase by standardizing state handling. * chore: remove test files to reduce PR scope * fix(ui): resolve type errors in debug props and chat search * refactor(ui): remove stream mode functionality across various components - Eliminated stream mode related translations and CSS styles to streamline the user interface. - Updated multiple components to remove references to stream mode, enhancing code clarity and maintainability. - Adjusted rendering logic in views to ensure consistent behavior without stream mode. - Improved overall readability by cleaning up unused variables and props. * fix(ui): add msg-meta CSS and fix rebase type errors * fix(ui): add CSS for chat footer action buttons (TTS, delete) and msg-meta * feat(ui): add delete confirmation with remember-decision checkbox * fix(ui): delete confirmation with remember, attention icon sizing * fix(ui): open delete confirm popover to the left (not clipped) * fix(ui): show all nav items in collapsed sidebar, remove gap * fix(ui): address P1/P2 review feedback — session queue clear, kill scope, palette guard, stop button * fix(ui): address Greptile re-review — kill scope, queue flush, idle handling, parallel fetch - SECURITY: /kill <target> now enforces session tree scope (not just /kill all) - /kill reports idle sessions gracefully instead of throwing - Queue continues draining after local slash commands - /model fetches sessions.list + models.list in parallel (perf fix) * fix(ui): style update banner close button — SVG stroke + sizing * fix(ui): update layout styles for sidebar and content spacing * UI: restore colon slash command parsing * UI: restore slash command session queries * Refactor thinking resolution: Introduce resolveThinkingDefaultForModel function and update model-selection to utilize it. Add tests for new functionality in thinking.test.ts. * fix(ui): constrain welcome state logo size, add missing CSS for new session view --------- Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
430 lines
6.4 KiB
CSS
430 lines
6.4 KiB
CSS
/* ===========================================
|
|
Mobile Layout
|
|
=========================================== */
|
|
|
|
/* Tablet and smaller: collapse the left nav into a horizontal rail. */
|
|
@media (max-width: 1100px) {
|
|
.shell,
|
|
.shell--nav-collapsed {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
grid-template-rows: var(--shell-topbar-height) auto minmax(0, 1fr);
|
|
grid-template-areas:
|
|
"topbar"
|
|
"nav"
|
|
"content";
|
|
}
|
|
|
|
.shell--chat-focus {
|
|
grid-template-rows: var(--shell-topbar-height) 0 minmax(0, 1fr);
|
|
}
|
|
|
|
.shell-nav,
|
|
.shell--nav-collapsed .shell-nav {
|
|
width: auto;
|
|
min-width: 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.sidebar,
|
|
.sidebar--collapsed {
|
|
width: auto;
|
|
min-width: 0;
|
|
flex: 1 1 auto;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
border-right: none;
|
|
}
|
|
|
|
.sidebar-header,
|
|
.sidebar--collapsed .sidebar-header {
|
|
justify-content: flex-start;
|
|
padding: 8px 10px;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar-nav,
|
|
.sidebar--collapsed .sidebar-nav {
|
|
flex: 1 1 auto;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: nowrap;
|
|
gap: 8px;
|
|
padding: 8px 10px 8px 0;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.sidebar-nav::-webkit-scrollbar,
|
|
.sidebar--collapsed .sidebar-nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.nav-group,
|
|
.nav-group__items,
|
|
.sidebar--collapsed .nav-group,
|
|
.sidebar--collapsed .nav-group__items {
|
|
display: contents;
|
|
}
|
|
|
|
.nav-group {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.sidebar-nav .nav-group__label {
|
|
display: none;
|
|
}
|
|
|
|
.nav-item,
|
|
.sidebar--collapsed .nav-item {
|
|
margin: 0;
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
border-radius: var(--radius-md);
|
|
white-space: nowrap;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.sidebar--collapsed .nav-item--active::before,
|
|
.sidebar--collapsed .nav-item.active::before {
|
|
content: none;
|
|
}
|
|
|
|
.sidebar-footer,
|
|
.sidebar--collapsed .sidebar-footer {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* Mobile-specific styles */
|
|
@media (max-width: 600px) {
|
|
.shell {
|
|
--shell-pad: 8px;
|
|
--shell-gap: 8px;
|
|
}
|
|
|
|
/* Topbar */
|
|
.topbar {
|
|
padding: 10px 12px;
|
|
gap: 8px;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.brand {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.brand-sub {
|
|
display: none;
|
|
}
|
|
|
|
.topbar-status {
|
|
gap: 6px;
|
|
width: auto;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.topbar-status .pill {
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.topbar-status .pill .mono {
|
|
display: none;
|
|
}
|
|
|
|
.topbar-status .pill span:nth-child(2) {
|
|
display: none;
|
|
}
|
|
|
|
.shell-nav {
|
|
border-bottom-width: 0;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
gap: 6px;
|
|
padding: 6px 8px 6px 0;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
border-radius: var(--radius-md);
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Content */
|
|
.content-header {
|
|
display: none;
|
|
}
|
|
|
|
.content {
|
|
padding: 4px 4px 16px;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* Cards */
|
|
.card {
|
|
padding: 12px;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.card-title {
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Stats */
|
|
.stat-grid {
|
|
gap: 8px;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.stat {
|
|
padding: 10px;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 18px;
|
|
}
|
|
|
|
/* Notes */
|
|
.note-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-grid {
|
|
grid-template-columns: 1fr;
|
|
gap: 10px;
|
|
}
|
|
|
|
.field input,
|
|
.field textarea,
|
|
.field select {
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Pills */
|
|
.pill {
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Chat */
|
|
.chat-header {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 8px;
|
|
}
|
|
|
|
.chat-header__left {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.chat-header__right {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.chat-session {
|
|
min-width: unset;
|
|
width: 100%;
|
|
}
|
|
|
|
.chat-thread {
|
|
margin-top: 8px;
|
|
padding: 12px 8px;
|
|
}
|
|
|
|
.chat-msg {
|
|
max-width: 90%;
|
|
}
|
|
|
|
.chat-bubble {
|
|
padding: 8px 12px;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.chat-compose {
|
|
gap: 8px;
|
|
}
|
|
|
|
.chat-compose__field textarea {
|
|
min-height: 60px;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.agent-chat__input {
|
|
margin: 0 8px 10px;
|
|
}
|
|
|
|
.agent-chat__toolbar {
|
|
padding: 4px 8px;
|
|
}
|
|
|
|
.agent-chat__input-btn,
|
|
.agent-chat__toolbar .btn-ghost {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
.agent-chat__input-btn svg,
|
|
.agent-chat__toolbar .btn-ghost svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* Log stream */
|
|
.log-stream {
|
|
border-radius: var(--radius-md);
|
|
max-height: 380px;
|
|
}
|
|
|
|
.log-row {
|
|
grid-template-columns: 1fr;
|
|
gap: 4px;
|
|
padding: 8px;
|
|
}
|
|
|
|
.log-time {
|
|
font-size: 10px;
|
|
}
|
|
|
|
.log-level {
|
|
font-size: 9px;
|
|
}
|
|
|
|
.log-subsystem {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.log-message {
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Lists */
|
|
.list-item {
|
|
padding: 10px;
|
|
border-radius: var(--radius-md);
|
|
}
|
|
|
|
.list-title {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.list-sub {
|
|
font-size: 11px;
|
|
}
|
|
|
|
/* Code blocks */
|
|
.code-block {
|
|
padding: 8px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.theme-orb__trigger {
|
|
width: 26px;
|
|
height: 26px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* Small mobile */
|
|
@media (max-width: 400px) {
|
|
.shell {
|
|
--shell-pad: 4px;
|
|
}
|
|
|
|
.topbar {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.brand-title {
|
|
font-size: 13px;
|
|
}
|
|
|
|
.nav-item {
|
|
padding: 6px 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.content {
|
|
padding: 4px 4px 12px;
|
|
gap: 10px;
|
|
}
|
|
|
|
.card {
|
|
padding: 10px;
|
|
}
|
|
|
|
.stat {
|
|
padding: 8px;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.chat-bubble {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
.chat-compose__field textarea {
|
|
min-height: 52px;
|
|
padding: 8px 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 6px 10px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.topbar-status .pill {
|
|
padding: 3px 6px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.theme-orb__trigger {
|
|
width: 24px;
|
|
height: 24px;
|
|
font-size: 12px;
|
|
}
|
|
}
|