feat: add dropped game status and adapt YukiHub backup import - #95
Merged
Merged
Conversation
- 新增 dropped(抛弃)游玩状态:枚举、列表筛选校验、Bangumi 收藏同步(类型 5)、Hikarinagi 状态推送、CLI 图标、AI 周报文案 - YukiHub 备份导入补齐 onhold / dropped 映射,并读取备份中的 nsfw 字段写入 games.is_nsfw - 前端同步:筛选下拉、游戏库与详情页状态徽章、四套语言包;同步 Wails 生成的 bindings(本机无 Go/wails3,按生成器输出格式手工对齐)
✅ Deploy Preview for 4update canceled.
|
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.
背景
YukiHub(Android 端 galgame 库管理工具)在 xm486/YukiHub@e9df6d7 中新增了「搁置 / 抛弃」两种游玩状态,
其
.ykbak备份里的play_status也随之出现onhold/dropped。LunaBox 目前只有on_hold,导致:改动
game_status_enum.go新增StatusDropped,同步AllGameStatusesDROPPED)✗、AI 周报状态文案play_status补齐onhold/dropped(并容忍on_hold、shelved、abandoned等历史写法)nsfw字段写入games.is_nsfw(旧备份无该字段时按false,与 LunaBox 侧DEFAULT FALSE一致)frontend/bindings/**按生成器输出格式手工对齐,建议合并前在本地跑一次wails3 generate bindings -ts复核(预期无 diff)。兼容性
不涉及数据库结构变更(
status为 TEXT 且无 CHECK 约束),无需迁移;旧数据与旧备份继续按原语义解析。测试
新增 / 更新单元测试;提交环境缺少 Go 与 Node 工具链,未执行完整构建,以 CI 结果为准。