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(appshot): 1 and 5 minute choices for the corner card, and say the × closes it

rubenluetke10-beep8564ddebe759
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/de.json b/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/de.json
index 97c0e61b79..e5053bcc48 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/de.json
@@ -69,8 +69,9 @@
"applied_message": "Das bearbeitete Bild geht mit deiner nächsten Nachricht an {name}.",
"applied_none": "Bearbeitung gespeichert. Sie geht nur während eines Anrufs an {name}.",
"card_seconds": "Karte in der Ecke",
- "card_seconds_hint": "Wie lange das Bild nach einem Appshot in der Bildschirmecke bleibt.",
+ "card_seconds_hint": "Wie lange das Bild nach einem Appshot in der Bildschirmecke bleibt. Mit dem × beim Darüberfahren schließt du es jederzeit.",
"card_seconds_option": "{0} Sekunden",
+ "card_minutes_option": "{0} Min.",
"card_until_closed": "Bis ich sie schließe",
"arrow_style": "Pfeilstil",
"arrow_tapered": "Spitz zulaufend",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/en.json b/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/en.json
index 4b347e9801..fa31e83d53 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/en.json
@@ -69,8 +69,9 @@
"applied_message": "The edited picture goes with your next message to {name}.",
"applied_none": "Edit kept. It goes to {name} only during a voice call.",
"card_seconds": "Corner card",
- "card_seconds_hint": "How long the picture rests in the screen corner after an appshot.",
+ "card_seconds_hint": "How long the picture rests in the screen corner after an appshot. Hover it and click × to close it any time.",
"card_seconds_option": "{0} seconds",
+ "card_minutes_option": "{0} min",
"card_until_closed": "Until I close it",
"arrow_style": "Arrow style",
"arrow_tapered": "Tapered",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/es.json b/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/es.json
index 913e2efd0a..edf0f4832c 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/appshot_editor/es.json
@@ -69,8 +69,9 @@
"applied_message": "La imagen editada va con tu próximo mensaje a {name}.",
"applied_none": "Edición guardada. Solo llega a {name} durante una llamada.",
"card_seconds": "Tarjeta en la esquina",
- "card_seconds_hint": "Cuánto tiempo queda la imagen en la esquina de la pantalla tras un appshot.",
+ "card_seconds_hint": "Cuánto tiempo queda la imagen en la esquina de la pantalla tras un appshot. Pasa el ratón y pulsa × para cerrarla cuando quieras.",
"card_seconds_option": "{0} segundos",
+ "card_minutes_option": "{0} min",
"card_until_closed": "Hasta que la cierre",
"arrow_style": "Estilo de flecha",
"arrow_tapered": "Afilada",
diff --git a/jarvis/ui/web/frontend/src/lib/appshotApi.ts b/jarvis/ui/web/frontend/src/lib/appshotApi.ts
index 42a8e5aa96..e5b4c5f98e 100644
--- a/jarvis/ui/web/frontend/src/lib/appshotApi.ts
+++ b/jarvis/ui/web/frontend/src/lib/appshotApi.ts
@@ -164,4 +164,4 @@ export async function openAppshotEditorWindow(id: string): Promise<boolean> {
}
/** How long the corner card may rest, in seconds; 0 = until closed. */
-export const CARD_SECONDS_CHOICES = [3, 6, 10, 30, 0] as const;
+export const CARD_SECONDS_CHOICES = [3, 6, 10, 30, 60, 300, 0] as const;
diff --git a/jarvis/ui/web/frontend/src/views/AppshotsView.tsx b/jarvis/ui/web/frontend/src/views/AppshotsView.tsx
index 7127de2bfa..393c026ed1 100644
--- a/jarvis/ui/web/frontend/src/views/AppshotsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/AppshotsView.tsx
@@ -342,7 +342,9 @@ export function AppshotsView() {
label:
seconds === 0
? t("appshot_editor.card_until_closed")
- : t("appshot_editor.card_seconds_option").replace("{0}", String(seconds)),
+ : seconds >= 60
+ ? t("appshot_editor.card_minutes_option").replace("{0}", String(seconds / 60))
+ : t("appshot_editor.card_seconds_option").replace("{0}", String(seconds)),
})),
// `editorReady` re-labels the options once the chunk has arrived.
[t, editorReady],