Skip to content

[DO NOT MERGE] Add map block #4775

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

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

[DO NOT MERGE] Add map block #4775

wants to merge 17 commits into from

Conversation

andysellick
Copy link
Contributor

@andysellick andysellick commented Apr 24, 2025

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

What

Adds a custom map block to the landing_page structure.

Partly based on initial work in #4748

Why

Visual changes

Trello card: https://trello.com/c/zVqSZM6D

@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 April 24, 2025 14:56 Inactive
@govuk-ci govuk-ci had a problem deploying to govuk-frontend-app-pr-4775 April 24, 2025 15:10 Failure
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 April 24, 2025 15:11 Inactive
@govuk-ci govuk-ci had a problem deploying to govuk-frontend-app-pr-4775 April 24, 2025 15:14 Failure
@govuk-ci govuk-ci had a problem deploying to govuk-frontend-app-pr-4775 April 24, 2025 15:14 Failure
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 April 28, 2025 07:25 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 2, 2025 13:01 Inactive
@andysellick andysellick mentioned this pull request May 12, 2025
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 12, 2025 10:57 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 13, 2025 15:50 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 13, 2025 16:00 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 14, 2025 08:31 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 14, 2025 13:15 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 20, 2025 10:19 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 20, 2025 10:43 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 20, 2025 10:45 Inactive
@govuk-ci govuk-ci had a problem deploying to govuk-frontend-app-pr-4775 May 21, 2025 07:45 Failure
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 21, 2025 07:46 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 May 21, 2025 07:49 Inactive
- had to get the title of the popup on popup open
- can't store a value in the ga4 object, so having to read the popup contents and look for the title using an attribute
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 2, 2025 10:40 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 2, 2025 14:24 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 2, 2025 14:27 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 2, 2025 15:45 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 4, 2025 08:04 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 4, 2025 10:07 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 4, 2025 16:04 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 5, 2025 08:07 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 5, 2025 08:09 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 5, 2025 09:36 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 5, 2025 10:29 Inactive
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 6, 2025 08:51 Inactive
- remove old map code and add new module and test file
- add delayed check for cookie consent with analytics
- add styling to make map error state stand out a little more
- reduce spacing on mobile for popups, prevent collision with headings and close icons
- set maximum width of popups to prevent overlap on mobile
- set maximum height of map on mobile to not be more than screen height, to help with scrolling
- remove in-house leaflet CSS and use one from package instead, move overrides into main stylesheet
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4775 June 6, 2025 08:55 Inactive
- this bit of the code changed the icons for popups to a slightly different appearance when the popup is opened
- however the lines of code that control this behaviour are quite buried in the code and extremely hard to provide test coverage for, which caused the test coverage to be below the required level
- additionally the visual change with these icons is very subtle and provides little benefit, particularly since the popup appearing is a highly visual indication that something has changed
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