[阶段7.2] 隐藏 AI 模块;剩余页面迁移到设计令牌
AI 模块暂时下线(待重新设计),加 FEATURES 开关集中控制: - 导航不显示"建议",路由也不注册 —— 只隐藏入口而保留可访问的 URL 等于没隐藏 - 设置页的模型清单区块一并隐藏,且不再请求 /analysis/models - 页面与后端端点都保留,重新打开是一行改动 登录/同步/建议/设置四个页面此前仍在用旧样式(共 101 处硬编码颜色), 深色模式下全部失效。已改写为设计令牌。 fix(a11y): 主按钮白字对比度不足 - 白字在 --accent 上实测 4.42:1(浅)/ 3.64:1(深),均低于正文 所需的 4.5:1 - 新增 --accent-solid 专用于填充面(按钮、选中标签),取同一蓝色阶 更深的一步:5.39:1 / 6.63:1;--accent 继续用于文字、边框和标记 fix(viz): 一年档柱形图不可读 - 365 根柱子在 607px 宽度下每根仅 1.66px,既看不清也远低于 ~24px 的悬停命中下限 - 超过 90 个点时柱形自动改为面积图,并在副标题里说明原因。 折线/面积的十字准星吸附最近点,本就不依赖逐标记命中区 其他: - 统计数值精度按量级取(11,013.99 既是虚假精度,又长到把单位挤到 第二行) - 设置页隐私说明更正:改用 OAuth 令牌后同步已不需要每次输密码 Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
12
client/src/features.ts
Normal file
12
client/src/features.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Feature switches.
|
||||
*
|
||||
* `ai` is off while the recommendation module is being reworked: the pages and
|
||||
* the backend endpoints still exist, so turning it back on is a one-line
|
||||
* change rather than a rebuild. Nothing links to the route while it is off,
|
||||
* and the route itself is not registered — a hidden nav entry with a live URL
|
||||
* would still be reachable by typing it.
|
||||
*/
|
||||
export const FEATURES = {
|
||||
ai: false,
|
||||
};
|
||||
Reference in New Issue
Block a user