-
Notifications
You must be signed in to change notification settings - Fork 0
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
General principles main view #24
Conversation
…ick-App into GeneralPrinciplesMainView
…obalSearch SearchBarComponent and rewrote styles for Global Search and General Principles to base off of device dimensions, implemented grid structure using Pressables with precise Figma measurements
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.
I'm using an Iphone 15 emulator and I noticed that "General Principles" and "Browse by Category" seem like they're of the wrong font weight/size. They look mismatched from the Figma designs--I don't think rewriting the styles to integrate device dimensions is accurate as of now. The pressable components also seem to be currently centering the titles, but the Figma designs are left-top-aligned and have a taller overall height for each box.
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.
Tested on my iphone and android simulator, LGTM. Don't have a larger device to test on but refer to Megan's feedback for the issues with displaying on larger screens.
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.
Code looks great! Just address the visual issues Megan noticed, as well as any comments the designers made, but should be good to merge.
… container as per Figma measurements
…orizontal to fix search result alignment
…ing SafeAreaView to regular View in general principles main view to keep consistency between Android and iOS
Tracking Info
Resolves #17
Changes
Implement the discussed page by passing a title prop to the GlobalSearch SearchBarComponent for the top section, with Browse By Category subheader/subtitle, and a two column grid of Pressable components below that also integrates scrolling functionality. Rewrote styles for Global Search to use device dimensions (as opposed to fixed hardcoded values); wrote General Principles to use device dimensions in conjunction with precise Figma measurements for devices of varying size.
Testing
We confirmed that the changes worked by deploying on a mobile phone and to confirm layout as well as baseline search and scrolling functionality. You can test this change by pressing on the bottom right button of the three buttons on the navbar below and looking at the layout while trying out scrolling and search. Currently, buttons do not have any functionality yet.
Confirmation of Change
Screenshots are attached below that illustrate adaptation between phone and iPad/tablet and some accommodation of varying device sizes while remaining in the two column format prescribed by the designers. Format is phone first then iPad and one photo each of top, bottom, and search: