Skip to content

Release 2366

Choose a tag to compare

@github-actions github-actions released this 14 Mar 15:03
f0222fe

Trello card

https://trello.com/c/cfhniooJ

Context

This is a very basic dashboard that provides a bird's-eye view of the candidate's placements.

It displays placements info like the placement date, school name, subject, the placement status. Also provides two actions for the candidate to:

  1. quickly cancel a pending or booked placement
  2. give feedback for an attended placement.

Changes proposed in this pull request

  • Update the candidate dashboard controller to retrieve all the placements of the logged in candidate
  • Add a presenter class to capture all the view logic related to the placements
  • Add helper methods to
  • generate coloured status tags for the placement requests
  • generate the cancel and review actions for the placement request
  • Create a placement presenter class to
  • Update the dashboard view to display all the placements in a table
  • Remove the dashboard view spec
  • Update the 'candidate signin' shared context in the specs to set the @current_candidate var and allow to make it available in the specs

Guidance to review

Note: There's a feature flag that enables/disables the dashboard. It's currently enabled only in dev and test environments.

  1. visit /candidates/dashboard
  2. sign in
  3. when there are no placements, you should see some text saying there are no placements
  4. when there are placements:
  • you should see all your placements
  • new requests should have pending status and a cancel link
  • upcoming placements should have booked status and a cancel link
  • attended placements should have a link to the review link