Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): 更新卡按钮带上动作对象、进行中加省略号、大字号时换行
zqchris045b1f78dd82
diff --git a/apps/mobile/src/i18n/locales/en/update.json b/apps/mobile/src/i18n/locales/en/update.jsonindex 5de1f0b201..8c535771ea 100644--- a/apps/mobile/src/i18n/locales/en/update.json+++ b/apps/mobile/src/i18n/locales/en/update.json@@ -24,16 +24,16 @@"grantAndUpdate": "Allow & Update","deniedTitle": "Installation isn't allowed yet","deniedBody": "Allow it again, or download in your browser instead.",- "grantAgain": "Allow Again",- "downloading": "Downloading",+ "grantAgain": "Allow Installation Again",+ "downloading": "Downloading…","percent": "{{percent}}%",- "installing": "Opening installer",+ "installing": "Opening Installer…","ready": "Downloaded and ready to install","install": "Install Update","failedTitle": "Update didn't finish","failedBody": "Something went wrong while downloading or opening the installer.",- "retry": "Try Again",- "cancel": "Cancel",+ "retry": "Retry Update",+ "cancel": "Cancel Update","browser": "Download in Browser Instead","browserFailed": "Could not open the download link. Try again later."}diff --git a/apps/mobile/src/i18n/locales/ja/update.json b/apps/mobile/src/i18n/locales/ja/update.jsonindex a19712fcbf..0784bde7a8 100644--- a/apps/mobile/src/i18n/locales/ja/update.json+++ b/apps/mobile/src/i18n/locales/ja/update.json@@ -24,16 +24,16 @@"grantAndUpdate": "許可して更新","deniedTitle": "インストールがまだ許可されていません","deniedBody": "もう一度許可するか、ブラウザーでダウンロードしてください。",- "grantAgain": "もう一度許可",- "downloading": "ダウンロード中",+ "grantAgain": "インストールを再度許可",+ "downloading": "ダウンロード中…","percent": "{{percent}}%",- "installing": "インストーラーを開いています",+ "installing": "インストーラーを開いています…","ready": "ダウンロード完了。いつでもインストールできます","install": "更新をインストール","failedTitle": "更新を完了できませんでした","failedBody": "ダウンロードまたはインストーラーの起動中にエラーが発生しました。",- "retry": "再試行",- "cancel": "キャンセル",+ "retry": "更新を再試行",+ "cancel": "更新をキャンセル","browser": "ブラウザーでダウンロード","browserFailed": "ダウンロードリンクを開けませんでした。後でもう一度お試しください。"}diff --git a/apps/mobile/src/i18n/locales/ko/update.json b/apps/mobile/src/i18n/locales/ko/update.jsonindex 8193063839..9596dfa00f 100644--- a/apps/mobile/src/i18n/locales/ko/update.json+++ b/apps/mobile/src/i18n/locales/ko/update.json@@ -24,16 +24,16 @@"grantAndUpdate": "허용하고 업데이트","deniedTitle": "아직 설치가 허용되지 않았습니다","deniedBody": "다시 허용하거나 브라우저에서 다운로드하세요.",- "grantAgain": "다시 허용",- "downloading": "다운로드 중",+ "grantAgain": "설치 다시 허용",+ "downloading": "다운로드 중…","percent": "{{percent}}%",- "installing": "설치 프로그램 여는 중",+ "installing": "설치 프로그램 여는 중…","ready": "다운로드 완료. 언제든 설치할 수 있습니다","install": "업데이트 설치","failedTitle": "업데이트를 완료하지 못했습니다","failedBody": "다운로드하거나 설치 프로그램을 여는 중 오류가 발생했습니다.",- "retry": "다시 시도",- "cancel": "취소",+ "retry": "업데이트 다시 시도",+ "cancel": "업데이트 취소","browser": "브라우저에서 다운로드","browserFailed": "다운로드 링크를 열 수 없습니다. 나중에 다시 시도하세요."}diff --git a/apps/mobile/src/i18n/locales/zh-CN/update.json b/apps/mobile/src/i18n/locales/zh-CN/update.jsonindex 4f5637785a..e1a0afea86 100644--- a/apps/mobile/src/i18n/locales/zh-CN/update.json+++ b/apps/mobile/src/i18n/locales/zh-CN/update.json@@ -24,16 +24,16 @@"grantAndUpdate": "允许并更新","deniedTitle": "尚未开启安装权限","deniedBody": "可以重新开启,或改用浏览器下载。",- "grantAgain": "重新开启",- "downloading": "正在下载",+ "grantAgain": "重新允许安装",+ "downloading": "正在下载…","percent": "{{percent}}%",- "installing": "正在打开安装器",+ "installing": "正在打开安装器…","ready": "已下载完成,可以随时安装","install": "安装更新","failedTitle": "更新没有完成","failedBody": "下载或打开安装器时出错。",- "retry": "重试",- "cancel": "取消",+ "retry": "重试更新",+ "cancel": "取消更新","browser": "改用浏览器下载","browserFailed": "无法打开下载链接,请稍后重试。"}diff --git a/apps/mobile/src/i18n/locales/zh-TW/update.json b/apps/mobile/src/i18n/locales/zh-TW/update.jsonindex 8c7602c557..c38e44808e 100644--- a/apps/mobile/src/i18n/locales/zh-TW/update.json+++ b/apps/mobile/src/i18n/locales/zh-TW/update.json@@ -24,16 +24,16 @@"grantAndUpdate": "允許並更新","deniedTitle": "尚未開啟安裝權限","deniedBody": "可以重新開啟,或改用瀏覽器下載。",- "grantAgain": "重新開啟",- "downloading": "正在下載",+ "grantAgain": "重新允許安裝",+ "downloading": "正在下載…","percent": "{{percent}}%",- "installing": "正在開啟安裝程式",+ "installing": "正在開啟安裝程式…","ready": "已下載完成,可以隨時安裝","install": "安裝更新","failedTitle": "更新沒有完成","failedBody": "下載或開啟安裝程式時出錯。",- "retry": "重試",- "cancel": "取消",+ "retry": "重試更新",+ "cancel": "取消更新","browser": "改用瀏覽器下載","browserFailed": "無法開啟下載連結,請稍後重試。"}diff --git a/apps/mobile/src/update/AndroidUpdateSheet.tsx b/apps/mobile/src/update/AndroidUpdateSheet.tsxindex a6a6f14962..f4d14fec50 100644--- a/apps/mobile/src/update/AndroidUpdateSheet.tsx+++ b/apps/mobile/src/update/AndroidUpdateSheet.tsx@@ -148,16 +148,20 @@ function AndroidUpdateCard({ state }: { state: AndroidInstallState }) {<View style={styles.actions}><MainWindowActionButtongrow+ numberOfLines={0}action={{label: view.dismiss === 'cancel' ? t('update.android.cancel') : t('update.later'),onPress: androidInstaller.close,testID: 'update.android.cancel',}}- style={styles.secondaryButton}+ style={[styles.actionButton, styles.secondaryButton]}+ textStyle={styles.actionLabel}/>{view.primary ? (<MainWindowActionButtongrow+ // Large system fonts and narrow panes wrap the label instead of truncating the main action.+ numberOfLines={0}action={{busy: view.primary.busy,label: t(PRIMARY_COPY[view.primary.label]),@@ -165,6 +169,8 @@ function AndroidUpdateCard({ state }: { state: AndroidInstallState }) {tone: 'primary',testID: 'update.android.retry',}}+ style={styles.actionButton}+ textStyle={styles.actionLabel}/>) : null}</View>@@ -292,6 +298,9 @@ const makeStyles = (colors: ThemeColors) => StyleSheet.create({readyText: { color: colors.textSecondary, flex: 1, fontSize: typeScale.footnote, lineHeight: lineHeight.caption },actions: { flexDirection: 'row', gap: spacing.sm, marginTop: spacing.xl },// Secondary actions in a paired row are filled chips without a stroke (same as CompanionCardButton).+ // Wrapped labels keep breathing room inside the pill and stay centered.+ actionButton: { paddingVertical: spacing.sm },+ actionLabel: { textAlign: 'center' },secondaryButton: { backgroundColor: colors.surfaceChip, borderColor: colors.surfaceChip },browser: { alignItems: 'center', justifyContent: 'center', marginTop: spacing.xs, minHeight: 44 },browserText: { color: colors.textSecondary, fontSize: typeScale.footnote, fontWeight: fontWeight.medium, lineHeight: lineHeight.caption },