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

[DSS-462] add Popover #100

Closed
wants to merge 47 commits into from
Closed

[DSS-462] add Popover #100

wants to merge 47 commits into from

Conversation

QuintonJason
Copy link
Contributor

@QuintonJason QuintonJason commented Sep 5, 2023

Description

  • added the Popover component

Fixes #DSS-462

Screen Shot 2023-09-11 at 10 23 24 AM

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests you've added and run to verify your changes.
Provide instructions so that we can reproduce.
Please also list any relevant details for your test configuration.

  • unit tests
  • e2e tests
  • accessibility tests
  • tested manually
  • other:

Test Configuration:

  • Pine versions:
  • OS:
  • Browsers:
  • Screen readers:
  • Misc:

Checklist:

If not applicable, leave options unchecked.

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes
  • Design has QA'ed and approved this PR

@QuintonJason QuintonJason self-assigned this Sep 5, 2023
@netlify
Copy link

netlify bot commented Sep 5, 2023

Deploy Preview for pine-design-system ready!

Name Link
🔨 Latest commit 31a9f82
🔍 Latest deploy log https://app.netlify.com/sites/pine-design-system/deploys/657b1ee75ee859000874c844
😎 Deploy Preview https://deploy-preview-100--pine-design-system.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.

@github-actions github-actions bot added package: core Changes have been made to the Core package package: react Changes have been made to the React package labels Sep 5, 2023
@QuintonJason QuintonJason marked this pull request as ready for review September 11, 2023 21:29
@QuintonJason QuintonJason requested a review from a team September 11, 2023 21:29
Copy link
Member

@pixelflips pixelflips left a comment

Choose a reason for hiding this comment

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

A few styling and story-related comments, but overall this is looking great!

libs/core/src/components/pds-popover/pds-popover.tsx Outdated Show resolved Hide resolved
libs/core/src/components/pds-popover/pds-popover.scss Outdated Show resolved Hide resolved
libs/core/src/components/pds-popover/pds-popover.scss Outdated Show resolved Hide resolved
libs/core/src/components/pds-popover/pds-popover.scss Outdated Show resolved Hide resolved
libs/core/src/components/pds-popover/pds-popover.scss Outdated Show resolved Hide resolved
@pixelflips pixelflips requested a review from a team September 12, 2023 21:47
@netlify
Copy link

netlify bot commented Sep 26, 2023

Deploy Preview for pine-icons failed.

Name Link
🔨 Latest commit 589dc64
🔍 Latest deploy log https://app.netlify.com/sites/pine-icons/deploys/65136b590c3aa80008c81553

Copy link
Contributor

@monicawheeler monicawheeler left a comment

Choose a reason for hiding this comment

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

🙌

Copy link
Member

@pixelflips pixelflips left a comment

Choose a reason for hiding this comment

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

Overall LGTM! One tiny nitpick around formatting and no e2e tests (that may be intentional?). Just let me know and I'll give the 👍🏼 if that's the case.


expect(element?.querySelector('.pds-popover')).toHaveClass('pds-popover--is-open');
});
it('should toggle the popover', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Missing empty line.

Copy link
Member

@pixelflips pixelflips left a comment

Choose a reason for hiding this comment

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

One last non-blocking comment, but overall this is great work! LGTM! 👍🏼

<pds-button variant="secondary">Help</pds-button>
</pds-popover>`;

const AvatarDropdownTemplate = (args) => html`
Copy link
Member

Choose a reason for hiding this comment

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

Maybe as a follow up at some point we could change this story to something like Trigger or Trigger Types? I found Avatar Popover in the sidebar confusing initially and thought it was some type of variant. Not a major blocker, just felt it's worth a mention.

@github-actions github-actions bot added the enhancement New feature or request label Dec 13, 2023
@QuintonJason QuintonJason marked this pull request as draft December 14, 2023 16:44
@ju-Skinner ju-Skinner changed the base branch from next to main January 11, 2024 16:51
@QuintonJason
Copy link
Contributor Author

Closing in favor of #134

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request package: core Changes have been made to the Core package package: react Changes have been made to the React package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants