Skip to content

Conversation

@dogi
Copy link
Member

@dogi dogi commented Jan 7, 2026

Injects TeamsRepository into BaseDashboardFragment and overrides the handleClick method to fetch team details asynchronously using a coroutine.

This change decouples the fragment from direct Realm access for team lookups, improving the architecture and removing the use of a blocking database call from the click handler.


https://jules.google.com/session/18148738918996267520

Injects TeamsRepository into BaseDashboardFragment and overrides the handleClick method to fetch team details asynchronously using a coroutine.

This change decouples the fragment from direct Realm access for team lookups, improving the architecture and removing the use of a blocking database call from the click handler.
Injects TeamsRepository into BellDashboardFragment and overrides the handleClick method to fetch team details asynchronously using a coroutine.

This change decouples the fragment from direct Realm access for team lookups, improving the architecture and removing the use of a blocking database call from the click handler. It also adds the necessary Hilt bindings to make the TeamsRepository injectable.
Replaces a direct Realm query in the dashboard's team click handler with an asynchronous call to `TeamsRepository`.

To avoid dependency conflicts in the `lite` build flavor, this change uses a Hilt `@EntryPoint` to safely access the `TeamsRepository` from the `BellDashboardFragment` without requiring a direct `@Inject` in the shared fragment.

This decouples the UI from the data layer, improves the architecture, and resolves a multi-flavor build issue.
@dogi dogi added triage Further information is requested experiment labels Jan 7, 2026
@dogi dogi changed the title refactor(dashboard): Use TeamsRepository for team lookup refactor(dashboard): Use TeamsRepository for team lookup (fixes #10424) Jan 8, 2026
@dogi dogi changed the title refactor(dashboard): Use TeamsRepository for team lookup (fixes #10424) dashboard: smoother teams repository injecting (fixes #10424) Jan 8, 2026
@dogi dogi merged commit eeb1580 into master Jan 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants