Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(settings): open the settings hub full-window again

rubenluetke10-beepc418f4f72876
diff --git a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
index 3d0038cc11..747e21554e 100644
--- a/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ApiKeysView.tsx
@@ -77,7 +77,7 @@ export function ApiKeysView() {
role="tabpanel"
id="apikeys-panel"
aria-labelledby={`apikeys-tab-${active}`}
- className="profile-rise mx-auto w-full max-w-page"
+ className="profile-rise w-full max-w-page"
>
{active === "realtime" && (
<RealtimeTab
diff --git a/jarvis/ui/web/frontend/src/views/AssistantProfileView.tsx b/jarvis/ui/web/frontend/src/views/AssistantProfileView.tsx
index a774e3460f..74ccc49706 100644
--- a/jarvis/ui/web/frontend/src/views/AssistantProfileView.tsx
+++ b/jarvis/ui/web/frontend/src/views/AssistantProfileView.tsx
@@ -42,8 +42,8 @@ import { MemorySection } from "@/views/assistant/MemorySection";
import { RecentSection } from "@/views/assistant/RecentSection";
import { TextAction } from "@/views/assistant/Section";
-/** The reading column — the same measure as the Profile page. */
-const COLUMN = "mx-auto w-full max-w-[760px]";
+/** The full Settings hub column — the same measure as the Profile page. */
+const COLUMN = "w-full";
function headerLine(t: (key: string) => string, profile: SoulProfile | undefined): string | undefined {
if (!profile) return undefined;
diff --git a/jarvis/ui/web/frontend/src/views/CostsView.tsx b/jarvis/ui/web/frontend/src/views/CostsView.tsx
index 24023e2918..7481e04de6 100644
--- a/jarvis/ui/web/frontend/src/views/CostsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/CostsView.tsx
@@ -202,7 +202,7 @@ export function CostsView() {
return (
<ScrollArea className="h-full">
- <div className="mx-auto flex max-w-[1180px] flex-col gap-4 px-6 py-6">
+ <div className="flex w-full flex-col gap-4 px-8 py-6">
<PanelHeader
title={t("costs_view.title")}
subtitle={
@@ -1528,7 +1528,7 @@ function DayReport({
return (
<ScrollArea className="h-full">
- <div className="mx-auto flex max-w-[1180px] flex-col gap-4 px-6 py-6">
+ <div className="flex w-full flex-col gap-4 px-8 py-6">
<BackLink label={t("costs_view.day_back")} onClick={onBack} />
<DetailHeader
diff --git a/jarvis/ui/web/frontend/src/views/ProfileView.tsx b/jarvis/ui/web/frontend/src/views/ProfileView.tsx
index ac6c5f3641..7b587ad750 100644
--- a/jarvis/ui/web/frontend/src/views/ProfileView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ProfileView.tsx
@@ -1,7 +1,8 @@
/**
* ProfileView — what the assistant knows about you, and how to change it.
*
- * One column, read top to bottom like any settings page:
+ * Read top to bottom like any settings page (the detail groups sit two to a
+ * row on a wide window):
*
* ┌────────────────────────────────────────────────────────────┐
* │ Photo · name · language · timezone │
@@ -42,8 +43,11 @@ import { fetchJson, statusOf, type ProfileResponse } from "@/views/profile/api";
import { PAGE_GROUPS } from "@/views/profile/ledger";
import { parseObservations } from "@/views/profile/provenance";
-/** The reading column: wide enough for a row, narrow enough to scan. */
-const COLUMN = "mx-auto w-full max-w-[760px]";
+/**
+ * The page runs the Settings hub column (which owns the measure); the detail
+ * groups pair up two to a row once the window is wide enough.
+ */
+const COLUMN = "w-full";
export function ProfileView() {
const t = useT();
@@ -124,15 +128,17 @@ export function ProfileView() {
{data && !showSource && (
<div className="flex flex-col gap-10">
<ProfileHero data={data} meta={meta} />
- {PAGE_GROUPS.map((g) => (
- <FieldGroup
- key={g.id}
- id={g.id}
- fields={g.fields}
- meta={meta}
- observations={observations}
- />
- ))}
+ <div className="grid grid-cols-1 items-start gap-10 xl:grid-cols-2 xl:gap-x-8">
+ {PAGE_GROUPS.map((g) => (
+ <FieldGroup
+ key={g.id}
+ id={g.id}
+ fields={g.fields}
+ meta={meta}
+ observations={observations}
+ />
+ ))}
+ </div>
<PortraitSection />
<MemorySection
name={data.user.name?.trim() || null}
diff --git a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
index 058297f700..dd428e4f93 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsHubView.tsx
@@ -1,7 +1,7 @@
import * as Dialog from "@radix-ui/react-dialog";
import { isTourEvent } from "@/components/onboarding/tourEvents";
import { lazy, Suspense, useEffect, useMemo, useRef, useState, type ComponentType, type LazyExoticComponent } from "react";
-import { Loader2, Search, X } from "lucide-react";
+import { ArrowLeft, Loader2, Search, X } from "lucide-react";
import {
NAV_FOOTER_ITEMS,
NAV_GROUPS,
@@ -19,8 +19,8 @@ import { apiKeysHealthError } from "@/lib/apiKeysTab";
import { cn } from "@/lib/utils";
/**
- * The Settings hub — every personal/system section behind one dialog that
- * floats over the user's current section, with a searchable left navigation
+ * The Settings hub — every personal/system section behind one full-window
+ * page over the user's current section, with a searchable left navigation
* (General · System · Activity) and the selected section on the right:
*
* General: Settings, Keyboard shortcuts, Appshots, My Pets, Profile,
@@ -335,9 +335,16 @@ export function SettingsHubView({ onClose }: { onClose: () => void }) {
<div data-testid="settings-hub" className="flex h-full min-h-0 flex-col md:flex-row">
<aside
data-testid="settings-hub-sidebar"
- className="jarvis-nav-surface flex max-h-72 w-full shrink-0 flex-col border-b border-border md:max-h-none md:w-60 md:border-b-0 md:border-r"
+ className="jarvis-nav-surface flex max-h-72 w-full shrink-0 flex-col border-b border-border md:max-h-none md:w-64 md:border-b-0"
>
<div className="px-3 pb-2 pt-3">
+ {/* The page covers the whole window, so its way out sits where a
+ full-page settings screen keeps it: first in its own nav. */}
+ <button type="button" onClick={onClose} data-testid="settings-hub-close"
+ className="mb-2 flex h-9 w-full items-center gap-2.5 rounded-md px-3 text-base font-medium text-muted-foreground transition-colors hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
+ <ArrowLeft className="h-4 w-4 shrink-0" aria-hidden />
+ <span className="min-w-0 flex-1 truncate text-left">{t("settings_hub.back_to_app")}</span>
+ </button>
<div className="relative">
<Search className="pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" aria-hidden />
<input type="text" role="searchbox" data-testid="settings-hub-search" value={query} onChange={(event) => setQuery(event.target.value)}
@@ -419,13 +426,11 @@ export function SettingsHubView({ onClose }: { onClose: () => void }) {
</nav>
</aside>
<div className="jarvis-sheet relative flex min-h-0 min-w-0 flex-1 flex-col">
- <button type="button" onClick={onClose} aria-label={t("common.close")}
- data-testid="settings-hub-close"
- className="absolute right-3 top-3 z-10 grid h-8 w-8 place-items-center rounded-lg text-muted-foreground hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring">
- <X className="h-4 w-4" aria-hidden />
- </button>
<div data-testid="settings-hub-content" className="min-h-0 flex-1 overflow-y-auto scrollbar-jarvis">
- <div className="h-full w-full max-w-[2000px]">
+ {/* One measure for every tab: each page runs the full width of this
+ column with its header and body on the same left edge, and the
+ column centres once a very wide window would stretch rows apart. */}
+ <div data-testid="settings-hub-column" className="mx-auto h-full w-full max-w-[1440px]">
<Suspense fallback={<HubLoadingFallback />}>
{content === "settings"
? <SettingsTab searchTarget={searchTarget} onSearchTargetHandled={() => setSearchTarget(null)} />
@@ -439,14 +444,16 @@ export function SettingsHubView({ onClose }: { onClose: () => void }) {
}
/**
- * The hub as a centred window over the current section (the way desktop apps
- * open their preferences), not a page that replaces the whole app. Closing it
- * — the X, Escape or a click on the scrim — returns to the section behind it.
+ * The hub as a full-window page over the current section: it covers the app
+ * sidebar and the stage, wears the same gray ground + rounded reading sheet as
+ * the app shell, and leaves the 32 px window caption (window controls, drag
+ * strip) visible above it. Closing it — the X or Escape — returns to the
+ * section behind it.
*
- * Centred with `inset-0` + `m-auto` rather than a translate: a transform would
- * turn the dialog into the containing block of every `position: fixed` layer a
- * tab renders inline (an image preview, view-level dialogs) and trap them
- * inside the window instead of covering the screen.
+ * Positioned with `inset-0` rather than a transform: a transform would turn
+ * the dialog into the containing block of every `position: fixed` layer a tab
+ * renders inline (an image preview, view-level dialogs) and trap them inside
+ * the page instead of covering the screen.
*/
export function SettingsHubDialog({ onClose }: { onClose: () => void }) {
const t = useT();
@@ -457,14 +464,17 @@ export function SettingsHubDialog({ onClose }: { onClose: () => void }) {
// The first-run guide dims the window over this dialog and points into it;
// a click on its card or its dim must not read as "outside" and close the
// very page it is pointing at.
+ // The window caption stays live above the page: its controls minimise,
+ // maximise or drag the window, which must not close the hub.
const nestedOwnsEvent = (event: Event) =>
isComboboxPanelEvent(event) ||
+ (event.target instanceof Element && event.target.closest('[data-testid="window-caption"]') != null) ||
content.current?.querySelector('[aria-modal="true"]') != null ||
isTourEvent(event);
return (
<Dialog.Root open onOpenChange={(open) => { if (!open) onClose(); }}>
<Dialog.Portal>
- <Dialog.Overlay className="fixed inset-0 z-40 bg-scrim/65 backdrop-blur-[2px]" />
+ <Dialog.Overlay className="fixed inset-0 z-40 jarvis-nav-surface" />
<Dialog.Content
data-testid="settings-hub-dialog"
ref={content}
@@ -496,7 +506,7 @@ export function SettingsHubDialog({ onClose }: { onClose: () => void }) {
event.preventDefault();
}
}}
- className="fixed inset-0 z-40 m-auto flex h-[min(86dvh,820px)] w-[min(1040px,calc(100vw-32px))] flex-col overflow-hidden rounded-2xl border border-border bg-popover text-foreground shadow-float outline-none"
+ className="jarvis-nav-surface fixed inset-0 z-40 flex flex-col overflow-hidden pt-8 text-foreground outline-none"
>
<Dialog.Title className="sr-only">{t("nav.settings")}</Dialog.Title>
<SettingsHubView onClose={onClose} />
diff --git a/jarvis/ui/web/frontend/src/views/ShortcutsView.tsx b/jarvis/ui/web/frontend/src/views/ShortcutsView.tsx
index 9bcab66725..4eda48a420 100644
--- a/jarvis/ui/web/frontend/src/views/ShortcutsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/ShortcutsView.tsx
@@ -306,7 +306,7 @@ export function ShortcutsView() {
data-testid="shortcuts-view"
className="flex h-full flex-col overflow-y-auto bg-background px-8 pb-10 scrollbar-jarvis"
>
- <div className="w-full max-w-[1200px]">
+ <div className="w-full">
<PageHeader
icon={<Keyboard />}
title={t("shortcuts_view.title")}
diff --git a/jarvis/ui/web/frontend/src/views/assistant/FilesSection.tsx b/jarvis/ui/web/frontend/src/views/assistant/FilesSection.tsx
index 2d467eef56..9f241e1e56 100644
--- a/jarvis/ui/web/frontend/src/views/assistant/FilesSection.tsx
+++ b/jarvis/ui/web/frontend/src/views/assistant/FilesSection.tsx
@@ -127,7 +127,7 @@ export function FilesSection({
return (
<Section testId="assistant-files" title={t("assistant_view.files_title")}>
<p className="-mt-2 mb-4 text-base text-muted-foreground">{t("assistant_view.files_hint")}</p>
- <ul className="grid grid-cols-1 gap-3 sm:grid-cols-2">
+ <ul className="grid grid-cols-1 gap-3 sm:grid-cols-2 2xl:grid-cols-4">
{files.map((file) => (
<li key={file.id}>
<FilePreview file={file} onOpen={onOpen} />
diff --git a/jarvis/ui/web/frontend/src/views/assistant/Section.tsx b/jarvis/ui/web/frontend/src/views/assistant/Section.tsx
index e342943a7d..3cddf26d66 100644
--- a/jarvis/ui/web/frontend/src/views/assistant/Section.tsx
+++ b/jarvis/ui/web/frontend/src/views/assistant/Section.tsx
@@ -54,7 +54,7 @@ export function SpecRow({ label, children }: { label: ReactNode; children: React
return (
<div className="grid grid-cols-1 gap-1 py-3.5 sm:grid-cols-[8rem_minmax(0,1fr)] sm:gap-8">
<div className="text-base leading-7 text-muted-foreground">{label}</div>
- <div className="min-w-0 text-base leading-7 text-foreground">{children}</div>
+ <div className="min-w-0 max-w-reading text-base leading-7 text-foreground">{children}</div>
</div>
);
}
diff --git a/jarvis/ui/web/frontend/src/views/feedback/FeedbackView.tsx b/jarvis/ui/web/frontend/src/views/feedback/FeedbackView.tsx
index f0564418dc..b407bd71cf 100644
--- a/jarvis/ui/web/frontend/src/views/feedback/FeedbackView.tsx
+++ b/jarvis/ui/web/frontend/src/views/feedback/FeedbackView.tsx
@@ -434,8 +434,8 @@ export function FeedbackView() {
subtitle={t("feedback.subtitle")}
/>
- <div className="flex flex-1 justify-center p-6">
- <div className="w-full max-w-md space-y-6 pb-8">
+ <div className="flex flex-1 px-8 pb-10 pt-2">
+ <div className="w-full max-w-form space-y-6">
{/* What kind of report — this also picks the GitHub issue form. */}
<div>
<span
diff --git a/jarvis/ui/web/frontend/src/views/socials/SocialsView.tsx b/jarvis/ui/web/frontend/src/views/socials/SocialsView.tsx
index 2deed07a1d..790cf7af69 100644
--- a/jarvis/ui/web/frontend/src/views/socials/SocialsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/socials/SocialsView.tsx
@@ -62,7 +62,7 @@ export function SocialsView() {
subtitle={t("socials.subtitle")}
/>
- <div className="mx-auto w-full max-w-4xl p-6">
+ <div className="w-full px-8 pb-10 pt-2">
{loading ? (
<div className="flex items-center justify-center py-20 text-muted-foreground">
<Loader2
@@ -80,7 +80,7 @@ export function SocialsView() {
<p className="text-sm text-muted-foreground">{t("socials.empty")}</p>
</div>
) : (
- <div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
+ <div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4">
{groups.map((group) => (
<SocialTile
key={group.platform}