Count recently-returned letters on the dashboard

Currently you have no way of getting to the returned letter page. This
commit adds a link to it from the dashboard, following the pattern of
the new received text messages banner.
This commit is contained in:
Chris Hill-Scott
2020-02-12 14:19:21 +00:00
parent 74e70ed8bc
commit f369f76ae4
7 changed files with 218 additions and 8 deletions

View File

@@ -3342,6 +3342,14 @@ def mock_get_service_history(mocker):
})
@pytest.fixture(scope='function')
def mock_get_returned_letter_summary_with_no_returned_letters(mocker):
return mocker.patch(
'app.service_api_client.get_returned_letter_summary',
return_value=[],
)
def create_api_user_active(with_unique_id=False):
return {
'id': str(uuid4()) if with_unique_id else sample_uuid(),