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

Check your requirements page (with requirements summary cards) #1019

Conversation

Demwunz
Copy link
Contributor

@Demwunz Demwunz commented May 15, 2024

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add summary cards to the check page in the returns journey to display the customer's requirements.

Each box will reflect the requirements details (item, quantity etc) and link to the relevant requirement page.

This will provide a quick overview for the user on the check page.

…ments summary cards)

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add summary cards to the `check` page in the returns journey to display the customer's requirements.

Each box will reflect the requirements details (item, quantity etc) and link to the relevant requirement page.

This will provide a quick overview for the user on the `check` page.
@Demwunz Demwunz added the enhancement New feature or request label May 15, 2024
@Demwunz Demwunz self-assigned this May 15, 2024
@Demwunz Demwunz requested a review from Cruikshanks May 23, 2024 12:04
@Demwunz Demwunz force-pushed the WATER-4386-returns-required-journey-check-your-requirements-page-with-requirements-summary-cards branch from 911d950 to 18867cc Compare May 23, 2024 12:26
@Demwunz Demwunz marked this pull request as ready for review May 23, 2024 13:04
Copy link
Member

@Cruikshanks Cruikshanks left a comment

Choose a reason for hiding this comment

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

Got a slight tweak I think we can make. But also, we should probably have some test coverage for how requirements now get presented based on what we've added to the presenter.

app/views/return-requirements/check.njk Outdated Show resolved Hide resolved
Alpha function order

Alpha object order
@jonathangoulding jonathangoulding force-pushed the WATER-4386-returns-required-journey-check-your-requirements-page-with-requirements-summary-cards branch from 3905468 to d6fe389 Compare May 30, 2024 10:02
…ur-requirements-page-with-requirements-summary-cards
jonathangoulding and others added 3 commits May 30, 2024 14:28
@jonathangoulding
Copy link
Collaborator

I have pushed the changes for - #1019 (review)

I have added a map function for the requirement to extract all fields needed for the view.

I will work on the other requirment fields in the session object / view in another PR. It is assumed we need to do some fetch requests to get the information for the view (requirement.purposes) so it makes sense to do that in a separate PR.

…ur-requirements-page-with-requirements-summary-cards
…ur-requirements-page-with-requirements-summary-cards
…ur-requirements-page-with-requirements-summary-cards
@jonathangoulding jonathangoulding dismissed Cruikshanks’s stale review May 31, 2024 09:56

Comments addressed.

@jonathangoulding jonathangoulding merged commit 825ad2d into main May 31, 2024
6 checks passed
@jonathangoulding jonathangoulding deleted the WATER-4386-returns-required-journey-check-your-requirements-page-with-requirements-summary-cards branch May 31, 2024 10:46
jonathangoulding added a commit that referenced this pull request May 31, 2024
Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add purposes to the return requirement summary card

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request May 31, 2024
Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add purposes to the return requirement summary card

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request Jun 4, 2024
Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add points to the return requirement summary card.

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request Jun 4, 2024
* Check your requirements - purposes

Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add purposes to the return requirement summary card

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request Jun 4, 2024
Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add points to the return requirement summary card.

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request Jun 5, 2024
* Feature returns required points

Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add points to the return requirement summary card.

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request Jun 5, 2024
Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add returns cycles to the return requirement summary card. As of this commit there is only 'summer' and 'winter and all year' returns cycles

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request Jun 5, 2024
Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add agreement exceptions to the return requirement summary card. This will be a comma seperated list in the oxford comma style.

Previous work done here - #1019
jonathangoulding added a commit that referenced this pull request Jun 5, 2024
)

* Add the returns cycle text to the returns requirements check page

Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add returns cycles to the return requirement summary card. As of this commit there is only 'summer' and 'winter and all year' returns cycles

Previous work done here - #1019

* chore: pre pr fixes

* fix: test failing missing returns cycle assert

* chore: alpha order

* Update app/presenters/return-requirements/check/returns-requirements.presenter.js

Co-authored-by: Alan Cruikshanks <[email protected]>

* Update test/presenters/return-requirements/check/returns-requirements.presenter.test.js

Co-authored-by: Alan Cruikshanks <[email protected]>

* fix: use ternary for returns cycle

assume that if the return is not summer it is winter as there are only two options

---------

Co-authored-by: Alan Cruikshanks <[email protected]>
jonathangoulding added a commit that referenced this pull request Jun 7, 2024
…age (#1076)

* Add the agreement exceptions text to the returns requirements check page

Due to the estimated complexity of adding fetch services for purposes, points and other display items. We have broken down the complex display items into their own branches of work.

https://eaflood.atlassian.net/browse/WATER-4386

This branch will add agreement exceptions to the return requirement summary card. This will be a comma seperated list in the oxford comma style.

Previous work done here - #1019

Co-authored-by: Alan Cruikshanks <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants