Skip to content

feat(header): 全站导航加 "分享墙 / Feed" 入口#324

Merged
longsizhuo merged 1 commit intomainfrom
feat/header-feed-nav
Apr 27, 2026
Merged

feat(header): 全站导航加 "分享墙 / Feed" 入口#324
longsizhuo merged 1 commit intomainfrom
feat/header-feed-nav

Conversation

@longsizhuo
Copy link
Copy Markdown
Member

@longsizhuo longsizhuo commented Apr 26, 2026

背景

之前 Hero / Join 区有 `/feed` 入口但全站 header 没有,用户在文档页 / 排行榜等子页面想跳分享墙必须先回首页或敲 URL。

改动

`app/components/Header.tsx`: nav 加一条 `Link href="/feed"`,紧跟"社区"。
顺序: 文档 / 排行榜 / 社区 / 分享墙 / 联系

文案

locale 文案 理由
zh 分享墙 "墙"对齐"排行榜"的"榜",强调信息流形态而非命令句
en Feed 简短统一

埋点

`data-umami-event-label="feed"` 跟其他 nav 项一致,方便后续看转化率。

Test plan

  • tsc --noEmit 通过
  • lint 通过(pre-existing warnings)
  • vitest 通过
  • preview 看桌面 nav 是否真的多出第 4 项 + 中英文切换正确

之前 Hero / Join 区有 /feed 入口但全站 header 没有,导致用户在文档页 / 排行榜
等子页面想跳分享墙必须先回首页或敲 URL。本次在 header nav 第 4 位加常驻入口。

文案
- zh: "分享墙"("墙"对齐"排行榜"的"榜",强调信息流形态而非动作)
- en: "Feed"

位置
顺序: 文档 / 排行榜 / 社区 / 分享墙 / 联系
紧跟 "社区" 后是因为 feed 是社区的产物(DC 群分享 → bot 收录 → /feed 上架)。

埋点
data-umami-event-label="feed",跟其他 nav 项一致,方便统计点击转化率。
Copilot AI review requested due to automatic review settings April 26, 2026 18:47
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
involutionhell-github-io Ready Ready Preview, Comment Apr 26, 2026 6:55pm
website-preview Ready Ready Preview, Comment Apr 26, 2026 6:55pm

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

在全站 Header 导航中补齐 /feed(分享墙 / Feed)入口,解决用户在文档页、排行榜等子页面无法直接跳转分享墙的问题。

Changes:

  • Header nav 新增「分享墙 / Feed」导航项,指向 /feed 并补充 Umami 埋点 label
  • 增加 header.nav.feed 的中英文文案

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
messages/zh.json 新增 header.nav.feed 中文文案「分享墙」
messages/en.json 新增 header.nav.feed 英文文案「Feed」
app/components/Header.tsx Header 导航新增 /feed Link,并加上与其他 nav 一致的 Umami 埋点属性

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants