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

Routes Wizard #4411

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Routes Wizard #4411

wants to merge 12 commits into from

Conversation

spencerldixon
Copy link
Collaborator

Trello card

https://trello.com/c/nRCbhphO/7084-build-question-pages-and-initial-output-for-routes-wizard?filter=member:spencerldixon

Context

We want to ask candidates three simple questions and then display appropriate route information depending on their answers
We want to build the three question pages and render the answers on a results page as a first step - (adding logic to determine the route(s) to be displayed will be done in a later ticket)

Changes proposed in this pull request

  • Adds a /routes-into-teaching path
  • Creates wizard with three initial questions that are required
  • Adds completed page to output the answers and allow users to go back and change their answers

Guidance to review

@github-actions github-actions bot added ruby Pull requests that update Ruby code Config labels Dec 9, 2024
* recreated results box component and associated styling

* added spec test for results box component

* added results box to completed page of routes wizard

* adjusted media query to improve responsiveness on mobile/tablet

* Fixed spacing

* removed results box from completed page of routes wizard

* fixed indenting on results box css file

---------

Co-authored-by: Spencer Dixon <[email protected]>
@spencerldixon spencerldixon changed the title Build initial question and results pages for routes wizard Routes Wizard Jan 10, 2025
* WIP routes wizard logic

* Completed matching logic for each route into teaching

* Lint and exclude from orphan variables check

* Ammend logic to support multiple answers to a question

* WIP move logic to routes class

* WIP adding tests

* WIP adding tests

* Add results box component

* Add basic layout to completed page and add results boxes

* Remove substitute values from most fields in results box

* Amend routes mapping

* Added not yet answers for routes mapping

* Remove two routes
* WIP routes wizard logic

* Completed matching logic for each route into teaching

* Lint and exclude from orphan variables check

* Ammend logic to support multiple answers to a question

* WIP move logic to routes class

* WIP adding tests

* WIP adding tests

* Add results box component

* Add basic layout to completed page and add results boxes

* Remove substitute values from most fields in results box

* Amend routes mapping

* Added not yet answers for routes mapping

* WIP adding page layout

* Added mailing list form component

* Change case-when to hash to satisfy rubocop

* Swap order of privacy policy and next step button

* Improve error messaging and spacing of results cards

* Add start page and extra spacing to bottom of mailer form submit button

* Linting

* Update app/views/routes_into_teaching/steps/completed.html.erb

Co-authored-by: Gemma Dallman <[email protected]>

* Stylelint fixes to results box css

* Added default heading tag to QuoteWithImageComponent and changed ResultsBoxComponent to render a h3

* Fix renaming of quote with image component attribute

---------

Co-authored-by: Gemma Dallman <[email protected]>
* Add cta component to routes wizard results box

* Fix responsiveness of cta circle icon
* Added no results text

* updating link to help and support instead of TTA

* Remove results override

---------

Co-authored-by: Sarah-DfE <[email protected]>
* Add start page content

* updating start page content

---------

Co-authored-by: Sarah-DfE <[email protected]>
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Config Review ruby Pull requests that update Ruby code Style test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants