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

[SPIKE] Run the GOV.UK Prototype Kit locally #4056

Closed
wants to merge 1 commit into from

Conversation

colinrotherham
Copy link
Contributor

@colinrotherham colinrotherham commented Aug 8, 2023

This PR creates and installs an instance of GOV.UK Prototype Kit locally as part of #3759

After install, we use npm link to replace GOV.UK Frontend with ./packages/govuk-frontend

I'd like to spike using Percy to:

  1. Start the prototype
  2. Screenshot the prototype home page
  3. Screenshot the Manage your prototype page

This spots issues like missing fonts, assets etc

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 8, 2023 10:16 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 8, 2023 10:26 Inactive
@colinrotherham
Copy link
Contributor Author

Still seeing the following in the browser development console:

[Error] Failed to load resource: too many HTTP redirects (http://localhost:3000/manage-prototype/dependencies/govuk-frontend/govuk/assets/fonts/bold-b542beb274-v2.woff2, line 0)
[Error] Failed to load resource: too many HTTP redirects (http://localhost:3000/manage-prototype/dependencies/govuk-frontend/govuk/assets/fonts/light-94a07e06a1-v2.woff2, line 0)
[Error] Failed to load resource: too many HTTP redirects (http://localhost:3000/manage-prototype/dependencies/govuk-frontend/govuk/assets/images/govuk-crest-2x.png, line 0)
[Error] Failed to load resource: too many HTTP redirects (http://localhost:3000/manage-prototype/dependencies/govuk-frontend/govuk/assets/fonts/bold-affa96571d-v2.woff, line 0)
[Error] Failed to load resource: too many HTTP redirects (http://localhost:3000/manage-prototype/dependencies/govuk-frontend/govuk/assets/fonts/light-f591b13f7d-v2.woff, line 0)

This is with cherry picked commit 89166c9 from @romaricpascal

@colinrotherham
Copy link
Contributor Author

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 18, 2023 11:37 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 18, 2023 13:24 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 18, 2023 13:43 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 21, 2023 08:44 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 22, 2023 09:07 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 August 31, 2023 13:58 Inactive
@github-actions
Copy link

github-actions bot commented Aug 31, 2023

📋 Stats

File sizes

File Size
dist/govuk-frontend-4.6.0.min.css 118.07 KiB
dist/govuk-frontend-4.6.0.min.js 47.1 KiB
dist/govuk-frontend-ie8-4.6.0.min.css 79.27 KiB
packages/govuk-frontend/dist/govuk/all.bundle.js 77.65 KiB
packages/govuk-frontend/dist/govuk/all.bundle.mjs 72.94 KiB
packages/govuk-frontend/dist/govuk/all.mjs 3.84 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend-component.mjs 359 B
packages/govuk-frontend/dist/govuk/govuk-frontend.min.css 120.49 KiB
packages/govuk-frontend/dist/govuk/govuk-frontend.min.js 37.89 KiB
packages/govuk-frontend/dist/govuk/i18n.mjs 5.83 KiB

Modules

File Size
all.mjs 69.04 KiB
components/accordion/accordion.mjs 21.91 KiB
components/button/button.mjs 4.71 KiB
components/character-count/character-count.mjs 22.03 KiB
components/checkboxes/checkboxes.mjs 5.69 KiB
components/error-summary/error-summary.mjs 6.01 KiB
components/exit-this-page/exit-this-page.mjs 16.61 KiB
components/header/header.mjs 3.84 KiB
components/notification-banner/notification-banner.mjs 4.55 KiB
components/radios/radios.mjs 4.68 KiB
components/skip-link/skip-link.mjs 3.74 KiB
components/tabs/tabs.mjs 9.32 KiB

View stats and visualisations on the review app


Action run for 5628cf4

@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 September 5, 2023 12:10 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 September 22, 2023 13:16 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 September 27, 2023 10:11 Inactive
@govuk-design-system-ci govuk-design-system-ci temporarily deployed to govuk-frontend-pr-4056 September 29, 2023 13:13 Inactive
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.

2 participants