-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: Ajout du CTA + form autre projet sur le catalogue des projects #1565
base: main
Are you sure you want to change the base?
Conversation
Replaced inline code for "OtherProject" functionality with a new, reusable `OtherProject` component. This simplifies the structure of `ResultProjectList.vue` and `CatalogProjects.vue`, reducing redundancy and improving maintainability. Unneeded logic and imports have been removed accordingly.
Refactored OtherProject component to accept a `form` prop via `defineProps`, providing better flexibility and reactivity. Updated ResultProjectList to pass `otherProjectForm` as a prop and added a watcher to reset the form state when `filteredProjects` changes.
</Transition> | ||
<div class="fr-container fr-m-0 fr-p-0 fr-pl-md-2v"> | ||
<div class="fr-col-12 fr-col-offset-md-2 fr-col-md-10 fr-pl-md-2v fr-pr-md-6v"> | ||
<OtherProject :form="otherProjectForm" /> |
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.
[praise] : propre la refacto!
Removed unused props from OtherProject and directly managed the form state locally for clarity and better independence. Added a watcher to reset the form state when the theme changes, ensuring a consistent behavior. Updated related components to reflect these adjustments and removed redundant logic.
@@ -35,6 +35,9 @@ | |||
</div> | |||
</div> | |||
</div> | |||
<div class="fr-col-12 fr-col-justify--left fr-mt-3v fr-mb-10v"> |
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.
question: Je ne vois pas l'utilité de fr-col-justify--left
, quand je l’enlève ça change rien. Mais je passe peut-être à coté de quelques choses ?
Petite refacto pour ajouter le CTA + formulaire côté catalogue projet.
Test fonctionnel en local OK
app review: https://tee-preprod-pr1565.osc-fr1.scalingo.io/
close #1485