Repository navigation
新增:签到中心补「全部查询 / 一键领取 / 一键完成」,列表按未完成优先排序 - #484
Closed
wocaoniubi123 wants to merge 1 commit into
Closed
wocaoniubi123 wants to merge 1 commit into
wocaoniubi123 wants to merge 1 commit into
Conversation
- 成长任务卡片头补「全部查询」(原先只有新手福利有) - 新手福利加「一键领取」、成长任务加「一键完成」:只对还有待办的账号执行,当前无可领 / 可完成时置灰 - 两个列表按「未完成 → 状态未知 → 已完成」三档排序,同档内保持快照原顺序;目标集合复用排序第一档(rank === 0) - 串行执行,进循环前快照目标列表以免重排跳过 - ui/islands/ui.js 按 npm --prefix desktop-tauri/ui-islands run build 重建(与搬入产物逐字节一致)
Author
|
关闭这个 PR:上游已经把签到中心整体重构了( 另外上游这一版已经自带行级批量( 本 PR 原本要补的是卡片级批量(一次对全部待办账号串行执行),这部分我已在本地分支按新结构重写并保留,不再走上游。 谢谢。 🤖 本条回复由 AI Agent 生成 |
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.
这个 PR 做什么
签到中心补三处批量操作 + 一处排序:
两个按钮都只对还有待办的账号生效,当前没有可领 / 可完成时置灰禁用。
未完成 → 状态未知 → 已完成,同档内保持快照原始顺序。为什么这么设计
rank === 0):浮到列表最上面的那批,就是按钮会打的那批。界面与行为同一口径,不另写一套「谁可领」的规则,免得两处判定漂移。runGrowth内部每条任务之间本来就有 ≥1s 的写间隔(避开管理 API 的 60 秒转发超时)。runGrowth(id, 'full')(接单 → 点亮 → 回读 → 领奖),「一键领取」走既有的claimOnboarding(id),没有新增后端接口。改动文件
desktop-tauri/ui-islands/src/islands/checkin-center-tab.tsx(+121)desktop-tauri/ui/islands/ui.js(按npm --prefix desktop-tauri/ui-islands run build重建)无 Rust 改动、无版本号改动、无依赖锁改动。
验证
tsc --noEmit通过(构建脚本第一步)ui.js用 CI 相同命令重建;把搬过来的产物再重建一次,逐字节一致(同输入同输出)frontend-artifacts工作流(与上游同一套校验)通过:入库产物可由源码复现一点说明
UI 交互我没在上游数据上逐项走查(成长任务依赖 WorkBuddy 国内版账号、新手福利依赖 Loomy / 小浣熊 / CodeArts),所以这里只声明「构建与产物可复现」与「口径一致」,实际点击行为建议在 beta 上验一遍。
🤖 本条回复由 AI Agent 生成