create-pmos 0.601.0 → 0.603.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.
@@ -293,6 +293,10 @@ button.iv-bxw.jr:hover .iv-cb { box-shadow: 0 0 0 3px var(--cz-well); }
293
293
  /* batch 25 item 4 (TaskNamesWrap, agreed A): on a desktop a task's name is never cut in the Timeline either. It wraps in the name column;
294
294
  * the row grows and its bar stays in the middle. (A phone keeps each title on one line above its bar.) */
295
295
  @container (min-width: 521px) {
296
+ /* every row's timeline starts at exactly --nw, where the grid and the Today line are: the name cell's padding sits inside its width.
297
+ * Without it a task's bar drew 44 px (two days at Weeks) and an axis label 24 px after its day (batch 31 item 7). A stage row's
298
+ * timeline is placed at --nw on its own (.ivt-r.g .ivt-c), so its name cell keeps its size. */
299
+ .ivt-r:not(.g) > .ivt-n { box-sizing: border-box; }
296
300
  .ivt-r.k .ivt-n { padding-top: 7px; padding-bottom: 7px; }
297
301
  .ivt-r.k .ivt-n .iv-tt { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; line-height: 1.35; flex: 1 1 0; }
298
302
  /* the days of a hidden Start or Due column sit under the name, not beside it (the name keeps the width) */
@@ -168,7 +168,7 @@ export function headModel(M, now = Date.now()) {
168
168
  time = 'In ' + cur.label + ' for ' + plural(n, 'day', 'days') + (usual != null ? ' · usually ' + usual : ''); over = usual != null && n > usual;
169
169
  clock = { n, usual, over }; // stage card D: "4 of ~6 days", amber when over; only from a record that holds the day it entered
170
170
  } else if (finish && cur) {
171
- time = 'In ' + cur.label + ' · ' + finish; over = !!end && end < new Date(new Date(now).getFullYear(), new Date(now).getMonth(), new Date(now).getDate()) && life !== 'done';
171
+ time = 'In ' + cur.label + ' · ' + finish; over = !!end && end < new Date(new Date(now).getFullYear(), new Date(now).getMonth(), new Date(now).getDate()) && life !== 'done' && !head.closed;
172
172
  } else if (cur) time = 'In ' + cur.label + ' · time in this stage is not recorded';
173
173
  // one CTA: your step when it waits on you, else a question for the read-only agent
174
174
  const cta = turn === 'you' ? (CTA_SAY[step] || ('Open ' + (step || 'the next step'))) : turn === 'stalled' ? 'Ask what is stuck' : turn === 'jira' ? 'Ask about the tickets' : 'Ask what is next';
@@ -98,7 +98,7 @@ function skipsOf(parts, P, B) {
98
98
  /** The model of the line. See the head of this file. */
99
99
  export function lineOf(r, o = {}) {
100
100
  const t = day(o.today) || day(new Date()), list = o.list || [], ran = o.ran || [], rows = o.rows || [];
101
- const finished = r.status === 'done', ended = finished || !!r.ended || r.status === 'cancelled';
101
+ const finished = r.status === 'done' || !!r.closed, ended = finished || !!r.ended || r.status === 'cancelled'; // closed: its workflow's last stage (batch 31)
102
102
  const s0 = day(r.start), e0 = day(r.end), fc0 = r.track && day(r.track.forecast);
103
103
  const draft = !s0 && !e0 && r.draft && day(r.draft.start) ? { name: r.draft.name || 'Draft', a: day(r.draft.start), b: day(r.draft.end) || day(r.draft.start) } : null;
104
104
  const S = draft ? draft.a : s0, E = draft ? draft.b : e0;
@@ -142,7 +142,7 @@ export function lineOf(r, o = {}) {
142
142
 
143
143
  // the clock's place: a hold says when it comes back (the clock stops), done says when it ended, a draft names itself
144
144
  let chip = null;
145
- if (finished) chip = { text: E ? 'Done ' + md(E, t) : 'Done', tone: 'q' };
145
+ if (finished) { const D = day(o.doneAt) || E; chip = { text: D ? 'Done ' + md(D, t) : 'Done', tone: 'q' }; } // o.doneAt: when it really finished (ini-view-model.js finishOf)
146
146
  else if (openHold && openHold.kind === 'over') chip = { text: 'Back ' + md(day(openHold.h.back), t) + ' · ' + plural(days(day(openHold.h.back), t), 'day', 'days') + ' late', tone: 'late', pause: true };
147
147
  else if (openHold && openHold.kind === 'open') chip = { text: 'Back ' + md(openHold.b, t), tone: 'q', pause: true };
148
148
  else if (openHold) chip = { text: 'On hold', tone: 'q', pause: true };