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

ADAPT-578: initial Alert component implementation #178

Merged
merged 15 commits into from
Apr 13, 2021
Merged

Conversation

andrewbaraniuk
Copy link
Contributor

@andrewbaraniuk andrewbaraniuk commented Apr 1, 2021

READY FOR REVIEW

  • (Edit the above to reflect status)

Summary

  • implementation of Alert component

Review By (Date)

  • April 2, 2021

Criticality

  • High

Review Tasks

Setup tasks and/or behavior to test

  1. 2 new Components were created in Storyblok - https://www.awesomescreenshot.com/image/7007614?key=8fb80a7e9a15e85eb89a04804f958bae
  2. "Alerts" folder was created inside "Global components" folder in Storyblok - https://www.awesomescreenshot.com/image/7007639?key=f8fe13413ce8ae8e5add72f6d300dea2
  3. 3 sample "Alerts" (with different background color, link etc.) were created for testing inside "Alerts" folder - https://www.awesomescreenshot.com/image/7007663?key=4bc5e798cb1d7a93bfc29b8f7dd88e8d
  4. Feel free to check one of them (or create new one) and play with field data - https://app.storyblok.com/#!/me/spaces/78141/stories/0/0/44019608
  5. This is how sample Alert with basic styling looks like - https://prnt.sc/111p1n2

@todo: Where (in which content types) should these Alerts be injected and does this need additional configuration in Storyblok in scope of this task?

Front End Validation

  • Is the markup using the appropriate semantic tags and passes HTML validation?
  • Cross-browser testing has been performed?
  • Automated accessibility scans performed?
  • Manual accessibility tests performed?
  • Design is approved by @ user?

Backend / Functional Validation

Code

  • Are the naming conventions following our standards?
  • Does the code have sufficient inline comments?
  • Is there anything in this code that would be hidden or hard to discover through the UI?
  • Are there any code smells?
  • Are tests provided? eg (unit, behat, or codeception)

Code security

General

  • Is there anything included in this PR that is not related to the problem it is trying to solve?
  • Is the approach to the problem appropriate?

Affected Projects or Products

  • Does this PR impact any particular projects, products, or modules?

Associated Issues and/or People

  • JIRA ticket(s)
  • Other PRs
  • Any other contextual information that might be helpful (e.g., description of a bug that this PR fixes, new functionality that it adds, etc.)
  • Anyone who should be notified? (@mention them here)

Resources

@andrewbaraniuk andrewbaraniuk self-assigned this Apr 1, 2021
@andrewbaraniuk andrewbaraniuk changed the title Adapt 578 ADAPT-578: initial Alert component implementation Apr 1, 2021
package.json Outdated Show resolved Hide resolved
Copy link
Member

@yvonnetangsu yvonnetangsu left a comment

Choose a reason for hiding this comment

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

Thank you for your work, @andrewbaraniuk! Added a few suggestions - please take a look. This is getting really close.

src/components/identity/alert.js Outdated Show resolved Hide resolved
src/components/identity/alert.js Outdated Show resolved Hide resolved
src/components/identity/alert.js Outdated Show resolved Hide resolved
src/components/identity/alert.js Outdated Show resolved Hide resolved
src/components/identity/alertPicker.js Outdated Show resolved Hide resolved
src/components/identity/alert.js Outdated Show resolved Hide resolved
@yvonnetangsu yvonnetangsu mentioned this pull request Apr 8, 2021
14 tasks
@yvonnetangsu
Copy link
Member

Sorry - forgot one more, please check the hover/focus state for the dismiss button (just adding underline is good, please see example here:
https://decanter-react.netlify.app/?path=/story/composite-alert--default)
Thank you, @andrewbaraniuk !

@sherakama
Copy link
Member

This is looking good. Nice work you two. Keep it up.

yvonnetangsu and others added 2 commits April 10, 2021 12:04
* main:
  Update syntax for sitemap exclude (#183)
  ADAPT-1453: initial configurable Redirects POC (#175)
  ADAPT-000: Canonical protection. (#185)

# Conflicts:
#	package-lock.json
@yvonnetangsu
Copy link
Member

@andrewbaraniuk I have merged the Decanter v6 changes into master and asked Shea to punch a release. After that we can use the new release for Decanter to pull in the updated styles and see what's left to do (probably just a tiny bit of clean up). Thanks! Please add the alert picker to all page types - I saw you added it to the story (oodStoryFullView) and we need it on the other page types as well.

@yvonnetangsu
Copy link
Member

Please move alert.js and alertPicker.js from the /components/identity folder to /components/composite also. Thanks!

…ed Alert components from identity to composite folder
@andrewbaraniuk
Copy link
Contributor Author

Hi @yvonnetangsu ! Thank you! Changes applied!

Copy link
Member

@yvonnetangsu yvonnetangsu left a comment

Choose a reason for hiding this comment

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

Pushed up some final tweaks after using Decanter v.6.2.3 - I think this is GTG. Thanks!

@yvonnetangsu yvonnetangsu merged commit c068ce2 into main Apr 13, 2021
@yvonnetangsu yvonnetangsu deleted the ADAPT-578 branch April 13, 2021 18:10
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.

3 participants