A local-first multi-agent app development platform, built on PenguinHarness
feat(web): 账号菜单多了「反馈社区」,一键到公开反馈板
lmliheng3d1deb604dfd
diff --git a/changelog/unreleased/2026-10-15-feedback-board-link.md b/changelog/unreleased/2026-10-15-feedback-board-link.mdnew file mode 100644index 00000000..e6df7866--- /dev/null+++ b/changelog/unreleased/2026-10-15-feedback-board-link.md@@ -0,0 +1,21 @@+# The account menu links to the public feedback board++- **Date:** 2026-10-15+- **Type:** feat+- **Scope:** `web`++[中文版](2026-10-15-feedback-board-link.zh.md)++The account menu at the bottom of the sidebar has a new row, **Feedback board**, which opens the+product's public board (Tencent's 兔小巢) in a new tab — where anyone can post, and read what others+have already reported.++It sits beside the existing **Feedback** row rather than replacing it, because the two are different+doors: the old row files into *this machine's* queue and appears only where the operator configured+an endpoint, while the board belongs to the product and is therefore the same address, and offered,+in every install. A muted line under the new row says the board is public, so the two are told apart+at a glance.++The link opens the way the app opens every off-app destination: a new tab, `noopener,noreferrer`,+and in the desktop window it is handed to the system browser (the same route the GitHub and Releases+links take).diff --git a/changelog/unreleased/2026-10-15-feedback-board-link.zh.md b/changelog/unreleased/2026-10-15-feedback-board-link.zh.mdnew file mode 100644index 00000000..14b487fe--- /dev/null+++ b/changelog/unreleased/2026-10-15-feedback-board-link.zh.md@@ -0,0 +1,17 @@+# 账号菜单多一行「反馈社区」,一键到公开反馈板++- **Date:** 2026-10-15+- **Type:** feat+- **Scope:** `web`++[English](2026-10-15-feedback-board-link.md)++左下角账号菜单多了一行**反馈社区**,点开就是产品的公开反馈板(腾讯兔小巢),在新标签页里打开,+不打断当前页面。在那儿可以发帖,也能看到别人已经报过的问题。++它和旁边那行**用户反馈**是两扇门,所以并排放着而不是合并:原来那行写的是「直接收进这台机器的+反馈队列」,而且只有这台机器配了反馈后端时才出现;公开板块属于产品本身,每个安装都是同一个地址,+因此永远都在。板块那行带一句小字说明「公开」,两行的区别一眼看得出来。++外链按仓库既有做法打开:新标签页 + `noopener,noreferrer`,桌面客户端里则由外壳交给系统浏览器+(和「项目在 GitHub 上」「打开 Releases 页面」同一条路)。diff --git a/packages/web/src/components/layout/user-menu.tsx b/packages/web/src/components/layout/user-menu.tsxindex ce8e27f7..4cae84ea 100644--- a/packages/web/src/components/layout/user-menu.tsx+++ b/packages/web/src/components/layout/user-menu.tsx@@ -25,6 +25,7 @@ import { useAuth } from "../../state/auth";import { UpdateRow } from "../account/update-row";import { UserVaultDialog } from "../account/user-vault-dialog";import { FeedbackDialog, useFeedbackChannel } from "../account/feedback-dialog";+import { openFeedbackBoard } from "../../lib/feedback-board";import { openUpdateModal } from "../../lib/use-update-flow";import { SettingsDialog } from "../../features/settings/settings-dialog";import { onSettingsRequest } from "../../features/settings/settings-request";@@ -155,6 +156,18 @@ export function UserMenu({}}/>)}+ {/* The other feedback door, right under that one: the product's public board, which+ every install has (see lib/feedback-board.ts) and which leaves the app for the+ system browser. Its description is what keeps the two rows apart — one files into+ this machine's queue, this one is out in the open. */}+ <MenuItem+ label={S.feedback.board}+ description={S.feedback.boardHint}+ onSelect={() => {+ setOpen(false);+ openFeedbackBoard();+ }}+ />{/* Update entry, under the two navigation rows rather than on a page inside thesettings dialog: one row for both backends (the server release here, theshell's own updater in the desktop window), naming where the update flowdiff --git a/packages/web/src/lib/feedback-board.ts b/packages/web/src/lib/feedback-board.tsnew file mode 100644index 00000000..209c0df2--- /dev/null+++ b/packages/web/src/lib/feedback-board.ts@@ -0,0 +1,25 @@+/**+ * The product's public feedback board (Tencent's 兔小巢 hosts it): where anyone using the app can+ * post a bug report or a request in the open, and read what others already reported.+ *+ * It stands BESIDE the account menu's own feedback dialog rather than replacing it. That dialog+ * files into the operator's queue (ADELIE_FEEDBACK_URL, see the server's feedback route) and is+ * only offered where the install has that switch turned on; the board belongs to the product, so it+ * is the same address in every install and is offered always.+ *+ * A module rather than a literal inside the row: the address is the product's, not a preference,+ * and saying so here is what lets the test pin both the address and the way it is opened.+ */++/** Where the public board lives. */+export const FEEDBACK_BOARD_URL = "https://txc.qq.com/products/802227";++/**+ * Opens the board in a new tab, isolated from this one (`noopener,noreferrer`) — the shape the app+ * opens every off-app destination with (the Link component's `external`, terminal links). In the+ * desktop window the shell hands a foreign address to the system browser, which is what leaving the+ * app for the board should do.+ */+export function openFeedbackBoard(): void {+ window.open(FEEDBACK_BOARD_URL, "_blank", "noopener,noreferrer");+}diff --git a/packages/web/src/lib/strings-en.ts b/packages/web/src/lib/strings-en.tsindex ae99340f..cdddb698 100644--- a/packages/web/src/lib/strings-en.ts+++ b/packages/web/src/lib/strings-en.ts@@ -1222,9 +1222,13 @@ export const en: Strings = {* The sidebar's feedback entry and the dialog behind it. The words are the user's own — the* dialog promises only where they go, which is the operator's queue, so a note left here is* read and acted on rather than merely archived.+ *+ * `board`/`boardHint` are the other door, always offered: the product's public board.*/feedback: {title: "Feedback",+ board: "Feedback board",+ boardHint: "Public: post there, and read what others reported",intro:"Say what you want changed, what went wrong, or anything else. It lands straight in this machine's feedback queue.",titleLabel: "One-line title",diff --git a/packages/web/src/lib/strings.ts b/packages/web/src/lib/strings.tsindex 6208d511..327e6570 100644--- a/packages/web/src/lib/strings.ts+++ b/packages/web/src/lib/strings.ts@@ -1269,9 +1269,15 @@ export const zh = {* The sidebar's feedback entry and the dialog behind it. The words are the user's own — the* dialog promises only where they go, which is the operator's queue, so a note left here is* read and acted on rather than merely archived.+ *+ * `board`/`boardHint` are the OTHER door, always offered: the product's public board+ * (lib/feedback-board.ts). It says it is public and that it is a board, so nobody picks it+ * expecting the private queue they were just told about.*/feedback: {title: "用户反馈",+ board: "反馈社区",+ boardHint: "公开板块:发帖、看别人报的问题都在那儿",intro: "写下你想要的改动、遇到的问题,或者任何一句话。它会被直接收进这台机器的反馈队列。",titleLabel: "一句话标题",titlePlaceholder: "例如:侧栏的字太小",diff --git a/packages/web/test/feedback-board.test.ts b/packages/web/test/feedback-board.test.tsnew file mode 100644index 00000000..bc363458--- /dev/null+++ b/packages/web/test/feedback-board.test.ts@@ -0,0 +1,27 @@+/**+ * The public feedback board the account menu links to (lib/feedback-board.ts).+ *+ * - The row opens the product's own board, in a new tab and with no handle back to this window+ * (`noopener,noreferrer`) — the shape the app opens every off-app destination with.+ * - The address is the product's, pinned by name here rather than left to the row: it is the same+ * one in every install, so a change to it is a change to the product and belongs in a diff.+ */+import { afterEach, describe, expect, it, vi } from "vitest";+import { FEEDBACK_BOARD_URL, openFeedbackBoard } from "../src/lib/feedback-board";++afterEach(() => {+ vi.unstubAllGlobals();+});++describe("openFeedbackBoard", () => {+ it("opens the board in a new, isolated tab", () => {+ const open = vi.fn();+ vi.stubGlobal("window", { open });+ openFeedbackBoard();+ expect(open).toHaveBeenCalledWith(FEEDBACK_BOARD_URL, "_blank", "noopener,noreferrer");+ });++ it("is the product's board, not a per-install setting", () => {+ expect(FEEDBACK_BOARD_URL).toBe("https://txc.qq.com/products/802227");+ });+});