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: Introduce Drawer component #DS-1580 #1836

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

curdaj
Copy link
Contributor

@curdaj curdaj commented Jan 6, 2025

Description

Additional context

Issue reference

@github-actions github-actions bot added the feature New feature or request label Jan 6, 2025
@curdaj curdaj changed the title Feat: Introduce Drawer component #DS-1580 🚧 Feat: Introduce Drawer component #DS-1580 Jan 6, 2025
Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for spirit-design-system-storybook ready!

Name Link
🔨 Latest commit
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system-storybook/deploys/6784d8d98049d0f2e1efa891
😎 Deploy Preview https://deploy-preview-1836--spirit-design-system-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for spirit-design-system ready!

Name Link
🔨 Latest commit bab2e02
🔍 Latest deploy log https://app.netlify.com/sites/spirit-design-system/deploys/6784d6868e635f000859f181
😎 Deploy Preview https://deploy-preview-1836--spirit-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (no change from production)
Accessibility: 91 (no change from production)
Best Practices: 100 (no change from production)
SEO: 91 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@curdaj curdaj force-pushed the feat/ds-1580-drawer branch 2 times, most recently from 15e455e to 7e0e684 Compare January 6, 2025 14:39
@curdaj curdaj changed the title 🚧 Feat: Introduce Drawer component #DS-1580 Feat: Introduce Drawer component #DS-1580 Jan 7, 2025
@curdaj curdaj force-pushed the feat/ds-1580-drawer branch from a602bc8 to 87b58d1 Compare January 7, 2025 13:08
@curdaj curdaj added the run-visual-tests Runs visual regression testing on this PR label Jan 7, 2025
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Copy link
Contributor

github-actions bot commented Jan 7, 2025

Copy link
Contributor

github-actions bot commented Jan 7, 2025

@curdaj curdaj force-pushed the feat/ds-1580-drawer branch from 32a323a to 078743d Compare January 7, 2025 13:54
@curdaj curdaj marked this pull request as ready for review January 7, 2025 14:01
Copy link
Member

@crishpeen crishpeen left a comment

Choose a reason for hiding this comment

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

Please add more examples without close button, without close on backdrop and with long scrollable content.

This can be made using a form to configure (like in Toast).

packages/web-react/src/components/Drawer/Drawer.tsx Outdated Show resolved Hide resolved
packages/web-react/src/components/Drawer/Drawer.tsx Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/index.html Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@adamkudrna adamkudrna left a comment

Choose a reason for hiding this comment

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

Good job! 👍 I quickly checked the web implementation.

packages/web/src/scss/components/Drawer/index.html Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web-react/src/components/Drawer/README.md Outdated Show resolved Hide resolved
@crishpeen
Copy link
Member

Also, I am considering if we shouldn't point this branch to the integration/header. So we can test if it works in the whole combination.

@literat
Copy link
Collaborator

literat commented Jan 8, 2025

Do we add the same animation for opening and closing as we have in HeaderDialog?

Copy link
Contributor

github-actions bot commented Jan 8, 2025

Copy link
Contributor

github-actions bot commented Jan 8, 2025

Copy link
Contributor

github-actions bot commented Jan 8, 2025

@curdaj
Copy link
Contributor Author

curdaj commented Jan 8, 2025

Do we add the same animation for opening and closing as we have in HeaderDialog?

Sorry, you just hit the moment when the animation didn't work

Copy link
Contributor

github-actions bot commented Jan 8, 2025

@curdaj
Copy link
Contributor Author

curdaj commented Jan 8, 2025

Please add more examples without close button, without close on backdrop and with long scrollable content.

This can be made using a form to configure (like in Toast).

added

Copy link
Contributor

github-actions bot commented Jan 8, 2025

@curdaj curdaj force-pushed the feat/ds-1580-drawer branch from 59f5eed to 3c2efb4 Compare January 8, 2025 14:42
@coveralls
Copy link

Coverage Status

coverage: 79.469%. remained the same
when pulling 3c2efb4 on feat/ds-1580-drawer
into a9fee8e on main.

Copy link
Contributor

github-actions bot commented Jan 8, 2025

@curdaj curdaj force-pushed the feat/ds-1580-drawer branch from ec773d3 to 9528554 Compare January 8, 2025 16:04
@curdaj curdaj changed the base branch from main to integration/header January 8, 2025 16:04
packages/web-react/src/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web-react/src/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web-react/src/components/Drawer/README.md Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/README.md Outdated Show resolved Hide resolved

--#{tokens.$css-variable-prefix}drawer-translate-x: 0%;

all: unset;
Copy link
Member

Choose a reason for hiding this comment

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

(@adamkudrna) maybe it would be nice to add a reset mixin for this. I assume it is partly the same as in Modal (and HeaderDialog)

Copy link
Contributor

@adamkudrna adamkudrna Jan 9, 2025

Choose a reason for hiding this comment

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

You mean for this line? 👀 Or something like reset.dialog()?

packages/web/src/scss/components/Drawer/index.html Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/index.html Outdated Show resolved Hide resolved
packages/web/src/scss/components/Drawer/index.html Outdated Show resolved Hide resolved
@curdaj curdaj requested a review from crishpeen January 9, 2025 10:10
Copy link
Contributor

github-actions bot commented Jan 9, 2025

Copy link
Contributor

github-actions bot commented Jan 9, 2025

@curdaj curdaj requested a review from literat January 10, 2025 09:38
Copy link
Collaborator

@literat literat left a comment

Choose a reason for hiding this comment

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

Nice! A lot of work you have done 👏

@curdaj curdaj force-pushed the feat/ds-1580-drawer branch from 461da8b to bab2e02 Compare January 13, 2025 09:01
@curdaj curdaj merged commit 00ac421 into integration/header Jan 14, 2025
23 checks passed
@curdaj curdaj deleted the feat/ds-1580-drawer branch January 14, 2025 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request run-visual-tests Runs visual regression testing on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants