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

feat(grid): create grid system [HEYUI-50] #26

Merged
merged 59 commits into from
Jul 14, 2022

Conversation

mwagdi
Copy link

@mwagdi mwagdi commented May 23, 2022

Pull Request

Description

  • Adds row component
  • Adds column component

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation change

How do I test this

  • Add steps to test
  • in bullet point format
  • preferably you can add link to the storybook build in the PR

Checklist

Did you remember to take care of the following?

  • npm i – for new NPM dependencies.
  • npm run lint - to check for linting issues
  • npm run test - to run unit tests
  • npm run test:screenshots - to run snapshot tests

New Feature / Bug Fix

  • Run unit tests to ensure all existing tests are still passing.
  • Add new passing unit tests to cover the code introduced by your pr.

Thanks for contributing!

@mwagdi mwagdi self-assigned this May 23, 2022
@coveralls
Copy link

coveralls commented May 23, 2022

Pull Request Test Coverage Report for Build 2369629900

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 90.476%

Totals Coverage Status
Change from base Build 2299477253: 0.0%
Covered Lines: 17
Relevant Lines: 17

💛 - Coveralls

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

github-actions bot commented May 23, 2022

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements
98.45% (-1.55% 🔻)
127/129
🟢 Branches
83.33% (+5.56% 🔼)
30/36
🟢 Functions 100% 12/12
🟢 Lines 100% 113/113
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🟢
... / Col.tsx
100% 100% 100% 100%
🟢
... / getGridClassNames.ts
90.91% 66.67% 100% 100%
🟢 grid/src/Grid.tsx 100% 100% 100% 100%
🟢
... / Row.tsx
100% 100% 100% 100%

Test suite run success

53 tests passing in 8 suites.

Report generated by 🧪jest coverage report action from 3037845

packages/grid/src/components/column/Column.tsx Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.tsx Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.tsx Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.tsx Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.tsx Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.types.ts Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.types.ts Outdated Show resolved Hide resolved
packages/grid/src/docs/Component.stories.mdx Outdated Show resolved Hide resolved
packages/grid/src/docs/Component.stories.mdx Outdated Show resolved Hide resolved
@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Compiled a new version demo.

@mwagdi mwagdi marked this pull request as ready for review May 31, 2022 10:28
@github-actions
Copy link

Compiled a new version demo.

@mwagdi mwagdi changed the base branch from develop to main June 3, 2022 08:16
@mwagdi mwagdi force-pushed the feature/HEYUI-50-grid-component branch from ec544ff to baaccc6 Compare June 3, 2022 08:18
@github-actions
Copy link

github-actions bot commented Jun 3, 2022

Compiled a new version demo.

@github-actions
Copy link

github-actions bot commented Jun 7, 2022

Compiled a new version demo.

@github-actions
Copy link

github-actions bot commented Jun 7, 2022

Compiled a new version demo.

@github-actions
Copy link

github-actions bot commented Jun 8, 2022

Compiled a new version demo.

@github-actions
Copy link

github-actions bot commented Jun 8, 2022

Compiled a new version demo.

Copy link
Contributor

@derek-heycar derek-heycar left a comment

Choose a reason for hiding this comment

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

do not forgot add README, just check the example for the button in the main branch.

packages/grid/src/styles/column.module.css Outdated Show resolved Hide resolved
packages/grid/src/styles/column.module.css Outdated Show resolved Hide resolved
packages/grid/src/styles/column.module.css Outdated Show resolved Hide resolved
packages/grid/src/components/row/Row.tsx Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.tsx Outdated Show resolved Hide resolved
packages/grid/src/components/column/Column.tsx Outdated Show resolved Hide resolved
packages/grid/package.json Outdated Show resolved Hide resolved
@mwagdi mwagdi requested a review from derek-heycar June 24, 2022 09:44
Added extra media queries:
| Name          | Value           |
| ------------- | --------------- |
| `--mobile-s`  | 320px to 100%   |
| `--mobile-m`  | 375px to 100%   |
| `--mobile-l`  | 412px to 100%   |
| `--mobile`    | 0 to 599px      |
| `--tablet-s`  | 600px to 100%   |
| `--tablet-m`  | 768px to 100%   |
| `--tablet-l`  | 860px to 100%   |
| `--tablet`    | 600px to 1023px |
| `--desktop-s` | 1024px to 100%  |
| `--desktop-m` | 1280px to 100%  |
| `--desktop-l` | 1440px to 100%  |
| `--desktop`   | 1024px to 100%  |
@github-actions
Copy link

github-actions bot commented Jul 1, 2022

Compiled a new version demo.

@github-actions
Copy link

github-actions bot commented Jul 4, 2022

Compiled a new version demo.

Copy link
Contributor

@hcafaq hcafaq left a comment

Choose a reason for hiding this comment

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

PR looks good apart from one comment why did we prioritise flex over css grid for these components

max-width: 100%;
min-height: 1px;
flex-basis: 0;
flex-grow: 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the short-hand property as used below

Copy link
Contributor

Choose a reason for hiding this comment

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

The ability of the CSS flex rule is enough for the easy and fast control of the simple grid system.
You can check it out in the investigation ticket: https://heycar.atlassian.net/browse/HEYUI-49

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use the short-hand property as used below

I didn't get this comment. could you explain pls ?

Choose a reason for hiding this comment

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

flex: [flex-grow] [flex-shrink] [flex-basis]

I see everywhere in the PR shorthands used here I saw flex-grow and basis separately applied.

@github-actions
Copy link

Compiled a new version demo.

@github-actions
Copy link

Compiled a new version demo.

@derek-heycar derek-heycar merged commit 807290a into main Jul 14, 2022
@derek-heycar derek-heycar deleted the feature/HEYUI-50-grid-component branch July 14, 2022 16:09
derek-heycar pushed a commit that referenced this pull request Jul 14, 2022
# [1.4.0](v1.3.0...v1.4.0) (2022-07-14)

### Features

* **grid:** The first implementation the grid package ([#26](#26)) ([807290a](807290a))
@derek-heycar
Copy link
Contributor

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants