From 9bc58ec81b5320d05f8808af7ebedf242ca05b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=85=E8=86=80?= Date: Fri, 23 Oct 2026 23:23:49 +0800 Subject: [PATCH] fix(console): explain rejected install bindings Explain why an installation binding was refused instead of silently returning to the console with no visible outcome. --- app/components/ConsolePage.vue | 1 + app/composables/useI18n.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/app/components/ConsolePage.vue b/app/components/ConsolePage.vue index 4b72d29..aa390a6 100644 --- a/app/components/ConsolePage.vue +++ b/app/components/ConsolePage.vue @@ -746,6 +746,7 @@ onMounted(() => { if (invite === "ok") push(t("members.inviteOk")); else if (invite != null && invite !== "ok") push(t("members.inviteBad"), "bad"); if (params.get("install") === "ok") push(t("install.ok")); + if (params.get("error") === "install-forbidden") push(t("install.forbidden"), "bad"); } loadGroups(); }); diff --git a/app/composables/useI18n.ts b/app/composables/useI18n.ts index 7d32c34..198bf34 100644 --- a/app/composables/useI18n.ts +++ b/app/composables/useI18n.ts @@ -114,6 +114,8 @@ const en: Dict = { "members.inviteBad": "This invite is invalid or expired.", "install.ok": "GitHub App installation registered — the group has been created and bound to this installation.", + "install.forbidden": + "Your GitHub account cannot manage this installation, so it was not bound. Sign in with an account that administers it.", "webhook.title": "Webhook endpoint", "webhook.note": "(per-group URL + secret)", "webhook.empty": "Not configured. Generate a secret to enable the group's own webhook endpoint.", @@ -565,6 +567,7 @@ const zh: Dict = { "members.inviteOk": "邀请已接受 —— 欢迎!", "members.inviteBad": "该邀请无效或已过期。", "install.ok": "GitHub App 安装已注册 —— 分组已创建并绑定到该安装。", + "install.forbidden": "你的 GitHub 账号无权管理该安装,未进行绑定。请使用该安装的管理员账号登录。", "webhook.title": "Webhook 入口", "webhook.note": "(分组独立的 URL + secret)", "webhook.empty": "未配置。生成 secret 即可启用该分组的独立 webhook 入口。",