mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-08-06 13:43:50 +08:00
buildSnapshot used versionGte against KERNEL_TARGET, which only compares the base date triplet and ignores -zh.N. Users on e.g. 2026.5.12-zh.1 were marked latest when the panel target was 2026.5.12-zh.2, hiding the sidebar upgrade hint and showing a false "latest" badge. Add recommendedIsNewer mirroring Rust config.rs logic; isLatest is now !recommendedIsNewer(target, current). Extend kernel tests accordingly. Co-authored-by: 晴天 <1186258278@users.noreply.github.com>