-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactoring proposal #69
Comments
First I would like to propose new names for components:
(more to come later) |
Would it be easier to create a But I'm also wondering if there is a need for that hook as it is used only on the |
So to me, we can't have a ./screens/main/MainView that display a ./screens/home/HomeView. Screens can not contain any other screen. So:
No need to put it in screens folder. Inside a component folder is enough. Maybe we can have ./components/webviews/CozyWebView.jsx (I'm guessing we'll have several webview components at the end)
👍
Let's only keep the screen at the root directory, why not screens/home/components/HomeView.jsx ? StoreView has to be removed.
We don't need all this stuff. CozyClient already handle all of that...
And no need to use setClient or else, with useClient or withClient we already have mechanism to get the client.... |
At the moment it's hard to understand how webview works:
We should have one
After that we should only have |
Woups, this was a typo, I had in mind to put it in the root
Do you mean that we have |
My understanding is that |
I just got what you meant:
|
I made a first batch of edits here : #72 Still has to be done (selection from previous posts):
|
HomeView may need some refactoring as stated in this comment: #82 (comment) |
@Ldoppea do you think this issue is still relevant? |
We should close, no? |
As the app is still in a draft state the code evolved a lot in the past months. Due to that, the architecture may not be ideal anymore and files may not be named/structured correcly.
I propose to use this thread to talk about refactoring.
Feel free to propose new refactoring so we can discuss about them.
The text was updated successfully, but these errors were encountered: