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

UX: Render invitees count #663

Merged
merged 7 commits into from
Dec 5, 2024
Merged

UX: Render invitees count #663

merged 7 commits into from
Dec 5, 2024

Conversation

jordanvidrine
Copy link
Contributor

This PR adds a "going" count back into the events UI. The counts were removed previously to minimize the amount of information, but "going" should have remained.

After
CleanShot 2024-12-05 at 15 48 00@2x

Before
CleanShot 2024-12-05 at 15 48 48@2x

Comment on lines -68 to -72
<DButton
class="show-all btn-small"
@label="discourse_post_event.show_all"
@action={{this.showAllInvitees}}
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

If this removal was intentional then showAllInvitees method should be deleted 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.

Yes this was intentional, this button is now avail in the drop down ellipsis menu.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will remove the method.

Copy link
Contributor

Choose a reason for hiding this comment

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

now the component can be reduced to a template-only component, both service injections are unused and the properties could be inlined in the template 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would this still remain a gjs file? and only include while still using the imports like:

import icon from "discourse-common/helpers/d-icon";
import i18n from "discourse-common/helpers/i18n";
import Invitee from "./invitee";

Copy link
Contributor

Choose a reason for hiding this comment

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

yup - still a gjs but without a js class:

const DiscoursePostEventInvitees = <template>
  ...
</template>

export default DiscoursePostEventInvitees;

(btw, the new i18n import is: import { i18n } from "discourse-i18n";)

@jordanvidrine jordanvidrine requested a review from CvX December 5, 2024 22:19
@jordanvidrine jordanvidrine merged commit d967cb1 into main Dec 5, 2024
6 checks passed
@jordanvidrine jordanvidrine deleted the show-count branch December 5, 2024 22:22
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.

3 participants