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

General principles main view #24

Merged
merged 14 commits into from
Mar 14, 2024
Merged

General principles main view #24

merged 14 commits into from
Mar 14, 2024

Conversation

r800360
Copy link
Member

@r800360 r800360 commented Mar 7, 2024

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:

Screenshot_20240306_202232_Expo Go
Screenshot_20240306_202245_Expo Go
Screenshot_20240306_202954_Expo Go
IMG_8508
IMG_8509
IMG_8507

eshaan-s18 and others added 3 commits February 28, 2024 21:51
…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
@Anthonyp0329 Anthonyp0329 requested review from a team, PiXlRAM and meganleongg and removed request for a team March 8, 2024 02:58
Copy link
Contributor

@meganleongg meganleongg left a 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.

what my emulator shows:
Screenshot 2024-03-07 at 10 13 44 PM

figma design:
Screenshot 2024-03-07 at 10 14 38 PM

Copy link
Member

@PiXlRAM PiXlRAM left a 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.

Copy link
Collaborator

@Anthonyp0329 Anthonyp0329 left a 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.

…ing SafeAreaView to regular View in general principles main view to keep consistency between Android and iOS
@r800360 r800360 merged commit e7d85d3 into main Mar 14, 2024
2 checks passed
@r800360 r800360 deleted the GeneralPrinciplesMainView branch March 14, 2024 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

General Principles Main View
5 participants