Skip to content

[3130] Void declarations in the admin console#2251

Merged
rwrrll merged 5 commits intomainfrom
3130-void-declarations-in-admin
Feb 20, 2026
Merged

[3130] Void declarations in the admin console#2251
rwrrll merged 5 commits intomainfrom
3130-void-declarations-in-admin

Conversation

@rwrrll
Copy link
Contributor

@rwrrll rwrrll commented Feb 16, 2026

Context

https://github.com/DFE-Digital/register-ects-project-board/issues/3130

Changes proposed in this pull request

  • Add UI workflow to void declarations from the admin console, in addition to the existing API workflow
  • Minor refactor to API void workflow to share logic for finding a suitable clawback statement, API clients should not notice any difference at all

Guidance to review

@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch 3 times, most recently from ad927e0 to 19d383b Compare February 16, 2026 17:58
@github-actions
Copy link

Review app deployed to https://cpd-ec2-review-2251-web.test.teacherservices.cloud

@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 19d383b to 91ef3ec Compare February 17, 2026 08:21
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 91ef3ec to 00241f6 Compare February 17, 2026 08:42
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 00241f6 to f448c48 Compare February 17, 2026 10:43
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from f448c48 to ec30c67 Compare February 17, 2026 10:52
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from ec30c67 to 3698036 Compare February 17, 2026 12:08
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 3698036 to 14781c7 Compare February 17, 2026 13:02
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 14781c7 to 10345ca Compare February 17, 2026 13:15
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 10345ca to ab05ddd Compare February 17, 2026 13:39
@rwrrll rwrrll marked this pull request as ready for review February 17, 2026 13:55
Copy link
Contributor

@avinhurry avinhurry left a comment

Choose a reason for hiding this comment

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

Just a few tiny nits inline, but otherwise this is well organised and nicely done!

<% end %>

<%= f.govuk_submit "Confirm void declaration", warning: true, class: "govuk-!-margin-top-6" %>
<% end %>
Copy link
Contributor

@avinhurry avinhurry Feb 17, 2026

Choose a reason for hiding this comment

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

Do we want a "Cancel and return..." link here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is one in the ticket screenshot, but it's not there when I click through to the prototype, so looks like there was a decision to remove it.

text = if declaration.voided_by_user.present?
"Voided by #{declaration.voided_by_user.name} (#{declaration.voided_by_user.email})"
else
"Voided by lead provider"
Copy link
Contributor

Choose a reason for hiding this comment

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

Since the row is "Clawed back", should the caption read "Clawed back by..." instead of "Voided by..."?

At the moment the wording is inconsistent, it reads a bit off to me. Did you have any thoughts on that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I had a similar thought 🤔 I can see the argument either way, but concluded that the verb/action/button the user took is to void the declaration, and clawback is something the system does in certain situations, but either way the declaration is still indeed voided. So since voided isn't wrong, IMO it's fine to defer to the design on this one.

@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 5911222 to 6b27d01 Compare February 18, 2026 12:15
@rwrrll rwrrll force-pushed the 3130-void-declarations-in-admin branch from 6b27d01 to 4511520 Compare February 18, 2026 16:54
…ack" to "awaiting_clawback"

The actual clawback occurs when the clawback statement is paid

At this point we've attached a clawback to a clawback statement, but it
hasn't happened yet
@sonarqubecloud
Copy link

@rwrrll rwrrll added this pull request to the merge queue Feb 20, 2026
Merged via the queue into main with commit dbe6b1e Feb 20, 2026
28 checks passed
@rwrrll rwrrll deleted the 3130-void-declarations-in-admin branch February 20, 2026 11:20
@github-actions
Copy link

Review app for PR 2251 was deleted

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

Comments