Skip to content

Commit 8ff9521

Browse files
sync with main (#30)
* change postinstall to pre-req (#13) * change postinstall to pre-req * 2024.6.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Publisher select fix (#14) * notification ui style * update config * fix reactivity * 2024.7.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * use profile id (#15) * use profile id * 2024.7.1 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * fix: doc link * fix doc link (#16) * fix doc link * 2024.11.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * fix broken link in readme (#17) * fix broken link in readme * 2024.12.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Common files (#18) * remove verified.coop ref * remove localstorage * 2024.12.1 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * add common files (#19) * add common files * 2024.12.2 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * fixes (#20) * fixes * 2024.12.3 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * fixes (#21) * fixes * 2024.12.4 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * fixes (#22) * fixes * 2024.12.5 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * remove 404 (#23) * remove 404 * 2024.12.6 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * test workflow * test commit (#24) * test commit * 2024.12.7 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * update workflow * cleanup * update workflow * lock ubuntu version * Svelte5 (#25) * upgrade deps * fix * lint and format * fix lint * migrate * refactor * migrate * migrate * refactor * refactor * refactor, fixes, uses hellocoop helper browser package * fix * fixes * fix * refactor * fixes * refactor, fixes * refactor * cleanup * refactor * fixes * format * fix * migrate from stores * fix * 2025.1.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * update workflows * remove files (#26) * remove files * 2025.2.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Hash script integrity (#27) * Refactor index.html for improved structure and update script source URL * Update script source URL in index.html for consistency across environments * Hash script integrity (#28) * Refactor index.html for improved structure and update script source URL * Update script source URL in index.html for consistency across environments * dummy commit * 2025.7.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Update index.html to include 'defer' attribute and specify data-domai… (#29) * Update index.html to include 'defer' attribute and specify data-domain for script tag * 2025.7.1 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d45d7e6 commit 8ff9521

37 files changed

Lines changed: 7367 additions & 4042 deletions

.github/workflows/beta.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ name: Sync content with S3 Beta
33
on:
44
workflow_dispatch:
55
pull_request_target:
6-
types: [ closed ]
7-
branches: [ beta ]
6+
types: [closed]
7+
branches: [beta]
88

99
jobs:
1010
sync:
1111
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
1212
uses: hellocoop/tools/.github/workflows/code-deploy-client.yml@main
1313
with:
14-
AWS_ACCOUNT: ${{ vars.HELLO_BETA_AWS }} # set at org level
14+
AWS_ACCOUNT: ${{ vars.HELLO_BETA_AWS }} # set at org level
1515
STACK: QuickstartStack
1616
BUILD_CMD: npm run build
17-
TARGET: beta
17+
TARGET_BRANCH: beta
1818
DOMAIN: quickstart.hello-beta.net # for version comparison
19-
BUILD_DIR: ./S3
19+
BUILD_DIR: ./S3

.github/workflows/stage.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,28 @@
11
name: Sync content with S3 Staging
22

33
on:
4-
workflow_dispatch:
5-
pull_request_target:
6-
types: [ closed ]
7-
branches: [ main ]
4+
workflow_dispatch: # for testing / manually running workflows via github ui
5+
pull_request_target: # pr targeting main was closed -- we check merge status in stage_check job below
6+
types: [closed]
7+
branches: [main]
88

99
jobs:
10-
sync:
10+
stage_check: # only stage if pr was merged with main or workflow triggered manually
1111
if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch'
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- name: Check Stage Conditions
15+
run: echo "stage_check passed, proceeding to deploy to staging"
16+
17+
# below jobs run only if stage_check passes
18+
19+
sync:
20+
needs: stage_check
1221
uses: hellocoop/tools/.github/workflows/code-deploy-client.yml@main
1322
with:
14-
AWS_ACCOUNT: ${{ vars.HELLO_STAGING_AWS }} # set at org level
23+
AWS_ACCOUNT: ${{ vars.HELLO_STAGING_AWS }} # set at org level
1524
STACK: QuickstartStack
16-
BUILD_CMD: npm run build
17-
TARGET: main
18-
DOMAIN: quickstart.hello-staging.net # for version comparison
19-
BUILD_DIR: ./S3
25+
WORKING_DIR: .
26+
TARGET_BRANCH: main
27+
DOMAIN: quickstart.hello-staging.net # for version comparison
28+
BUILD_DIR: ./S3

.github/workflows/version.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Increment version
22

33
on:
44
pull_request_target:
5-
types: [ opened, synchronize ] #Runs on PR creation/updation
6-
branches: [ main ]
5+
types: [opened, synchronize] #Runs on PR creation/updation
6+
branches: [main]
77

8-
jobs:
8+
jobs:
99
version:
10-
uses: hellocoop/tools/.github/workflows/code-version.yml@main
10+
uses: hellocoop/tools/.github/workflows/code-version.yml@main

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dist
2+
node_modules
3+
S3
4+
cypress
5+
rumTracker.js
6+
playwright-report
7+
test-results

.prettierrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"overrides": [
7+
{
8+
"files": "*.svelte",
9+
"options": {
10+
"parser": "svelte",
11+
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"]
12+
}
13+
},
14+
{
15+
"files": "content/**/*.{css,html,js,svelte}",
16+
"options": {
17+
"requirePragma": true
18+
}
19+
}
20+
]
21+
}

CODE_OF_CONDUCT.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,23 @@ diverse, inclusive, and healthy community.
1717
Examples of behavior that contributes to a positive environment for our
1818
community include:
1919

20-
* Demonstrating empathy and kindness toward other people
21-
* Being respectful of differing opinions, viewpoints, and experiences
22-
* Giving and gracefully accepting constructive feedback
23-
* Accepting responsibility and apologizing to those affected by our mistakes,
20+
- Demonstrating empathy and kindness toward other people
21+
- Being respectful of differing opinions, viewpoints, and experiences
22+
- Giving and gracefully accepting constructive feedback
23+
- Accepting responsibility and apologizing to those affected by our mistakes,
2424
and learning from the experience
25-
* Focusing on what is best not just for us as individuals, but for the
25+
- Focusing on what is best not just for us as individuals, but for the
2626
overall community
2727

2828
Examples of unacceptable behavior include:
2929

30-
* The use of sexualized language or imagery, and sexual attention or
30+
- The use of sexualized language or imagery, and sexual attention or
3131
advances of any kind
32-
* Trolling, insulting or derogatory comments, and personal or political attacks
33-
* Public or private harassment
34-
* Publishing others' private information, such as a physical or email
32+
- Trolling, insulting or derogatory comments, and personal or political attacks
33+
- Public or private harassment
34+
- Publishing others' private information, such as a physical or email
3535
address, without their explicit permission
36-
* Other conduct which could reasonably be considered inappropriate in a
36+
- Other conduct which could reasonably be considered inappropriate in a
3737
professional setting
3838

3939
## Enforcement Responsibilities
@@ -106,7 +106,7 @@ Violating these terms may lead to a permanent ban.
106106
### 4. Permanent Ban
107107

108108
**Community Impact**: Demonstrating a pattern of violation of community
109-
standards, including sustained inappropriate behavior, harassment of an
109+
standards, including sustained inappropriate behavior, harassment of an
110110
individual, or aggression toward or disparagement of classes of individuals.
111111

112112
**Consequence**: A permanent ban from any sort of public interaction within

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This repo contains the source code powering [https://quickstart.hello.coop/](htt
44

55
Quickstart accelerates getting up and running with Hellō. It will read an existing client_id, or create one.
66

7-
The Quickstart SPA (Single Page App) is launched by sample apps to acquire a client_id. The developer will log into Hellō and authorize Quickstart to create / read publisher / apps.
7+
The Quickstart SPA (Single Page App) is launched by sample apps to acquire a client_id. The developer will log into Hellō and authorize Quickstart to create / read publisher / apps.
88

99
## Launching Quickstart
1010

@@ -17,10 +17,10 @@ Load `https://quickstart.hello.coop/` with the following query parameters:
1717
- `pp_uri` - (OPTIONAL) privacy policy link
1818
- `image_uri` - (OPTIONAL) app logo link
1919
- `dark_image_uri` - (OPTIONAL) app logo link for dark theme
20-
- `redirect_uri` - (OPTIONAL) one or more space separated OAuth `redirect_uri` values to be added to the Production Redirect URIs. `http:\\localhost:*` and `http:\\127.0.0.1` Development Redirect URIs are enabled by default
20+
- `redirect_uri` - (OPTIONAL) one or more space separated OAuth `redirect_uri` values to be added to the Production Redirect URIs. `http://localhost:*` and `http://127.0.0.1` Development Redirect URIs are enabled by default
2121
- `integration` - (OPTIONAL) how the application is created. defaults to `quickstart`
2222
- `wildcard_domain` - (OPTIONAL) a boolean value indicating if wildcard domains are enabled in Development Redirect URIs
23-
- `provider_hint` - (OPTIONAL) a space separated list of recommended providers per [provider_hint](https://www.hello.dev/documentation/provider-hint.html#recommended-provider-defaults)
23+
- `provider_hint` - (OPTIONAL) a space separated list of recommended providers per [provider_hint](https://www.hello.dev/docs/apis/wallet/#provider_hint)
2424

2525
Eg: `response_uri` = `http://localhost:8000/` & `suffix` = "Next.js"
2626

@@ -32,16 +32,12 @@ On completion, the Quickstart app will load the `response_uri` with `client_id`
3232

3333
http://localhost:8000/quickstart?client_id=9ca12f47-f310-413b-b70f-4428d9448e8d
3434

35-
3635
## Quickstart Developer Experience
37-
36+
3837
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.
3938

40-
41-
4239
## Sample App Response Developer Experience
4340

4441
If possible, the sample app will have a link to test out the sample app, as well as inform the developer that they can update their Hellō application at https://console.hello.coop
4542

4643
[MIT](LICENSE)
47-

eslint.config.js

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import js from '@eslint/js';
2+
import svelte from 'eslint-plugin-svelte';
3+
import prettier from 'eslint-config-prettier';
4+
import globals from 'globals';
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
js.configs.recommended,
9+
...svelte.configs['flat/recommended'],
10+
prettier,
11+
...svelte.configs['flat/prettier'],
12+
{
13+
languageOptions: {
14+
globals: {
15+
...globals.browser,
16+
...globals.node,
17+
__NAME__: 'readonly',
18+
__VERSION__: 'readonly',
19+
__GITHUBURL__: 'readonly',
20+
__SVELTEVERSION__: 'readonly',
21+
__VITEVERSION__: 'readonly',
22+
__TAILWINDCSSVERSION__: 'readonly'
23+
}
24+
}
25+
},
26+
{
27+
files: ['**/*.svelte'],
28+
languageOptions: {
29+
parserOptions: {
30+
svelteFeatures: {
31+
experimentalGenerics: true
32+
}
33+
}
34+
}
35+
},
36+
{
37+
ignores: [
38+
'.vercel/',
39+
'src/routes/utils/highlight/',
40+
'build/',
41+
'.svelte-kit/',
42+
'dist/',
43+
'S3/',
44+
'test-results/',
45+
'*.md',
46+
'src/**/*/Setup.svelte',
47+
'node_modules/',
48+
'cypress',
49+
'rumTracker.js',
50+
'assets/',
51+
'playwright-report/'
52+
]
53+
},
54+
{
55+
rules: {
56+
// Note: you must disable the base rule as it can report incorrect errors
57+
// "no-unused-vars": "off",
58+
'svelte/no-at-html-tags': 'off'
59+
}
60+
}
61+
];

index.html

Lines changed: 89 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,92 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="https://cdn.hello.coop/images/quickstart-favicon-dark.png" />
6-
<link rel="stylesheet" href="https://cdn.hello.coop/css/hello-button.css"/>
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
8-
<title>Hellō Quickstart</title>
9-
<!-- integrity is hard coded here because this file only exists in staging/prod -->
10-
<script defer="" data-domain="quickstart.hello.coop" src="/js/script.hash.js" integrity="sha384-1kvlsmFV0In+ocTgJBWUSDEyMwHcxFD7WzKbrYYq7A6iJAOLn2idnchzq+mxbS3M" crossorigin="anonymous"></script>
11-
<style>
12-
@media (prefers-color-scheme: dark) {
13-
html {
14-
color-scheme: dark;
15-
}
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<meta name="theme-color" content="#303030" />
7+
<link href="https://cdn.hello.coop/images/quickstart-favicon-light.png" rel="icon"
8+
media="(prefers-color-scheme: light)" />
9+
<link href="https://cdn.hello.coop/images/quickstart-favicon-dark.png" rel="icon"
10+
media="(prefers-color-scheme: dark)" />
11+
<link rel="stylesheet" href="https://cdn.hello.coop/css/hello-button.css" />
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
13+
<title>Hellō Quickstart</title>
14+
<!-- integrity is hard coded here because this file only exists in staging/prod -->
15+
<script defer data-domain="quickstart.hello.coop" src="/js/script.hash.js"
16+
integrity="sha384-upGDjpDy51XhSHJE3NLNt2oQ/cHIFR11Bzm/FeL6Uuc7qHgKEAQKuc8mUgFqmcK5"
17+
crossorigin="anonymous"></script>
18+
<style type="text/css">
19+
html,
20+
body {
21+
height: 100%;
22+
min-width: 320px;
23+
overflow-x: auto;
24+
}
25+
26+
.spinner {
27+
position: absolute;
28+
left: 50%;
29+
top: 50%;
30+
height: 40px;
31+
width: 40px;
32+
margin: -26px 0 0 -26px;
33+
box-sizing: content-box;
34+
animation: rotation 1s infinite linear;
35+
border-width: 6px;
36+
border-style: solid;
37+
border-radius: 100%;
38+
}
39+
40+
#spinner {
41+
height: 3.2rem;
42+
width: 3.2rem;
43+
animation: rotation 1s linear infinite;
44+
}
45+
46+
@keyframes rotation {
47+
from {
48+
transform: rotate(0deg);
1649
}
17-
@media (prefers-color-scheme: light) {
18-
html {
19-
color-scheme: light;
20-
}
50+
51+
to {
52+
transform: rotate(360deg);
2153
}
22-
</style>
23-
</head>
24-
<body class="bg-white dark:bg-[#151515] text-charcoal dark:text-[#d4d4d4]">
25-
<div id="app"></div>
26-
<script type="module" src="/src/main.js"></script>
27-
<script defer src="/assets/quickstart-glob.js"></script>
28-
<script defer src="/assets/hello-dev-wc-footer.js"></script>
29-
</body>
30-
</html>
54+
}
55+
56+
@media (prefers-color-scheme: dark) {
57+
body {
58+
color: #d4d4d4;
59+
background: #151515;
60+
color-scheme: dark;
61+
}
62+
63+
.spinner {
64+
border-color: rgba(116, 116, 116, 0.3);
65+
border-top-color: rgb(116, 116, 116);
66+
}
67+
}
68+
69+
@media (prefers-color-scheme: light) {
70+
body {
71+
color: #303030;
72+
background: white;
73+
color-scheme: light;
74+
}
75+
76+
.spinner {
77+
border-color: rgba(75, 75, 75, 0.3);
78+
border-top-color: rgb(75, 75, 75);
79+
}
80+
}
81+
</style>
82+
</head>
83+
84+
<body class="bg-white dark:bg-[#151515] text-charcoal dark:text-[#d4d4d4]">
85+
<div id="load-spinner" class="spinner"></div>
86+
<div id="app"></div>
87+
<script type="module" src="/src/main.js"></script>
88+
<script defer src="/assets/quickstart-glob.js"></script>
89+
<script defer src="/assets/hello-dev-wc-footer.js"></script>
90+
</body>
91+
92+
</html>

0 commit comments

Comments
 (0)