Improve navigation - Update Browse primary courses page #4883
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.
Context
Prototype: https://find-review-4453.test.teacherservices.cloud/subjects?age_group=primary
Ticket: https://trello.com/c/lolKTP1k/307-improve-navigation-update-browse-primary-courses-page
The basis of this ticket is to pretty much change some content, however Dan, Tomas and I have agreed we want to simplify the code for this. So we have gone with a v2 line for this work which will rework what we currently have to become easier to maintain and extend.
This PR creates a
SubjectsController
which will be responsible for the primary and secondary subject rendering (Only primary for this ticket, subjects is in an upcoming ticket), I also added aPrimarySubjectsForm
which just ensures an option is checked before processing to the new v2 results page.Changes proposed in this pull request
Browse primary courses
quick link to take the user to the newv2/primary
route instead of the old routeGuidance to review
No errors:
![Screenshot 2025-02-03 at 18 59 26](https://private-user-images.githubusercontent.com/152905657/409242936-a5eb32fc-68aa-4507-a6c5-b46d7c749f1d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NTgwMzcsIm5iZiI6MTczOTQ1NzczNywicGF0aCI6Ii8xNTI5MDU2NTcvNDA5MjQyOTM2LWE1ZWIzMmZjLTY4YWEtNDUwNy1hNmM1LWI0NmQ3Yzc0OWYxZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVud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dCJ9.ImXVFIh55U1l50k_RsY592kzbqThfl2bkf8x8xsiLRg)