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

Show submitted referrals to CPPs #672

Merged
merged 6 commits into from
Oct 10, 2023

Conversation

libuk
Copy link
Contributor

@libuk libuk commented Oct 9, 2023

We reverted an earlier version of this PR due to an e2e test failing. This is because the submitted_at property is set by the API so it is difficult to assert in our e2e test. The fix for that can be found here, where a flag has been added to not check on e2e tests. It will still check in integration tests.

Context

In a previous change[1], we hid submitted referrals due to it causing
confusion for users. We were linking the user back to the check your
answers page which gave the impression that the application wasn't
submitted.

We are now going to link these referrals to a new page which shows the
full submitted referral.

[1]
#516

Changes in this PR

  • Reinstate the submitted referrals tab
  • Introduce full submitted referral page

Screenshots of UI changes

Before

Screenshot 2023-10-05 at 12 10 55

After

Screenshot 2023-10-05 at 12 47 48
Screenshot 2023-10-05 at 12 03 16
Screenshot 2023-10-05 at 12 03 30

Release checklist

Release process documentation.

Pre-merge checklist

  • Are any changes required to dependent services for this change to work?
    (eg. CAS API)
  • Have they been released to production already?

Post-merge checklist

@libuk libuk force-pushed the feature/1348-show-submitted-referrals-to-referrers branch from 4fdbab9 to 9c1c0c1 Compare October 9, 2023 12:34
libuk added 4 commits October 9, 2023 13:38
In a previous change[1], we hid submitted referrals due to it causing
confusion for users. We were linking the user back to the check your
answers page which gave the impression that the application wasn't
submitted.

We are now going to link these referrals to a new page which shows the
full submitted referral.

This commit reinstates the submitted referrals tab and renders a list of
submitted referrals.

[1]
#516
This commit puts in place the plumbing for the new full submitted
application page.
Now that we have the full submitted application page, we can link from
the referrals table to our new page.
@libuk libuk force-pushed the feature/1348-show-submitted-referrals-to-referrers branch 2 times, most recently from 4f34619 to 8d3ba0e Compare October 9, 2023 13:04
@libuk libuk changed the title Feature/1348 show submitted referrals to referrers Show submitted referrals to referrers Oct 9, 2023
@libuk libuk changed the title Show submitted referrals to referrers Show submitted referrals to CPPs Oct 9, 2023
@libuk
Copy link
Contributor Author

libuk commented Oct 9, 2023

@libuk libuk force-pushed the feature/1348-show-submitted-referrals-to-referrers branch from 8d3ba0e to 1963c64 Compare October 9, 2023 14:36
libuk added 2 commits October 9, 2023 15:54
In a previous commit[1], the shape of application data changed and as
result, we stopped showing the arrival date. This is due to the logic
relying on the 'basic-information' key which was removed.

Fixing this requires API changes to return the arrivalDate on submitted
applications, and due to the limited dev days left on CAS3, this isn't
possible right now.

As we have added the tab for submitted referrals back, we are changing
the column to instead show the date submitted and hide the column for in
progress referrals.

In our e2e test for checking the submitted application, we add a flag
for checking the submittedAt date. This is because it is set by the API
so it is difficult to assert in our e2e test. When running our
integration test however, we have control over which applications appear
so we still assert in that context.

[1]
ec0a2b8
As this is no longer being referenced, it's safe to delete.
@libuk libuk force-pushed the feature/1348-show-submitted-referrals-to-referrers branch from 1963c64 to 213ddbc Compare October 9, 2023 14:57
@libuk libuk marked this pull request as ready for review October 9, 2023 15:29
@libuk libuk merged commit 7820a84 into main Oct 10, 2023
3 checks passed
@libuk libuk deleted the feature/1348-show-submitted-referrals-to-referrers branch October 10, 2023 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants