Skip to content

Add view and delete uploaded reference functionality#8705

Open
KyleMacPherson wants to merge 3 commits intomainfrom
reference-request-file
Open

Add view and delete uploaded reference functionality#8705
KyleMacPherson wants to merge 3 commits intomainfrom
reference-request-file

Conversation

@KyleMacPherson
Copy link
Copy Markdown
Collaborator

@KyleMacPherson KyleMacPherson commented Apr 9, 2026

Trello card URL

Changes in this PR:

In a previous PR i was adding functionality to view and delete previously uploaded files in preparation for the new anti-virus flow as we move from google drive to defender. I missed the uploaded reference in that PR.

I have had to slightly change the UI for this to allow deletion, so we no longer just show the file name on the pre-interview checks page for uploaded references but instead follow the same flow as other references where we click the referee name which links us to a page which shows the details and, in the case of uploaded references, allows us to delete the reference. Please see screenshots.

Screenshots of UI changes:

Before

Screenshot 2026-04-13 at 09 19 37

After

Screenshot 2026-04-13 at 09 15 28 Screenshot 2026-04-13 at 09 15 37 Screenshot 2026-04-13 at 09 15 46

Checklists:

Data & Schema Changes

If this PR modifies data structures or validations, check the following:

  • Adds/removes model validations
  • Adds/removes database fields
  • Modifies Vacancy enumerables (phases, working patterns, job roles, key stages, etc.)
If any of the above options has changed then the author must check/resolve all of the following...

Integration Impact

Does this change affect any of these integrations?

  • DfE Analytics platform
  • Legacy imports mappings
  • DWP Find a Job export mappings
  • Publisher ATS API (may require mapping updates or API versioning)

User Experience & Data Integrity

Could this change impact:

  • Existing subscription alerts (will legacy subscription search filters break?)
  • Legacy vacancy copying (will copied vacancies fail new validations?)
  • In-progress drafts for Vacancies or Job Applications

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Review app deployed to https://teaching-vacancies-review-pr-8705.test.teacherservices.cloud on AKS

@@ -50,6 +50,14 @@
= summary_list.with_row do |row|
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Being a little bit nitpicky here, if the attached/uploaded references have no values for the fields we may want to just not show the empty fields?
So we may always show the name and condition the rest of "when no reference doc is attached"?

Regarding this
Image

Copy link
Copy Markdown
Collaborator

@scruti scruti left a comment

Choose a reason for hiding this comment

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

LGTM! Left a non blocking suggestion on hiding some fields from the view when not applicable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants