-
Notifications
You must be signed in to change notification settings - Fork 4
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
Implement next steps logic #318
Conversation
return { | ||
heading: buildClaimStatusHeading(scenarioType), | ||
summary: buildClaimStatusSummary(scenarioObject, scenarioString), | ||
yourNextSteps: buildNextSteps(scenarioObject, scenarioString, 'your-next-steps'), | ||
eddNextSteps: buildNextSteps(scenarioObject, scenarioString, 'edd-next-steps'), | ||
} |
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.
github mangled this file's diff so much that I had an excuse to use vimdiff
for the first time in ages!
Really like this return
refactor. 👨🏼🍳👌🏼
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.
lgtm, left a bunch of comments!
Ticket
Resolves #316
Changes
<em>
elements in<Trans>
components<NextSteps>
component to expect to create text that might contain linkses6
Context
This PR adds in support for the latest next steps content: "Your Next Steps" and "EDD Next Steps".
A major change to note is that I've updated the Typescript target from
es5
toes2015
in order to support iterating over anIterableIterator
type. Let me know if this is going to be an issue for us.Note: This PR does not include the conditional next step about certification (coming in a future PR).
Testing
yarn test
PLUS
While #299 is not resolved, comment out these lines, then run
yarn storybook
, and check that each scenario displays the next steps from the latest content (including correct links):ui-claim-tracker/pages/index.tsx
Lines 95 to 98 in 32990f8