Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed section phase 2.5 #245

Merged
merged 37 commits into from
Oct 30, 2023
Merged

Conversation

07jasjeet
Copy link
Contributor

@07jasjeet 07jasjeet commented Sep 2, 2023

Tasks

  • General improvements
  • Unit tests (Next PR)
  • UI Tests (Next PR)

@07jasjeet 07jasjeet changed the base branch from main to dev September 2, 2023 15:54
1) Connection and disconnection to spotify app remote is now coroutine safe.
2) Spotify app remote connection now persists as long as the app is visible to user.
This is done to reuse the same code for API calls and not write API calls again and again for each view-model.

Also, Refactored dependencies a bit.
This was done due to ill experience when in landscape mode.
1) Moved remotePlaybackHandler code to SocialViewModel for reuse.
2) LBAccessToken will be null if no value is assigned. Earlier, null was converted to empty string
1) Repository boilerplate converted to parseResponse {} function.
2) API service refactored.
3) Established helper functions to reduce boilerplate.
4) ListensViewModel and ListensScreen refactored.
1) Migrated some shared preferences to data store.
2) As a result, a lot of UI components that were dependent on shared prefs are now reactive.
3) Listens screen refactor.
1) Migrated Ui mode to datastore and removed dependency on shared preferences.
2) Polished Explore screen.
@akshaaatt
Copy link
Member

Also, the YearInMusicActivityTest seems to be breaking for me. Wonder why the CI didn't fail for this though.

@07jasjeet
Copy link
Contributor Author

Also, the YearInMusicActivityTest seems to be breaking for me. Wonder why the CI didn't fail for this though.

I think I may have changed some things here and there but I don't exactly know what errors you might be getting.

1) Reverted dissolution of individual Services and adopted sharing of OkHttpClient client instead.

2) Fixed a bug where Listen's screen wasn't loading
@akshaaatt
Copy link
Member

@07jasjeet can you fix the tests for this? Also, ready for review right?

@07jasjeet
Copy link
Contributor Author

@07jasjeet can you fix the tests for this? Also, ready for review right?

Oops didn't knew tests broke again gimme a sec.

Copy link
Member

@akshaaatt akshaaatt left a comment

Choose a reason for hiding this comment

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

LGTM. Great work! 💯

Needs end to end testing though. Beta should be a good place for it

@akshaaatt akshaaatt merged commit 86af5df into metabrainz:dev Oct 30, 2023
1 check passed
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.

None yet

2 participants