@bongos/core 1.21.93 → 1.21.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bongos-core.json +55 -35
- package/clients/bongos-client/README.md +1 -1
- package/clients/bongos-client/bongos-client.global.js +2 -0
- package/clients/bongos-client/index.cjs +2 -0
- package/clients/bongos-client/index.d.ts +4 -2
- package/clients/bongos-client/index.mjs +2 -0
- package/docs/api/openapi.json +38 -7
- package/docs/api-reference.md +4 -3
- package/docs/copy-inventory.md +354 -354
- package/docs/copy-registry.json +420 -420
- package/docs/design/project-startup-direction.md +7 -0
- package/docs/module-api-changelog.md +2 -0
- package/docs/page-readings.json +963 -992
- package/modules/provisioning/github-setup.js +129 -0
- package/modules/provisioning/module.json +2 -1
- package/modules/provisioning/provisioning.js +3 -0
- package/modules/provisioning/routes/callback-page.js +66 -1
- package/modules/provisioning/routes/github-setup.js +113 -0
- package/modules/provisioning/routes/provisioning.js +11 -45
- package/modules/public-landing/public/projects.html +105 -57
- package/package-lock.json +2 -2
- package/package.json +1 -1
- package/release-notes.json +6 -0
- package/scripts/gds/oauth-secret.js +4 -2
- package/scripts/gds/provision-github-setup.js +148 -0
- package/scripts/gds/provision.js +19 -5
- package/src/module-api.js +1 -1
- package/tests/github_one_trip.mjs +297 -0
- package/tests/projects_hub_dns_ready.mjs +2 -1
- package/tests/projects_hub_pre_uat.mjs +17 -9
- package/tests/provision.mjs +51 -9
- package/tests/provisioning_github_app_routes.mjs +94 -8
- package/tests/wizard_github_feedback.mjs +8 -5
|
@@ -69,7 +69,8 @@ test('publicGithubApp: effective status, failure only on error, started_at, and
|
|
|
69
69
|
|
|
70
70
|
// ── 2. the words for each stage ─────────────────────────────────────────────
|
|
71
71
|
|
|
72
|
-
|
|
72
|
+
// from the shared helpers of the four GitHub steps (task 1004649) to the next step
|
|
73
|
+
const RS = SCRIPT.indexOf(' /* The four GitHub steps of part 03');
|
|
73
74
|
const RE = SCRIPT.indexOf(' /* device-flow', RS);
|
|
74
75
|
const RENDER = SCRIPT.slice(RS, RE);
|
|
75
76
|
|
|
@@ -80,7 +81,8 @@ test('the GitHub step region is still findable (a rename must fail loudly)', ()
|
|
|
80
81
|
|
|
81
82
|
function stage(live, { stale = false } = {}) {
|
|
82
83
|
const sandbox = {
|
|
83
|
-
live: { manifest: null, manifestMsg: '', manifestCode: '', manifestFailure: null, appSlug: null, instStatus: 'active', addrReady: true, ...live },
|
|
84
|
+
live: { manifest: null, manifestMsg: '', manifestCode: '', manifestFailure: null, appSlug: null, setup: null, installUrl: null, instStatus: 'active', addrReady: true, ...live },
|
|
85
|
+
state: { name: 'Mercury', slug: 'mercury' },
|
|
84
86
|
manifestStale: stale,
|
|
85
87
|
autoOpenArmed: false,
|
|
86
88
|
resolvedDomain: () => 'mercury.example.com',
|
|
@@ -109,7 +111,8 @@ test('pending: waiting for approval, and says where a missing GitHub tab went',
|
|
|
109
111
|
test('converting is the SAME stage as code_received — approved, placing credentials — never "waiting for approval"', () => {
|
|
110
112
|
for (const m of ['code_received', 'converting']) {
|
|
111
113
|
const html = stage({ manifest: m });
|
|
112
|
-
assert.match(html, /
|
|
114
|
+
assert.match(html, /Approved on GitHub/, m);
|
|
115
|
+
assert.match(html, /goes on to installing it on your repo/, `${m}: the trip carries on to the install (task 1004649)`);
|
|
113
116
|
assert.match(html, /<prog now=1 done=1/, `${m}: the strip is past the approval stage`);
|
|
114
117
|
assert.doesNotMatch(html, /Waiting for your approval/, m);
|
|
115
118
|
}
|
|
@@ -161,8 +164,8 @@ const SEED = SCRIPT.slice(SS, SE);
|
|
|
161
164
|
test('the reload regions are still findable (a rename must fail loudly)', () => {
|
|
162
165
|
assert.ok(WS > 0 && WE > WS, 'wait-timer boundaries found');
|
|
163
166
|
assert.ok(SS > 0 && SE > SS, 'instance-read seed boundaries found');
|
|
164
|
-
assert.match(SCRIPT, /if \(!terminal \|\| manifestInFlight\(\)\) pollTimer = setTimeout\(tick, 5000\);/,
|
|
165
|
-
'a GitHub leg in flight keeps the instance read alive once the project is up
|
|
167
|
+
assert.match(SCRIPT, /if \(!terminal \|\| manifestInFlight\(\) \|\| setupOpen\(\)\) pollTimer = setTimeout\(tick, 5000\);/,
|
|
168
|
+
'a GitHub leg in flight — or an install not yet verified (task 1004649) — keeps the instance read alive once the project is up');
|
|
166
169
|
});
|
|
167
170
|
|
|
168
171
|
// A page that RELOADED: no click in this tab, no manifest poll, just the instance read.
|