-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New form system and harvester form (#238)
- Publication flow for harvesters - Update an harvester - Preview an harvester - New form system (explanation in french below) - Gestion automatique de l'accordéon d'aide : - pas besoin de définir un ID - ils sont présent à côté de l'input dans le code (donc ordonné correctement, et plus facilement modifiable en même temps qu'un label par exemple) - gère automatiquement son state en fonction de son input (plus besoin de la fonction `accordionState`) - Gestion automatique des erreurs / warnings - plus besoin de set `has-error` `has-warning` et `text-error` - appelle automatique de la fonction `touch()` lors du changement de focus - Simplification du HTML - abstraction des fieldset / legend qui étaient assez verbeux - création d'une balise `form` au début pour utiliser le `@submit` plutôt que le `@click` sur le bouton final - Remove `BannerActionButton`. This component was a little simplistic for its usage. Thanks to inject/provide we can now use the much more complete component `BrandedButton` and inherit the correct styles for the banner type. TODO (maybe in another PR) : - [x] improve label management for inputs without labels (a18n) - [ ] Add `auto_archived` and `activated` toggles in harvesters forms - [ ] Remove filters and configs if we change the type of implementation to avoid validation errors - [ ] Add tooltip to icons in https://github.com/datagouv/front-end/pull/238/files#diff-74a4ae793ec28f9ce19aeac456d0c8b3cd8731ef88d19f367c3f1b1aad1ada53R25-R45 - [ ] Better message "(previews limit the number of items returned)" - [ ] auto-refresh the table when clicking "Run" button - [ ] auto-refresh of the items in the job page if the job is running
- Loading branch information
1 parent
606c421
commit 64f449b
Showing
38 changed files
with
1,553 additions
and
376 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
export type AccordionRegister = () => { | ||
expanded: ComputedRef<boolean> | ||
toggle: () => void | ||
unregister: () => void | ||
export type AccordionRegister = { | ||
isOpen(id: string): boolean | ||
toggle: (id: string) => void | ||
open: (id: string) => void | ||
unregister: (id: string) => void | ||
} | ||
export const key = Symbol() as InjectionKey<AccordionRegister> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.