From dff26a50b76969e5824600e99162cbcb18fbe25d Mon Sep 17 00:00:00 2001 From: Parker Atkins Date: Mon, 22 Jan 2024 11:08:14 -1000 Subject: [PATCH 1/3] UI roughed in for certification type selection --- .../src/components/ECEAssistantContent.vue | 26 +++++++++ .../src/components/ECEFiveYearContent.vue | 37 ++++++++++++ .../src/components/ECEOneYearContent.vue | 28 +++++++++ .../src/components/ExpandSelect.vue | 38 +++++++++++++ .../components/pages/CertificationType.vue | 57 +++++++++++++++++++ .../src/components/pages/Dashboard.vue | 4 +- .../src/router.ts | 6 +- .../src/types/expand-select.ts | 7 +++ 8 files changed, 200 insertions(+), 3 deletions(-) create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEAssistantContent.vue create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEOneYearContent.vue create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/expand-select.ts diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEAssistantContent.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEAssistantContent.vue new file mode 100644 index 000000000..77248b1e2 --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEAssistantContent.vue @@ -0,0 +1,26 @@ + + + diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue new file mode 100644 index 000000000..6074677de --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue @@ -0,0 +1,37 @@ + + + diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEOneYearContent.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEOneYearContent.vue new file mode 100644 index 000000000..d6de27603 --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEOneYearContent.vue @@ -0,0 +1,28 @@ + + + diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue new file mode 100644 index 000000000..6aa8614b8 --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue @@ -0,0 +1,38 @@ + + + diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue new file mode 100644 index 000000000..cf4ab0762 --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue @@ -0,0 +1,57 @@ + + + diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue index 345c1cd8e..90e0729ff 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/Dashboard.vue @@ -42,7 +42,7 @@

Complete and submit your application for certification in early childhood education.

- Apply Now + Apply Now @@ -52,7 +52,7 @@

Not sure which certificate to apply for? Fill out a quick self-assessment to see your certification options.

- Check Elegibility + Check Eligibility diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts index 2ad785747..3dbdb4646 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/router.ts @@ -40,7 +40,11 @@ const router = createRouter({ }, ], }, - + { + path: "/certification-type", + component: () => import("./components/pages/CertificationType.vue"), + meta: { requiresAuth: true }, + }, { path: "/login", component: () => import("./components/pages/Login.vue"), diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/expand-select.ts b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/expand-select.ts new file mode 100644 index 000000000..ec921a786 --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/types/expand-select.ts @@ -0,0 +1,7 @@ +import type { Component } from "vue"; + +export type ExpandSelectOption = { + id: string; + title: string; + contentComponent: Component; +}; From 77480e26dd696074bbbb019e6ee146a97ad1abce Mon Sep 17 00:00:00 2001 From: Parker Atkins Date: Tue, 23 Jan 2024 07:39:43 -1000 Subject: [PATCH 2/3] Move configuration and complete ExpandSelect state handling --- .../src/components/ECEFiveYearContent.vue | 19 +++++++- .../src/components/ExpandSelect.vue | 43 +++++++++++-------- .../components/pages/CertificationType.vue | 34 +++++---------- .../src/config/certification-types.ts | 24 +++++++++++ 4 files changed, 76 insertions(+), 44 deletions(-) create mode 100644 src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/config/certification-types.ts diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue index 6074677de..3a0532cf4 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue @@ -21,8 +21,23 @@ - - + + + + + + + diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue index 6aa8614b8..0cb77758b 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ExpandSelect.vue @@ -1,16 +1,16 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue index cf4ab0762..8bf6e4115 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/pages/CertificationType.vue @@ -11,7 +11,7 @@

What certificate type(s) are you applying for?

- + @@ -20,38 +20,26 @@ diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/config/certification-types.ts b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/config/certification-types.ts new file mode 100644 index 000000000..16febdc78 --- /dev/null +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/config/certification-types.ts @@ -0,0 +1,24 @@ +import ECEAssistantContent from "@/components/ECEAssistantContent.vue"; +import ECEFiveYearContent from "@/components/ECEFiveYearContent.vue"; +import ECEOneYearContent from "@/components/ECEOneYearContent.vue"; +import type { ExpandSelectOption } from "@/types/expand-select"; + +const certificationTypes: ExpandSelectOption[] = [ + { + id: "1", + title: "ECE Assistant", + contentComponent: ECEAssistantContent, + }, + { + id: "2", + title: "ECE One Year", + contentComponent: ECEOneYearContent, + }, + { + id: "3", + title: "ECE Five Year", + contentComponent: ECEFiveYearContent, + }, +]; + +export default certificationTypes; From fe5beb25dca42c867e380fd3bd9b9f96bce86dc3 Mon Sep 17 00:00:00 2001 From: Parker Atkins Date: Tue, 23 Jan 2024 09:45:48 -1000 Subject: [PATCH 3/3] Connect sub selection for ECEFiveYearContent component --- .../src/components/ECEFiveYearContent.vue | 17 +++++++++++-- .../src/components/ExpandSelect.vue | 23 ++++++++++++++---- .../components/pages/CertificationType.vue | 24 +++++++++++++++---- .../src/config/certification-types.ts | 3 +++ .../src/types/expand-select.ts | 1 + 5 files changed, 57 insertions(+), 11 deletions(-) diff --git a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue index 3a0532cf4..61d920a05 100644 --- a/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue +++ b/src/ECER.Clients.RegistryPortal/ecer.clients.registryportal.client/src/components/ECEFiveYearContent.vue @@ -21,7 +21,7 @@ - + - +