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

Do not force analytics labels for popular links to be in English and refactor browse helper #3726

Merged

Conversation

unoduetre
Copy link
Contributor

@unoduetre unoduetre commented Aug 6, 2024

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

Follow these steps if you are doing a Rails upgrade.

What

In preparation for adding the AB test configuration to collections, we can refactor the way the code is currently organised.

In addition to that, do not force the analytics labels of popular links to always be in English.

Why

Trello card

@govuk-ci govuk-ci temporarily deployed to collections-pr-3726 August 6, 2024 08:09 Inactive
@unoduetre unoduetre force-pushed the 2761-refactor-browsehelper-in-preparation-for-ab-test-m branch from 3dff161 to d13158b Compare August 6, 2024 08:57
@govuk-ci govuk-ci temporarily deployed to collections-pr-3726 August 6, 2024 08:58 Inactive
@unoduetre unoduetre marked this pull request as ready for review August 6, 2024 09:21
@unoduetre unoduetre force-pushed the 2761-refactor-browsehelper-in-preparation-for-ab-test-m branch 2 times, most recently from ea77c61 to c8f82e0 Compare August 12, 2024 10:22
Copy link
Contributor

@hannako hannako left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this Matt - just one main suggestion to keep all the data attribute values in a single place - hopefully makes sense, let me know if not.

config/locales/en/browse.yml Outdated Show resolved Hide resolved
app/helpers/browse_helper.rb Outdated Show resolved Hide resolved
app/views/browse/show.html.erb Show resolved Hide resolved
app/views/shared/_browse_action_link.erb Outdated Show resolved Hide resolved
@unoduetre unoduetre changed the title Browse helper refactoring Do not force English for analytics labels for popular links and refactor browse helper Aug 13, 2024
@unoduetre unoduetre changed the title Do not force English for analytics labels for popular links and refactor browse helper Do not force analytics labels for popular links to be in English and refactor browse helper Aug 13, 2024
@unoduetre unoduetre force-pushed the 2761-refactor-browsehelper-in-preparation-for-ab-test-m branch 6 times, most recently from ddc8c7b to 57374d6 Compare August 14, 2024 15:57
@govuk-ci govuk-ci temporarily deployed to collections-pr-3726 August 15, 2024 07:38 Inactive
@hannako
Copy link
Contributor

hannako commented Aug 15, 2024

@andysellick We're doing a bit of a refactor before we add some AB test logic. I've checked the tracking isn't impacted by comparing the review app with live, but would you mind giving it a quick once over as well just from the tracking POV to make sure we've not broken anything?

Browse business

Browse benefits

In preparation for popular links AB test
@unoduetre unoduetre force-pushed the 2761-refactor-browsehelper-in-preparation-for-ab-test-m branch from 57374d6 to b40ea66 Compare August 15, 2024 12:56
@govuk-ci govuk-ci temporarily deployed to collections-pr-3726 August 15, 2024 12:56 Inactive
Copy link
Contributor

@hannako hannako left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@unoduetre unoduetre merged commit 052b269 into main Aug 15, 2024
14 checks passed
@unoduetre unoduetre deleted the 2761-refactor-browsehelper-in-preparation-for-ab-test-m branch August 15, 2024 13:05
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.

3 participants