-
Notifications
You must be signed in to change notification settings - Fork 31
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
Callouts in DCR - PR 3/5 - Add new form #6833
Conversation
Size Change: -87.5 kB (-4%) Total Size: 2.31 MB
ℹ️ View Unchanged
|
⚡️ Lighthouse report for the changes in this PRLighthouse tested 2 URLs Report for Article
Report for Front
|
@@ -0,0 +1,258 @@ | |||
import type { CalloutBlockElementV2 } from '../../src/types/content'; |
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.
This is the mock campaign for the story. It uses every type of callout field that we should expect.
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.
nice - good coverage
@@ -84,7 +84,7 @@ | |||
"@guardian/shimport": "^1.0.2", | |||
"@guardian/source-foundations": "^7.0.1", | |||
"@guardian/source-react-components": "^9.0.0", | |||
"@guardian/source-react-components-development-kitchen": "6.0.2", | |||
"@guardian/source-react-components-development-kitchen": "8.1.0", |
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.
This is so we can use the new shareCallout svg from source
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.
If you bump this to 8.2.0
you'll get the updated styling for the FileInput field as well
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.
Brilliant! Thanks - will do this next PR, as I'll have to for the tabs anyway
dotcom-rendering/src/web/components/CalloutEmbed/Form.stories.tsx
Outdated
Show resolved
Hide resolved
This reverts commit b9adaf1.
…on-share-t&c-expired' into add-callout-form-dcr
dotcom-rendering/src/web/components/Callout/CalloutComponents.tsx
Outdated
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.
Looks great, well done!
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.
Great work 🥳
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.
🥳
Callouts in DCR
This PR is part of a larger body of work to create a new Callout component in DCR. We are separating this PR into chunks so that it is easier to communicate the intent of each PR and to make it easier for DCR to review. After each PR is merged, we can merge it into the next branch which will incrementally reduce the size of each subsequent PR.
Important note for DCR reviewers: Please review these PR's in order below!
PR 1 #6741
PR 2 #6819
PR 3 this PR
PR 4 #6872
PR 5 #6836
Why?
This PR adds the form that our readers use to submit their experiences. It will live inside a
CalloutBlockElement
- that component is not added in this PR, it will be added in PR 4 #6872What does this change?
This PR adds the form, some stories and some tests.
Testing
These components are not being used anywhere in production yet. They will be in a subsequent PR. For now, I recommend testing via the new story file.
Screenshots