Skip to content

fix: smooth progress and rakuen refresh animations#78

Merged
everpcpc merged 2 commits intobangumi:mainfrom
everpcpc:codex/refresh-list-animation
Apr 12, 2026
Merged

fix: smooth progress and rakuen refresh animations#78
everpcpc merged 2 commits intobangumi:mainfrom
everpcpc:codex/refresh-list-animation

Conversation

@everpcpc
Copy link
Copy Markdown
Contributor

Problem

Refreshing the progress and rakuen pages could feel hitchy because list updates were propagating too broadly. In progress, the parent list observed bulk query results, so a single subject update could invalidate the visible list. In both pages, refreshes were also driving animated list structure updates.

Approach

Move progress row observation down to a per-subject container so the parent list only manages ordering. Keep list updates on explicit withAnimation paths with row-level transitions, while removing the previous custom diff heuristic and letting SwiftUI handle the default animation behavior.

Scope

  • add a per-subject progress container view to narrow SwiftData observation
  • simplify progress list and tile parents so they only iterate subjectIds
  • update shared page and rakuen list refresh paths to use direct animated state assignment
  • bump the build version to 115

Validation

  • make build-ci

Scope progress row observation to individual subjects so one model update does not invalidate the whole list.

Replace custom list animation heuristics with direct SwiftUI list updates and default withAnimation calls for progress, rakuen, and shared page views.
@everpcpc everpcpc merged commit ddadb49 into bangumi:main Apr 12, 2026
1 check passed
@everpcpc everpcpc deleted the codex/refresh-list-animation branch April 12, 2026 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant