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

Fix publication attachments #3159

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Fix publication attachments #3159

merged 1 commit into from
Apr 18, 2024

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Apr 18, 2024

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

  • simplify and fix the code to display attachments on publication/form pages
  • move most of the code into the presenter, to reduce ambiguity
  • pass only one thing to the attachments_list component
  • update tests

Follows on from the work done in #3058

Why

Recent changes to rendering of publication attachments were not fully correct, as reported in zendesk ticket https://govuk.zendesk.com/agent/tickets/5807151 and elsewhere.

Specifically:

Visual changes

See 'why'.

Trello card: https://trello.com/c/tcTN1jbu/28-update-rendering-of-govspeak-attachments

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3159 April 18, 2024 11:42 Inactive
@andysellick andysellick requested review from leenagupte and KludgeKML and removed request for leenagupte April 18, 2024 11:44
- simplify and fix the code to display attachments on publication/form pages
- move most of the code into the presenter, to reduce ambiguity
- pass only one thing to the attachments_list component
- update tests
@andysellick andysellick force-pushed the fix-publication-attachments branch from 3f51fd5 to 1af04c1 Compare April 18, 2024 11:52
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3159 April 18, 2024 11:52 Inactive
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

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

LGTM

@andysellick andysellick merged commit 817bbac into main Apr 18, 2024
15 checks passed
@andysellick andysellick deleted the fix-publication-attachments branch April 18, 2024 11:58
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