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

MLPAB-397: How should the attorneys make decisions #192

Merged
merged 17 commits into from
Nov 4, 2022
Merged

MLPAB-397: How should the attorneys make decisions #192

merged 17 commits into from
Nov 4, 2022

Conversation

acsauk
Copy link
Contributor

@acsauk acsauk commented Nov 3, 2022

Purpose

Prompts the donor to confirm on how multiple attorneys should act. Single attorneys won't be shown the question.

Fixes MLPAB-397

Approach

I've extended the radios partial to allow conditionally revealing textareas. This code has got a little busy now and there may be a cleaner way to implement this so open for feedback there.

Learning

There's a known aria bug related to conditionally revealing inputs using the GDS radio component. I've excluded that specific rules in the cypress tests until its resolved.

Checklist

  • I have performed a self-review of my own code
  • I have added relevant logging with appropriate levels to my code
  • I have updated documentation (Confluence/GitHub wiki/tech debt doc) where relevant
  • I have added tests to prove my work
  • I have added welsh translation tags and updated translation files
  • I have run an accessibility tool on any pages I have made changes to and fixed any issues found
  • The product team have tested these changes

@acsauk acsauk marked this pull request as ready for review November 3, 2022 16:42
@acsauk acsauk requested a review from a team as a code owner November 3, 2022 16:42
@acsauk acsauk temporarily deployed to dev_192mlpab397 November 3, 2022 17:05 Inactive
@codecov
Copy link

codecov bot commented Nov 3, 2022

Codecov Report

Base: 93.37% // Head: 93.42% // Increases project coverage by +0.04% 🎉

Coverage data is based on head (5455651) compared to base (0285693).
Patch coverage: 95.31% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #192      +/-   ##
==========================================
+ Coverage   93.37%   93.42%   +0.04%     
==========================================
  Files          46       47       +1     
  Lines        2506     2569      +63     
==========================================
+ Hits         2340     2400      +60     
- Misses        129      131       +2     
- Partials       37       38       +1     
Flag Coverage Δ
unittests 93.42% <95.31%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
app/internal/page/data.go 96.96% <ø> (ø)
...ternal/page/how_should_attorneys_make_decisions.go 93.61% <93.61%> (ø)
app/internal/page/app.go 96.05% <100.00%> (+0.03%) ⬆️
app/internal/page/check_your_lpa.go 100.00% <100.00%> (ø)
app/internal/page/choose_attorney_summary.go 100.00% <100.00%> (ø)
app/internal/page/read_your_lpa.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

app/lang/en.json Show resolved Hide resolved
app/internal/page/how_should_attorneys_make_decisions.go Outdated Show resolved Hide resolved
app/internal/page/how_should_attorneys_make_decisions.go Outdated Show resolved Hide resolved
app/internal/page/read_your_lpa.go Show resolved Hide resolved
app/lang/en.json Outdated Show resolved Hide resolved
app/web/template/layout/radios.gohtml Outdated Show resolved Hide resolved
"jointlyAndSeverallyMixed": "Jointly for some decisions, and jointly and severally for other decisions",
"jointlyAndSeverallyMixedHint": "Attorneys must agree unanimously on some decisions, but can make others on their own. The donor must state which decisions need to be agreed unanimously.",
"decisionDetailsHint": " Please tell us which decisions the donor wants to be made jointly. These decisions will be printed on a extra sheet that the donor will need to sign and date. Take a look at the guidance for examples of how the donor can make their wishes clear.",
Copy link
Contributor

Choose a reason for hiding this comment

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

ha, extra sheets

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I know 😂

@acsauk acsauk merged commit e5709cf into main Nov 4, 2022
@acsauk acsauk deleted the MLPAB-397 branch November 4, 2022 14:05
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.

2 participants