Release 2366
Trello card
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:
- quickly cancel a pending or booked placement
- 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_candidatevar 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.
- visit
/candidates/dashboard - sign in
- when there are no placements, you should see some text saying there are no placements
- 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