From 01e45412abe155a55a2558fb6a500af690022c23 Mon Sep 17 00:00:00 2001 From: Shelley Nason Date: Tue, 12 Dec 2023 17:06:33 -0600 Subject: [PATCH] feat: switch grant finder to use history API for client-side routing --- docs/development.md | 2 +- packages/client/src/components/Layout.vue | 4 ++-- packages/client/src/router/index.js | 21 ++++++++++++++----- packages/client/src/views/Dashboard.vue | 4 ++-- packages/client/src/views/MyProfile.vue | 2 +- packages/client/src/views/NotFound.vue | 7 +++++++ .../client/tests/unit/router/index.spec.js | 19 +++++++++++++++++ .../server/__tests__/api/sessions.test.js | 3 ++- .../__tests__/lib/redirect_validation.test.js | 3 --- packages/server/src/lib/email.js | 8 +++---- .../server/src/lib/redirect_validation.js | 1 - packages/server/src/routes/sessions.js | 8 +++---- 12 files changed, 58 insertions(+), 24 deletions(-) create mode 100644 packages/client/src/views/NotFound.vue create mode 100644 packages/client/tests/unit/router/index.spec.js diff --git a/docs/development.md b/docs/development.md index 6b7beb7711..cd606abc88 100644 --- a/docs/development.md +++ b/docs/development.md @@ -60,7 +60,7 @@ See [here](../docker/README.md) for more information about commands to use when ![AWS SES Error](./img/error-aws-ses.png) -1. Visit `client_url/login` (e.g ) and login w/ user `grant-admin@usdigitalresponse.org`. You'll see a confirmation message on the screen. Check your logs to find the generated session link. +1. Visit `client_url/login` (e.g ) and login w/ user `grant-admin@usdigitalresponse.org`. You'll see a confirmation message on the screen. Check your logs to find the generated session link. **NOTE:** if you only see a blank screen then ensure you've set up the `packages/client/.env` diff --git a/packages/client/src/components/Layout.vue b/packages/client/src/components/Layout.vue index 6f8706150f..f8b2629b82 100755 --- a/packages/client/src/components/Layout.vue +++ b/packages/client/src/components/Layout.vue @@ -1,7 +1,7 @@