Python
gui: fix plural forms and notice strings caught by CI e2e
Rohit C Prasad709a9bab90c7
diff --git a/surfaces/gui/src/App.tsx b/surfaces/gui/src/App.tsxindex 64055d1d..cafa1fcf 100644--- a/surfaces/gui/src/App.tsx+++ b/surfaces/gui/src/App.tsx@@ -1,4 +1,4 @@-import { useCallback, useEffect, useRef, useState, type PointerEvent } from "react";+import { useCallback, useEffect, useLayoutEffect, useRef, useState, type PointerEvent } from "react";import { useTranslation } from "react-i18next";import {announceInboxUnlock,@@ -347,7 +347,10 @@ export function App() {navBeforePreview.current = null;}}, []);- useEffect(() => {+ // Layout effect on purpose: a passive effect registers after paint, leaving a boot-splash+ // window where the app is visible but ⌘B/⌘, are dead (input arriving right after load was+ // dropped). Registering at commit closes that gap.+ useLayoutEffect(() => {const onKey = (e: KeyboardEvent) => {if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "b") {e.preventDefault();diff --git a/surfaces/gui/src/components/Onboarding.tsx b/surfaces/gui/src/components/Onboarding.tsxindex 1154b7c0..310705bf 100644--- a/surfaces/gui/src/components/Onboarding.tsx+++ b/surfaces/gui/src/components/Onboarding.tsx@@ -282,7 +282,9 @@ export function Onboarding({ onDone }: { onDone: (next?: "work" | "gallery" | "adata-testid="ob-tools-signedin"><span className="block text-[13px] font-semibold text-ok mb-0.5">- {t("onboarding.signed_in_as", { account: cloud.account ? ` ${cloud.account}` : "" })}+ {cloud.account+ ? t("onboarding.signed_in_as", { account: cloud.account })+ : t("onboarding.signed_in")}</span><span className="block text-[13px] text-muted">{t("onboarding.signed_in_desc")}diff --git a/surfaces/gui/src/locales/en.json b/surfaces/gui/src/locales/en.jsonindex 5075ed0c..25cbc260 100644--- a/surfaces/gui/src/locales/en.json+++ b/surfaces/gui/src/locales/en.json@@ -313,7 +313,7 @@"personas_intro": "Manage your coworkers and add new ones.","scratch_placeholder": "~/OpenWorker","files_browse": "Browse…",- "files_help": "The scratch space where coworkers save produced files. Override per session.",+ "files_help": "Each conversation gets its own folder under this location. Existing conversations keep their current folder; you can grant access to more folders inside any conversation.","files_pick_folder": "Pick a folder","files_save": "Save","files_save_error": "Couldn't save.",@@ -683,14 +683,15 @@"channels_note": "The agent receives messages posted to these channels. Removing one stops this session from listening — the connector stays connected.","summary_no_sources": "no sources","summary_sources_more": "{{first}} +{{more}}",- "summary_folder_count": "{{count}} folders","summary_join": "{{sources}} · {{folder}}","addfolder_path_placeholder": "Choose or paste a folder path…","allow_writes": "Allow writing (read-write)","allow_writes_help": "When granted, the agent can read and write files in this folder.","cancel": "Cancel","choose_location": "Choose location",- "channel_add_error": "Couldn't add that channel."+ "channel_add_error": "Couldn't add that channel.",+ "summary_folder_count_one": "{{count}} folder",+ "summary_folder_count_other": "{{count}} folders"},"root": {"temporary_space": "Temporary folder",@@ -1244,7 +1245,7 @@"opening_browser": "Opening browser…","replay_hint": "Replay this setup anytime: Settings ▸ Appearance ▸ Run setup again.","sign_in": "Sign in",- "signed_in_as": "🎉 You're signed in{{account}}",+ "signed_in_as": "🎉 You’re signed in as {{account}}","signed_in_desc": "Connect a tool above with one click — or add them anytime later from the Connectors page.","signin_band_desc": "OpenWorker handles the OAuth for 20+ tools — no dev consoles, no pasted keys. Tokens stay on this computer.","signin_for_oneclick": "Sign in for one-click connections",@@ -1266,7 +1267,8 @@"tool_hubspot_benefit": "Keep the CRM current","tool_hubspot_detail": "HubSpot — update deals, log notes, prep calls.","tool_attio_benefit": "Track every relationship",- "tool_attio_detail": "Attio — search records, read timelines, log notes."+ "tool_attio_detail": "Attio — search records, read timelines, log notes.",+ "signed_in": "🎉 You’re signed in"},"persona": {"about": "About",diff --git a/surfaces/gui/src/locales/zh.json b/surfaces/gui/src/locales/zh.jsonindex cdac757b..65c3389d 100644--- a/surfaces/gui/src/locales/zh.json+++ b/surfaces/gui/src/locales/zh.json@@ -306,7 +306,7 @@"personas_intro": "管理你的同事,并添加新同事。","scratch_placeholder": "~/OpenWorker","files_browse": "浏览…",- "files_help": "同事保存产出文件的临时目录。可在每会话中覆盖。",+ "files_help": "每个会话都会在此位置下获得自己的文件夹。已有会话保留当前文件夹;你可以在任意会话中授予更多文件夹的访问权限。","files_pick_folder": "选择文件夹","files_save": "保存","files_save_error": "无法保存。",@@ -673,14 +673,14 @@"channels_note": "agent 会接收发布到这些频道的消息。移除一个会停止本会话的监听 —— 连接器保持连接。","summary_no_sources": "无来源","summary_sources_more": "{{first}} +{{more}}",- "summary_folder_count": "{{count}} 个文件夹","summary_join": "{{sources}} · {{folder}}","addfolder_path_placeholder": "选择或粘贴文件夹路径…","allow_writes": "允许写入(读写)","allow_writes_help": "授予后,agent 可在该文件夹中读写文件。","cancel": "取消","choose_location": "选择位置",- "channel_add_error": "无法添加该频道。"+ "channel_add_error": "无法添加该频道。",+ "summary_folder_count_other": "{{count}} 个文件夹"},"root": {"temporary_space": "临时文件夹",@@ -1229,7 +1229,7 @@"opening_browser": "正在打开浏览器…","replay_hint": "随时重放此设置:设置 ▸ 外观 ▸ 重新运行引导。","sign_in": "登录",- "signed_in_as": "🎉 你已登录{{account}}",+ "signed_in_as": "🎉 你已登录:{{account}}","signed_in_desc": "上方任意工具一键连接 —— 或稍后随时在连接器页面添加。","signin_band_desc": "OpenWorker 代为处理 20+ 工具的 OAuth —— 无需开发者控制台、无需粘贴密钥。令牌保留在本机。","signin_for_oneclick": "登录即可一键连接",@@ -1251,7 +1251,8 @@"tool_hubspot_benefit": "保持 CRM 数据最新","tool_hubspot_detail": "HubSpot —— 更新商机、记录笔记、准备通话。","tool_attio_benefit": "跟进每一段客户关系",- "tool_attio_detail": "Attio —— 搜索记录、查看时间线、记录笔记。"+ "tool_attio_detail": "Attio —— 搜索记录、查看时间线、记录笔记。",+ "signed_in": "🎉 你已登录"},"persona": {"about": "关于",