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
Navbar: Describe views in top navbar. #29824
base: main
Are you sure you want to change the base?
Conversation
Hello @zulip/server-onboarding members, this pull request was labeled with the "area: onboarding" label, so you may want to check it out! |
3e02e8c
to
4eb2ad1
Compare
We can let the question mark disappear with the rest of the text when everything doesn't fit. |
I also think the question mark is spaced a bit too far to the right. |
I'm feeling good about the strings after seeing them in the UI. |
@alya for me the help icon is disappearing when narrowing the windows. (I am using brave browser in windows) Recording.2024-04-24.004546.mp4EDIT: I've tested in edge browser and on safari as well and it's working fine for me |
4eb2ad1
to
54ff34a
Compare
@alya I've also corrected the spacing of help-icon. I personally think it would look better if we remove the full stop in the end and the margin stays as it is like this: |
54ff34a
to
4c60c51
Compare
OK, I dunno. I tested in Chrome on a Mac. |
I've tested on both Firefox and Chrome on Mac, and I'm not able to reproduce the problem @alya is seeing with the help icon. Everything in testing looks good on my end, in other words. |
Everything here LGTM. Probably worth some time on CZO, just because there is this head-scratcher with the help icon. I'll mark it as such, but @timabbott will make whatever seems to be the better call here. |
web/src/message_view_header.ts
Outdated
zulip_icon: "recent", | ||
link: $t({defaultMessage: "/help/recent-conversations"}), |
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.
Don't tag links for translation; that doesn't make any sense -- the URL is the same for everyone regardless of language. These should just be fixed URLs.
web/src/message_view_header.ts
Outdated
@@ -59,6 +71,21 @@ function get_message_view_header_context(filter: Filter | undefined): MessageVie | |||
title, | |||
is_spectator: page_params.is_spectator, | |||
}); | |||
if (title === "Mentions") { |
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.
You can't check the titles this way, because they ARE tagged for translation -- so it'll be different in other languages. I think you need filter.get_title
to be doing these computations, and this function just displaying what it passed through.
Take a read through https://zulip.readthedocs.io/en/latest/translating/internationalization.html.
{{/if}} | ||
</span> | ||
{{/if}} | ||
|
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.
Don't add extra blank lines at the end of files like this.
4c60c51
to
46c68c9
Compare
@timabbott thank you for your review! |
46c68c9
to
42928f1
Compare
Adds description in views styled like stream descriptions also adds a help center link to the appropriate page at the end of each description. Fixes zulip#29769.
42928f1
to
91d8724
Compare
The "combined feed" description seems to not be working on chat.zulip.org. |
Heads up @nimishmedatwal, we just merged some commits that conflict with the changes you made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
Adds description in views styled like stream descriptions along with adding a help center link to the appropriate page at the end of each description.
CZO thread
Fixes: #29769
Screenshots and screen captures:
Self-review checklist
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review (see commit discipline).
Completed manual review and testing of the following: