-
Notifications
You must be signed in to change notification settings - Fork 7
[PA] Refonte de la vue "Tous les plans d'action" #3830
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
[PA] Refonte de la vue "Tous les plans d'action" #3830
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Juste en survolant les fichiers, je vois que tu as re-créé un dossier /src/plans/plans
.
Sur la PR TDB j'en ai créé un /src/plans-action/plan
avec une list de plan et la carte. T'avais pu rebase ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
613bd9c
to
5a41acc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Globalement super en terme de structure, très propre 👍
J'aimerais juste qu'on s'accorde sur les nommages de dossiers features et composants à l'intérieur pour poser une base pérenne pour la suite.
app.territoiresentransitions.react/src/plans/plans/all-plans-view/components/Actions/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
panierId: string | undefined; | ||
}; | ||
|
||
export const AllPlansView = ({ plans, collectiviteId, panierId }: Props) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sur le naming, je trouverais plus simple à lire (et cohérent de bout en bout avec les naming features côté backend) d'avoir toujours le verbe d'action en premier, i.e. :
list-all-plans
show-detailed-plan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je m'interroge sur l'utilité d'un sous-dossier components
pour chaque dossier feature ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idem, ça a du sens dans l'app router pour faciliter la lisibilité des routes, pour le reste c'est surement trop poussé, si on commence à avoir trop de composants au niveau du parent (disons 4 et plus), alors c'est surement que l'on peut créer un sous-dossier pour combiner des composants.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming plutôt en nom-du-compo.type.tsx
, i.e. plan-card.list.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming, plutôt create-plan.button.tsx
5a41acc
to
8c175de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
À discuter en équipe, je suis plutôt partant de toujours nommer les fichiers comme leurs dossiers.
Ici avoir detailed-plan-action-view/detailed-plan-action.view.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes, c'est cool ça!
efdee0c
to
7f8f2bb
Compare
7f8f2bb
to
3d63a3b
Compare
a314ad2
to
48cfb4f
Compare
48cfb4f
to
6ce20a4
Compare
f4a2e33
into
ui-refactoring-detailed-plan-d-action-view
No description provided.