@atolis-hq/wake 0.2.63 → 0.2.65

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.
@@ -156,7 +156,7 @@ export const indexHtml = `<!DOCTYPE html>
156
156
  const API = '/api/v1';
157
157
  const CONDITIONS = ['ready', 'scheduled', 'active', 'needs-human', 'error', 'finished'];
158
158
  let currentView = 'board';
159
- let analyticsWindow = '7d';
159
+ let analyticsWindow = '1d';
160
160
  let analyticsMetric = 'runs-over-time';
161
161
  let activeViewRequest = null;
162
162
  let activeViewRequestId = 0;
@@ -300,6 +300,7 @@ async function renderBoard(context) {
300
300
  ]);
301
301
  const columns = el('div', { class: 'columns' }, CONDITIONS.map((cond) => {
302
302
  const items = board.filter((c) => c.condition === cond);
303
+ if (cond === 'finished') items.sort((a, b) => a.timeInStageMs - b.timeInStageMs);
303
304
  const cards = items.map((item) => el('div', {
304
305
  class: 'card',
305
306
  onclick: () => openItemModal(item.repo, item.number),
@@ -307,7 +308,7 @@ async function renderBoard(context) {
307
308
  el('div', { class: 'title', text: item.repo + '#' + item.number + ' ' + item.title }),
308
309
  el('div', { class: 'meta' }, [
309
310
  el('span', { class: 'chip', text: item.stage }),
310
- document.createTextNode(fmtMs(item.timeInStageMs) + ' in stage'),
311
+ ...(cond !== 'finished' ? [document.createTextNode(fmtMs(item.timeInStageMs) + ' in stage')] : []),
311
312
  ]),
312
313
  ...(item.labels && item.labels.length > 0
313
314
  ? [el('div', { class: 'meta' }, item.labels.map((label) => el('span', { class: 'chip chip-label', text: label })))]
@@ -425,7 +425,7 @@ const metricsMetrics = new Set([
425
425
  'work-item-totals',
426
426
  ]);
427
427
  function parseMetricsWindow(value) {
428
- return metricsWindows.has(value) ? value : '7d';
428
+ return metricsWindows.has(value) ? value : '1d';
429
429
  }
430
430
  function parseMetricsMetric(value) {
431
431
  return metricsMetrics.has(value) ? value : 'runs-over-time';
@@ -124,4 +124,4 @@ export function resolveWakeVersion(options = {}) {
124
124
  }
125
125
  return '0.1.0-dev';
126
126
  }
127
- export const wakeVersion = "g1247508";
127
+ export const wakeVersion = "g004f53f";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atolis-hq/wake",
3
- "version": "0.2.63",
3
+ "version": "0.2.65",
4
4
  "description": "Local autonomous agent control plane for software development",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {