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

AP-5434: CYA update - convert existing summary lists to cards #7406

Merged

Conversation

agoldstone93
Copy link
Contributor

@agoldstone93 agoldstone93 commented Nov 6, 2024

What

Link to story

  • Update summary lists on each CYA page and means/merits reports to include a flag which makes them a summary card
  • Convert non summary list/card (often custom) markup to use summary card component
  • Remove redundant logic, unnecessary spacing and unused partials

NB. Feature test in features/providers/partner_means_assessment/means_report.feature has been updated and is offering the same test coverage as before. There is a bug (AP-5479) which has been raised and when it is addressed, the values in this feature test will change

Checklist

Before you ask people to review this PR:

  • Tests and rubocop should be passing: bundle exec rake
  • Github should not be reporting conflicts; you should have recently run git rebase main.
  • The standards in the Git Workflow document on Confluence should be followed
  • There should be no unnecessary whitespace changes. These make diffs harder to read and conflicts more likely.
  • The PR description should say what you changed and why, with a link to the JIRA story.
  • You should have looked at the diff against main and ensured that nothing unexpected is included in your changes.
  • You should have checked that the commit messages say why the change was made.

@agoldstone93 agoldstone93 marked this pull request as ready for review November 6, 2024 15:14
@agoldstone93 agoldstone93 requested a review from a team as a code owner November 6, 2024 15:14
@agoldstone93 agoldstone93 force-pushed the ap-5434-cya-update-convert-existing-summary-lists-to-cards branch from 0aa685e to f2c6fda Compare November 7, 2024 13:59
) %>
</dl>
<%= govuk_summary_list(card: { title: heading },
actions: false,
Copy link
Contributor

Choose a reason for hiding this comment

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

If this is check_answers, should they not have change links?
I'd expect the reports to not have change links.
The deleted code had <% read_only = false unless local_assigns.key?(:read_only) %> to check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@colinbruce Looks like the only place this is ever called is in partials in the means report, which is why change links are gone. With that in mind, do you think this partial would be better off in the /means_reports folder instead?

@@ -0,0 +1,26 @@
<section>
<% partner = @legal_aid_application.applicant.has_partner_with_no_contrary_interest? %>
Copy link
Contributor

Choose a reason for hiding this comment

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

minor nit pick: this could be clearer as partner? to show it's a boolean check
Further down it reads as partner object
if partner && !partner_exclude_items.include?(item.value_method)

Copy link
Contributor

@colinbruce colinbruce left a comment

Choose a reason for hiding this comment

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

Slightly 🤯 but nothing serious in my review...
I think UAT will be the proof in the pudding on this one though! 😄

@agoldstone93 agoldstone93 force-pushed the ap-5434-cya-update-convert-existing-summary-lists-to-cards branch 2 times, most recently from 29f4827 to 40e1b86 Compare November 7, 2024 17:53
@agoldstone93 agoldstone93 force-pushed the ap-5434-cya-update-convert-existing-summary-lists-to-cards branch from 40e1b86 to d6c0621 Compare November 13, 2024 16:36
@agoldstone93 agoldstone93 changed the base branch from main to ap-4823-include-dependants-on-means-report November 13, 2024 16:36
@agoldstone93 agoldstone93 force-pushed the ap-4823-include-dependants-on-means-report branch from c4c4951 to 922708b Compare November 14, 2024 10:58
Base automatically changed from ap-4823-include-dependants-on-means-report to main November 14, 2024 11:34
@agoldstone93 agoldstone93 force-pushed the ap-5434-cya-update-convert-existing-summary-lists-to-cards branch 2 times, most recently from d8c1957 to de31bdc Compare November 14, 2024 13:53
Copy link
Contributor

@colinbruce colinbruce left a comment

Choose a reason for hiding this comment

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

Reviewed additional changes - 👍

@agoldstone93 agoldstone93 force-pushed the ap-5434-cya-update-convert-existing-summary-lists-to-cards branch from de31bdc to 85667de Compare November 18, 2024 11:46
@agoldstone93 agoldstone93 merged commit dd798fd into main Nov 18, 2024
14 checks passed
@agoldstone93 agoldstone93 deleted the ap-5434-cya-update-convert-existing-summary-lists-to-cards branch November 18, 2024 11:56
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