Repository navigation
nav 场景可见性·前端实现:胶囊进顶栏 + 去「全部」+ 关于页 + 场景 visibility 表单(引用合并规格) - #34
Merged
Merged
Conversation
Move the public scene switcher into the glass header with narrow-screen horizontal scrolling, fall back to the default scene (legacy "all" and private-scene preferences included), and expose scene visibility in the admin scene/category panels plus a build-versioned about section. Checkpoint: 4VTWdGkC_vNc77N5kiDqN
todosdev Bot
added a commit
that referenced
this pull request
Nov 8, 2026
…8-fd04f5cd6419 nav classic 卡片改「固定方砖 + 间距调个数 + 整行居中」(#34 后续修正)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
visibility:场景表单增加公开/私有切换、列表显示可见性徽标,分类列表提示场景私有时「对外不可见」。package.json注入。Changes
public-page.tsx、scene-switcher.tsx、scene-preference.ts)header.glass-bar中间,窄屏使用flex-nowrap + overflow-x-auto在栏内横向滚动。ALL_SCENES、聚合渲染与sortCategoriesByScene;resolvePublicScene统一回落默认场景(isDefault优先,否则第一个可用场景,无场景返回null)。Scene.visibility补齐到前端契约,胶囊只消费当前视角数据,不在组件内做可见性判断。admin-page.tsx、scene-panel.tsx、crud-panels.tsx、about-panel.tsx、api.ts)Info图标的「关于」分区,展示应用名、版本、GitHub 仓库、技术栈与版权行。vite.config.ts、vitest.config.ts、vite-env.d.ts、mockDb.ts)__APP_VERSION__,源码不硬编码版本号。Testing
f79d2d6上全绿,Validate全部步骤通过。pnpm lint、pnpm format:check、pnpm typecheck、pnpm build通过;测试 worker 193 + web 212 全通过。clientWidth 161 < scrollWidth 184可横向滚动;未登录且偏好为私有场景时回落「通用」且页面不空白;登录后胶囊含私有场景;后台场景徽标、分类提示与关于页版本0.1.0均正常渲染。