Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(plugins): 补齐本地新版提审预检和失败提示

liugaowei786142dc515c
diff --git a/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx b/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx
index c056d384d8..d2dbc1065e 100644
--- a/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx
+++ b/apps/desktop/src/renderer/features/plugin/GhostPluginPage.tsx
@@ -1748,7 +1748,7 @@ function LocalGhostPluginPage({
}, [personalContributor, localContributionKey, showMyPlugins]);
const canPreparePublication = personalContributor && selectedGhost?.publishingSource?.kind === 'local' &&
!contributionUnavailableKey && !showMyPlugins && localContributionResult &&
- !localContributionResult.error && !localContributionResult.plugin;
+ !localContributionResult.error && !localPublishBlocker;
const currentPublicationDraft = useContributionPreview(localContributionKey,
canPreparePublication && selectedGhost ? installedGhostStoragePart(selectedGhost) : undefined,
selectedGhost?.manifest.version,
@@ -1914,7 +1914,7 @@ function LocalGhostPluginPage({
: undefined
}
onContribute={!showLocalPublishing || contributionUnavailableKey || localPublishBlocker ? undefined : () => void contribute(selectedDetail.id)}
- contributionUnavailableReason={contributionUnavailableKey === 'officialGithubRequired' || (contributionUnavailableKey === 'reservedId' && selectedGhost?.publishingSource?.kind === 'public-market') ? t(`settings.ghosts.contribution.unavailable.${contributionUnavailableKey}`) : !showLocalPublishing ? undefined : contributionUnavailableKey ? t(`settings.ghosts.contribution.unavailable.${contributionUnavailableKey}`) : localContributionResult?.error ? t(localContributionResult.error) : localPublishBlocker ? t(`settings.ghosts.contribution.errors.${localPublishBlocker}`) : currentPublicationDraft?.error ? t(currentPublicationDraft.error, { defaultValue: t('settings.ghosts.contribution.loadFailed') }) : currentPublicationDraft?.prepared?.preflight?.blockers[0] ? currentPublicationDraft.prepared.preflight.blockers[0].message : personalContributor && !localContributionResult?.plugin && !currentPublicationDraft?.prepared ? t('settings.ghosts.contribution.preparing') : undefined}
+ contributionUnavailableReason={contributionUnavailableKey === 'officialGithubRequired' || (contributionUnavailableKey === 'reservedId' && selectedGhost?.publishingSource?.kind === 'public-market') ? t(`settings.ghosts.contribution.unavailable.${contributionUnavailableKey}`) : !showLocalPublishing ? undefined : contributionUnavailableKey ? t(`settings.ghosts.contribution.unavailable.${contributionUnavailableKey}`) : localContributionResult?.error ? t(localContributionResult.error) : localPublishBlocker ? t(`settings.ghosts.contribution.errors.${localPublishBlocker}`) : currentPublicationDraft?.error ? t(currentPublicationDraft.error, { defaultValue: t('settings.ghosts.contribution.loadFailed') }) : currentPublicationDraft?.prepared?.preflight?.blockers[0] ? currentPublicationDraft.prepared.preflight.blockers[0].message : personalContributor && !currentPublicationDraft?.prepared ? t('settings.ghosts.contribution.preparing') : undefined}
publishingPreview={currentPublicationDraft?.prepared}
onRefreshPublishing={() => setPublicationRefresh(value => value + 1)}
contributionUpdate={Boolean(localContributionResult?.plugin || (selectedGhost?.manifest.id && marketItems.some((item) => marketItemMatchesInstalledGhost(item, selectedGhost))))}
diff --git a/apps/desktop/src/renderer/features/plugin/__tests__/GhostPluginPage.navigation.test.tsx b/apps/desktop/src/renderer/features/plugin/__tests__/GhostPluginPage.navigation.test.tsx
index 38c2febe44..bd3e82fbd4 100644
--- a/apps/desktop/src/renderer/features/plugin/__tests__/GhostPluginPage.navigation.test.tsx
+++ b/apps/desktop/src/renderer/features/plugin/__tests__/GhostPluginPage.navigation.test.tsx
@@ -874,11 +874,11 @@ describe('plugin use details and independent author management', () => {
let finish!: (value: ContributionTransferView) => void;
const status = vi.fn(() => new Promise<ContributionTransferView>(resolve => { finish = resolve; }));
const error = vi.spyOn(toast, 'error').mockReturnValue('submit-error');
- Object.assign(window.electronAPI, { pluginContributions: { ...api, status, discard: vi.fn() } });
+ Object.assign(window.electronAPI, { pluginContributions: { ...api, status, discard: vi.fn().mockResolvedValue(undefined) } });
render(page(`/plugins?ghost=${installed.instanceKey}`));
await screen.findByRole('heading', { name: 'Local Author Plugin' });
fireEvent.click(screen.getByText(`${prefix}.versionUpdates`));
- const submit = await screen.findByRole('button', { name: `${prefix}.submitUpdate` });
+ const submit = await screen.findByRole('button', { name: `${prefix}.submitVersion` });
fireEvent.click(submit);
fireEvent.click(submit);
await waitFor(() => expect(api.submit).toHaveBeenCalledExactlyOnceWith(prepared.preparedId));
@@ -965,7 +965,9 @@ describe('plugin use details and independent author management', () => {
expect(api.submit).not.toHaveBeenCalled();
});
- it('enables a new installed version only after all release pages confirm it is unused', async () => {
+ // An unused version can still fail preflight (for example, missing update notes).
+ // Exercise the installed-detail action: it must use the same preview as first publication.
+ it.each([true, false])('preflights an unused installed update before submission (allowed=%s)', async allowed => {
auth.mode = 'cloud';
const installed = localAuthorInstallation('2.0.0');
window.electronAPI.ghosts.listSync = () => ({ ghosts: [installed] });
@@ -974,11 +976,30 @@ describe('plugin use details and independent author management', () => {
own.plugin.latestSubmission!.reviewStatus = 'approved';
api.releases.mockResolvedValueOnce({ releases: [own.plugin.latestSubmission!], nextCursor: 'older', queriedAt: own.queriedAt })
.mockResolvedValueOnce({ releases: [], nextCursor: null, queriedAt: own.queriedAt });
- Object.assign(window.electronAPI, { pluginContributions: api });
+ const prepared: ContributionTransferView['prepared'] = { preparedId: 'checked-update', instanceId: installed.instanceKey!, pluginId: detail.pluginId,
+ ghostId: detail.ghostId, name: 'Local Author Plugin', description: '', version: '2.0.0', releaseNotes: 'Checked update notes',
+ sha256: 'a'.repeat(64), sizeBytes: 100, expiresAt: '2099-01-01T00:00:00Z',
+ preflight: { subject: { authority: 'https://issuer.test', membershipId: 'member-A' }, queriedAt: own.queriedAt, policyVersion: 2,
+ target: { pluginId: detail.pluginId, ghostId: detail.ghostId, version: '2.0.0', expectedRelease: null }, pendingRelease: null,
+ blockers: allowed ? [] : [{ code: 'RELEASE_NOTES_REQUIRED', message: 'Missing release notes' }], actions: { canSubmit: allowed } } };
+ let finishPreview!: (value: ContributionTransferView['prepared']) => void;
+ api.prepare.mockImplementation(() => new Promise<ContributionTransferView['prepared']>(resolve => { finishPreview = resolve; }));
+ Object.assign(window.electronAPI, { pluginContributions: { ...api, discard: vi.fn().mockResolvedValue(undefined) } });
render(page(`/plugins?ghost=${installed.instanceKey}`));
- expect(await screen.findByRole('button', { name: `${prefix}.submitUpdate` })).toHaveProperty('disabled', false);
+ await waitFor(() => expect(api.prepare).toHaveBeenCalledTimes(1));
+ expect(screen.getByRole('button', { name: `${prefix}.submitUpdate` })).toHaveProperty('disabled', true);
+ expect(api.submit).not.toHaveBeenCalled();
+ await act(async () => { finishPreview(prepared); });
+ if (allowed) {
+ expect(await screen.findByRole('button', { name: `${prefix}.submitVersion` })).toHaveProperty('disabled', false);
+ fireEvent.click(screen.getByText(`${prefix}.versionUpdates`));
+ expect(screen.getByText('Checked update notes')).toBeTruthy();
+ } else {
+ expect(await screen.findByText('Missing release notes')).toBeTruthy();
+ expect(screen.queryByRole('button', { name: `${prefix}.submitUpdate` })).toBeNull();
+ expect(screen.queryByRole('button', { name: `${prefix}.submitVersion` })).toBeNull();
+ }
expect(api.releases).toHaveBeenCalledWith(detail.pluginId, 'older');
- expect(api.prepare).not.toHaveBeenCalled();
expect(api.submit).not.toHaveBeenCalled();
});
it.each([undefined, { kind: 'unavailable' }, { kind: 'public-market', pluginId: detail.pluginId }] satisfies InstalledGhost['publishingSource'][])(
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 3c21686789..3ba221c9ff 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -7312,24 +7312,24 @@
"PLUGIN_NOT_FOUND": "This plugin is unavailable to the current account.",
"CONTRIBUTION_SUBMISSION_NOT_FOUND": "This plugin is unavailable to the current account.",
"NOT_FOUND": "This plugin is unavailable to the current account.",
- "INTERNAL": "The submission result could not be confirmed.",
- "MUTATION_CANCELLED": "The submission result could not be confirmed.",
- "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "The submission result could not be confirmed.",
+ "INTERNAL": "Request failed. Please try again.",
+ "MUTATION_CANCELLED": "The request was cancelled. Please try again.",
+ "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "This submission differs from the original request. Refresh before submitting again.",
"PLUGIN_ARCHIVED": "Archived",
"RELEASE_REVOKED": "Version Revoked",
- "INVALID_PARAMS": "The submission result could not be confirmed.",
- "PAYLOAD_TOO_LARGE": "The submission result could not be confirmed.",
- "RATE_LIMITED": "The submission result could not be confirmed.",
- "JWKS_UNAVAILABLE": "The submission result could not be confirmed.",
- "STORAGE_UNAVAILABLE": "The submission result could not be confirmed.",
- "PLUGIN_REPLICAS_NOT_READY": "The submission result could not be confirmed.",
- "UPLOAD_OBJECT_MISSING": "The submission result could not be confirmed.",
- "UPLOAD_SIZE_MISMATCH": "The submission result could not be confirmed.",
- "UPLOAD_SHA256_MISMATCH": "The submission result could not be confirmed.",
- "PLUGIN_PACKAGE_INVALID": "The submission result could not be confirmed.",
- "CONTRIBUTION_TARGET_MISMATCH": "The submission result could not be confirmed.",
- "PUBLISH_STORAGE_UNAVAILABLE": "The submission result could not be confirmed.",
- "PUBLISH_INTERNAL_ERROR": "The submission result could not be confirmed.",
+ "INVALID_PARAMS": "The submission contains invalid information. Check the plugin details before submitting again.",
+ "PAYLOAD_TOO_LARGE": "The plugin package is too large. Reduce its size before submitting again.",
+ "RATE_LIMITED": "Too many requests. Please try again later.",
+ "JWKS_UNAVAILABLE": "Account verification is temporarily unavailable. Please try again later.",
+ "STORAGE_UNAVAILABLE": "File storage is temporarily unavailable. Please try again later.",
+ "PLUGIN_REPLICAS_NOT_READY": "The plugin service is temporarily unavailable. Please try again later.",
+ "UPLOAD_OBJECT_MISSING": "The uploaded plugin package was not found. Please submit it again.",
+ "UPLOAD_SIZE_MISMATCH": "The uploaded plugin package size does not match. Please submit it again.",
+ "UPLOAD_SHA256_MISMATCH": "The uploaded plugin package failed verification. Please submit it again.",
+ "PLUGIN_PACKAGE_INVALID": "The plugin package format is invalid. Check it before submitting again.",
+ "CONTRIBUTION_TARGET_MISMATCH": "The package does not match the submission target. Check the plugin ID and version.",
+ "PUBLISH_STORAGE_UNAVAILABLE": "File storage is temporarily unavailable. Please try again later.",
+ "PUBLISH_INTERNAL_ERROR": "The server could not process the request. Please try again later.",
"RELEASE_NOTES_REQUIRED": "Not submitted for review: Complete ghost.json.releaseNotes in the plugin source, install the updated plugin, then submit it for review.",
"VERSION_ALREADY_SUBMITTED": "This version was already submitted. Change the version number and install the updated plugin before submitting for review again.",
"PLUGIN_PENDING_RELEASE_EXISTS": "Another version is under review. View or cancel that review first.",
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 36059c2f60..8fb7167283 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -7281,24 +7281,24 @@
"PLUGIN_NOT_FOUND": "現在のアカウントではこのプラグインを表示できません。",
"CONTRIBUTION_SUBMISSION_NOT_FOUND": "現在のアカウントではこのプラグインを表示できません。",
"NOT_FOUND": "現在のアカウントではこのプラグインを表示できません。",
- "INTERNAL": "提出結果を確認できません。",
- "MUTATION_CANCELLED": "提出結果を確認できません。",
- "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "提出結果を確認できません。",
+ "INTERNAL": "リクエストに失敗しました。もう一度お試しください。",
+ "MUTATION_CANCELLED": "リクエストがキャンセルされました。もう一度操作してください。",
+ "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "提出内容が元のリクエストと一致しません。再読み込みしてから再提出してください。",
"PLUGIN_ARCHIVED": "アーカイブ済み",
"RELEASE_REVOKED": "バージョンを取り消し",
- "INVALID_PARAMS": "提出結果を確認できません。",
- "PAYLOAD_TOO_LARGE": "提出結果を確認できません。",
- "RATE_LIMITED": "提出結果を確認できません。",
- "JWKS_UNAVAILABLE": "提出結果を確認できません。",
- "STORAGE_UNAVAILABLE": "提出結果を確認できません。",
- "PLUGIN_REPLICAS_NOT_READY": "提出結果を確認できません。",
- "UPLOAD_OBJECT_MISSING": "提出結果を確認できません。",
- "UPLOAD_SIZE_MISMATCH": "提出結果を確認できません。",
- "UPLOAD_SHA256_MISMATCH": "提出結果を確認できません。",
- "PLUGIN_PACKAGE_INVALID": "提出結果を確認できません。",
- "CONTRIBUTION_TARGET_MISMATCH": "提出結果を確認できません。",
- "PUBLISH_STORAGE_UNAVAILABLE": "提出結果を確認できません。",
- "PUBLISH_INTERNAL_ERROR": "提出結果を確認できません。",
+ "INVALID_PARAMS": "提出情報に誤りがあります。プラグインの情報を確認してから再提出してください。",
+ "PAYLOAD_TOO_LARGE": "プラグインのパッケージが大きすぎます。サイズを減らしてから再提出してください。",
+ "RATE_LIMITED": "リクエストが多すぎます。しばらくしてからお試しください。",
+ "JWKS_UNAVAILABLE": "アカウント認証サービスを一時的に利用できません。しばらくしてからお試しください。",
+ "STORAGE_UNAVAILABLE": "ファイルストレージを一時的に利用できません。しばらくしてからお試しください。",
+ "PLUGIN_REPLICAS_NOT_READY": "プラグインサービスを一時的に利用できません。しばらくしてからお試しください。",
+ "UPLOAD_OBJECT_MISSING": "アップロードしたプラグインのパッケージが見つかりません。再提出してください。",
+ "UPLOAD_SIZE_MISMATCH": "アップロードしたプラグインのパッケージのサイズが一致しません。再提出してください。",
+ "UPLOAD_SHA256_MISMATCH": "アップロードしたプラグインのパッケージの検証に失敗しました。再提出してください。",
+ "PLUGIN_PACKAGE_INVALID": "プラグインのパッケージ形式が無効です。確認してから再提出してください。",
+ "CONTRIBUTION_TARGET_MISMATCH": "パッケージが提出先と一致しません。プラグインの ID とバージョンを確認してください。",
+ "PUBLISH_STORAGE_UNAVAILABLE": "ファイルストレージを一時的に利用できません。しばらくしてからお試しください。",
+ "PUBLISH_INTERNAL_ERROR": "サーバーでの処理に失敗しました。しばらくしてからお試しください。",
"RELEASE_NOTES_REQUIRED": "審査未提出:プラグインのソースにある ghost.json.releaseNotes に更新内容を記載し、更新したプラグインをインストールしてから審査に提出してください。",
"VERSION_ALREADY_SUBMITTED": "このバージョンは提出済みです。バージョン番号を変更して更新をインストールしてから、審査に再提出してください。",
"PLUGIN_PENDING_RELEASE_EXISTS": "別のバージョンが審査中です。その審査を確認するか取り消してください。",
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index 142a5bb862..996f4cea1e 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -7281,24 +7281,24 @@
"PLUGIN_NOT_FOUND": "현재 계정으로 이 플러그인을 볼 수 없습니다.",
"CONTRIBUTION_SUBMISSION_NOT_FOUND": "현재 계정으로 이 플러그인을 볼 수 없습니다.",
"NOT_FOUND": "현재 계정으로 이 플러그인을 볼 수 없습니다.",
- "INTERNAL": "제출 결과를 확인할 수 없습니다.",
- "MUTATION_CANCELLED": "제출 결과를 확인할 수 없습니다.",
- "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "제출 결과를 확인할 수 없습니다.",
+ "INTERNAL": "요청에 실패했습니다. 다시 시도해 주세요.",
+ "MUTATION_CANCELLED": "요청이 취소되었습니다. 다시 시도하세요.",
+ "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "제출 내용이 원래 요청과 일치하지 않습니다. 새로고침한 후 다시 제출하세요.",
"PLUGIN_ARCHIVED": "보관됨",
"RELEASE_REVOKED": "버전 철회됨",
- "INVALID_PARAMS": "제출 결과를 확인할 수 없습니다.",
- "PAYLOAD_TOO_LARGE": "제출 결과를 확인할 수 없습니다.",
- "RATE_LIMITED": "제출 결과를 확인할 수 없습니다.",
- "JWKS_UNAVAILABLE": "제출 결과를 확인할 수 없습니다.",
- "STORAGE_UNAVAILABLE": "제출 결과를 확인할 수 없습니다.",
- "PLUGIN_REPLICAS_NOT_READY": "제출 결과를 확인할 수 없습니다.",
- "UPLOAD_OBJECT_MISSING": "제출 결과를 확인할 수 없습니다.",
- "UPLOAD_SIZE_MISMATCH": "제출 결과를 확인할 수 없습니다.",
- "UPLOAD_SHA256_MISMATCH": "제출 결과를 확인할 수 없습니다.",
- "PLUGIN_PACKAGE_INVALID": "제출 결과를 확인할 수 없습니다.",
- "CONTRIBUTION_TARGET_MISMATCH": "제출 결과를 확인할 수 없습니다.",
- "PUBLISH_STORAGE_UNAVAILABLE": "제출 결과를 확인할 수 없습니다.",
- "PUBLISH_INTERNAL_ERROR": "제출 결과를 확인할 수 없습니다.",
+ "INVALID_PARAMS": "제출 정보가 올바르지 않습니다. 플러그인 정보를 확인한 후 다시 제출하세요.",
+ "PAYLOAD_TOO_LARGE": "플러그인 패키지가 너무 큽니다. 크기를 줄인 후 다시 제출하세요.",
+ "RATE_LIMITED": "요청이 너무 많습니다. 잠시 후 다시 시도하세요.",
+ "JWKS_UNAVAILABLE": "계정 인증 서비스를 일시적으로 사용할 수 없습니다. 잠시 후 다시 시도하세요.",
+ "STORAGE_UNAVAILABLE": "파일 저장소를 일시적으로 사용할 수 없습니다. 잠시 후 다시 시도하세요.",
+ "PLUGIN_REPLICAS_NOT_READY": "플러그인 서비스를 일시적으로 사용할 수 없습니다. 잠시 후 다시 시도하세요.",
+ "UPLOAD_OBJECT_MISSING": "업로드한 플러그인 패키지를 찾을 수 없습니다. 다시 제출하세요.",
+ "UPLOAD_SIZE_MISMATCH": "업로드한 플러그인 패키지의 크기가 일치하지 않습니다. 다시 제출하세요.",
+ "UPLOAD_SHA256_MISMATCH": "업로드한 플러그인 패키지 검증에 실패했습니다. 다시 제출하세요.",
+ "PLUGIN_PACKAGE_INVALID": "플러그인 패키지 형식이 올바르지 않습니다. 확인한 후 다시 제출하세요.",
+ "CONTRIBUTION_TARGET_MISMATCH": "패키지가 제출 대상과 일치하지 않습니다. 플러그인 ID와 버전을 확인하세요.",
+ "PUBLISH_STORAGE_UNAVAILABLE": "파일 저장소를 일시적으로 사용할 수 없습니다. 잠시 후 다시 시도하세요.",
+ "PUBLISH_INTERNAL_ERROR": "서버에서 요청을 처리하지 못했습니다. 잠시 후 다시 시도하세요.",
"RELEASE_NOTES_REQUIRED": "아직 심사에 제출되지 않았습니다. 플러그인 소스의 ghost.json.releaseNotes에 업데이트 내용을 작성하고, 업데이트한 플러그인을 설치한 후 심사를 요청하세요.",
"VERSION_ALREADY_SUBMITTED": "이미 심사를 요청한 버전입니다. 버전 번호를 변경하고 업데이트를 설치한 후 다시 심사를 요청하세요.",
"PLUGIN_PENDING_RELEASE_EXISTS": "다른 버전이 심사 중입니다. 먼저 해당 심사를 확인하거나 취소하세요.",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
index 36ae2cb98d..f6aac9d448 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -7281,24 +7281,24 @@
"PLUGIN_NOT_FOUND": "当前账号无法查看此插件。",
"CONTRIBUTION_SUBMISSION_NOT_FOUND": "当前账号无法查看此插件。",
"NOT_FOUND": "当前账号无法查看此插件。",
- "INTERNAL": "暂时无法确认提交结果。",
- "MUTATION_CANCELLED": "暂时无法确认提交结果。",
- "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "暂时无法确认提交结果。",
+ "INTERNAL": "请求失败,请稍后重试。",
+ "MUTATION_CANCELLED": "请求已取消,请重新操作。",
+ "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "提交请求与原记录不一致,请刷新后重新提交。",
"PLUGIN_ARCHIVED": "已归档",
"RELEASE_REVOKED": "版本已撤销",
- "INVALID_PARAMS": "暂时无法确认提交结果。",
- "PAYLOAD_TOO_LARGE": "暂时无法确认提交结果。",
- "RATE_LIMITED": "暂时无法确认提交结果。",
- "JWKS_UNAVAILABLE": "暂时无法确认提交结果。",
- "STORAGE_UNAVAILABLE": "暂时无法确认提交结果。",
- "PLUGIN_REPLICAS_NOT_READY": "暂时无法确认提交结果。",
- "UPLOAD_OBJECT_MISSING": "暂时无法确认提交结果。",
- "UPLOAD_SIZE_MISMATCH": "暂时无法确认提交结果。",
- "UPLOAD_SHA256_MISMATCH": "暂时无法确认提交结果。",
- "PLUGIN_PACKAGE_INVALID": "暂时无法确认提交结果。",
- "CONTRIBUTION_TARGET_MISMATCH": "暂时无法确认提交结果。",
- "PUBLISH_STORAGE_UNAVAILABLE": "暂时无法确认提交结果。",
- "PUBLISH_INTERNAL_ERROR": "暂时无法确认提交结果。",
+ "INVALID_PARAMS": "提交信息有误,请检查插件信息后重新提交。",
+ "PAYLOAD_TOO_LARGE": "插件包过大,请缩小后重新提交。",
+ "RATE_LIMITED": "请求过于频繁,请稍后再试。",
+ "JWKS_UNAVAILABLE": "账号验证服务暂不可用,请稍后再试。",
+ "STORAGE_UNAVAILABLE": "文件存储服务暂不可用,请稍后再试。",
+ "PLUGIN_REPLICAS_NOT_READY": "插件服务暂不可用,请稍后再试。",
+ "UPLOAD_OBJECT_MISSING": "未找到上传的插件包,请重新提交。",
+ "UPLOAD_SIZE_MISMATCH": "上传的插件包大小不符,请重新提交。",
+ "UPLOAD_SHA256_MISMATCH": "上传的插件包校验失败,请重新提交。",
+ "PLUGIN_PACKAGE_INVALID": "插件包格式无效,请检查后重新提交。",
+ "CONTRIBUTION_TARGET_MISMATCH": "插件包与提交目标不符,请检查插件 ID 和版本。",
+ "PUBLISH_STORAGE_UNAVAILABLE": "文件存储服务暂不可用,请稍后再试。",
+ "PUBLISH_INTERNAL_ERROR": "服务端处理失败,请稍后再试。",
"RELEASE_NOTES_REQUIRED": "尚未提审:请在插件源码的 ghost.json.releaseNotes 中补全更新说明,安装更新后重新提交审核。",
"VERSION_ALREADY_SUBMITTED": "该版本已经提审,请更改版本号并安装更新后重新提交审核。",
"PLUGIN_PENDING_RELEASE_EXISTS": "此插件已有版本正在审核,请先查看或取消该次提审。",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
index 39963f161c..b3907eb6a7 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -7281,24 +7281,24 @@
"PLUGIN_NOT_FOUND": "目前帳號無法查看此插件。",
"CONTRIBUTION_SUBMISSION_NOT_FOUND": "目前帳號無法查看此插件。",
"NOT_FOUND": "目前帳號無法查看此插件。",
- "INTERNAL": "暫時無法確認提交結果。",
- "MUTATION_CANCELLED": "暫時無法確認提交結果。",
- "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "暫時無法確認提交結果。",
+ "INTERNAL": "請求失敗,請稍後重試。",
+ "MUTATION_CANCELLED": "請求已取消,請重新操作。",
+ "CONTRIBUTION_IDEMPOTENCY_CONFLICT": "提交請求與原紀錄不一致,請重新整理後再提交。",
"PLUGIN_ARCHIVED": "已封存",
"RELEASE_REVOKED": "版本已撤銷",
- "INVALID_PARAMS": "暫時無法確認提交結果。",
- "PAYLOAD_TOO_LARGE": "暫時無法確認提交結果。",
- "RATE_LIMITED": "暫時無法確認提交結果。",
- "JWKS_UNAVAILABLE": "暫時無法確認提交結果。",
- "STORAGE_UNAVAILABLE": "暫時無法確認提交結果。",
- "PLUGIN_REPLICAS_NOT_READY": "暫時無法確認提交結果。",
- "UPLOAD_OBJECT_MISSING": "暫時無法確認提交結果。",
- "UPLOAD_SIZE_MISMATCH": "暫時無法確認提交結果。",
- "UPLOAD_SHA256_MISMATCH": "暫時無法確認提交結果。",
- "PLUGIN_PACKAGE_INVALID": "暫時無法確認提交結果。",
- "CONTRIBUTION_TARGET_MISMATCH": "暫時無法確認提交結果。",
- "PUBLISH_STORAGE_UNAVAILABLE": "暫時無法確認提交結果。",
- "PUBLISH_INTERNAL_ERROR": "暫時無法確認提交結果。",
+ "INVALID_PARAMS": "提交資訊有誤,請檢查插件資訊後重新提交。",
+ "PAYLOAD_TOO_LARGE": "插件套件過大,請縮小後重新提交。",
+ "RATE_LIMITED": "請求過於頻繁,請稍後再試。",
+ "JWKS_UNAVAILABLE": "帳號驗證服務暫時無法使用,請稍後再試。",
+ "STORAGE_UNAVAILABLE": "檔案儲存服務暫時無法使用,請稍後再試。",
+ "PLUGIN_REPLICAS_NOT_READY": "插件服務暫時無法使用,請稍後再試。",
+ "UPLOAD_OBJECT_MISSING": "找不到已上傳的插件套件,請重新提交。",
+ "UPLOAD_SIZE_MISMATCH": "上傳的插件套件大小不符,請重新提交。",
+ "UPLOAD_SHA256_MISMATCH": "上傳的插件套件驗證失敗,請重新提交。",
+ "PLUGIN_PACKAGE_INVALID": "插件套件格式無效,請檢查後重新提交。",
+ "CONTRIBUTION_TARGET_MISMATCH": "插件套件與提交目標不符,請檢查插件 ID 和版本。",
+ "PUBLISH_STORAGE_UNAVAILABLE": "檔案儲存服務暫時無法使用,請稍後再試。",
+ "PUBLISH_INTERNAL_ERROR": "伺服器處理失敗,請稍後再試。",
"RELEASE_NOTES_REQUIRED": "尚未送審:請在插件原始碼的 ghost.json.releaseNotes 中補齊更新說明,安裝更新後重新提交審核。",
"VERSION_ALREADY_SUBMITTED": "此版本已經送審,請更改版本號並安裝更新後重新提交審核。",
"PLUGIN_PENDING_RELEASE_EXISTS": "此插件已有版本正在審核,請先查看或取消該次審核。",