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

Improve navigation - Update Browse primary courses page #4883

Merged

Conversation

gms-gs
Copy link
Contributor

@gms-gs gms-gs commented Feb 3, 2025

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 a PrimarySubjectsForm which just ensures an option is checked before processing to the new v2 results page.

Changes proposed in this pull request

  • Update the Browse primary courses quick link to take the user to the new v2/primary route instead of the old route
  • Update the content
  • Add form validation

Guidance to review

No errors:
Screenshot 2025-02-03 at 18 59 26

With errors:
Screenshot 2025-02-03 at 19 00 03

@gms-gs gms-gs added the deploy A Review App will be created for PRs with this label label Feb 3, 2025
@gms-gs gms-gs self-assigned this Feb 3, 2025
@gms-gs gms-gs force-pushed the 307-improve-navigation-update-browse-primary-courses-page branch 7 times, most recently from 1cc893b to 36720fb Compare February 5, 2025 10:51
@gms-gs gms-gs marked this pull request as ready for review February 5, 2025 11:04
@gms-gs gms-gs requested a review from a team as a code owner February 5, 2025 11:04
@gms-gs gms-gs requested a review from tomas-stefano February 5, 2025 11:17
@kelliedesigner
Copy link

LGTM!

@gms-gs gms-gs requested a review from tomas-stefano February 5, 2025 12:37
@gms-gs gms-gs force-pushed the 307-improve-navigation-update-browse-primary-courses-page branch from 36720fb to bd9805e Compare February 5, 2025 14:56
Copy link
Contributor

@tomas-stefano tomas-stefano left a comment

Choose a reason for hiding this comment

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

🚀

@gms-gs gms-gs force-pushed the 307-improve-navigation-update-browse-primary-courses-page branch from bd9805e to 4cfc198 Compare February 5, 2025 16:14
@gms-gs gms-gs merged commit 67bc019 into main Feb 5, 2025
19 checks passed
@gms-gs gms-gs deleted the 307-improve-navigation-update-browse-primary-courses-page branch February 5, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy A Review App will be created for PRs with this label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants