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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
feat(society): a Quests button in the world HUD opens the Quest Board
rubenluetke10-beep39c59b7f8c2d
diff --git a/jarvis/ui/web/frontend/src/components/society/world/WorldHud.tsx b/jarvis/ui/web/frontend/src/components/society/world/WorldHud.tsxindex 52b409cf72..4ce3c9c02d 100644--- a/jarvis/ui/web/frontend/src/components/society/world/WorldHud.tsx+++ b/jarvis/ui/web/frontend/src/components/society/world/WorldHud.tsx@@ -5,7 +5,7 @@* buttons and the minimap (bottom-right).*/import type { ReactNode } from "react";-import { Minus, Plus } from "lucide-react";+import { Minus, Plus, ScrollText } from "lucide-react";import { fill, useT } from "@/i18n";import type { SocietyAgent } from "../data";@@ -19,9 +19,22 @@ interface Props {awake: boolean;reducedMotion: boolean;topRight?: ReactNode;+ /** The Quest Board button: how many quests are on the board and whether its drawer is open. */+ questsOnBoard?: number;+ questsOpen?: boolean;+ onOpenQuests?: () => void;}-export function WorldHud({ agents, sample, awake, reducedMotion, topRight }: Props) {+export function WorldHud({+ agents,+ sample,+ awake,+ reducedMotion,+ topRight,+ questsOnBoard = 0,+ questsOpen = false,+ onOpenQuests,+}: Props) {const t = useT();const zoom = useCameraStore((s) => s.zoom);const zoomStep = useCameraStore((s) => s.zoomStep);@@ -38,6 +51,24 @@ export function WorldHud({ agents, sample, awake, reducedMotion, topRight }: Pro<span className="sw-chip-sep" /><span>{count("society.world.hud_active", active)}</span></div>+ {onOpenQuests && (+ <button+ type="button"+ className="sw-chip sw-chip-btn"+ onClick={onOpenQuests}+ aria-pressed={questsOpen}+ title={t("society.world.drawer_quests_hint")}+ >+ <ScrollText size={14} aria-hidden />+ <strong>{t("society.world.hud_quests")}</strong>+ {questsOnBoard > 0 && (+ <>+ <span className="sw-chip-sep" />+ <span>{questsOnBoard}</span>+ </>+ )}+ </button>+ )}{sample && <div className="sw-chip sw-chip-note">{t("society.world.sample_badge")}</div>}{reducedMotion && <div className="sw-chip sw-chip-note">{t("society.world.reduced_motion_note")}</div>}</div>diff --git a/jarvis/ui/web/frontend/src/components/society/world/WorldStage.tsx b/jarvis/ui/web/frontend/src/components/society/world/WorldStage.tsxindex e60d8bfc8b..f142a8e2eb 100644--- a/jarvis/ui/web/frontend/src/components/society/world/WorldStage.tsx+++ b/jarvis/ui/web/frontend/src/components/society/world/WorldStage.tsx@@ -35,6 +35,8 @@ import { MemoryDrawer } from "./MemoryDrawer";import { PlaceLabels } from "./PlaceLabels";import { HubDrawer } from "./HubDrawer";import { QuestBoardDrawer } from "./QuestBoardDrawer";+import { ACTIVE_STATES } from "./questBoard";+import { useSocietyQuests } from "./questsData";import { Shadowed } from "./Shadowed";import { SunRig } from "./SunRig";import { Terrain, Water } from "./Terrain";@@ -83,6 +85,8 @@ export function WorldStage({ topRight, onOpenLedger, onSelectAgent }: WorldStageconst [selected, setSelected] = useState<string | null>(null);const [openHub, setOpenHub] = useState<KitPlace | null>(null);const [questOpen, setQuestOpen] = useState(false);+ const quests = useSocietyQuests(webgl);+ const questsOnBoard = (quests.data ?? []).filter((q) => ACTIVE_STATES.has(q.state)).length;const [memoryOpen, setMemoryOpen] = useState(false);useWorldControls(hostRef, webgl);@@ -184,7 +188,20 @@ export function WorldStage({ topRight, onOpenLedger, onSelectAgent }: WorldStage</Canvas></div>{ready && (- <WorldHud agents={agents} sample={sample} awake={awake} reducedMotion={reduced} topRight={topRight} />+ <WorldHud+ agents={agents}+ sample={sample}+ awake={awake}+ reducedMotion={reduced}+ topRight={topRight}+ questsOnBoard={questsOnBoard}+ questsOpen={questOpen}+ onOpenQuests={() => {+ setOpenHub(null);+ setMemoryOpen(false);+ setQuestOpen((cur) => !cur);+ }}+ />)}{/* Every hub lists what it stands for; the foundry also BUILDS, so ithas its own drawer with the creator in it. */}diff --git a/jarvis/ui/web/frontend/src/components/society/world/world.css b/jarvis/ui/web/frontend/src/components/society/world/world.cssindex d09ef4ffe5..19f198d93b 100644--- a/jarvis/ui/web/frontend/src/components/society/world/world.css+++ b/jarvis/ui/web/frontend/src/components/society/world/world.css@@ -136,6 +136,22 @@.sw-chip strong {font-weight: 600;}+.sw-chip-btn {+ cursor: pointer;+ pointer-events: auto;+ font: inherit;+ transition: transform 80ms ease, background-color 120ms ease;+}+.sw-chip-btn:hover {+ background: rgba(255, 248, 220, 0.96);+}+.sw-chip-btn:active {+ transform: translateY(1px);+ box-shadow: 0 1px 0 rgba(31, 42, 58, 0.25);+}+.sw-chip-btn[aria-pressed="true"] {+ background: #ffd166;+}.sw-chip-sep {width: 1px;height: 12px;diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.jsonindex f2377fc788..dcad20fd6e 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json@@ -5145,6 +5145,7 @@"webgl_missing_body": "Dieses Fenster kann gerade kein 3D zeichnen. Das Register zeigt dieselben Agenten als Tabelle.","open_ledger": "Register öffnen","place_quests": "Questtafel",+ "hud_quests": "Quests","drawer_quests_title": "Questtafel","drawer_quests_hint": "Gib einen Auftrag auf. Der passende Agent übernimmt ihn – passt niemand, schmiedet die Foundry einen.","quest_compose_placeholder": "Was soll erledigt werden? Zum Beispiel: die fünf wichtigsten Mails von heute",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.jsonindex e4abd65159..657efee27c 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json@@ -5145,6 +5145,7 @@"webgl_missing_body": "This window cannot draw 3D right now. The ledger shows the same agents as a table.","open_ledger": "Open the ledger","place_quests": "Quest Board",+ "hud_quests": "Quests","drawer_quests_title": "Quest Board","drawer_quests_hint": "Post a job. The agent who fits takes it — when nobody fits, the Foundry forges one.","quest_compose_placeholder": "What should be done? For example: the five most important mails of today",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.jsonindex 10848f923c..de0d4c3d93 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json@@ -5145,6 +5145,7 @@"webgl_missing_body": "Esta ventana no puede dibujar 3D ahora. El registro muestra los mismos agentes como tabla.","open_ledger": "Abrir el registro","place_quests": "Tablón de misiones",+ "hud_quests": "Misiones","drawer_quests_title": "Tablón de misiones","drawer_quests_hint": "Publica un encargo. El agente adecuado lo toma; si nadie encaja, la Fundición forja uno.","quest_compose_placeholder": "¿Qué hay que hacer? Por ejemplo: los cinco correos más importantes de hoy",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json b/jarvis/ui/web/frontend/src/i18n/locales/society/de.jsonindex 993c4681e3..9f316c28a8 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/de.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/de.json@@ -31,6 +31,7 @@"drawer_open_section": "Bereich Plugins öffnen","drawer_close": "Schließen","place_quests": "Questtafel",+ "hud_quests": "Quests","drawer_quests_title": "Questtafel","drawer_quests_hint": "Gib einen Auftrag auf. Der passende Agent übernimmt ihn – passt niemand, schmiedet die Foundry einen.","quest_compose_placeholder": "Was soll erledigt werden? Zum Beispiel: die fünf wichtigsten Mails von heute",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json b/jarvis/ui/web/frontend/src/i18n/locales/society/en.jsonindex 8fb23f1c11..eb02dfc418 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/en.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/en.json@@ -31,6 +31,7 @@"drawer_open_section": "Open the Plugins section","drawer_close": "Close","place_quests": "Quest Board",+ "hud_quests": "Quests","drawer_quests_title": "Quest Board","drawer_quests_hint": "Post a job. The agent who fits takes it — when nobody fits, the Foundry forges one.","quest_compose_placeholder": "What should be done? For example: the five most important mails of today",diff --git a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json b/jarvis/ui/web/frontend/src/i18n/locales/society/es.jsonindex 6cf2c805f0..af9019f2df 100644--- a/jarvis/ui/web/frontend/src/i18n/locales/society/es.json+++ b/jarvis/ui/web/frontend/src/i18n/locales/society/es.json@@ -31,6 +31,7 @@"drawer_open_section": "Abrir la sección Plugins","drawer_close": "Cerrar","place_quests": "Tablón de misiones",+ "hud_quests": "Misiones","drawer_quests_title": "Tablón de misiones","drawer_quests_hint": "Publica un encargo. El agente adecuado lo toma; si nadie encaja, la Fundición forja uno.","quest_compose_placeholder": "¿Qué hay que hacer? Por ejemplo: los cinco correos más importantes de hoy",