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

FEATURE: allow event editors to control list of users on the event #614

Merged
merged 10 commits into from
Oct 13, 2024

Conversation

SamSaffron
Copy link
Member

@SamSaffron SamSaffron commented Oct 10, 2024

Previously event editors could remove people from an event but had no way
of acting on behalf of users in the event and adding them.

That meant that for events to properly show up in agenda and so on a user
must actively click a button.

In some cases (company ran events) the event manager may prefer controlling attendance.

Previously event editors could remove people from an event but had no way
of acting on behalf of users in the event and adding them.

That meant that for events to properly show up in agenda and so on a user
must actively click a button.

In some cases (company ran events) the event manager may prefer controlling
attendance.
@SamSaffron SamSaffron changed the title improve events FEATURE: allow event editors to control list of users on the event Oct 10, 2024
{{renderInvitee invitee}}
{{#if @model.event.can_act_on_discourse_post_event}}
<DButton
@icon="trash-alt"
Copy link
Contributor

Choose a reason for hiding this comment

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

both buttons need a title

Comment on lines 109 to 116
<Input
@value={{this.filter}}
{{on "input" this.onFilterChanged}}
class="filter"
placeholder={{i18n
"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder"
}}
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

it's recommended to avoid Input component and use a native input element instead:

Suggested change
<Input
@value={{this.filter}}
{{on "input" this.onFilterChanged}}
class="filter"
placeholder={{i18n
"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder"
}}
/>
<input
{{on "input" this.onFilterChanged}}
type="text"
placeholder={{i18n
"discourse_calendar.discourse_post_event.invitees_modal.filter_placeholder"
}}
class="filter"
/>

Comment on lines 55 to 58
@debounce(250)
onFilterChanged() {
this._fetchInvitees(this.filter);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

native input continued:

Suggested change
@debounce(250)
onFilterChanged() {
this._fetchInvitees(this.filter);
}
@debounce(250)
onFilterChanged(event) {
this.filter = event.target.value;
this._fetchInvitees(this.filter);
}

@SamSaffron
Copy link
Member Author

@CvX all is handled and I added some system spec coverage

@SamSaffron SamSaffron merged commit 647ba1c into main Oct 13, 2024
5 checks passed
@SamSaffron SamSaffron deleted the improve-events branch October 13, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants