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

chore: update discover dapp and dapp filter styles #5625

Merged
merged 7 commits into from
Jul 10, 2024

Conversation

kathaypacific
Copy link
Collaborator

@kathaypacific kathaypacific commented Jul 9, 2024

Description

Context and design.

This PR only has styles changes. Also fixes the dapp filters appearing on more than 1 row. This PR breaks the dapp rankings styles but that is disabled and earmarked for deletion anyway.

Test plan

Simulator Screenshot - iPhone 15 Pro - 2024-07-09 at 12 16 46

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-07-09.at.12.16.11.mp4

Related issues

n/a

Backwards compatibility

yes

Network scalability

If a new NetworkId and/or Network are added in the future, the changes in this PR will:

  • Continue to work without code changes, OR trigger a compilation error (guaranteeing we find it when a new network is added)

@kathaypacific kathaypacific marked this pull request as draft July 9, 2024 10:46
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.70%. Comparing base (2e02e91) to head (efed9f8).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5625      +/-   ##
==========================================
- Coverage   86.72%   86.70%   -0.02%     
==========================================
  Files         773      773              
  Lines       31567    31562       -5     
  Branches     5456     5454       -2     
==========================================
- Hits        27375    27366       -9     
- Misses       3963     3967       +4     
  Partials      229      229              
Files Coverage Δ
src/components/FilterChipsCarousel.tsx 100.00% <100.00%> (ø)
src/dapps/DappsScreen.tsx 95.79% <ø> (ø)
src/dappsExplorer/DappCard.tsx 100.00% <100.00%> (ø)
src/dappsExplorer/DiscoverDappsCard.tsx 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2e02e91...efed9f8. Read the comment docs.

Copy link
Contributor

@jophish jophish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this, and sorry that this slipped through!! This is a lot cleaner, and the approach to styling the DappCard makes much more sense here 😅

<Touchable
style={[styles.pressableCard, cardContentContainerStyle]}
onPress={onPressDapp}
borderRadius={showBorder ? 8 : undefined}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can 8 be Spacing.Smallest8?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i prefer not to 🙈 i agree that we prefer variables over hardcoded numbers so that we are restricted to certain consistent values + it's easier to make a global change for the values, but i think borders and spaces may not want to use the same variables...it can be a surprise if a change to "Spacing" values also changes rounded corners. i've always wanted to create a separate style enum for borders but never got round to it 😅

@kathaypacific kathaypacific marked this pull request as ready for review July 10, 2024 07:33
@kathaypacific kathaypacific added this pull request to the merge queue Jul 10, 2024
Merged via the queue into main with commit ae8c4f0 Jul 10, 2024
16 checks passed
@kathaypacific kathaypacific deleted the kathy/discover-styles branch July 10, 2024 14:36
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.

2 participants