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 new checkbox to choose if already picked users should be skipped #19

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

Ithanil
Copy link
Contributor

@Ithanil Ithanil commented Oct 15, 2024

I think removing already picked users from the pool of users to be picked is an OK default, but not always what you want. Hence, I've added a checkbox to "Skip Picked Users", which is enabled by default. If it is unchecked, previously picked users will enter the pool for selection again.

Considered alternative: Manually clearing the list of previously picked users every time. But this is a bit of a hassle and has the side effect of clearing the history. ( Also, the reset currently just doesn't work ;-) )

@GuiLeme
Copy link
Collaborator

GuiLeme commented Oct 16, 2024

Hello @Ithanil. Thanks for the contribution, it's indeed an interesting feature! I will test it later on!

Copy link
Collaborator

@GuiLeme GuiLeme left a comment

Choose a reason for hiding this comment

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

Hey, great PR, thanks for the contribution, I would just recommend that change I mention in the review, which is the label, and also to make the code coherent with that final label you'll use.

Thank's again if you need any help, please ping here.

name="options"
value="skipPickedUsers"
/>
<span className="check-box-label">Skip Picked Users</span>
Copy link
Collaborator

@GuiLeme GuiLeme Nov 6, 2024

Choose a reason for hiding this comment

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

This name is not really meaningful, I would suggest something like:
"Allow pick same user multiple times" which will be false by default.
Also, there is the need to make necessary changes in the code afterwards.

Copy link
Member

Choose a reason for hiding this comment

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

"A user may be picked more than once" perhaps?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In line with #13, I would suggest "Include already picked users". What do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

In line with #13, I would suggest "Include already picked users". What do you think?

That's quite good! @antobinary, what do you think? I'm on board with this one

Copy link
Member

Choose a reason for hiding this comment

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

On board too!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
But for consistency #13 needs to be adressed too now. Otherwise it looks awkward to have 2x "Skip" options (enabled per default) and then one "Include" (disabled per default).

Copy link
Collaborator

Choose a reason for hiding this comment

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

But for consistency #13 needs to be adressed too now

Don't worry about that, I will handle it, one other thing this PR exposed is that if the list of already picked users is long enough, there is no way to pick another one, because the height of the modal grows indefinitely... I will open an issue for that. And don't worry about that either, the plugin already did that.

@GuiLeme GuiLeme self-requested a review November 7, 2024 20:45
Copy link
Collaborator

@GuiLeme GuiLeme left a comment

Choose a reason for hiding this comment

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

LGTM!

Once this PR is merged we need to add scrollabel and resolve #13

@antobinary antobinary merged commit 51d722c into bigbluebutton:main Nov 7, 2024
3 of 4 checks passed
@antobinary
Copy link
Member

Thank you @Ithanil for the contribution!
Thank you @GuiLeme for the review!

@Ithanil Ithanil deleted the add_skip_picked_users branch November 8, 2024 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants