feature: Implemented the new KS4 chart interaction across both ks4hea…#241
Merged
Conversation
…dlinemeasures and ks4coresubjects
|
Review app for PR 241 was deleted |
stusherwin
reviewed
Jun 4, 2026
stusherwin
reviewed
Jun 4, 2026
stusherwin
reviewed
Jun 4, 2026
Collaborator
|
Hi @vipinsamreddy it seems that this is using JavaScript to combine the first two tabs together (3-year average and Year by year) into one (Charts), and switch between them using a toggle? I assumed this would be implemented a separate component that would sit inside a tab panel. I can see a few issues with this approach:
A more reusable pattern could be something like a toggle component, probably a tag helper like the TabbedViewTagHelper that would sit inside one of the tabs, like this:
If we were to use it along with the new |
…gital/sap-sector into feature/new-button-design
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is |
mahmoodcli
approved these changes
Jun 19, 2026
morrisscd
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Summary
This branch updates the KS4 and attendance chart experience to use a consistent toggle-based interaction, improves chart rendering
and tooltip behaviour, and aligns related UI tests with the new behaviour. It also adds a configurable review DB reset flag for
review deployments and introduces a scheduled infrastructure validation workflow.
What changed
Added reusable content toggle support with new tag helpers:
Introduced a generic chart-toggle.js for tab-based chart sections that need converting into a chart toggle.
Kept content-toggle.js for pages that already render toggle markup directly.
Updated KS4 headline measures, KS4 core subjects, and attendance pages to use the new chart/toggle interaction patterns.
Improved chart rendering in chart-factory.js, including:
Updated data-view-switcher.js so year-by-year charts recalculate their y-axis correctly when dropdown selections change.
Added styling updates in main.scss for toggles, legends, tooltips, and chart spacing.
Updated UI tests to match the new toggle-based chart behaviour and dynamic axis behaviour.
Added reset_review_db support to review deployment config so review DB reset/restore can be turned on or off via terraform/
application/config/review.yml.
Added a new validate-infrastructure.yml GitHub Actions workflow for scheduled/manual infra validation.
Updated Makefile terraform plan targets to support detailed exit codes.
Why
Testing
Related Trello Ticket
https://trello.com/c/sc1nAzT0/831-spike-graph-changes-updates-to-tab-button-view
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist
Screenshots (if applicable)
Add UI changes, logs, console outputs anything to help reviewers.