-
Notifications
You must be signed in to change notification settings - Fork 8
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(pie-toast-provider): DSW-2222 toast provider basic functionality #2098
Conversation
🦋 Changeset detectedLatest commit: dcf3b4e The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
62a41f9
to
5633655
Compare
/snapit |
Starting a new snapshot build. You can view the logs here. |
@raoufswe Your snapshots have been published to npm! Test the snapshots by updating your Note If you have more than one of these packages installed, we suggest using the new snapshots for all of them to help avoid version conflicts. yarn up @justeattakeaway/[email protected] --mode=update-lockfile yarn up @justeattakeaway/[email protected] --mode=update-lockfile yarn up @justeattakeaway/[email protected] --mode=update-lockfile Then finally: yarn install |
/snapit |
Starting a new snapshot build. You can view the logs here. |
@raoufswe Your snapshots have been published to npm! Test the snapshots by updating your Note If you have more than one of these packages installed, we suggest using the new snapshots for all of them to help avoid version conflicts. yarn up @justeattakeaway/[email protected] --mode=update-lockfile yarn up @justeattakeaway/[email protected] --mode=update-lockfile yarn up @justeattakeaway/[email protected] --mode=update-lockfile Then finally: yarn install |
7b0a454
to
3807208
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff!!!
packages/components/pie-toast-provider/test/component/pie-toast-provider.spec.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment regarding testing, but looks good otherwise!
a2e26a2
to
ad8c015
Compare
feat(pie-toast-provider): DSW-2222 add tests feat(pie-toast-provider): DSW-2222 update yarn fix(pie-toast-provider): DSW-2222 update formating fix(pie-toast-provider): DSW-2222 ensure duration is parsed correctly fix(pie-toast-provider): DSW-2222 update markup fix(pie-toast-provider): DSW-2222 update yarn fix(pie-toast-provider): DSW-2222 add validation fix(pie-toast-provider): DSW-2222 update logs fix(pie-toast-provider): DSW-2222 refactor tests fix(pie-toast-provider): DSW-2222 refactor tests fix(pie-toast-provider): DSW-2222 refactor tests
c4b45b6
to
8ddb3da
Compare
packages/components/pie-toast-provider/test/visual/pie-toast-provider.spec.ts
Show resolved
Hide resolved
const queueVariants = toastsQueue.map((toast: ExtendedToastProps) => `${toast.variant}${toast.leadingAction ? '-actionable' : ''}`); | ||
for (let i = 1; i < queueVariants.length; i++) { | ||
const prevPriority = PRIORITY_ORDER[queueVariants[i - 1]]; | ||
const currPriority = PRIORITY_ORDER[queueVariants[i]]; | ||
expect(currPriority).toBeGreaterThanOrEqual(prevPriority); // Ensure the current has a higher priority | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if a cleaner way might be to sort
by priority and check that the ordering is the same?
Describe your changes (can list changeset entries if preferable)
Author Checklist (complete before requesting a review, do not delete any)
PIE Storybook
/PIE Docs
PR preview./test-aperture
command.Not-applicable Checklist items
Please move any Author checklist items that do not apply to this pull request here.
Testing
How do I test my changes?
Reviewer checklists (complete before approving)
Mark items as
[-] N/A
if not applicable.Reviewer 1
PIE Storybook
/PIE Docs
PR preview.Reviewer 2
PIE Storybook
/PIE Docs
PR preview.