diff --git a/.github/workflows/beta.yml b/.github/workflows/beta.yml index 456ef42..76c9c2b 100644 --- a/.github/workflows/beta.yml +++ b/.github/workflows/beta.yml @@ -1,19 +1,21 @@ -name: Sync content with S3 Beta +# Quickstart not available in beta -on: - workflow_dispatch: - pull_request_target: - types: [closed] - branches: [beta] +# name: Sync content with S3 Beta -jobs: - sync: - if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' - uses: hellocoop/tools/.github/workflows/code-deploy-client.yml@main - with: - AWS_ACCOUNT: ${{ vars.HELLO_BETA_AWS }} # set at org level - STACK: QuickstartStack - BUILD_CMD: npm run build - TARGET_BRANCH: beta - DOMAIN: quickstart.hello-beta.net # for version comparison - BUILD_DIR: ./S3 +# on: +# workflow_dispatch: +# pull_request_target: +# types: [closed] +# branches: [beta] + +# jobs: +# sync: +# if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' +# uses: hellocoop/tools/.github/workflows/code-deploy-client.yml@main +# with: +# AWS_ACCOUNT: ${{ vars.HELLO_BETA_AWS }} # set at org level +# STACK: QuickstartStack +# BUILD_CMD: npm run build +# TARGET_BRANCH: beta +# DOMAIN: quickstart.hello-beta.net # for version comparison +# BUILD_DIR: ./S3 diff --git a/README.md b/README.md index 7916bf2..784357c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ On completion, the Quickstart app will load the `response_uri` with `client_id` http://localhost:8000/quickstart?client_id=9ca12f47-f310-413b-b70f-4428d9448e8d ## Quickstart Developer Experience - + If the developer has not registered any applications, they will be prompted with a Publisher Name "John Smith's Team" and an Application Name "John Smith's Application". If a `suffix` is provided (eg. "Next.js"), then the prompt will be "John Smith's Next.js". Alternatively, the developer will choose an existing application or create a new one with the same prefilled prompt. ## Sample App Response Developer Experience diff --git a/index.html b/index.html index c71310b..c1c6d4d 100644 --- a/index.html +++ b/index.html @@ -1,92 +1,100 @@ - - - - - - - - - Hellō Quickstart - - - - - -
-
- - - - + @media (prefers-color-scheme: light) { + body { + color: #303030; + background: white; + color-scheme: light; + } + + .spinner { + border-color: rgba(75, 75, 75, 0.3); + border-top-color: rgb(75, 75, 75); + } + } + + - \ No newline at end of file + +
+
+ + + + + diff --git a/package-lock.json b/package-lock.json index 0df843b..c6af75e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "quickstart", - "version": "2025.7.1", + "version": "2025.7.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "quickstart", - "version": "2025.7.1", + "version": "2025.7.2", "devDependencies": { "@hellocoop/helper-browser": "^2.5.1", "@sveltejs/vite-plugin-svelte": "^5.0.3", diff --git a/package.json b/package.json index c631139..5e71d20 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "quickstart", - "version": "2025.7.1", + "version": "2025.7.2", "type": "module", "scripts": { "dev": "vite", diff --git a/src/App.svelte b/src/App.svelte index 325edcb..d4c3067 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -26,10 +26,16 @@ if (code) { try { const access_token = await getAccessToken(code); + if (!access_token) { + throw new Error('Access token not found'); + } sessionStorage.setItem('access_token', access_token); } catch (err) { console.error(err); - return; + global.notification = { + text: 'Something went wrong. Please try again.', + type: 'error' + }; } finally { cleanUrl(); sessionStorage.removeItem('code_verifier'); diff --git a/src/api.js b/src/api.js index 26d9648..5a51651 100644 --- a/src/api.js +++ b/src/api.js @@ -3,6 +3,9 @@ import { ADMIN_SERVER, CONFIG, TOKEN_ENDPOINT } from './constants.js'; const getAccessToken = async (code) => { const code_verifier = sessionStorage.getItem('code_verifier'); + if (!code_verifier) { + throw new Error('Code verifier not found'); + } const params = { code: code, client_id: CONFIG.client_id, diff --git a/src/lib/Notification.svelte b/src/lib/Notification.svelte index 51cc0f2..51080b1 100644 --- a/src/lib/Notification.svelte +++ b/src/lib/Notification.svelte @@ -4,9 +4,11 @@
{global.notification.text}