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

Correctly display 'request accessible format' option #3157

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Apr 17, 2024

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

What

  • attachments on publications should only show this option when 'accessible' is false and email address is supplied
  • including tests accordingly

Follows on from #3058 where this problem was introduced, see that PR for example pages.

Why

Issue raised in zendesk: https://govuk.zendesk.com/agent/tickets/5807086

Visual changes

Fewer attachments should now display this option.

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

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3157 April 17, 2024 15: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 (But it'll want you to lint it)

Copy link
Contributor

@leenagupte leenagupte left a comment

Choose a reason for hiding this comment

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

Andy, the code looks good, but as Keith say's you need to run linter and fix up.

bundle exec rubocop -A should hopefully fix it.

- attachments on publications should only show this option when 'accessible' is false and email address is supplied
- including tests accordingly
@andysellick andysellick force-pushed the fix-attachment-request-options branch from fb3c004 to 7c71da9 Compare April 17, 2024 15:58
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3157 April 17, 2024 15:58 Inactive
@andysellick andysellick merged commit ca194ef into main Apr 17, 2024
15 checks passed
@andysellick andysellick deleted the fix-attachment-request-options branch April 17, 2024 16:03
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.

4 participants