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

[DSDK-176][FEAT][SMPL] Create Home skeleton #10

Merged
merged 4 commits into from
Jan 31, 2024

Conversation

aussedatlo
Copy link
Contributor

@aussedatlo aussedatlo commented Jan 23, 2024

πŸ“ Description

Create Home skeleton from figma

Screenshot 2024-01-23 at 17 29 16

❓ Context

βœ… Checklist

Pull Requests must pass the CI and be code reviewed. Set as Draft if the PR is not ready.

  • npx changeset was attached.
  • Covered by automatic tests.
  • [ ] Impact of the changes:


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.

Copy link

vercel bot commented Jan 23, 2024

@aussedatlo is attempting to deploy a commit to the LedgerHQ Team on Vercel.

To accomplish this, @aussedatlo needs to request access to the Team.

Afterwards, an owner of the Team is required to accept their membership request.

If you're already a member of the respective Vercel Team, make sure that your Personal Vercel Account is connected to your GitHub account.

@aussedatlo aussedatlo force-pushed the feature/DSDK-176-home-skeleton branch from 166e61e to 9b850b6 Compare January 26, 2024 14:32
@aussedatlo aussedatlo changed the base branch from develop to feature/DSDK-175-ui-library January 29, 2024 11:04
Copy link
Contributor

@alexandremgo alexandremgo left a comment

Choose a reason for hiding this comment

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

Clean πŸ‘Œ

padding-left: ${({ theme }: { theme: DefaultTheme }) => theme.space[5]}px;
`;

const MenuTitle = styled(Box)`
Copy link
Contributor

Choose a reason for hiding this comment

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

[SHOULD] consider using a Text component instead, with variant and fontWeight props.
cf. https://react-ui-storybook.vercel.app/?path=/docs/asorted-typography-text--docs

color: ${({ theme }: { theme: DefaultTheme }) => theme.colors.neutral.c90};
display: flex;
Copy link
Contributor

Choose a reason for hiding this comment

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

[SHOULD] you can use a Flex component from react-ui for that. Applies to all other places where you used Box with display: flex

Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger left a comment

Choose a reason for hiding this comment

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

Seems good but I think that you should leverage much more of react-ui's potential by using components such as Text (with props like variant and fontWeight) and Flex. There are a bunch of examples in LLD and LLM if you want.

Using text variants specifically is important as it helps us to remain consistent with the design system which defines a set of variants which have their specific font size & family.
Before implementing any design, in case the variant & font weight are not clearly displayed in design files, it should be reported to the designer. Same for unorthodox spacing values which are not in the defined ranges.

@aussedatlo aussedatlo force-pushed the feature/DSDK-176-home-skeleton branch from 9b850b6 to f8b8b30 Compare January 30, 2024 15:49
@aussedatlo aussedatlo force-pushed the feature/DSDK-175-ui-library branch from e3b201c to 9aff145 Compare January 30, 2024 16:01
@aussedatlo aussedatlo force-pushed the feature/DSDK-176-home-skeleton branch from f8b8b30 to 6c110d5 Compare January 30, 2024 16:02
@aussedatlo aussedatlo force-pushed the feature/DSDK-175-ui-library branch 3 times, most recently from 3b24209 to aa845e1 Compare January 30, 2024 16:33
@aussedatlo aussedatlo changed the base branch from feature/DSDK-175-ui-library to develop January 30, 2024 16:38
@aussedatlo aussedatlo force-pushed the feature/DSDK-176-home-skeleton branch from 6c110d5 to f3dd1d9 Compare January 30, 2024 16:39
Copy link
Contributor

@jdabbech-ledger jdabbech-ledger left a comment

Choose a reason for hiding this comment

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

[should] import from @ledgerhq/react-ui instead of @ledgerhq/react-ui/index

@aussedatlo aussedatlo force-pushed the feature/DSDK-176-home-skeleton branch from f3dd1d9 to e96a60d Compare January 30, 2024 17:09
variant: "paragraph",
fontWeight: "semiBold",
})`
margin-left: ${({ theme }: { theme: DefaultTheme }) => theme.space[5]}px;
Copy link
Contributor

Choose a reason for hiding this comment

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

FYI spacing also works nicely with styled system: you can add a prop marginLeft: 5 or ml: 5.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ml: 5 looks cleaner and more concise than ${({ theme }: { theme: DefaultTheme }) => theme.space[5]}px. I'll edit all the spacing to use styled-system πŸ‘

Copy link
Contributor

Choose a reason for hiding this comment

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

πŸ™Œ

padding: ${({ theme }: { theme: DefaultTheme }) => theme.space[6]}px;
background: ${({ theme }: { theme: DefaultTheme }) =>
theme.colors.neutral.c30};
border-radius: 8px;
Copy link
Contributor

Choose a reason for hiding this comment

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

[ASK] can border-radius: 8px be instead derived from theme.radii[2] ?

cursor: pointer;
align-items: center;
opacity: 0.7;
padding: 8px;
Copy link
Contributor

Choose a reason for hiding this comment

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

[SHOULD] padding to be taken from theme.space

Copy link
Contributor

@ofreyssinet-ledger ofreyssinet-ledger left a comment

Choose a reason for hiding this comment

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

nice ! thanks for figuring out the fonts setup !

@aussedatlo aussedatlo force-pushed the feature/DSDK-176-home-skeleton branch from e96a60d to fa2efbb Compare January 31, 2024 09:30
@aussedatlo aussedatlo force-pushed the feature/DSDK-176-home-skeleton branch from fa2efbb to d101129 Compare January 31, 2024 13:33
@aussedatlo aussedatlo merged commit 1d326d1 into develop Jan 31, 2024
2 of 3 checks passed
@aussedatlo aussedatlo changed the title [DSDK-176] [SAMPLE-APP] Create Home skeleton [DSDK-176][FEAT][SMPL] Create Home skeleton Jan 31, 2024
@valpinkman valpinkman deleted the feature/DSDK-176-home-skeleton branch April 17, 2024 16:26
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.

6 participants