Skip to content

bump Gallery's collectionView to UICollectionViewDiffableDataSource#614

Merged
theospears merged 12 commits intobeeminder:masterfrom
krugerk:feature/UICollectionViewDiffableDataSource
Jan 9, 2025
Merged

bump Gallery's collectionView to UICollectionViewDiffableDataSource#614
theospears merged 12 commits intobeeminder:masterfrom
krugerk:feature/UICollectionViewDiffableDataSource

Conversation

@krugerk
Copy link
Copy Markdown
Contributor

@krugerk krugerk commented Jan 8, 2025

Summary

Migrated the gallery's collection view to the more modern api, using diffable datasource and snapshots. See #607 (comment).

For UI changes including screenshots of before and after is great.
Transitions from one state to another (one set of goals to the next) is animated.

Validation

ran app in simulator, both iPhone and iPad (easier to see multiple columns and animation, for example, when filtering)
rotated simulator
changed sort preference
filtered on gallery's goals
signed out
signed in
navigated from gallery to goal and back
assured that some goal's data changed (for example safeBuf and safeSum) and the effect was seen in the cell at the same position

These are more modern approaches to managing a collectionView's
contents.
As before, the collection shows a single section and merely displays
all of the filtered goals in order.
@krugerk krugerk requested a review from a team as a code owner January 8, 2025 07:22
@krugerk krugerk requested review from theospears and removed request for a team January 8, 2025 07:22
@krugerk krugerk changed the title Feature/UI collection view diffable data source bump Gallery's collectionView to UICollectionViewDiffableDataSource Jan 8, 2025
Copy link
Copy Markdown
Collaborator

@theospears theospears left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One major bug, and one question, but overall looks good.

I note this would have been much easier to review if the ICollectionView? -> `ICollectionView!' change had been a separate PR.

Co-authored-by: Theo Spears <github@theospears.com>
@krugerk krugerk requested a review from theospears January 9, 2025 08:35
@theospears theospears merged commit 332558d into beeminder:master Jan 9, 2025
@theospears
Copy link
Copy Markdown
Collaborator

🎉

@krugerk krugerk deleted the feature/UICollectionViewDiffableDataSource branch January 9, 2025 23:13
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.

2 participants