PixelogicDev / Gruvee-Mobile

#WeAreGrüvee
MIT License
48 stars 11 forks source link

[Release-1.0] Implement Redux #24

Closed adilanchian closed 4 years ago

adilanchian commented 4 years ago

It looks like we have held off long enough and makes more sense to start utilizing Redux, even for our mock data. The implementation flow will go as follows:

  1. Setup Members Side Menu (#17) This is currently in progress. Will implement the first Redux stuff here
  2. For actions like adding/removing/editing comments/songs/playlists we will want to refactor those to also use redux
  3. Depending on whats left, we might want to fully refactor to Redux or just keep current state management
adilanchian commented 4 years ago

Started with REDUX, but need to log actions or setup react redux devtools

adilanchian commented 4 years ago

Setup a middleware to utilize a logger for redux actions and such. Also setup the PlaylistView to ingest redux.

Next step is to have the component use the new redux state.

adilanchian commented 4 years ago

Implemented actions for AddPlaylist and DeletePlaylist. Will need to continue on with cleaning that up and implementing Redux actions!

adilanchian commented 4 years ago

We have implemented the songs actions and will continue working through the cleanup for the initial songs work. Essentially removing the old way of getting the songs.

adilanchian commented 4 years ago

Added new action for deleting song and started to implement thunks. Still in the process of setting up that hierarchy, but will finish next stream.

We also need to make sure to ignore functions in the logger so it doesn't print them out!

adilanchian commented 4 years ago

I have went in and been able to update our redux state. It's a much flatter way of doing it and I believe will help in the long run. Next step is to start wiring up the proper actions with this new state.

adilanchian commented 4 years ago

Left off at setting up deletePlaylistAction but has some errors and no logic. Will do tomorrow

adilanchian commented 4 years ago

Added in the add playlist action with our new flat redux state! Will continue with song actions tomorrow

adilanchian commented 4 years ago

TL;DR - WE SPREAD ALL THE THINGS.

Today we implemented the RemovePlaylist action alongside the AddNewSong action. Tweaked some class id generation in the Song and Playlist classes.

Tomorrow we will move onto the DeleteSong action as well as setting up the Comments state and start with those actions.

adilanchian commented 4 years ago

What We Did

What We Will Do Tomorrow

adilanchian commented 4 years ago

What We Did

What We Will Do Tomorrow

adilanchian commented 4 years ago

What We Did

What We Will Do Tomorrow

adilanchian commented 4 years ago

What We Did

What We Will Do Tomorrow

adilanchian commented 4 years ago

What We Did

What We Will Do Tomorrow

adilanchian commented 4 years ago

IN PR. O M G.

adilanchian commented 4 years ago

bye bye.