create-pmos 0.454.0 → 0.456.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/package.json +30 -25
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +29 -0
- package/workspace/guide/adler.md +5 -1
- package/workspace/guide/initiatives-screen.md +2 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/adler/01_expressions/celebrating-s.png +0 -0
- package/workspace/public/pm/adler/01_expressions/celebrating.png +0 -0
- package/workspace/public/pm/adler/01_expressions/handled-s.png +0 -0
- package/workspace/public/pm/adler/01_expressions/handled.png +0 -0
- package/workspace/public/pm/adler/01_expressions/honest-s.png +0 -0
- package/workspace/public/pm/adler/01_expressions/honest.png +0 -0
- package/workspace/public/pm/adler/01_expressions/needs_you-s.png +0 -0
- package/workspace/public/pm/adler/01_expressions/needs_you.png +0 -0
- package/workspace/public/pm/adler/01_expressions/resting-s.png +0 -0
- package/workspace/public/pm/adler/01_expressions/resting.png +0 -0
- package/workspace/public/pm/adler/01_expressions/thinking-s.png +0 -0
- package/workspace/public/pm/adler/01_expressions/thinking.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_honest-s.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_honest.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_listening-s.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_listening.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_resting-s.png +0 -0
- package/workspace/public/pm/adler/02_moments/headphones_resting.png +0 -0
- package/workspace/public/pm/adler/02_moments/hello_wave.png +0 -0
- package/workspace/public/pm/adler/02_moments/honest_full_figure.png +0 -0
- package/workspace/public/pm/adler/02_moments/leaf_tips_peeking.png +0 -0
- package/workspace/public/pm/adler/02_moments/morning_stretch.png +0 -0
- package/workspace/public/pm/adler/02_moments/peeking_up-s.png +0 -0
- package/workspace/public/pm/adler/02_moments/peeking_up.png +0 -0
- package/workspace/public/pm/adler/02_moments/tea_mug.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/clipboard.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/laptop_alert.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/laptop_resting.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_large-s.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_large.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_medium-s.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_medium.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_none-s.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_none.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_small-s.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/sprout_small.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/telescope-s.png +0 -0
- package/workspace/public/pm/adler/03_growth_activity/telescope.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/cloud_large.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/cloud_medium.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/cloud_small.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/crescent_stars.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/leaf_green.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/leaf_orange.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/leaf_pink.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/rain_cloud.png +0 -0
- package/workspace/public/pm/adler/04_weather_leaves/sun.png +0 -0
- package/workspace/public/pm/adler/05_space/lunar_ground.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_cloud.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_crater.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_glass.png +0 -0
- package/workspace/public/pm/adler/05_space/planet_smooth.png +0 -0
- package/workspace/public/pm/adler/05_space/rocket_flying.png +0 -0
- package/workspace/public/pm/adler/05_space/rocket_idle.png +0 -0
- package/workspace/public/pm/adler/05_space/rocket_liftoff.png +0 -0
- package/workspace/public/pm/adler/05_space/satellite.png +0 -0
- package/workspace/public/pm/adler/05_space/satellite_dish.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/beach.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/deciduous_forest.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/desert_large.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/desert_small.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/floating_island_large.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/floating_island_small.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/lake.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/pine_forest.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/snow_forest.png +0 -0
- package/workspace/public/pm/adler/06_landscapes/snow_mountains.png +0 -0
- package/workspace/public/pm/adler/07_wearables/astronaut_helmet.png +0 -0
- package/workspace/public/pm/adler/07_wearables/beanie_blue.png +0 -0
- package/workspace/public/pm/adler/07_wearables/beanie_red.png +0 -0
- package/workspace/public/pm/adler/07_wearables/hard_hat.png +0 -0
- package/workspace/public/pm/adler/07_wearables/headband.png +0 -0
- package/workspace/public/pm/adler/07_wearables/party_hat_blue.png +0 -0
- package/workspace/public/pm/adler/07_wearables/party_hat_multicolor.png +0 -0
- package/workspace/public/pm/adler/07_wearables/pencil.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_black_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_blue.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_blue_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_green_red.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_green_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_red_white.png +0 -0
- package/workspace/public/pm/adler/07_wearables/scarf_yellow.png +0 -0
- package/workspace/public/pm/adler/07_wearables/straw_hat.png +0 -0
- package/workspace/public/pm/adler/07_wearables/yellow_flowers.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/apple.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/cooking_pot.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/cupcake.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/diya.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/egg.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/heart_mug.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/ketupat.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/lotus.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/mandarins.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/mooncake.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/pie.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/pinwheel.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/popcorn.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/red_lantern.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/tangyuan.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/watering_can.png +0 -0
- package/workspace/public/pm/adler/08_food_festival/zongzi.png +0 -0
- package/workspace/public/pm/adler/09_celebration/bunting.png +0 -0
- package/workspace/public/pm/adler/09_celebration/clapperboard.png +0 -0
- package/workspace/public/pm/adler/09_celebration/fireworks.png +0 -0
- package/workspace/public/pm/adler/09_celebration/flower_garland.png +0 -0
- package/workspace/public/pm/adler/09_celebration/gift.png +0 -0
- package/workspace/public/pm/adler/09_celebration/lantern_pair.png +0 -0
- package/workspace/public/pm/adler/09_celebration/moon_cloud.png +0 -0
- package/workspace/public/pm/adler/09_celebration/pumpkin.png +0 -0
- package/workspace/public/pm/adler/09_celebration/soccer_ball.png +0 -0
- package/workspace/public/pm/adler/09_celebration/string_lights.png +0 -0
- package/workspace/public/pm/adler/09_celebration/umbrella.png +0 -0
- package/workspace/public/pm/adler/10_marks/attention_marks.png +0 -0
- package/workspace/public/pm/adler/10_marks/gold_heart.png +0 -0
- package/workspace/public/pm/adler/10_marks/gold_sparkles.png +0 -0
- package/workspace/public/pm/adler/10_marks/gold_star.png +0 -0
- package/workspace/public/pm/adler/10_marks/question_mark.png +0 -0
- package/workspace/public/pm/adler/10_marks/sleep_curls.png +0 -0
- package/workspace/public/pm/adler/manifest.json +830 -517
- package/workspace/public/pm/cozy-adler.js +10 -6
- package/workspace/public/pm/ini-view.css +14 -5
- package/workspace/public/pm/ini-view.js +4 -8
- package/workspace/stage-card-test.js +7 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* pm/cozy-adler.js — Adler, Claude's face in PMOS (feedback batch 16 item 2; spec adler-character/ADLER-SYSTEM.md). Wawan's own art, since
|
|
2
|
-
* 2026-10-29 the blue Adler: 103 PNGs (
|
|
2
|
+
* 2026-10-29 the blue Adler: 103 PNGs (served at 256 px, RGBA; every place and box below is in 512 units, so the file size does not matter to it) in pm/adler/<category>/<name>.png, listed in pm/adler/manifest.json. Each drawing is still
|
|
3
3
|
* an inline <svg class="ad-svg ...">, so every page's CSS and every selector keeps working; the SVG now holds <image>s of the PNGs, and a
|
|
4
4
|
* charm is a PNG placed over the figure.
|
|
5
5
|
*
|
|
@@ -72,8 +72,12 @@ const ART = {
|
|
|
72
72
|
gold_heart:['10_marks',56,96,456,419],question_mark:['10_marks',106,49,407,478],attention_marks:['10_marks',77,89,430,403],
|
|
73
73
|
sleep_curls:['10_marks',135,105,394,436],gold_sparkles:['10_marks',82,105,460,430],
|
|
74
74
|
};
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
/* The faces drawn at 24-64 px (the S and M faces, the peek, the telescope as the empty search) have a 96 px copy, <name>-s.png, so a toast does not
|
|
76
|
+
* fetch a 256 px file for a 24 px picture (scripts/slim-adler-art.py makes both; the manifest lists each copy under "small"). */
|
|
77
|
+
const SMALL = new Set(['handled', 'celebrating', 'thinking', 'needs_you', 'honest', 'resting', 'headphones_listening', 'headphones_resting', 'headphones_honest',
|
|
78
|
+
'sprout_none', 'sprout_small', 'sprout_medium', 'sprout_large', 'telescope', 'peeking_up']);
|
|
79
|
+
/** The PNG's own address, or '' for a name PMOS does not have. small: the 96 px copy, for a picture drawn at 64 px or less. */
|
|
80
|
+
export const artUrl = (name, small) => (ART[name] ? `${BASE}${ART[name][0]}/${name}${small && SMALL.has(name) ? '-s' : ''}.png` : '');
|
|
77
81
|
export const ART_NAMES = Object.freeze(Object.keys(ART));
|
|
78
82
|
const r1 = (v) => Math.round(v * 10) / 10;
|
|
79
83
|
const tw = (i) => (i % 3 ? ' d' + (i % 3 + 1) : '');
|
|
@@ -86,7 +90,7 @@ export function put(name, x, y, w, o = {}) {
|
|
|
86
90
|
+ `${o.rot ? ` transform="rotate(${o.rot} ${r1(x)} ${r1(y)})"` : ''}${o.op ? ` opacity="${o.op}"` : ''}${o.cls ? ` class="${o.cls}"` : ''}/>`;
|
|
87
91
|
}
|
|
88
92
|
/** A whole PNG file, edge to edge, in a 512 square (the figure and the face). */
|
|
89
|
-
const whole = (name, cls) => `<image href="${artUrl(name)}" x="0" y="0" width="512" height="512" decoding="async"${cls ? ` class="${cls}"` : ''}/>`;
|
|
93
|
+
const whole = (name, cls, small) => `<image href="${artUrl(name, small)}" x="0" y="0" width="512" height="512" decoding="async"${cls ? ` class="${cls}"` : ''}/>`;
|
|
90
94
|
const F = (k) => `adf-${k}`, S = (k) => `ads-${k}`;
|
|
91
95
|
|
|
92
96
|
/* Which PNG is him, by mood (the inner words of INNER), prop and growth. The headphones mean a meeting records; the telescope is the
|
|
@@ -340,7 +344,7 @@ export function adler(mood, size = 'm', o = {}) {
|
|
|
340
344
|
const worn = figure ? c : hat ? c : null;
|
|
341
345
|
const extra = [o.prop === 'headphones' ? 'listening' : o.prop === 'magnifier' ? 'searching' : '', worn ? 'dressed for ' + worn.ch.name : ''].filter(Boolean).join(', ');
|
|
342
346
|
const art = pose(m, o.prop, figure ? null : o.grow);
|
|
343
|
-
const grew = o.growNew && o.grow && !figure ? `<g class="ad-gw">${whole(art)}</g>` : whole(art);
|
|
347
|
+
const grew = o.growNew && o.grow && !figure ? `<g class="ad-gw">${whole(art, '', true)}</g>` : whole(art, '', figure ? false : true);
|
|
344
348
|
if (!figure) return `<svg class="${cls} ad-face" width="${px}" height="${px}" viewBox="22 26 488 488" overflow="visible" ${labelAttr(o, mood, extra)}>${grew}${hat}</svg>`;
|
|
345
349
|
return `<svg class="${cls} ad-fig" width="${px}" height="${px}" viewBox="0 0 512 512" overflow="visible" ${labelAttr(o, mood, extra)}>`
|
|
346
350
|
+ `<ellipse cx="262" cy="488" rx="170" ry="14" class="${F('shadow')}" opacity=".14"/><g class="ad-br">${m === 'joy' ? sparkles() : ''}${whole(art)}${wear(m, o.prop, c)}</g></svg>`;
|
|
@@ -352,7 +356,7 @@ export const faceOr = (mood, size, icon, o = {}) => (P['adler.amount'] === 'off'
|
|
|
352
356
|
export function adlerPeek(o = {}) {
|
|
353
357
|
addCss();
|
|
354
358
|
if (P['adler.amount'] !== 'full') return '';
|
|
355
|
-
return `<svg class="ad-svg am m-ask ad-peek" width="44" height="22" viewBox="37 179 466 233" overflow="hidden" ${labelAttr({ label: o.label || 'Adler, one call is yours' }, 'needs-you')}>${whole('peeking_up')}</svg>`;
|
|
359
|
+
return `<svg class="ad-svg am m-ask ad-peek" width="44" height="22" viewBox="37 179 466 233" overflow="hidden" ${labelAttr({ label: o.label || 'Adler, one call is yours' }, 'needs-you')}>${whole('peeking_up', '', true)}</svg>`;
|
|
356
360
|
}
|
|
357
361
|
|
|
358
362
|
const grass = (x, y, s = 1, d = '') => `<g class="env-sway${d}"><path d="M${x} ${y} q -3 -${14 * s} -9 -${20 * s} M${x} ${y} q 1 -${18 * s} 4 -${24 * s} M${x} ${y} q 4 -${10 * s} 11 -${15 * s}" class="${S('grass')}" stroke-width="2.4" fill="none" stroke-linecap="round"/></g>`;
|
|
@@ -870,12 +870,9 @@ button.iva-tb:hover, button.iva-r.g:not(:disabled):hover { filter: brightness(.9
|
|
|
870
870
|
.iv { container: iv / inline-size; }
|
|
871
871
|
.iv-cols { display: flex; flex-direction: column; gap: 12px; }
|
|
872
872
|
.iv-cl, .iv-cr { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
|
873
|
-
/*
|
|
873
|
+
/* One reading column: the summary and milestones lead into full-width Tasks. */
|
|
874
874
|
@container iv (min-width: 820px) {
|
|
875
|
-
.iv-
|
|
876
|
-
.iv-cl { position: sticky; top: 0; }
|
|
877
|
-
/* Tasks starts level with the card (canvas v582), fills the Viewer's height and scrolls on its own */
|
|
878
|
-
.iv-cr > .iv-tasks { height: var(--iv-h, auto); overflow-y: auto; overscroll-behavior: contain; flex: none; }
|
|
875
|
+
.iv-cr > .iv-tasks { height: auto; overflow: visible; }
|
|
879
876
|
.iv-cl > .iv-msc { display: flex; }
|
|
880
877
|
}
|
|
881
878
|
/* the Milestones card under the card, desktop only (Wawan 10:53, canvas v586): a green tick when done, the next in blue */
|
|
@@ -984,6 +981,18 @@ button.iv-mt.iv-wf { padding: 0 !important; margin: 0 !important; }
|
|
|
984
981
|
.iv-mio-h .iv-dtc { display: block !important; line-height: 36px; white-space: nowrap; min-width: 0; max-width: 100%; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
|
|
985
982
|
.iv-mio-h .iv-mo, .iv-mio-h .iv-scgo { flex: none; }
|
|
986
983
|
.iv-dtc.w { color: var(--cz-late) !important; }
|
|
984
|
+
/* Desktop summary: keep the illustration small instead of stretching it across the page. */
|
|
985
|
+
@container iv (min-width: 820px) {
|
|
986
|
+
.iv-card .iv-mis { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 20px; align-items: center; }
|
|
987
|
+
.iv-card .iv-mis > .iv-mi { grid-column: 1; grid-row: 1 / span 2; margin: 0; border-radius: 12px; }
|
|
988
|
+
.iv-card .iv-mis > .iv-sch { display: flex; grid-column: 2; grid-row: 1; }
|
|
989
|
+
.iv-mis .iv-shn { display: inline-flex; }
|
|
990
|
+
.iv-mis .iv-mi-nm { display: none; }
|
|
991
|
+
.iv-card .iv-mis > .iv-mio { grid-column: 2; grid-row: 2; }
|
|
992
|
+
.iv-card:not(:has(.iv-ask, .iv-win)) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 20px; }
|
|
993
|
+
.iv-card:not(:has(.iv-ask, .iv-win)) > .iv-hr { display: none; }
|
|
994
|
+
.iv-card:not(:has(.iv-ask, .iv-win)) > .iv-meta { max-width: 240px; flex-wrap: wrap; }
|
|
995
|
+
}
|
|
987
996
|
/* a real win (XvpE5Adler 1): he stands in the card with a soft green glow, his thanks and the one primary */
|
|
988
997
|
.iv-win { display: flex; align-items: flex-end; gap: 12px; position: relative; }
|
|
989
998
|
.iv-wfig { flex: none; position: relative; }
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
*
|
|
6
6
|
* viewHtml(v, o) the body: the card (batch 18 item 1, XvpA1: Adler's ask with the one primary, the meta line of icons, then the
|
|
7
7
|
* mission, pm/mission.js, in the stage line's place), then Tasks as the WBS (sections in workflow order), then Documents
|
|
8
|
-
* and Linked as folds.
|
|
9
|
-
*
|
|
8
|
+
* and Linked as folds. The compact desktop summary and milestones sit above full-width Tasks.
|
|
9
|
+
* Under the card, the success measure Claude drafted from the PRD (pm/metric-drafts.js, GET
|
|
10
10
|
* /api/metric-drafts scope initiative): the proposal, or once kept its fold with Undo; nothing when nothing is drafted.
|
|
11
11
|
* o: { add (the Tasks + icon), adding (the inline field is open), next (the next stage is a press: Home's move sheet), openTask, docs: { n, html? } | null,
|
|
12
12
|
* quick (each task's box carries the status caret and its date is a press: the host has h.status and h.dates),
|
|
@@ -361,8 +361,7 @@ export function viewHtml(v, o = {}) {
|
|
|
361
361
|
if (v && v.id) VIEWED.set(v.id, v);
|
|
362
362
|
// a merged initiative leads with where its work went, and draws no stage or tasks (they moved; its folds stay); an open one shows Claude's split or merge card under the summary (batch 11 item 14)
|
|
363
363
|
if (v.merged) return `<div class="iv" data-iv="${esc(v.id || v.key || '')}"><div class="iv-cols"><div class="iv-cl">${smMerged(v.merged)}</div><div class="iv-cr">${foldsHtml(v, o)}${o.tail || ''}</div></div></div>`;
|
|
364
|
-
//
|
|
365
|
-
// for it on the left, Tasks on the right from the same top (canvas v582), as one panel with its own scroll; one column below it
|
|
364
|
+
// One reading column: summary, milestones and proposals, then content-sized Tasks and document folds.
|
|
366
365
|
return `<div class="iv" data-iv="${esc(v.id || v.key || '')}"><div class="iv-cols"><div class="iv-cl">${cardHtml(v, o)}${msCardHtml(v, o)}${o.sm !== false ? smCard(v.suggest, v.title) : ''}${MD.iniHtml(v.id, '', v.title)}</div>`
|
|
367
366
|
+ `<div class="iv-cr"><section class="iv-tasks" aria-label="Tasks">${tasksHtml(v, o)}</section>${foldsHtml(v, o)}${o.tail || ''}</div></div></div>`;
|
|
368
367
|
}
|
|
@@ -382,10 +381,7 @@ export function wireView(body, h) {
|
|
|
382
381
|
body.__ivWired = true;
|
|
383
382
|
// the ✦ after the title and the drafted measure follow each draw
|
|
384
383
|
if (typeof MutationObserver === 'function') {
|
|
385
|
-
|
|
386
|
-
const tall = () => { const iv = body.querySelector('.iv'); if (!iv) return; const top = iv.getBoundingClientRect().top - body.getBoundingClientRect().top + body.scrollTop;
|
|
387
|
-
const h = Math.max(320, Math.round(body.clientHeight - top - 16)); if (iv.style.getPropertyValue('--iv-h') !== h + 'px') iv.style.setProperty('--iv-h', h + 'px'); };
|
|
388
|
-
let q = 0; const fit = () => { if (q) return; q = requestAnimationFrame(() => { q = 0; chip(); tall(); }); };
|
|
384
|
+
let q = 0; const fit = () => { if (q) return; q = requestAnimationFrame(() => { q = 0; chip(); }); };
|
|
389
385
|
new MutationObserver(fit).observe(body, { childList: true, subtree: true });
|
|
390
386
|
if (typeof ResizeObserver === 'function') new ResizeObserver(fit).observe(body);
|
|
391
387
|
fit();
|
|
@@ -193,6 +193,13 @@ async function pure() {
|
|
|
193
193
|
ok('D1b the Milestones card sits under the card: "Milestones 1 of 3 done", the done one ticked', !!mc && mc.after && /^Milestones ?1 of 3 done$/.test(mc.head) && mc.tick === 1 && /^dn:Brief signed off/.test(mc.rows[0]), JSON.stringify(mc));
|
|
194
194
|
ok('D1b the next one is marked with "in N days", and the release says so', !!mc && /^up:Rollout to all workspacesDec 1 · in \d+ days · release$/.test(mc.rows[1]) && /^:Did it work\?Feb 1/.test(mc.rows[2]), JSON.stringify(mc && mc.rows));
|
|
195
195
|
ok('D1b each row is a press for its task', !!mc && mc.press, JSON.stringify(mc));
|
|
196
|
+
const layout = await p.evaluate((v) => {
|
|
197
|
+
const root = document.querySelector(v + ' .iv'), summary = root.querySelector('.iv-cl'), tasks = root.querySelector('.iv-tasks'), picture = root.querySelector('.iv-mi');
|
|
198
|
+
const s = summary.getBoundingClientRect(), t = tasks.getBoundingClientRect(), pic = picture.getBoundingClientRect();
|
|
199
|
+
return { stacked: t.top >= s.bottom, full: Math.abs(t.width - s.width) < 2, compact: pic.width <= 261 && pic.height < 150,
|
|
200
|
+
scroll: getComputedStyle(tasks).overflowY, overflow: root.scrollWidth > root.clientWidth };
|
|
201
|
+
}, V);
|
|
202
|
+
ok('D1b desktop puts full-width Tasks below a compact summary, with one page scroll', layout.stacked && layout.full && layout.compact && layout.scroll === 'visible' && !layout.overflow, JSON.stringify(layout));
|
|
196
203
|
// Wawan 11:58 (0.442.0 hotfix): in two columns the dates line, ⋯ and the next stage show under the picture without a tap, and the
|
|
197
204
|
// milestones are said once, in this card; a tap on the picture does not list them again
|
|
198
205
|
ok('D1b in two columns the dates line and the next stage show under the picture at once', await miShown(p) && await p.evaluate((v) => { const n = document.querySelector(v + ' .iv-sc [data-iv-next]'); return !!n && !!n.offsetParent; }, V));
|