-
Notifications
You must be signed in to change notification settings - Fork 240
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
Create topic dropdown component #497
Create topic dropdown component #497
Conversation
✅ Deploy Preview for activist-org ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Thank you for the pull request!The activist team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Development rooms once you're in. It'd be great to have you! Maintainer checklist
|
Hey @iagocarmona 👋 Looking really good so far! I wanted to check in with you on some options for this, and am glad you sent along some questions/suggestions 😊 What do you think about adding in typing functionality to the select functionality via Headless UI's combobox?
Do you mean that the selected one would be the label? We could do that with the combobox, or what I was thinking was also to allow the user to select more than one? This section of the docs shows how we can select more than one. We'd then maintain the label of the component as is. Let me know how this sounds! I think this would definitely make it easier for the user to quick select things, and filtering by more than one would make searches much easier. |
And what do you think of converting the super long topic selection with all the checkboxes (see sidebar) to something similar to what we're talking above? We could have all the topics in a combobox in the sidebar, and for the component we're working on here it would just be those that the user has indicated as being their favorites in their profile so it's easier for them to select those :) |
Hey @iagocarmona 👋 How are you doing on this issue here? Do you think that a conversion over to Headless UI's combobox is possible? We're trying to use Headless as much as possible to make sure that we have accessibility at a high standard. |
Hello, Im working on this, I will change to use the this UI. I think it would be better too. |
Thanks @iagocarmona! Looking forward :) I can figure out the merge conflict when you resend as well - no stress. I flattened the i18n JSON so we can search for where we define the key and for all its instances during one all codebase search. Figured it'd be easier to make changes as we can also find and replace now 😊 Hope you're well! |
Hey there, @iagocarmona! Let me know what the plans here are :) I'll deal with the merge conflicts by dropping in the current i18n file before merge, so no stress. We can also check in on this on Saturday during the sync/Code Night if that could work on your end 😊 |
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.
Hey @iagocarmona 👋 There are a couple things that are relying on this at this point, so I'm going to bring this in and do a refactor for it being a combobox. Thanks for the contribution here! Sorry that the issue wasn't was well defined from the get go :)
Contributor checklist
Description
Creating component dropdown topics
Closed dropdown
![image](https://private-user-images.githubusercontent.com/69121686/277803776-ffdf703b-e985-4330-bf90-d5ce9ba611ff.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDEyMjEsIm5iZiI6MTczOTQwMDkyMSwicGF0aCI6Ii82OTEyMTY4Ni8yNzc4MDM3NzYtZmZkZjcwM2ItZTk4NS00MzMwLWJmOTAtZDVjZTliYTYxMWZmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDIyNTUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWYxZjU2Yzc0MWQxZGY2YjQxYmQyZDlmYTAzYTY5N2IxZjE3Mzg2OThkMzQxZWI0NmY4M2M5YzczYWQ3NmM0ZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.WLEkROJEgQ5D9JfkSDjMD-VFNj0JILpn3QJoqe6pF2Q)
Opened dropdown
![image](https://private-user-images.githubusercontent.com/69121686/277803854-ff7f8c36-1ecc-40d9-a3e4-61a1275c6466.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDEyMjEsIm5iZiI6MTczOTQwMDkyMSwicGF0aCI6Ii82OTEyMTY4Ni8yNzc4MDM4NTQtZmY3ZjhjMzYtMWVjYy00MGQ5LWEzZTQtNjFhMTI3NWM2NDY2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDIyNTUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwNmE1Y2ZmNWU0OTQyMmY4ODFjOGY2NWEyZTI5YzgyNGU1YTQzNWQzZDRjYjIzMTIwNGMyYjNiNDBkM2I3MTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8YLasOeYafq__4pEdBodonUDfd37YsDjW4EhA7zjIFE)
Hovered item
![image](https://private-user-images.githubusercontent.com/69121686/277804185-c237ae42-2861-4c5e-90a0-aff749351fe7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MDEyMjEsIm5iZiI6MTczOTQwMDkyMSwicGF0aCI6Ii82OTEyMTY4Ni8yNzc4MDQxODUtYzIzN2FlNDItMjg2MS00YzVlLTkwYTAtYWZmNzQ5MzUxZmU3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDIyNTUyMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZhNjFhOGU4MDExNWY0MzI5YWNhYWZiNWM2MWI4YmYwYWVmOTg0MGM1NzJjMGFjMmM0YzQwMTIxOTcwZjM3ZWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.W34Qo1fhcvGGrmzqbsHKfb6LRhawh-fTW-6ukZTSIcg)
Possible props
Related issue
I was thinking about adding a new property to talk about whether the dropdown will override the others, but I would like your opinion first.