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

Minor refactor of contents list logic #3363

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Minor refactor of contents list logic #3363

merged 1 commit into from
Oct 14, 2024

Conversation

hannako
Copy link
Contributor

@hannako hannako commented Oct 14, 2024

Pair programming effort with @CodeSonia

What

This PR contains a minor reorganisation of the existing code with no user facing changes

The show_contents_list? method is hard to understand, and bugs have surfaced here.

The special logic around showing contents lists on MOJ manual sections only should only be called by the manual section presenter class.

@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3363 October 14, 2024 11:25 Inactive
The show_contents_list? method is hard to understand, and bugs
have surfaced here.

The special logic around showing contents lists on MOJ manual sections
only should only be called by the manual section presenter class.
@hannako hannako force-pushed the contents_list_refactor branch from a881e8f to c606970 Compare October 14, 2024 11:53
@govuk-ci govuk-ci temporarily deployed to government-frontend-pr-3363 October 14, 2024 11:54 Inactive
Copy link
Contributor

@beccapearce beccapearce left a comment

Choose a reason for hiding this comment

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

Looks much better! 🌟

@hannako hannako merged commit ecfa1a3 into main Oct 14, 2024
11 checks passed
@hannako hannako deleted the contents_list_refactor branch October 14, 2024 12:00
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