Skip to content

chore(deps): update omnifeed to support null safety changes#36

Merged
lackary merged 2 commits intomainfrom
chore/35-update-omnifeed-to-support-null-safety-changes
Jan 19, 2026
Merged

chore(deps): update omnifeed to support null safety changes#36
lackary merged 2 commits intomainfrom
chore/35-update-omnifeed-to-support-null-safety-changes

Conversation

@lackary
Copy link
Owner

@lackary lackary commented Jan 19, 2026

Related Issues

Closes #35

Type of Change

Please check the main type of change this PR introduces. If there are multiple, please select the most significant one.

  • feat: New feature
  • fix: Bug fix
  • refactor: Code refactoring
  • docs: Documentation update
  • chore: Chore (e.g., updating dependencies, build tooling)
  • style: Style changes (e.g., formatting, no code logic changes)
  • test: Adding or modifying tests
  • other: Other: [Please briefly describe]

Description

[Please provide a detailed description of the changes in this PR. For example: What bug does this PR fix? What feature does it add?]

How to test it?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.

Tested Platforms:

  • Android
  • iOS
  • Desktop (JVM)
  • Web (Wasm/JS)
  • Shared Logic (Unit Tests)

Test Details:

  • Unit tests: Did you write new tests to verify the smallest units of code?
  • Integration tests: Did you test how different parts of the system work together?
  • Manual testing: Please describe the steps a reviewer can follow to manually test your changes.

Review Checklist

Before submitting this PR, please confirm the following:

  • My code follows the project's coding style guidelines.
  • I have added sufficient comments to my code, especially in complex areas.
  • I have updated the relevant documentation.
  • My changes don't introduce new bugs.
  • I have tested my code locally.

This commit refactors the gallery data models and their mapping logic to better handle nullable fields and improve code clarity.

Key changes:
- **Contract Updates**: Changed `blurhash` and `displayBlurHash` to nullable strings in `GalleryPhoto` and the `GalleryDisplayable` interface.
- **Improved Mapping**: Refactored the mapping logic in `GalleryViewModel` for photos, collections, and topics to use named arguments for better readability.
- **Null Safety**: Added null-safe access and default values when mapping `GalleryTopic` from the domain model, specifically handling cases where `coverPhoto` or user information might be missing.
@lackary lackary self-assigned this Jan 19, 2026
@lackary lackary added bug Something isn't working chore Maintenance, build config, or dependency updates (no src code labels Jan 19, 2026
@lackary lackary linked an issue Jan 19, 2026 that may be closed by this pull request
3 tasks
@lackary lackary removed the bug Something isn't working label Jan 19, 2026
@lackary lackary merged commit 64e50e7 into main Jan 19, 2026
2 checks passed
@github-actions
Copy link

🎉 This PR is included in version 0.13.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@lackary lackary deleted the chore/35-update-omnifeed-to-support-null-safety-changes branch January 21, 2026 03:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, build config, or dependency updates (no src code released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: update omnifeed to support null safety changes

1 participant