Refactor Category/Workflow dropdown
Follow-up of !93 (merged)
In short:
-
AutocompleteDrop
was broken down in two different components:-
WorkflowDropdown
to select a workflow description -
CategoryDropdown
to select a category
-
- The fetching behaviour was put in a new component
FetchingDropdown
that is used by both components. This will make easier to refactor the fetching with Resthooks, SWR or something similar. - The components, utils and models ( or types if you prefer ) were put in a dedicated
dropdowns
folder. This is to show a bit how we structure things in other projects but we can revert this part if that doesn't click with you.
Edited by Loic Huder