Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Add govuk components #466

Closed
wants to merge 5 commits into from
Closed

Add govuk components #466

wants to merge 5 commits into from

Conversation

aliuk2012
Copy link
Contributor

@aliuk2012 aliuk2012 commented Sep 15, 2020

Context

Changes proposed in this pull request

  • Adds govuk-component gem - (Demo)

  • Replaces tag component with govuk-component version

  • Replaces summary list component with govuk-component version

  • Replaces breadcrumbs component with govuk-component version

  • Replaces govuk_link_to helper with govuk-component version

There is plenty more that could be replaced but I'll leave that for another PR, otherwise this is going to be an even larger PR to review.

Guidance to review

Attempt to view different pages in the review app https://ghwt-review-pr-466.herokuapp.com/

@aliuk2012 aliuk2012 temporarily deployed to ghwt-review-pr-466 September 15, 2020 09:36 Inactive
@aliuk2012 aliuk2012 temporarily deployed to ghwt-review-pr-466 September 15, 2020 09:43 Inactive
@aliuk2012 aliuk2012 temporarily deployed to ghwt-review-pr-466 September 15, 2020 09:43 Inactive
@aliuk2012
Copy link
Contributor Author

aliuk2012 commented Sep 15, 2020

Review apps are failing to build this.

Error:

NameError: uninitialized constant GovukComponentsHelper

This line seems to be causing the problem. If I change it to 5.2 seems to work https://ghwt-review-pr-466.herokuapp.com/ but then the specs fail

@aliuk2012 aliuk2012 temporarily deployed to ghwt-review-pr-466 September 16, 2020 18:27 Inactive
@aliuk2012 aliuk2012 marked this pull request as ready for review September 16, 2020 18:31
@aliuk2012 aliuk2012 marked this pull request as draft September 16, 2020 18:41
There seemed to be only one govuk_link_to which was using a block.
I assume the reason it was a block was because it was using html markup
and rails would have been escaping it. This can be overcome by using
html_safe.
@aliuk2012 aliuk2012 temporarily deployed to ghwt-review-pr-466 September 16, 2020 20:28 Inactive
@aliuk2012
Copy link
Contributor Author

Review apps are failing to build this.

Error:

NameError: uninitialized constant GovukComponentsHelper

This line seems to be causing the problem. If I change it to 5.2 seems to work ghwt-review-pr-466.herokuapp.com but then the specs fail

This issue was a bug with govuk-components but it has now been fixed in version 0.3.0.

@aliuk2012 aliuk2012 marked this pull request as ready for review September 16, 2020 20:41
@benilovj
Copy link
Contributor

benilovj commented Sep 21, 2020

Thanks @aliuk2012 for taking a run at this work. I've taken a cursory look and there's probably a few things that we may want to tweak before we bring this in, but I think it'd be a good improvement overall.

However, given where we are in our delivery right now, it's going to be difficult to prioritise picking this PR up in the next few days but I hope we can loop back to it in a couple of weeks.

@aliuk2012
Copy link
Contributor Author

Closing this as we agreed to break this branch up into smaller PR.

@aliuk2012
Copy link
Contributor Author

#513

@aliuk2012 aliuk2012 deleted the add-govuk-components branch March 25, 2021 08:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants