hatemhosny / racing-bars

Bar chart race made easy 🎉
https://racing-bars.hatemhosny.dev/
MIT License
74 stars 4 forks source link

Proposal to Improve App Organization by Moving Reducers and Actions to the Store Directory #207

Open AhmedElbohoty opened 3 weeks ago

AhmedElbohoty commented 3 weeks ago

I'm submitting a ...

Summary

While documenting the app, I identified some changes that could enhance its organization. I recommend moving all reducers and actions into the store directory. When I initially explored src/lib, I found it a bit frustrating due to the many folders like container, data, and options, which only contains reducers and actions are outside store directory. Therefore, I suggest relocating these directories to the store and renaming them to container-slice, data-slice, and options-slice.

Since all the model files contain only types, I suggest renaming them to types.ts.

@hatemhosny

Screenshot 2024-10-14 at 3 31 03 PM
hatemhosny commented 3 weeks ago

Hi @AhmedElbohoty

Thank you for the suggestion.

I'm not sure the suggested directory structure simplifies the organiztion.

These are just personal preferences. Thank you for understanding.