-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
<DButton | ||
class="show-all btn-small" | ||
@label="discourse_post_event.show_all" | ||
@action={{this.showAllInvitees}} | ||
/> |
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.
If this removal was intentional then showAllInvitees
method should be deleted too
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.
Yes this was intentional, this button is now avail in the drop down ellipsis menu.
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.
will remove the method.
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.
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 😃
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.
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";
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.
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";
)
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](https://private-user-images.githubusercontent.com/30537603/393007126-7e8886a5-9af6-4842-b123-7ef09c04b90b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTcxNjUsIm5iZiI6MTczOTIxNjg2NSwicGF0aCI6Ii8zMDUzNzYwMy8zOTMwMDcxMjYtN2U4ODg2YTUtOWFmNi00ODQyLWIxMjMtN2VmMDljMDRiOTBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE5NDc0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExYzE2ODNlZDRkYWEyN2Q3YzQ3MWVkNzcxYjNhMmZiZmVhYzgzYWQ1M2M5MjgxMjY2MDA3NzVhMTEzMzVlOWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.t310d-0ecLvDrRGE0E3DzNh7eXL3u6wTCPSjPkLurY8)
Before
![CleanShot 2024-12-05 at 15 48 48@2x](https://private-user-images.githubusercontent.com/30537603/393007272-bdd43849-84f6-40d8-b7b5-ae1de1ead645.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTcxNjUsIm5iZiI6MTczOTIxNjg2NSwicGF0aCI6Ii8zMDUzNzYwMy8zOTMwMDcyNzItYmRkNDM4NDktODRmNi00MGQ4LWI3YjUtYWUxZGUxZWFkNjQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDE5NDc0NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI0YjZiNGQ4OTk1ZjE4NDc1MjAxNTRiMTUwNWQyNmNhZDZiYzNlOTNmMjFlZWQ4YzcxYmRiOWJlYWEwY2Y5Y2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.0ZEb9TprQS7HkSVVACkPtDvctzlo9mvtbgakgV6m3zc)