Skip to content
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: add WidgetCheckBoxes #8

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

feat: add WidgetCheckBoxes #8

wants to merge 7 commits into from

Conversation

revolunet
Copy link
Collaborator

and some fixes

Copy link
Collaborator

@EmileRolley EmileRolley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci pour les modifs, j'ai laissé quelques commentaires (pas vraiment bloquants).

(Je n'ai pas pris le temps de tester en local).

size="small"
priority="secondary"
>
Supprimer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: est-ce que l'on a envie de laisser la possibilité de customiser le label des buttons avec un ui:removeLabel ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oui!

)

const tabContent =
(items.length && (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: j'avoue que je suis plutôt pour utiliser systématiquement l'opérateur ternaire pour éviter des petits bugs d'affichages non désirés (items.length ? (...) : null).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

parseInt(selectedTabId.replace(/^tab(\d+)$/, '$1')),
)

const tabContent =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const tabContent =
const removeTabContent =

src/components/WidgetCheckBoxes.tsx Outdated Show resolved Hide resolved
uiSchema !== undefined ? uiSchema['ui:help'] : undefined
}
>
{option.label + (required ? '*' : '')}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: est-ce que la gestion des champs requis ne devrait pas être directement gérée au dans le composant <LabelWithHelp> (ou un autre composant <Label>) ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will look

src/components/WidgetRadio.tsx Outdated Show resolved Hide resolved
src/components/WidgetSelect.tsx Outdated Show resolved Hide resolved
revolunet and others added 3 commits September 20, 2024 11:21
Co-authored-by: Emile Rolley ⏚ <[email protected]>
Signed-off-by: Julien Bouquillon <[email protected]>
Co-authored-by: Emile Rolley ⏚ <[email protected]>
Signed-off-by: Julien Bouquillon <[email protected]>
Co-authored-by: Emile Rolley ⏚ <[email protected]>
Signed-off-by: Julien Bouquillon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants