create-pmos 0.644.0 → 0.646.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.
Files changed (33) hide show
  1. package/package.json +27 -33
  2. package/payload/KIT-VERSION +1 -1
  3. package/payload/design-system/charts/README.md +2 -1
  4. package/payload/design-system/charts/components/Funnel/README.md +50 -0
  5. package/payload/design-system/charts/components/Funnel/preview.html +11 -0
  6. package/payload/design-system/charts/components/bundle.css +1 -0
  7. package/payload/design-system/charts/components/bundle.js +20 -1
  8. package/payload/design-system/charts/spec.md +2 -1
  9. package/payload/planning/evals/eval-calibration.md +1 -1
  10. package/payload/planning/okrs/health-budgets.md +1 -1
  11. package/payload/state/discoveries.md +1 -1
  12. package/workspace/changelog.json +26 -0
  13. package/workspace/design-system/charts/README.md +2 -1
  14. package/workspace/design-system/charts/components/Funnel/README.md +50 -0
  15. package/workspace/design-system/charts/components/Funnel/preview.html +11 -0
  16. package/workspace/design-system/charts/components/bundle.css +1 -0
  17. package/workspace/design-system/charts/components/bundle.js +20 -1
  18. package/workspace/design-system/charts/spec.md +2 -1
  19. package/workspace/guide/layout.md +15 -12
  20. package/workspace/package-lock.json +2 -2
  21. package/workspace/package.json +1 -1
  22. package/workspace/public/pm/charts.css +1 -0
  23. package/workspace/public/pm/cozy-today-app.js +10 -5
  24. package/workspace/public/pm/cozy-today-model.js +11 -5
  25. package/workspace/public/pm/cozy-today-page.css +50 -135
  26. package/workspace/public/pm/cozy-today-view.js +147 -98
  27. package/workspace/public/pm/cozy-vw-mtg.css +87 -74
  28. package/workspace/public/pm/cozy-vw-rp.css +52 -45
  29. package/workspace/public/pm/cozy-vw.css +83 -74
  30. package/workspace/public/pm/premium-vw-cal.css +21 -15
  31. package/workspace/public/pm/premium-vw-meet.css +11 -11
  32. package/workspace/public/pm/premium-vw-rec.css +11 -11
  33. package/workspace/public/pm/premium-vw-report.css +14 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-pmos",
3
- "version": "0.644.0",
3
+ "version": "0.646.0",
4
4
  "description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -33,6 +33,32 @@
33
33
  "audit"
34
34
  ],
35
35
  "pmosChanges": [
36
+ {
37
+ "v": "0.646.0",
38
+ "at": "2026-11-20T03:32:31.987Z",
39
+ "f": 4,
40
+ "prs": [
41
+ {
42
+ "n": 1428,
43
+ "t": "Today is built from the design system's blocks",
44
+ "s": "Today is built from the design system's blocks",
45
+ "k": "new"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "v": "0.645.0",
51
+ "at": "2026-11-20T02:59:30.947Z",
52
+ "f": 4,
53
+ "prs": [
54
+ {
55
+ "n": 1427,
56
+ "t": "The Viewer card's parts on the PMOS design system, and the Funnel chart kind",
57
+ "s": "The Viewer card's parts on the PMOS design system, and the Funnel chart kind",
58
+ "k": "new"
59
+ }
60
+ ]
61
+ },
36
62
  {
37
63
  "v": "0.644.0",
38
64
  "at": "2026-11-20T02:28:58.438Z",
@@ -290,38 +316,6 @@
290
316
  "k": "new"
291
317
  }
292
318
  ]
293
- },
294
- {
295
- "v": "0.619.0",
296
- "at": "2026-11-19T04:21:53.302Z",
297
- "f": 4,
298
- "prs": [
299
- {
300
- "n": 1401,
301
- "t": "A task on Today opens the small task popup on top of its initiative",
302
- "s": "A task on Today opens the small task popup on top of its initiative",
303
- "k": "new"
304
- }
305
- ]
306
- },
307
- {
308
- "v": "0.618.0",
309
- "at": "2026-11-19T04:00:56.732Z",
310
- "f": 4,
311
- "prs": [
312
- {
313
- "n": 1400,
314
- "t": "A key result waits on Confluence, not on a raw page id",
315
- "s": "A key result waits on Confluence, not on a raw page id",
316
- "k": "fix"
317
- },
318
- {
319
- "n": 1391,
320
- "t": "Popup round 3 follow-up (stage-move day, task popup, phone chat, one task list)",
321
- "s": "Popup round 3 follow-up (stage-move day, task popup, phone chat, one task list)",
322
- "k": "new"
323
- }
324
- ]
325
319
  }
326
320
  ]
327
321
  }
@@ -1,3 +1,3 @@
1
- kernel-source: pmos@36174d14
1
+ kernel-source: pmos@206e0237
2
2
  assembled: 2026-11-20
3
3
  mode: vendor
@@ -21,7 +21,7 @@ Each level is made only from the levels above it.
21
21
  | --- | --- | --- |
22
22
  | 0 · Foundations | Roles (`chart-*`, `diagram-*`) and the three media with their sizes. Colours and fonts come from Komorebi. | Roles, Media |
23
23
  | 1 · Elements | The smallest pieces of a chart. | Marks, Labels, Controls |
24
- | 2 · Charts | Seven chart kinds. | Bar, BarGoal, Line, StackedBar, HorizontalBar, Meter, Sparkline |
24
+ | 2 · Charts | Eight chart kinds. | Bar, BarGoal, Line, StackedBar, HorizontalBar, Funnel, Meter, Sparkline |
25
25
  | 3 · Diagrams | Four diagram kinds. | Flow, Swimlane, Timeline, DateRanges |
26
26
  | 4 · Placements | Where a chart sits in each system. | InBlock (workspace), OnSlide (decks), OnPage (documents) |
27
27
 
@@ -36,6 +36,7 @@ Each level is made only from the levels above it.
36
36
  | How is it moving over time, against plan? | Line |
37
37
  | What share is done, in progress, at risk? | StackedBar |
38
38
  | Which one is biggest or slowest? | HorizontalBar |
39
+ | Where do people leave on the way to done? | Funnel |
39
40
  | How is a number trending, at a glance? | Sparkline beside the number |
40
41
  | How does work move? Who does what? | Flow, Swimlane |
41
42
  | When do things happen? What is late? | Timeline, DateRanges |
@@ -0,0 +1,50 @@
1
+ ---
2
+ type: Reference
3
+ title: "PMOS Charts: Funnel"
4
+ description: "Steps from first view to done: one bar per step, with the drop from the step before written under it in `alert` (\"−39%\"). The target after a change is a dashed `chart-done` outline on each bar (`\"target\"`, one value per step). One step is lit: the one the answer is about. At most 6 steps. Moved here from PMOS Slides, which draws it on its Funnel and Bet slides."
5
+ timestamp: 2026-11-20
6
+ ---
7
+ Steps from first view to done: one bar per step, with the drop from the step before written under it in `alert` ("−39%"). The target after a change is a dashed `chart-done` outline on each bar (`"target"`, one value per step). One step is lit: the one the answer is about. At most 6 steps. Moved here from PMOS Slides, which draws it on its Funnel and Bet slides.
8
+
9
+ ## Interaction
10
+
11
+ The same as every chart: hover or touch for the value, click to open the items behind a mark, Left and Right to move, Enter to open, Esc to leave. On a slide only the light moves; on a page nothing moves and every value is printed.
12
+
13
+ ## Spec
14
+
15
+ ```json
16
+ {
17
+ "kind": "funnel",
18
+ "answer": "Most people leave at the sign-in method and the form",
19
+ "unit": "%",
20
+ "x": [
21
+ "Viewed",
22
+ "Picked method",
23
+ "Filled form",
24
+ "Consent",
25
+ "Signed up"
26
+ ],
27
+ "series": [
28
+ {
29
+ "name": "People",
30
+ "role": "read",
31
+ "values": [
32
+ 100,
33
+ 61,
34
+ 34,
35
+ 30,
36
+ 26
37
+ ]
38
+ }
39
+ ],
40
+ "target": [
41
+ null,
42
+ 70,
43
+ 50,
44
+ 40,
45
+ 35
46
+ ],
47
+ "lit": 4,
48
+ "source": "Sign-up events, GA, Apr 2024 to Mar 2025"
49
+ }
50
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- @dsCard group="2 · Charts" height=260 -->
2
+ <!doctype html>
3
+ <html>
4
+ <head><meta charset="utf-8"><title>Funnel</title></head>
5
+ <body>
6
+ <div class="pcx">
7
+ <div data-pc="{&quot;kind&quot;: &quot;funnel&quot;, &quot;answer&quot;: &quot;Most people leave at the sign-in method and the form&quot;, &quot;unit&quot;: &quot;%&quot;, &quot;x&quot;: [&quot;Viewed&quot;, &quot;Picked method&quot;, &quot;Filled form&quot;, &quot;Consent&quot;, &quot;Signed up&quot;], &quot;series&quot;: [{&quot;name&quot;: &quot;People&quot;, &quot;role&quot;: &quot;read&quot;, &quot;values&quot;: [100, 61, 34, 30, 26]}], &quot;target&quot;: [null, 70, 50, 40, 35], &quot;lit&quot;: 4, &quot;source&quot;: &quot;Sign-up events, GA, Apr 2024 to Mar 2025&quot;}" data-medium="screen" data-height="240"></div>
8
+ </div>
9
+ <script>PMOSCharts.mount(document)</script>
10
+ </body>
11
+ </html>
@@ -27,6 +27,7 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
27
27
  .pc-plot .pc-sel{stroke:var(--chart-done);stroke-width:3;paint-order:stroke}
28
28
  text.pc-l{fill:var(--muted);font-family:var(--font-sans)}
29
29
  text.pc-ink{fill:var(--ink)}
30
+ text.pc-drop{fill:var(--alert);font-weight:600;font-family:var(--font-sans);font-variant-numeric:tabular-nums}
30
31
  text.pc-v{fill:var(--ink);font-weight:600;font-family:var(--font-sans);font-variant-numeric:tabular-nums}
31
32
  .pc-tip{position:absolute;z-index:2;pointer-events:none;white-space:nowrap;background:var(--card);color:var(--ink);font-size:13px;line-height:20px;padding:4px 10px;border-radius:var(--radius-md,10px);box-shadow:var(--lift);font-variant-numeric:tabular-nums}
32
33
  .pc-tabs{display:inline-flex;gap:2px;padding:3px;background:var(--well);border-radius:var(--radius-md,10px)}
@@ -13,7 +13,7 @@ var MED={
13
13
  function esc(s){return String(s==null?'':s).replace(/[&<>"]/g,function(c){return{'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'}[c]})}
14
14
  function num(v){return (Math.round(v*10)/10).toLocaleString('en-GB')}
15
15
  function fmt(v,u){return num(v)+(u?' '+u:'')}
16
- var BARS={bar:1,goal:1,stack:1,hbar:1}, DIAG={flow:1,swimlane:1,timeline:1,ranges:1};
16
+ var BARS={bar:1,goal:1,stack:1,hbar:1,funnel:1}, DIAG={flow:1,swimlane:1,timeline:1,ranges:1};
17
17
 
18
18
  function render(el, spec, opts){
19
19
  opts=opts||{};
@@ -119,6 +119,25 @@ function chart(d,spec,m,medium,w,h,st){
119
119
  g.horiz=true; g.tip=function(i){return x[i]+' · '+fmt(vals[i],u)};
120
120
  return {svg:svg(w,H2,o),g:g};
121
121
  }
122
+ if(kind==='funnel'){
123
+ // steps from first view to done: one bar per step, the drop from the step before written under it in alert,
124
+ // the target after the change as a dashed chart-done outline on each bar, one lit step
125
+ var fv=all[0].values, tg=spec.target||[], fmx=Math.max.apply(0,fv.concat(tg.filter(function(v){return v!=null})))*1.1;
126
+ var fT=m.value*2, fB=L*3.8, fih=h-fT-fB, fband=w/n, fbw=Math.min(fband*.62,m.value*7);
127
+ var FX=function(i){return fband*i+(fband-fbw)/2}, FY=function(v){return fT+fih*(1-v/fmx)};
128
+ var drop=function(i){return i&&fv[i-1]?Math.round((1-fv[i]/fv[i-1])*100):0};
129
+ o.push('<line x1="0" x2="'+w+'" y1="'+(fT+fih)+'" y2="'+(fT+fih)+'" class="s-grid"/>');
130
+ for(var f=0;f<n;f++){var fr=d.risk.indexOf(f)>=0?'risk':(f===lit?'read':'rest'), fhl=(f===st.hov||f===st.sel)?' pc-hl':'';
131
+ o.push('<rect x="'+FX(f).toFixed(1)+'" y="'+FY(fv[f]).toFixed(1)+'" width="'+fbw.toFixed(1)+'" height="'+Math.max(1,fT+fih-FY(fv[f])).toFixed(1)+'" rx="'+m.bar+'" class="f-'+fr+fhl+(f===lit?' pc-lit':'')+(f===st.sel?' pc-sel':'')+'"/>');
132
+ if(tg[f]!=null){var ty=FY(tg[f]),sw=Math.max(1.5,m.stroke*.7);o.push('<path d="M'+(FX(f)+sw/2).toFixed(1)+' '+(fT+fih).toFixed(1)+' V'+(ty+m.bar).toFixed(1)+' Q'+(FX(f)+sw/2).toFixed(1)+' '+ty.toFixed(1)+' '+(FX(f)+m.bar).toFixed(1)+' '+ty.toFixed(1)+' H'+(FX(f)+fbw-m.bar).toFixed(1)+' Q'+(FX(f)+fbw-sw/2).toFixed(1)+' '+ty.toFixed(1)+' '+(FX(f)+fbw-sw/2).toFixed(1)+' '+(ty+m.bar).toFixed(1)+' V'+(fT+fih).toFixed(1)+'" fill="none" class="s-done" stroke-width="'+sw+'" stroke-dasharray="'+(sw*3)+' '+(sw*2.4)+'"/>')}
133
+ t(FX(f)+fbw/2,Math.min(FY(fv[f]),tg[f]!=null?FY(tg[f]):1e9)-L*.5,fmt(fv[f],u==='%'?'':u)+(u==='%'?'%':''),f===lit?'pc-v':'pc-l pc-ink','middle');
134
+ t(FX(f)+fbw/2,fT+fih+L*1.5,x[f],f===lit?'pc-l pc-ink':'pc-l','middle');
135
+ if(drop(f)>0) t(FX(f)+fbw/2,fT+fih+L*2.9,'−'+drop(f)+'%','pc-drop','middle');
136
+ g.pts.push([FX(f)+fbw/2,FY(fv[f])]);}
137
+ g.tip=function(i){var s=x[i]+' · '+fmt(fv[i],u==='%'?'':u)+(u==='%'?'%':'');if(drop(i)>0)s+=' · −'+drop(i)+'% from '+x[i-1];if(tg[i]!=null)s+=' · target '+num(tg[i])+(u==='%'?'%':(u?' '+u:''));return s};
138
+ g.open=function(i){return 'Opened the items behind '+x[i]+' beside the chart.'};
139
+ return {svg:svg(w,h,o),g:g};
140
+ }
122
141
  var T=m.value*2, B=L*2.2, R=(kind==='line'||kind==='stack')?L*7:(d.goal!=null?L*6:L*.5), Lp=kind==='line'?L*2.4:0;
123
142
  var ih=h-T-B;
124
143
  if(kind==='line'){
@@ -10,7 +10,7 @@ One JSON object describes a chart or diagram. PMOS writes it from records; every
10
10
 
11
11
  ```json
12
12
  {
13
- "kind": "bar | goal | line | stack | hbar | meter | spark | flow | swimlane | timeline | ranges",
13
+ "kind": "bar | goal | line | stack | hbar | funnel | meter | spark | flow | swimlane | timeline | ranges",
14
14
  "answer": "The sentence the chart proves",
15
15
  "unit": "items",
16
16
  "x": ["10 Nov", "11 Nov"],
@@ -25,6 +25,7 @@ One JSON object describes a chart or diagram. PMOS writes it from records; every
25
25
 
26
26
  - `lit` is the index of the one bar or point the answer is about. Default: the latest.
27
27
  - `risk` lists indexes drawn in `chart-risk`; write the reason in the answer or a label.
28
+ - `target` (funnel only) gives one target per step, drawn as a dashed `chart-done` outline; `null` for a step with none. The drop from the step before is worked out from `values`.
28
29
  - `ranges` replaces `x` and `series` with one set per tab. Slides and pages draw the first range and name it.
29
30
  - Diagrams: `flow` takes `steps` (`name`, `why`, `state`: done, now, next, late; optional `group`); `swimlane` takes `lanes`, `steps` with `lane` and `col`, and `edges`; `timeline` takes `points` (`date`, `name`, `state`, `late`); `ranges` takes `columns`, `today` and `rows` (`name`, `from`, `to`, `state`, `label`).
30
31
  - `source` is required. No source, no chart.
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Eval calibration log"
4
4
  description: "Append-only record of every PM override of an evaluator verdict."
5
- generated: {by: process:create-pmos, at: "2026-11-20T02:28:54Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T03:32:28Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Health budgets"
4
4
  description: "Closed registry of health-budget anchors (D59), edited only by the PM."
5
- generated: {by: process:create-pmos, at: "2026-11-20T02:28:54Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T03:32:28Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -2,7 +2,7 @@
2
2
  type: Reference
3
3
  title: "Discoveries and friction log"
4
4
  description: "Append-only record of what runs discovered and where the process rubbed."
5
- generated: {by: process:create-pmos, at: "2026-11-20T02:28:54Z"}
5
+ generated: {by: process:create-pmos, at: "2026-11-20T03:32:28Z"}
6
6
  status: stable
7
7
  ---
8
8
 
@@ -1,4 +1,30 @@
1
1
  [
2
+ {
3
+ "v": "0.646.0",
4
+ "at": "2026-11-20T03:32:31.987Z",
5
+ "f": 4,
6
+ "prs": [
7
+ {
8
+ "n": 1428,
9
+ "t": "Today is built from the design system's blocks",
10
+ "s": "Today is built from the design system's blocks",
11
+ "k": "new"
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ "v": "0.645.0",
17
+ "at": "2026-11-20T02:59:30.947Z",
18
+ "f": 4,
19
+ "prs": [
20
+ {
21
+ "n": 1427,
22
+ "t": "The Viewer card's parts on the PMOS design system, and the Funnel chart kind",
23
+ "s": "The Viewer card's parts on the PMOS design system, and the Funnel chart kind",
24
+ "k": "new"
25
+ }
26
+ ]
27
+ },
2
28
  {
3
29
  "v": "0.644.0",
4
30
  "at": "2026-11-20T02:28:58.438Z",
@@ -21,7 +21,7 @@ Each level is made only from the levels above it.
21
21
  | --- | --- | --- |
22
22
  | 0 · Foundations | Roles (`chart-*`, `diagram-*`) and the three media with their sizes. Colours and fonts come from Komorebi. | Roles, Media |
23
23
  | 1 · Elements | The smallest pieces of a chart. | Marks, Labels, Controls |
24
- | 2 · Charts | Seven chart kinds. | Bar, BarGoal, Line, StackedBar, HorizontalBar, Meter, Sparkline |
24
+ | 2 · Charts | Eight chart kinds. | Bar, BarGoal, Line, StackedBar, HorizontalBar, Funnel, Meter, Sparkline |
25
25
  | 3 · Diagrams | Four diagram kinds. | Flow, Swimlane, Timeline, DateRanges |
26
26
  | 4 · Placements | Where a chart sits in each system. | InBlock (workspace), OnSlide (decks), OnPage (documents) |
27
27
 
@@ -36,6 +36,7 @@ Each level is made only from the levels above it.
36
36
  | How is it moving over time, against plan? | Line |
37
37
  | What share is done, in progress, at risk? | StackedBar |
38
38
  | Which one is biggest or slowest? | HorizontalBar |
39
+ | Where do people leave on the way to done? | Funnel |
39
40
  | How is a number trending, at a glance? | Sparkline beside the number |
40
41
  | How does work move? Who does what? | Flow, Swimlane |
41
42
  | When do things happen? What is late? | Timeline, DateRanges |
@@ -0,0 +1,50 @@
1
+ ---
2
+ type: Reference
3
+ title: "PMOS Charts: Funnel"
4
+ description: "Steps from first view to done: one bar per step, with the drop from the step before written under it in `alert` (\"−39%\"). The target after a change is a dashed `chart-done` outline on each bar (`\"target\"`, one value per step). One step is lit: the one the answer is about. At most 6 steps. Moved here from PMOS Slides, which draws it on its Funnel and Bet slides."
5
+ timestamp: 2026-11-20
6
+ ---
7
+ Steps from first view to done: one bar per step, with the drop from the step before written under it in `alert` ("−39%"). The target after a change is a dashed `chart-done` outline on each bar (`"target"`, one value per step). One step is lit: the one the answer is about. At most 6 steps. Moved here from PMOS Slides, which draws it on its Funnel and Bet slides.
8
+
9
+ ## Interaction
10
+
11
+ The same as every chart: hover or touch for the value, click to open the items behind a mark, Left and Right to move, Enter to open, Esc to leave. On a slide only the light moves; on a page nothing moves and every value is printed.
12
+
13
+ ## Spec
14
+
15
+ ```json
16
+ {
17
+ "kind": "funnel",
18
+ "answer": "Most people leave at the sign-in method and the form",
19
+ "unit": "%",
20
+ "x": [
21
+ "Viewed",
22
+ "Picked method",
23
+ "Filled form",
24
+ "Consent",
25
+ "Signed up"
26
+ ],
27
+ "series": [
28
+ {
29
+ "name": "People",
30
+ "role": "read",
31
+ "values": [
32
+ 100,
33
+ 61,
34
+ 34,
35
+ 30,
36
+ 26
37
+ ]
38
+ }
39
+ ],
40
+ "target": [
41
+ null,
42
+ 70,
43
+ 50,
44
+ 40,
45
+ 35
46
+ ],
47
+ "lit": 4,
48
+ "source": "Sign-up events, GA, Apr 2024 to Mar 2025"
49
+ }
50
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- @dsCard group="2 · Charts" height=260 -->
2
+ <!doctype html>
3
+ <html>
4
+ <head><meta charset="utf-8"><title>Funnel</title></head>
5
+ <body>
6
+ <div class="pcx">
7
+ <div data-pc="{&quot;kind&quot;: &quot;funnel&quot;, &quot;answer&quot;: &quot;Most people leave at the sign-in method and the form&quot;, &quot;unit&quot;: &quot;%&quot;, &quot;x&quot;: [&quot;Viewed&quot;, &quot;Picked method&quot;, &quot;Filled form&quot;, &quot;Consent&quot;, &quot;Signed up&quot;], &quot;series&quot;: [{&quot;name&quot;: &quot;People&quot;, &quot;role&quot;: &quot;read&quot;, &quot;values&quot;: [100, 61, 34, 30, 26]}], &quot;target&quot;: [null, 70, 50, 40, 35], &quot;lit&quot;: 4, &quot;source&quot;: &quot;Sign-up events, GA, Apr 2024 to Mar 2025&quot;}" data-medium="screen" data-height="240"></div>
8
+ </div>
9
+ <script>PMOSCharts.mount(document)</script>
10
+ </body>
11
+ </html>
@@ -27,6 +27,7 @@ body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--font-s
27
27
  .pc-plot .pc-sel{stroke:var(--chart-done);stroke-width:3;paint-order:stroke}
28
28
  text.pc-l{fill:var(--muted);font-family:var(--font-sans)}
29
29
  text.pc-ink{fill:var(--ink)}
30
+ text.pc-drop{fill:var(--alert);font-weight:600;font-family:var(--font-sans);font-variant-numeric:tabular-nums}
30
31
  text.pc-v{fill:var(--ink);font-weight:600;font-family:var(--font-sans);font-variant-numeric:tabular-nums}
31
32
  .pc-tip{position:absolute;z-index:2;pointer-events:none;white-space:nowrap;background:var(--card);color:var(--ink);font-size:13px;line-height:20px;padding:4px 10px;border-radius:var(--radius-md,10px);box-shadow:var(--lift);font-variant-numeric:tabular-nums}
32
33
  .pc-tabs{display:inline-flex;gap:2px;padding:3px;background:var(--well);border-radius:var(--radius-md,10px)}
@@ -13,7 +13,7 @@ var MED={
13
13
  function esc(s){return String(s==null?'':s).replace(/[&<>"]/g,function(c){return{'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'}[c]})}
14
14
  function num(v){return (Math.round(v*10)/10).toLocaleString('en-GB')}
15
15
  function fmt(v,u){return num(v)+(u?' '+u:'')}
16
- var BARS={bar:1,goal:1,stack:1,hbar:1}, DIAG={flow:1,swimlane:1,timeline:1,ranges:1};
16
+ var BARS={bar:1,goal:1,stack:1,hbar:1,funnel:1}, DIAG={flow:1,swimlane:1,timeline:1,ranges:1};
17
17
 
18
18
  function render(el, spec, opts){
19
19
  opts=opts||{};
@@ -119,6 +119,25 @@ function chart(d,spec,m,medium,w,h,st){
119
119
  g.horiz=true; g.tip=function(i){return x[i]+' · '+fmt(vals[i],u)};
120
120
  return {svg:svg(w,H2,o),g:g};
121
121
  }
122
+ if(kind==='funnel'){
123
+ // steps from first view to done: one bar per step, the drop from the step before written under it in alert,
124
+ // the target after the change as a dashed chart-done outline on each bar, one lit step
125
+ var fv=all[0].values, tg=spec.target||[], fmx=Math.max.apply(0,fv.concat(tg.filter(function(v){return v!=null})))*1.1;
126
+ var fT=m.value*2, fB=L*3.8, fih=h-fT-fB, fband=w/n, fbw=Math.min(fband*.62,m.value*7);
127
+ var FX=function(i){return fband*i+(fband-fbw)/2}, FY=function(v){return fT+fih*(1-v/fmx)};
128
+ var drop=function(i){return i&&fv[i-1]?Math.round((1-fv[i]/fv[i-1])*100):0};
129
+ o.push('<line x1="0" x2="'+w+'" y1="'+(fT+fih)+'" y2="'+(fT+fih)+'" class="s-grid"/>');
130
+ for(var f=0;f<n;f++){var fr=d.risk.indexOf(f)>=0?'risk':(f===lit?'read':'rest'), fhl=(f===st.hov||f===st.sel)?' pc-hl':'';
131
+ o.push('<rect x="'+FX(f).toFixed(1)+'" y="'+FY(fv[f]).toFixed(1)+'" width="'+fbw.toFixed(1)+'" height="'+Math.max(1,fT+fih-FY(fv[f])).toFixed(1)+'" rx="'+m.bar+'" class="f-'+fr+fhl+(f===lit?' pc-lit':'')+(f===st.sel?' pc-sel':'')+'"/>');
132
+ if(tg[f]!=null){var ty=FY(tg[f]),sw=Math.max(1.5,m.stroke*.7);o.push('<path d="M'+(FX(f)+sw/2).toFixed(1)+' '+(fT+fih).toFixed(1)+' V'+(ty+m.bar).toFixed(1)+' Q'+(FX(f)+sw/2).toFixed(1)+' '+ty.toFixed(1)+' '+(FX(f)+m.bar).toFixed(1)+' '+ty.toFixed(1)+' H'+(FX(f)+fbw-m.bar).toFixed(1)+' Q'+(FX(f)+fbw-sw/2).toFixed(1)+' '+ty.toFixed(1)+' '+(FX(f)+fbw-sw/2).toFixed(1)+' '+(ty+m.bar).toFixed(1)+' V'+(fT+fih).toFixed(1)+'" fill="none" class="s-done" stroke-width="'+sw+'" stroke-dasharray="'+(sw*3)+' '+(sw*2.4)+'"/>')}
133
+ t(FX(f)+fbw/2,Math.min(FY(fv[f]),tg[f]!=null?FY(tg[f]):1e9)-L*.5,fmt(fv[f],u==='%'?'':u)+(u==='%'?'%':''),f===lit?'pc-v':'pc-l pc-ink','middle');
134
+ t(FX(f)+fbw/2,fT+fih+L*1.5,x[f],f===lit?'pc-l pc-ink':'pc-l','middle');
135
+ if(drop(f)>0) t(FX(f)+fbw/2,fT+fih+L*2.9,'−'+drop(f)+'%','pc-drop','middle');
136
+ g.pts.push([FX(f)+fbw/2,FY(fv[f])]);}
137
+ g.tip=function(i){var s=x[i]+' · '+fmt(fv[i],u==='%'?'':u)+(u==='%'?'%':'');if(drop(i)>0)s+=' · −'+drop(i)+'% from '+x[i-1];if(tg[i]!=null)s+=' · target '+num(tg[i])+(u==='%'?'%':(u?' '+u:''));return s};
138
+ g.open=function(i){return 'Opened the items behind '+x[i]+' beside the chart.'};
139
+ return {svg:svg(w,h,o),g:g};
140
+ }
122
141
  var T=m.value*2, B=L*2.2, R=(kind==='line'||kind==='stack')?L*7:(d.goal!=null?L*6:L*.5), Lp=kind==='line'?L*2.4:0;
123
142
  var ih=h-T-B;
124
143
  if(kind==='line'){
@@ -10,7 +10,7 @@ One JSON object describes a chart or diagram. PMOS writes it from records; every
10
10
 
11
11
  ```json
12
12
  {
13
- "kind": "bar | goal | line | stack | hbar | meter | spark | flow | swimlane | timeline | ranges",
13
+ "kind": "bar | goal | line | stack | hbar | funnel | meter | spark | flow | swimlane | timeline | ranges",
14
14
  "answer": "The sentence the chart proves",
15
15
  "unit": "items",
16
16
  "x": ["10 Nov", "11 Nov"],
@@ -25,6 +25,7 @@ One JSON object describes a chart or diagram. PMOS writes it from records; every
25
25
 
26
26
  - `lit` is the index of the one bar or point the answer is about. Default: the latest.
27
27
  - `risk` lists indexes drawn in `chart-risk`; write the reason in the answer or a label.
28
+ - `target` (funnel only) gives one target per step, drawn as a dashed `chart-done` outline; `null` for a step with none. The drop from the step before is worked out from `values`.
28
29
  - `ranges` replaces `x` and `series` with one set per tab. Slides and pages draw the first range and name it.
29
30
  - Diagrams: `flow` takes `steps` (`name`, `why`, `state`: done, now, next, late; optional `group`); `swimlane` takes `lanes`, `steps` with `lane` and `col`, and `edges`; `timeline` takes `points` (`date`, `name`, `state`, `late`); `ranges` takes `columns`, `today` and `rows` (`name`, `from`, `to`, `state`, `label`).
30
31
  - `source` is required. No source, no chart.
@@ -43,27 +43,27 @@ On a phone, **⋯** at the top right of every screen opens the menu: Today, Work
43
43
 
44
44
  ## Today
45
45
 
46
- On a computer, Today is one page that starts at the left of the panel. At the top are the day and the time, and a greeting. Under them, the Overview and Today's log take the left (at most about 1100 px wide). Today's agenda is in one grey box on the right, about 320 px wide. Today is drawn from the PMOS design system: the Overview and the log are white cards with a thin line, and the agenda is a grey box. Today reads every product. Home's old address on a computer (`/premium.html`, and a link that names one item) opens Today.
46
+ On a computer, Today is one page that starts at the left of the panel. At the top are the day and the time, and a greeting. Under them, the Overview and Today's log take the left (at most about 1100 px wide). Today's agenda is in one grey box on the right, about 340 px wide, with the meeting you recorded under it. Today is built from the parts of the PMOS design system: the Overview is a summary card, the log a list card, and the agenda a timeline. Today reads every product. Home's old address on a computer (`/premium.html`, and a link that names one item) opens Today.
47
47
 
48
- The **Overview** is one card written by PMOS (✦). It says how many lines are open, the ones to start with and why, how much free time today has and when your first or next meeting is. It names only what the lines themselves say. Under it, PMOS suggests what to clean up with ✓ ✕, only when it is true, for example "Drop the 2 checks carried more than 60 days". A row of chips counts each type (All, Asks, Decisions, Checks, Milestones, Tasks, Reports, Notes). Press a chip to show only that type; press it again to show all. A type with no lines has no chip.
48
+ The **Overview** is one card written by PMOS (✦). It says how many lines are open, the ones to start with and why, how much free time today has and when your first or next meeting is. It names only what the lines themselves say. The names of the lines to start with are links: press one to open it. Under it, PMOS suggests what to clean up with ✓ ✕, only when it is true, for example "Drop the 2 checks carried more than 60 days".
49
49
 
50
- The log is a table, kept the Bullet Journal way, in three groups:
50
+ The log is a list, kept the Bullet Journal way. Tabs at the top right count the lines by job: **All**, **Reply**, **Do**, **Decide** and **Send**. Press a tab to show only that job; **All** shows all again. A job with no lines has no tab. The lines are in three groups:
51
51
 
52
- - **Do first**: five lines at most, each with the reason PMOS picked it under its title. PMOS picks what you marked first, a date that is late, a date that is today or a send that goes out today, a session that waits on you, and the person who waits longest. A line that PMOS suggests to drop is never in Do first.
52
+ - **Do first**: five lines at most, each with the reason PMOS picked it under its title. Its first line is lit: start there. PMOS picks what you marked first, a date that is late, a date that is today or a send that goes out today, a session that waits on you, and the person who waits longest. A line that PMOS suggests to drop is never in Do first.
53
53
  - **Today**: what is new today (dated today, logged today or asked today), then what you did today.
54
- - **Can wait**: the rest, folded to one line ("66 more · the oldest carried 23 days"). Press it to see them, by type and then the oldest first.
54
+ - **Later**: the rest, folded to one line ("66 can wait · the oldest waits 23 days"). Press it to see them, by type and then the oldest first.
55
55
 
56
- Each row is one short line:
56
+ Each row has two lines:
57
57
 
58
- - The bullet says what it is: **•** a task, **○** an event, **–** a note, **×** done, **✦** something PMOS suggests. **!** marks what you marked first.
59
- - **What** (the thing to do), **Type**, **Work** (the initiative or program it belongs to; the column is left out when no line names one), **Job** and **When**. The type is **Ask** (a person asked you; the line starts with who, then the ask; an ask with no person behind it can wait), **Decision**, **Check** ("did it work?"), **Milestone**, **Task**, **Report** or **Note**. The same ask from the same people shows once, with every name ("Suhas and Betty: …"). One thing shows once, however it reached Today: an item of the morning brief that you put on today, a Jira ticket in your tasks, and a brief item that says what a person asked you are each one row. Done, Move to tomorrow and Set a date act on the whole row. A Jira ticket's Work is its key, for example "CONHUB-233". **Decide** is a call you make up your mind on, **Do** is something you do yourself ("Draft the PRD, or let PMOS draft it"), **Reply** is an answer a person waits for, and **Send** is a thing of yours that is ready to go out. PMOS's own note, such as the asks that expired with no answer, closes the log with the Job **Note**.
58
+ - An icon says what it is: a speech bubble for an **Ask**, a diamond for a **Decision**, a tick for a **Check**, a flag for a **Milestone**, a square for a **Task**, a page for a **Report**, a dash for a **Note**, a circle for your own event, ✦ for something PMOS suggests, and a tick in grey for done. **First** marks what you marked first.
59
+ - The title, then a short line under it: the work it belongs to and its date ("for Tender new CIAM · due 21 Oct"), or who waits ("Suhas waits on you"). A red badge at the right says how late it is ("29 days late") or how long a person waits ("28 days"). The type is **Ask** (a person asked you; the line starts with who, then the ask; an ask with no person behind it can wait), **Decision**, **Check** ("did it work?"), **Milestone**, **Task**, **Report** or **Note**. The same ask from the same people shows once, with every name ("Suhas and Betty: …"). One thing shows once, however it reached Today: an item of the morning brief that you put on today, a Jira ticket in your tasks, and a brief item that says what a person asked you are each one row. Done, Move to tomorrow and Set a date act on the whole row. A Jira ticket's Work is its key, for example "CONHUB-233". **Decide** is a call you make up your mind on, **Do** is something you do yourself ("Draft the PRD, or let PMOS draft it"), **Reply** is an answer a person waits for, and **Send** is a thing of yours that is ready to go out. PMOS's own note, such as the asks that expired with no answer, closes the log with the Job **Note**.
60
60
  - The rows are the calls only you can make, your late tasks, the next steps, your own items for today, the drafts to send, and what you typed yourself.
61
- - The title line counts the log ("Today's log · 12"), with the jobs at the right, for example "5 to decide · 6 to do · 15 to reply · 1 to send".
61
+ - The tabs count the log, so there is no separate count line.
62
62
 
63
63
  To use the log:
64
64
 
65
65
  1. Type a task, an event or a note in the first line and press Enter. Start with **o** for an event (add a time, such as 14:00, to put it on the agenda), with **-** for a note, and with **!** for what comes first. Enter only adds the row. It opens nothing and starts no session.
66
- 2. Point at a row to see its three icons: **Done**, **Move to tomorrow** and **Set a date**. Done gives the row the × bullet. Each change shows Undo for a moment.
66
+ 2. Point at a row to see its icons. The first is its job: **Reply**, **Decide** or **Send** opens the item where you do it, and **Done** marks it done. Then come **Move to tomorrow** and **Set a date**. A done row turns grey. Each change shows Undo for a moment.
67
67
  3. Press a row, or an event in the agenda, to open that one item in the popup. An ask opens that one mention, not the list of mentions. A task opens its initiative at that task, with the task's row lit, and the task itself in a small popup on top; Esc closes only the small popup. A check ("did it work?") opens its initiative. With the popup open, press **j** or **k** (or **↓** and **↑** in an ask) to open the next or the previous row in its place.
68
68
 
69
69
  When the same step waits on several initiatives (for example "Draft the PRD" on six of them), it is one row, "6 initiatives have no PRD", with the ✦ line "PMOS drafts them for you to read": ✓ starts one draft per initiative, ✕ hides the line for a month. Press the row to list the initiatives. A title never shows an id, and Work names a product by its name.
@@ -74,11 +74,13 @@ Every row says why it is on Today, after its title: "Due today", "3 days late",
74
74
 
75
75
  **PMOS checks that an ask still waits on you.** On every read, when Today opens and again when you open the ask, PMOS checks the source. When you replied after the ask, the ticket it points to is closed, or the person took the ask back, the ask leaves Today by itself and a message says how ("You replied Tue 17 Nov: …"), with Undo. A new message from the person after your reply brings it back. An ask with no move for 21 days asks "Still needed?" once.
76
76
 
77
- What you do not finish is carried to the next day, and the When column says for how long ("carried 16 days"). When a row is carried for 30 days, PMOS suggests to drop it from your log. ✓ drops it, ✕ keeps it, and PMOS does not ask again for a month. A task's own date changes only when you set a date on it.
77
+ What you do not finish is carried to the next day, and the badge says for how long. When a row is carried for 30 days, PMOS suggests to drop it from your log. ✓ drops it, ✕ keeps it, and PMOS does not ask again for a month. A task's own date changes only when you set a date on it.
78
78
 
79
79
  Findings that fit no initiative (the Lab) are ✦ rows in the log. ✓ keeps one and starts an initiative from it. ✕ drops it.
80
80
 
81
- The agenda is the day by hours, from 08:00 to 18:00, with a red line at the time now. Meetings that overlap sit side by side, so none covers or cuts another. The box is as tall as its hours. It shows your meetings, the reports that go out today at their time, your own events, and focus time: the free time from now until the next meeting, held for the first row of your log, in a dashed box. Focus time is only ever a gap before a meeting: it never runs past the last one. Press the focus time to open that row. A day with no meeting or event shows one quiet line instead of the hours, for example "No events today · 9 h free". **Events** at the top right opens the Events page. "PMOS did" is not on Today; it moves to Routine.
81
+ The agenda lists the day's events in time order, each with its start time, and a red line with the time now between the past and the next ones. Past events are dashed. The next event says how soon it starts ("in 20 min"). A meeting with a call has a play button: one press joins the call and starts the recording. It shows your meetings, the reports that go out today at their time, your own events, and focus time: the free time from now until the next meeting, held for the first row of your log, in a dashed box. Focus time is only ever a gap before a meeting: it never runs past the last one. Press the focus time to open that row. A day with no meeting or event shows one quiet line, for example "No events today · 9 h free". **Events** at the top right opens the Events page. "PMOS did" is not on Today; it moves to Routine.
82
+
83
+ Under the agenda, after a meeting PMOS recorded and filed in the last 3 hours, a card says what came of it and where PMOS filed it. ✓ keeps it there and the card goes. ✕ takes the recording out of that work, with Undo.
82
84
 
83
85
  On a phone, Today is one page with no boxes: the overview, the next event with **Record**, and the log. Swipe a row to the right to do or accept it, and to the left to drop it or put it off. Each swipe has **Undo**.
84
86
 
@@ -90,6 +92,7 @@ The Viewer shows one item: an initiative, a program, a task, a document, a meeti
90
92
  - Drag its edge to change its width. The expand icon opens it wide. Each kind of item keeps the width you gave it.
91
93
  - It keeps one trail: a press inside it keeps the item behind, ← goes back, → goes forward, and the browser's Back and Forward move along the same trail. × or Escape closes it.
92
94
  - An item opened on its own page, with **Open in a new tab**, shows the Viewer card in the colours and type of the PMOS design system. When you close it, one line at the top links to Home.
95
+ - On a page drawn from the PMOS design system (Today, Home, an item on its own page), the parts inside the Viewer card follow the system too: a meeting, the calendar and a report use its corners, its buttons and its switches. A word button has a small corner, a switch looks like tabs, and a chip or a tag stays round.
93
96
  - One item shows in one Viewer only. If an item is already open, opening it again (a row, a ⌘-click, Open beside) shows it in the Viewer it is in. It never opens a second copy.
94
97
 
95
98
  ## Work and its chat, in one popup
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.644.0",
3
+ "version": "0.646.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pmos-workspace",
9
- "version": "0.644.0",
9
+ "version": "0.646.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@anthropic-ai/sdk": "^1.3.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmos-workspace",
3
- "version": "0.644.0",
3
+ "version": "0.646.0",
4
4
  "private": true,
5
5
  "description": "PMOS Terminal Workspace — local companion hosting real PTYs beside the library and gates (D62)",
6
6
  "license": "MIT",
@@ -36,6 +36,7 @@
36
36
  :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-plot .pc-sel{stroke:var(--chart-done);stroke-width:3;paint-order:stroke}
37
37
  :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) text.pc-l{fill:var(--muted);font-family:var(--font-sans)}
38
38
  :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) text.pc-ink{fill:var(--ink)}
39
+ :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) text.pc-drop{fill:var(--alert);font-weight:600;font-family:var(--font-sans);font-variant-numeric:tabular-nums}
39
40
  :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) text.pc-v{fill:var(--ink);font-weight:600;font-family:var(--font-sans);font-variant-numeric:tabular-nums}
40
41
  :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tip{position:absolute;z-index:2;pointer-events:none;white-space:nowrap;background:var(--card);color:var(--ink);font-size:13px;line-height:20px;padding:4px 10px;border-radius:var(--radius-md,10px);box-shadow:var(--lift);font-variant-numeric:tabular-nums}
41
42
  :is(.pm-ds,.pmd-ds,.pms-ds,.pmc-ds) .pc-tabs{display:inline-flex;gap:2px;padding:3px;background:var(--well);border-radius:var(--radius-md,10px)}
@@ -22,7 +22,7 @@ import { wireSwipe } from './cozy-phone-swipe.js'; // the phone: rows and the
22
22
 
23
23
  const ASK_SEND = new Set(['session']);
24
24
  export function mountToday(ctx) {
25
- const X = { log: { entries: [], marks: {} }, html: '', model: null, agenda: null, read: false, busy: new Set(), type: '', open: false, hide: new Set(), sopen: new Set(), unfiled: new Set() };
25
+ const X = { log: { entries: [], marks: {} }, html: '', model: null, agenda: null, read: false, busy: new Set(), type: '', job: '', open: false, hide: new Set(), sopen: new Set(), unfiled: new Set(), filedOk: new Set() };
26
26
  const el = document.getElementById('tdPage');
27
27
  // a desk and a phone both draw Today here; a phone draws its own one column (TP.phonePageHtml, board Ph2_today) while no conversation is
28
28
  // open over it (body.hm-plist: home-app.js's phone list state). On a phone Home's list is not drawn on today.html (cozy-today-page.css).
@@ -101,7 +101,9 @@ export function mountToday(ctx) {
101
101
  return;
102
102
  }
103
103
  el.classList.remove('tdp');
104
- const html = TP.pageHtml(L, A, { draft, overview: O, type: X.type, open: X.open || !!X.type, handled: X.type && X.type !== 'Ask' ? [] : handled(), hopen: X.hopen, sopen: [...X.sopen] });
104
+ // the log's Tabs filter by job (All, Reply, Do, Decide, Send); a tab whose count went to zero goes back to All
105
+ if (X.job && !(L.counts || {})[X.job.toLowerCase()]) X.job = '';
106
+ const html = TP.pageHtml(L, A, { draft, overview: O, job: X.job, open: X.open || !!X.job, handled: X.job && X.job !== 'Reply' ? [] : handled(), hopen: X.hopen, sopen: [...X.sopen], filed: filedLine() });
105
107
  if (html === X.html && el.firstChild) return;
106
108
  X.html = html;
107
109
  const st = el.parentNode ? el.parentNode.scrollTop : 0;
@@ -113,14 +115,14 @@ export function mountToday(ctx) {
113
115
  * newest meeting that ended in the last 3 hours and is filed under an initiative; Undo or a later meeting takes the line away. */
114
116
  const FILED_MS = 3 * 3600e3;
115
117
  function filedLine() {
116
- const N = (ctx.notes ? ctx.notes() : []).filter((n) => n && n.state === 'ended' && n.initiative && n.initiative.title && !X.unfiled.has(String(n.id)));
118
+ const N = (ctx.notes ? ctx.notes() : []).filter((n) => n && n.state === 'ended' && n.initiative && n.initiative.title && !X.unfiled.has(String(n.id)) && !X.filedOk.has(String(n.id)));
117
119
  const at = (n) => Date.parse(n.ended_at || n.updated_at || '') || 0;
118
120
  const n = N.sort((a, b) => at(b) - at(a))[0];
119
121
  if (!n || ctx.now() - at(n) > FILED_MS) return null;
120
122
  const ago = ctx.now() - at(n), min = Math.round((Number(n.meeting_ms) || 0) / 60000), t = n.came && n.came.tasks;
121
123
  const d = new Date(at(n)), when = ago < 5 * 60000 ? 'Just now' : String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0');
122
124
  const what = [n.summary ? 'summary' : '', t ? t + (t === 1 ? ' task' : ' tasks') : ''].filter(Boolean).join(' and ');
123
- return { id: String(n.id), title: n.initiative.title, ini: n.initiative.id || null, sub: [when, min ? min + ' min' : '', what].filter(Boolean).join(' · ') };
125
+ return { id: String(n.id), title: n.initiative.title, meeting: n.title || '', ini: n.initiative.id || null, sub: [when, min ? min + ' min' : '', what].filter(Boolean).join(' · ') };
124
126
  }
125
127
  const rowOf = (key) => (X.model ? X.model.rows.flatMap((r) => [r, ...(r.members || [])]).find((r) => r.key === key) : null);
126
128
  const snap = (r) => ({ title: r.title, work: r.work, job: r.job, type: r.type });
@@ -144,7 +146,7 @@ export function mountToday(ctx) {
144
146
  /** The popup's chat hidden for this open (round 3 point 7), until the popup's own per-item rule does it. */
145
147
  const chatOff = () => setTimeout(() => { const h = document.querySelector('.cz-pop:not([hidden]) [data-pop="hide"]'); if (h && !h.closest('.chat-off')) h.click(); }, 60);
146
148
  /** The rows in the order Today shows them, the ones that open something. */
147
- const order = () => { const L = X.model; if (!L) return []; return [...(L.first || []), ...(L.todayRows || []), ...(X.open || X.type ? L.wait || [] : [])].filter((r) => r && !r.done && r.src !== 'note' && r.src !== 'own'); };
149
+ const order = () => { const L = X.model; if (!L) return []; return [...(L.first || []), ...(L.todayRows || []), ...(X.open || X.type || X.job ? L.wait || [] : [])].filter((r) => r && !r.done && r.src !== 'note' && r.src !== 'own' && (!X.job || r.job === X.job)); };
148
150
  /** ↑ ↓ (j k) in the popup: the previous or next Today row opens in its place. true when it stepped. */
149
151
  function step(d) {
150
152
  const list = order(), i = list.findIndex((r) => r.key === X.last);
@@ -362,6 +364,9 @@ export function mountToday(ctx) {
362
364
  await ctx.reloadMentions(); ctx.toast('Back on Today: it still waits on you.'); return;
363
365
  }
364
366
  if (act === 'type') { X.type = X.type === key ? '' : key; draw(); return; }
367
+ if (act === 'job') { X.job = key; draw(); return; }
368
+ // the recorded meeting: ✓ keeps it filed where PMOS put it, and the block leaves Today
369
+ if (act === 'filed-ok') { X.filedOk.add(key); draw(); return; }
365
370
  if (act === 'ov-yes' || act === 'ov-no') {
366
371
  const sg = X.overview && X.overview.suggest.find((x) => x.key === key); if (!sg || X.busy.has(key)) return;
367
372
  X.busy.add(key); b.disabled = true;