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

Remove app error component #3074

Merged
merged 4 commits into from
Feb 6, 2024
Merged

Remove app error component #3074

merged 4 commits into from
Feb 6, 2024

Conversation

jon-kirwan
Copy link
Contributor

@jon-kirwan jon-kirwan commented Feb 2, 2024

What

Remove application error component and replace with the error formatting option (error_message) of the radio button component.

Review URL: https://government-frontend-pr-3074.herokuapp.com/claim-rural-payments/sign-in/prove-identity

Why

Reduce duplication, align with styles and patterns used elsewhere and deprecate unneeded frontend code.

Visual changes

Before

www gov uk_claim-rural-payments_sign-in_prove-identity__ga=1414005368 1706714555(Surface Pro 7)

After

government-frontend-pr-3074 herokuapp com_claim-rural-payments_sign-in_prove-identity(Surface Pro 7)

Anything else

There is a small visual difference in that the error includes a red border to visually connect the message and the question it belongs to (as described in the error message component design system guidance).

See alphagov/govuk_publishing_components#3488

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3074 February 2, 2024 11:18 Inactive
@jon-kirwan jon-kirwan force-pushed the remove_app_error_component branch from a8b5375 to 70d1d28 Compare February 6, 2024 10:13
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3074 February 6, 2024 10:13 Inactive
@jon-kirwan jon-kirwan force-pushed the remove_app_error_component branch from 70d1d28 to 75f5063 Compare February 6, 2024 10:14
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3074 February 6, 2024 10:15 Inactive
@jon-kirwan jon-kirwan force-pushed the remove_app_error_component branch from 75f5063 to 059ab86 Compare February 6, 2024 10:22
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3074 February 6, 2024 10:22 Inactive
@jon-kirwan jon-kirwan marked this pull request as ready for review February 6, 2024 10:24
@jon-kirwan jon-kirwan force-pushed the remove_app_error_component branch from 059ab86 to 9d1c301 Compare February 6, 2024 14:48
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3074 February 6, 2024 14:48 Inactive
Copy link
Contributor

@MartinJJones MartinJJones left a comment

Choose a reason for hiding this comment

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

Nice work!, lots of improvements made by this change 👍

@jon-kirwan jon-kirwan force-pushed the remove_app_error_component branch from 9d1c301 to 4e4f628 Compare February 6, 2024 15:31
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3074 February 6, 2024 15:32 Inactive
@jon-kirwan jon-kirwan merged commit fb0eeae into main Feb 6, 2024
12 checks passed
@jon-kirwan jon-kirwan deleted the remove_app_error_component branch February 6, 2024 15:37
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.

Review usage of the error-message component
3 participants