Skip to content

Fix: 支持数据列表一键加载到底 - #5709

Draft
zipg wants to merge 3 commits into
t8y2:mainfrom
zipg:codex/issue-2936-load-all-last-row
Draft

Fix: 支持数据列表一键加载到底#5709
zipg wants to merge 3 commits into
t8y2:mainfrom
zipg:codex/issue-2936-load-all-last-row

Conversation

@zipg

@zipg zipg commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

修改内容

  • 在无限滚动结果栏增加“一键加载全部并转到末行”按钮
  • 点击后只追加当前缺失的数据段,避免重读已有行并破坏行标识或未保存编辑
  • 单次加载范围受“无限滚动最大条目数”限制,加载期间禁用按钮,防止重复请求
  • 追加成功后选中最后一条已加载数据并滚动到可见区域;已全部加载时再次点击只执行末行定位
  • 失败或陈旧的追加响应不会误选末行,并保留后续重试能力
  • 补齐 8 种语言的 tooltip 和无障碍名称

验证

  • MySQL 8.4.6 实际测试:测试表包含 2,500 行,初始加载 100 行
  • 点击按钮后实际执行 LIMIT 4900 OFFSET 100,结果一次追加到 2,500 行
  • 第 2,500 行(id=2500, row-2500)被选中并滚动到视口底部
  • 数据库 COUNT(*) 返回 2,500;测试结束后删除临时表,information_schema.tables 复核为 0
  • pnpm -s typecheck
  • pnpm -s build
  • 相关 Vitest:54 项通过
  • oxfmtoxlint

Fixes #2936

@github-actions github-actions Bot added area/desktop Desktop application or Tauri shell bug Something isn't working ui-change Changes user-visible interface, text, or visual assets labels Aug 9, 2026
@zipg
zipg force-pushed the codex/issue-2936-load-all-last-row branch from bd86bec to 22934fe Compare August 9, 2026 17:09
@zipg
zipg force-pushed the codex/issue-2936-load-all-last-row branch from e379af5 to 5631b54 Compare August 14, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/desktop Desktop application or Tauri shell bug Something isn't working ui-change Changes user-visible interface, text, or visual assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

数据列表增加“一键到底”的功能

1 participant