kryptheon 0.1.63 → 0.1.64

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.
@@ -103,6 +103,7 @@
103
103
  function setBusy(on) {
104
104
  busy = on;
105
105
  Array.prototype.forEach.call(document.querySelectorAll('[data-action]'), function (b) { b.disabled = on; });
106
+ if (state) renderLaunch();
106
107
  }
107
108
  // The clipboard, and when a browser refuses it, the older way: the text
108
109
  // put in a box off the screen, selected and copied.
@@ -1287,15 +1288,65 @@
1287
1288
  // page's own reloads while the box is open.
1288
1289
  var everyOpen = false;
1289
1290
  var everyTicked = false;
1290
- byId('runAll').addEventListener('click', function () {
1291
+ function openEvery() {
1291
1292
  if (!state || !state.everything) return;
1292
1293
  var plan = state.everything;
1293
1294
  if (!plan.steps.length) { toast('Nothing can run from here yet' + (plan.skipped[0] ? ' - ' + plan.skipped[0].label + ': ' + plan.skipped[0].why : '')); return; }
1294
1295
  everyOpen = true;
1295
1296
  everyTicked = false;
1296
1297
  renderEvery();
1297
- byId('everyBox').scrollIntoView({ block: 'nearest' });
1298
- });
1298
+ byId('everyBox').scrollIntoView({ block: 'start', behavior: 'smooth' });
1299
+ }
1300
+ byId('runAll').addEventListener('click', openEvery);
1301
+
1302
+ // The same press, made to be seen first on the dashboard: what one press
1303
+ // runs, as chips, and what it leaves out, dimmed.
1304
+ function renderLaunch() {
1305
+ var box = byId('launch');
1306
+ if (!box || !state || !state.everything) return;
1307
+ var plan = state.everything;
1308
+ clear(box);
1309
+ var text = el('div');
1310
+ var eyebrow = el('div', 'eyebrow');
1311
+ eyebrow.appendChild(el('span', 'live-dot'));
1312
+ eyebrow.appendChild(document.createTextNode('One press - every check'));
1313
+ text.appendChild(eyebrow);
1314
+ var h = el('h2');
1315
+ h.appendChild(document.createTextNode('Check my '));
1316
+ h.appendChild(el('em', null, 'whole app'));
1317
+ text.appendChild(h);
1318
+ text.appendChild(el('p', null, plan.steps.length
1319
+ ? plural(plan.steps.length, 'check') + ' run one after another while you wait. You say yes once; Kryptheon never deletes anything, and every problem comes with its proof and a prompt to fix it.'
1320
+ : 'Nothing can run from here yet' + (plan.skipped[0] ? ': ' + plan.skipped[0].why : '') + '.'));
1321
+ var chips = el('ul', 'launch-steps');
1322
+ plan.steps.forEach(function (s, i) {
1323
+ var li = el('li');
1324
+ li.appendChild(el('b', null, (i < 9 ? '0' : '') + (i + 1)));
1325
+ li.appendChild(document.createTextNode(s.label));
1326
+ chips.appendChild(li);
1327
+ });
1328
+ plan.skipped.forEach(function (s) {
1329
+ var li = el('li', 'out', s.label);
1330
+ li.title = s.why;
1331
+ chips.appendChild(li);
1332
+ });
1333
+ text.appendChild(chips);
1334
+ box.appendChild(text);
1335
+ var go = el('div', 'launch-go');
1336
+ var b = el('button', 'btn go');
1337
+ b.type = 'button';
1338
+ b.setAttribute('data-action', 'everything');
1339
+ b.appendChild(icon('play', 18));
1340
+ b.appendChild(el('span', null, busy ? 'Checking...' : 'Check my app'));
1341
+ var arrow = icon('arrow', 18);
1342
+ arrow.setAttribute('class', 'go-arrow');
1343
+ b.appendChild(arrow);
1344
+ b.disabled = busy || !plan.steps.length;
1345
+ b.addEventListener('click', openEvery);
1346
+ go.appendChild(b);
1347
+ go.appendChild(el('div', 'launch-note', busy ? 'Running - follow it below' : plan.addsData ? 'Asks before adding test data' : 'Reads only'));
1348
+ box.appendChild(go);
1349
+ }
1299
1350
  function startEvery() {
1300
1351
  var plan = state.everything;
1301
1352
  everyOpen = false;
@@ -1357,6 +1408,7 @@
1357
1408
  var run = byId('runAll');
1358
1409
  if (!busy) { clear(run); run.appendChild(icon('play', 15)); run.appendChild(el('span', null, 'Check my app')); }
1359
1410
  renderEvery();
1411
+ renderLaunch();
1360
1412
  }
1361
1413
 
1362
1414
  /* ------------------------------ your app ------------------------------ */
@@ -318,6 +318,28 @@
318
318
  .every-why, .every-out li { color: var(--muted); }
319
319
  .every-out { font-size: 13px; line-height: 1.5; }
320
320
  .every-out ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
321
+ /* --- Check my app: the one press, made to be seen -------------------- */
322
+ .launch { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 40px; margin-bottom: 28px; padding: 38px 36px 40px; color: var(--on-dark); background: radial-gradient(90% 160% at 100% 0%, rgba(255, 77, 0, 0.34), rgba(255, 77, 0, 0) 60%), var(--ink); border-left: 3px solid var(--orange); }
323
+ .launch::after { content: ""; position: absolute; left: 0; top: 0; width: 34%; height: 2px; background: linear-gradient(90deg, rgba(255, 77, 0, 0), var(--orange), rgba(255, 77, 0, 0)); animation: sweep 3.6s var(--ease) infinite; }
324
+ @keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
325
+ .launch .eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--orange); }
326
+ .launch h2 { margin-top: 12px; color: var(--white); font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
327
+ .launch h2 em { font-style: normal; color: var(--orange); }
328
+ .launch p { max-width: 60ch; margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: rgba(233, 237, 242, 0.72); }
329
+ .launch-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
330
+ .launch-steps li { padding: 6px 10px; font: 10px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark); border: 1px solid var(--line-dark); background: rgba(233, 237, 242, 0.04); }
331
+ .launch-steps li b { margin-right: 6px; color: var(--orange); font-weight: 400; }
332
+ .launch-steps li.out { color: rgba(233, 237, 242, 0.4); border-style: dashed; }
333
+ .launch-go { display: grid; justify-items: center; gap: 10px; }
334
+ .btn.go { height: 68px; padding: 0 34px; gap: 12px; font-size: 13px; letter-spacing: 0.1em; color: var(--white); background: var(--orange); border-color: var(--orange); animation: ring 2.4s var(--ease) infinite; }
335
+ .btn.go:hover:not(:disabled) { color: var(--white); background: var(--orange-deep); border-color: var(--orange-deep); }
336
+ .btn.go .go-arrow { transition: transform 0.3s var(--ease); }
337
+ .btn.go:hover:not(:disabled) .go-arrow { transform: translateX(5px); }
338
+ .btn.go:disabled, #runAll:disabled { animation: none; }
339
+ .launch-note { font: 10px var(--mono); letter-spacing: 0.06em; color: rgba(233, 237, 242, 0.5); text-transform: uppercase; }
340
+ #runAll { animation: ring 2.4s var(--ease) infinite; }
341
+ @keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.55); } 70% { box-shadow: 0 0 0 16px rgba(255, 77, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0); } }
342
+ @media (max-width: 760px) { .launch { grid-template-columns: 1fr; padding: 28px 20px 30px; } .launch-go { justify-items: stretch; } .btn.go { width: 100%; } }
321
343
  .act { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
322
344
  .act .btn, .step .act .btn { margin-top: 0; }
323
345
  .step .act { margin-top: 14px; }
@@ -378,6 +400,7 @@
378
400
  <section class="job" id="job" hidden aria-live="polite"></section>
379
401
 
380
402
  <section class="view" id="view-dashboard">
403
+ <div class="launch" id="launch"></div>
381
404
  <div class="card app-card" id="appCard">
382
405
  <div class="card-head"><div><h3>Your app</h3><div class="c-sub">What this dashboard checks</div></div></div>
383
406
  <div id="appBox"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kryptheon",
3
- "version": "0.1.63",
3
+ "version": "0.1.64",
4
4
  "description": "Record what you do in your app and get plain-language reports when it breaks.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "commonjs",