Skip to content

[Component] Add higher-level component to wrap checkboxes #587

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

Open
B3nz01d opened this issue Apr 3, 2025 · 5 comments
Open

[Component] Add higher-level component to wrap checkboxes #587

B3nz01d opened this issue Apr 3, 2025 · 5 comments
Assignees
Labels
⚛️ component Related to a component provided by the library 📱 demo app Update of the Demo App 🗳️ feature Related to features ⭐ v1.0 Tickets needed for mobile v1.0 release

Comments

@B3nz01d
Copy link
Collaborator

B3nz01d commented Apr 3, 2025

In the checkbox selection:

In order to show the behavior of a selection with the checkbox allowing to select multiple items, the checkbox demo should show 2 boxes next to each other witout any selected, so that when testing the user would see the possibility to select the 2 independently.

In the customization element we should not have the "selection" item as the use would be able to see the selection effect on the component itself.

In the checkbox item selection and other indeterminate checkbox

The same would apply to show 2 items one under the other.
The selection option is also not necessary.
By default only the text is shown all other customization options are turned off

@B3nz01d B3nz01d added ⚛️ component Related to a component provided by the library 📱 demo app Update of the Demo App labels Apr 3, 2025
@pylapp
Copy link
Member

pylapp commented Apr 3, 2025

@B3nz01d Je doute que passer systématiquement par l'anglais nous fasse gagner en efficacité.

Concernant ton premier point, il a été convenu et rappelé à plusieurs reprises que l'application de démo doit refléter ce que fait la lib.
Donc, si l'utilisateur voit un comportement particulier pour un ensemble de cases à cocher, autrement dit, si l'utilisateur retrouve le comportement d'une hiérarchie de cases à cocher (type arborescence) dans un ensemble plus grand, alors la librairie doit fournir ce composant de plus haut niveau.

Or ce n'est pas le cas aujourd'hui ; quand bien même nous avons fait plusieurs fois la remarque nous n'avons toujours pas composant de plus haut niveau.
Il faut donc que l'on ait les spécifications pour avoir un composant ayant ce genre de comportement.
Le champs selection fait d'ailleurs ici car il permet de voir l'état sélectionné ou non du composant bouton radio.

Finalement le besoin ici n'est pas de changer du tout l'existant pour la case à cocher mais de créer un composant à part entière

@pylapp pylapp added the 🗳️ feature Related to features label Apr 3, 2025
@pylapp pylapp changed the title The checkbox should show 2 elements Add higher-level component to wrap checkboxes Apr 3, 2025
@pylapp pylapp changed the title Add higher-level component to wrap checkboxes [Component] Add higher-level component to wrap checkboxes Apr 3, 2025
@ludovic35
Copy link
Member

Ce composant doit il être placé dans un formulaire
https://developer.apple.com/documentation/swiftui/picking-container-views-for-your-content
Dispose t-il d'un titre ?
Comment montre t'on le TriState ?

@pylapp

This comment has been minimized.

@pylapp pylapp added the 💥 blocked Issue can go further and is blocked by something label Apr 4, 2025
@pylapp

This comment has been minimized.

@pylapp pylapp removed the 💥 blocked Issue can go further and is blocked by something label Apr 4, 2025
@pylapp pylapp moved this from Triage to Todo in ⚛️ [OUDS] Project Apr 4, 2025
@pylapp
Copy link
Member

pylapp commented Apr 4, 2025

Vu ce jour avec @MaximeTonnerre : il n'est pas prévu pour le design de définir (pour l'instant en tout cas) de composants de plus haut niveau (molécules) afin de laisser la liberté aux designers de faire ce qu'ils veulent avec les composants atomiques.

Nous allons donc développer des composants type picker, simples, afin de permettre un usage minimal d'un ensemble de composants checkboxes et radios pour que d'une part les utilisateurs puissent tester le comportent des composants, et d'autres part puissent les utiliser tels quels pour des usages simples.

C'est le meilleur compromis à faire entre le besoin de tester des composants et le fait d'avoir l'app de démo exposant les fonctionnalités de la lib.

cc @ludovic35

@pylapp pylapp added the ⭐ v1.0 Tickets needed for mobile v1.0 release label Apr 9, 2025
@pylapp pylapp self-assigned this Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚛️ component Related to a component provided by the library 📱 demo app Update of the Demo App 🗳️ feature Related to features ⭐ v1.0 Tickets needed for mobile v1.0 release
Projects
Development

No branches or pull requests

3 participants