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

Show the previously selected entry in #role-select #17

Open
martinheidegger opened this issue Jun 17, 2023 · 3 comments
Open

Show the previously selected entry in #role-select #17

martinheidegger opened this issue Jun 17, 2023 · 3 comments

Comments

@martinheidegger
Copy link
Member

Not sure this is possible, but currently when I select "typescript" it doesn't show it as selected in the "role-select" channel. When I then select it again it will deselect "TypeScript". Would it be possible to show what role has been selected before in the UI.

@nakajimayoshi
Copy link
Contributor

nakajimayoshi commented Jun 17, 2023

Can you elaborate on “selected”? I am able to see the roles as added or removed when addding or removing them
image

@martinheidegger
Copy link
Member Author

martinheidegger commented Jun 17, 2023

@nakajimayoshi your screenshot is quite unclear 😅 But look at the one below. You can see that I am marked both as Osaka and Typescript and yet the dropbox don't give indications that typescript/osaka is selected

Screen Shot 2023-06-17 at 15 29 20

@nakajimayoshi
Copy link
Contributor

nakajimayoshi commented Jun 22, 2023

@martinheidegger

This is mainly due to a limitation of discord components. As of today, there's no state tracking of the select menu UI, and so it has to be handled via the roles API. After selecting / desalting a role the user gets a notification, and they are able to check their profile card for selected/deselected roles.

In order to make the role selection work properly, the bot has to reset the component otherwise the user cannot select/deselect with one button press, and it results in occasional crashes.

IMG_2156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants