Repository navigation
💄 优化安装页、日志页、批量更新等 8 处窄屏布局与提示文案 - #1844
Merged
Merged
Conversation
- 安装页:窄屏下「权限」「代码」卡片标题不再被挤成竖排,版本号整体换行,标题限 3 行;去掉作者与来源之间会悬空的分隔点 - 日志页:条数只在统计条显示一次;移动端「删除当前日志」与「清空日志」合并为一个带文字的菜单 - 批量更新:没有可检查的脚本时说明原因而不是显示「所有脚本均为最新」;空状态不再重复提供检查按钮 - 脚本列表移动端:站点图标数据到达前不显示「0 个站点」 - 网络规则移动端:工具栏按两列网格排布 - 文件系统参数:鉴权类型下拉显示本地化名称而不是内部取值
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.
Checklist / 检查清单
N/A — 没有对应 issue:这批问题来自对 v1.5.1 构建的一次界面走查(选项页各路由、安装页、批量更新、popup,桌面/移动 × 明/暗)。
本次改动
走查发现并修掉的 8 处,都是窄屏布局或提示文案问题:
title里。password等,改为本地化名称。新增文案已补进 10 个语言包。
已知限制 / 审查重点
data-testid="empty-recheck")及其两条单测被删,e2e/standalone-pages-smoke.spec.ts里拿它当锚点的一行断言也删了。检查入口保留在顶栏。title和下方代码的@name里。如果不希望截断,可以只保留降字号。验证
基于
origin/main@598cab8e,head985a19da。pnpm exec vitest run --no-coverage --testTimeout=20000 <file>):Logger/index21、batchupdate/components57、FileSystemParams7、ScriptRowsMobile14、PermissionCard31、ScriptIdentity9、CodePreview16、NetworkRules/index20、SyncSection20。pnpm exec playwright test e2e/standalone-pages-smoke.spec.ts:3 passed(在拆分提交前的工作区上运行,之后该文件未再改动)。tsc --noEmit、eslint、check:i18n)通过。pnpm run test:ci结果:本机同一命令在未改动的origin/main上也不稳定,其中一个可复现的原因是两个测试文件对react-i18next的不完整 mock 按运行顺序泄漏。逐文件结果因此临时放宽了超时,未改配置。请以 CI 结果为准。Screenshots / 截图
1–3 安装页(移动端):左改前,右改后
2 安装页(桌面端):上改前,下改后
4 日志页(移动端):左改前,右改后(菜单已展开)
4 日志页(桌面端):上改前,下改后
5 批量更新空状态:上改前,下改后
6 脚本列表(移动端):左为改前加载中的「0 个站点」,右改后
7 网络规则(移动端):左改前,右改后
8 鉴权类型:上改前,下改后