-
Notifications
You must be signed in to change notification settings - Fork 342
home: Add icons label on main navigation bar. #1879
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
base: main
Are you sure you want to change the base?
Conversation
There is a lot of text to read in that PR description. Did you use ChatGPT or another LLM to write it? If so, we'd much rather see whatever prompt you used, instead of the LLM output — the LLM fundamentally doesn't add any information that wasn't there already, and the prompt should be a lot shorter and so less work to read. There's also no need to repeat information that's there in the diffs, like the names of files you touched and identifiers you added there. |
Please also add a test for this change, and organize into clear and coherent commits according to the Zulip style — those are our two general requirements for a PR. See the repo's README for details, and links to further details. Once those are met, this will be ready for a review. After another maintainer has reviewed it and you've revised to address their comments, I'll review the PR. |
Although i did write the whole description in a paragraph, I use LLM to fine tune my description into a formatted output like a pointer and reformat it output again myself. I have changed the description to a brief one. |
Alright Greg |
Added Gesture Detector over Column, Temporary set the onPressed of the Icon Button to null. Fixes: zulip#1808 home: Improve performace and fix bug. Replaced IconButton widgets to Icon improve significantly performace of switching screens and wrote test for the semantic labels for App Bar. Fixes: zulip#1879
55f7e12
to
1f1a1ee
Compare
@chrisbobbe This is the PR for which we discussed in the chats For Design reference i have attached the difference. ![]() I have made the commits coherent as well as minimal as request by Greg. |
e8fc538
to
406a86f
Compare
lib/widgets/home.dart
Outdated
// TODO(#535): Decide if we find it helpful to use something like | ||
// [SemanticsProperties.namesRoute] to structure this UI better | ||
// for screen-reader software. | ||
Offstage(offstage: tab != _tab.value, child: body), | ||
Offstage( | ||
offstage: tab != _tab.value, | ||
child: Semantics( | ||
namesRoute: true, | ||
child: body)) |
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.
It looks like you read the TODO and decided that SemanticsProperties.namesRoute
is helpful. Could you explain what you considered when making that decision?
406a86f
to
88de8b2
Compare
Thank you @chrisbobbe for pointing out the issue in sematics! I have updated the semantic using SematicServices.sendAnnouncement for better interoperability. I can provide the TalkBack working on android recording for confirmation. |
88de8b2
to
2d51fd6
Compare
Labeled the Navigation Bar for each Icon by zulip_localizations, nav bar tap logic replaces IconButton to GestureDetector, which visually decreases reponse time.
2d51fd6
to
adc6013
Compare
Hmm, in #1879 (comment) , I didn't intend to point out any issue. 🙂 I just meant to ask for information that could help us understand your proposal. Did you find some issue with |
Thank you @chrisbobbe for the review, I think the main reason is offstage do not allow the semantic to access its property for semantic widget to correctly get the label to speak out, I also tested it using TalkBack and the semantic widget even with a label was not able to make TalkBack trigger when the change in page body was detected. |
Key Changes:
I have kept the height of the Navigation to be fixed because a fully dynamic navigation bar height that adjusts based on label content across languages is not feasibly after having done some feasibility study. The UI jitter when the bar changes its size suddenly when the user changes the app language is extremely unlikely to be solved and can negatively impact user experience hence even in day to day app these types of dynamic navigation bar are not used.
integration of the page bodies and semantics has been done
Link to Figma Design was not found rather, the screenshot that was shared by Vlad Korobov in the following discuss was used to implement the UI : #mobile > Flutter feedback - Icons in app @ 💬
Thank you
Figma Design Link
Fixes #1857