@popcorn245/cornfield 0.34.3 → 0.35.0
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/core/contrast.js +3 -1
- package/explorer/connection.js +62 -0
- package/explorer/corn-state.js +34 -2
- package/explorer/explorer.css +61 -3
- package/explorer/feedback.js +49 -0
- package/explorer/forge-panel-model.js +41 -7
- package/explorer/forge-panel.js +223 -56
- package/explorer/index.html +4 -0
- package/explorer/panels.js +10 -4
- package/explorer/proposal-model.js +34 -5
- package/explorer/proposal.js +33 -10
- package/explorer/review.js +48 -7
- package/explorer/runs-model.js +42 -18
- package/explorer/runs-view.js +58 -20
- package/explorer/tokens.css +10 -0
- package/package.json +1 -1
- package/server/forge-http.js +1 -1
package/explorer/tokens.css
CHANGED
|
@@ -50,6 +50,16 @@
|
|
|
50
50
|
--corn-bad: #fca5a5;
|
|
51
51
|
--corn-info: #7dd3fc;
|
|
52
52
|
--corn-ok-soft: color-mix(in srgb, var(--corn-ok) 15%, transparent);
|
|
53
|
+
/* An agent run's seven states, each its own colour for a theme to set (a pill also has a word and an icon, so none is told by colour alone).
|
|
54
|
+
They follow the status colours above in the light level too; a theme that sets one sets it for both levels, or leaves the alias. */
|
|
55
|
+
--corn-run-requested: var(--corn-text-3);
|
|
56
|
+
--corn-run-claimed: var(--corn-info);
|
|
57
|
+
--corn-run-working: var(--corn-info);
|
|
58
|
+
--corn-run-waiting: var(--corn-warn);
|
|
59
|
+
--corn-run-waiting-ink: var(--corn-ground);
|
|
60
|
+
--corn-run-done: var(--corn-ok);
|
|
61
|
+
--corn-run-failed: var(--corn-bad);
|
|
62
|
+
--corn-run-stopped: var(--corn-text-2);
|
|
53
63
|
|
|
54
64
|
/* Diff: what a proposal adds, changes, removes and edits (the map draws the same four) */
|
|
55
65
|
--corn-added: #2dd4bf;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popcorn245/cornfield",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "A self-hostable dev dashboard with the topology map at its centre: proposals on the map, scenarios, outages and what-if edits, for any repo.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "popcorn245 (https://github.com/popcorn245)",
|
package/server/forge-http.js
CHANGED
|
@@ -149,7 +149,7 @@ export function errorFor(forge, status, body, rate, what) {
|
|
|
149
149
|
if (status >= 300 && status < 400) return new ForgeError(`${forge} says ${what} has moved; check forge.repo in cornfield.config.js.`, { ...at, code: 'not-found' });
|
|
150
150
|
if (status === 401) return new ForgeError(`${forge} did not accept the sign-in; sign in again.`, { ...at, code: 'unauthorized' });
|
|
151
151
|
if (status === 403) return new ForgeError(`${forge} does not let this sign-in do that to ${what}.${theirs}`, { ...at, code: 'forbidden' });
|
|
152
|
-
if (status === 404) return new ForgeError(`${forge}
|
|
152
|
+
if (status === 404) return new ForgeError(`${forge} could not find ${what}, or this sign-in cannot see it.`, { ...at, code: 'not-found' });
|
|
153
153
|
if (status === 405 || status === 409) return new ForgeError(`${forge} refused: ${what} cannot be changed that way now.${theirs}`, { ...at, code: 'conflict' });
|
|
154
154
|
if (status === 400 || status === 422) return new ForgeError(`${forge} did not accept the request for ${what}.${theirs}`, { ...at, code: 'invalid' });
|
|
155
155
|
return new ForgeError(`${forge} could not answer for ${what} (HTTP ${status}); try again in a minute.`, { ...at, code: 'unavailable' });
|