create-pmos 0.617.0 → 0.619.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 +33 -27
- 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/briefing-premium-initiative-test.js +2 -1
- package/workspace/changelog.json +32 -0
- package/workspace/guide/layout.md +13 -6
- package/workspace/lib/board-premium.js +1 -0
- package/workspace/lib/board-trail.js +3 -1
- package/workspace/lib/core-docs.js +1 -1
- package/workspace/lib/engine/boards.js +2 -2
- package/workspace/lib/okr-goals.js +2 -1
- package/workspace/lib/routes-boards.js +20 -4
- package/workspace/lib/status-when.js +15 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-board-actions-test.js +1 -0
- package/workspace/public/pm/bd-work.css +5 -4
- package/workspace/public/pm/cozy-day-pick.css +9 -8
- package/workspace/public/pm/cozy-home.css +54 -2
- package/workspace/public/pm/cozy-pop-work.css +29 -0
- package/workspace/public/pm/cozy-pop-work.js +157 -14
- package/workspace/public/pm/cozy-popup.css +6 -1
- package/workspace/public/pm/cozy-popup.js +26 -7
- package/workspace/public/pm/cozy-status-when.js +17 -2
- package/workspace/public/pm/cozy-task-pop.css +34 -0
- package/workspace/public/pm/cozy-task-pop.js +199 -0
- package/workspace/public/pm/home-app.js +7 -1
- package/workspace/public/pm/home-chat.js +13 -7
- package/workspace/public/pm/home-data.js +31 -1
- package/workspace/public/pm/home-ini.js +8 -1
- package/workspace/public/pm/page-chat.js +1 -1
- package/workspace/public/pm/premium-board.js +18 -4
- package/workspace/test-lists/chat-turns.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.619.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,38 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.619.0",
|
|
38
|
+
"at": "2026-11-19T04:21:53.302Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1401,
|
|
43
|
+
"t": "A task on Today opens the small task popup on top of its initiative",
|
|
44
|
+
"s": "A task on Today opens the small task popup on top of its initiative",
|
|
45
|
+
"k": "new"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"v": "0.618.0",
|
|
51
|
+
"at": "2026-11-19T04:00:56.732Z",
|
|
52
|
+
"f": 4,
|
|
53
|
+
"prs": [
|
|
54
|
+
{
|
|
55
|
+
"n": 1400,
|
|
56
|
+
"t": "A key result waits on Confluence, not on a raw page id",
|
|
57
|
+
"s": "A key result waits on Confluence, not on a raw page id",
|
|
58
|
+
"k": "fix"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"n": 1391,
|
|
62
|
+
"t": "Popup round 3 follow-up (stage-move day, task popup, phone chat, one task list)",
|
|
63
|
+
"s": "Popup round 3 follow-up (stage-move day, task popup, phone chat, one task list)",
|
|
64
|
+
"k": "new"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
36
68
|
{
|
|
37
69
|
"v": "0.617.0",
|
|
38
70
|
"at": "2026-11-19T03:50:13.896Z",
|
|
@@ -428,32 +460,6 @@
|
|
|
428
460
|
"k": "new"
|
|
429
461
|
}
|
|
430
462
|
]
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
"v": "0.599.0",
|
|
434
|
-
"at": "2026-11-18T06:05:26.913Z",
|
|
435
|
-
"f": 4,
|
|
436
|
-
"prs": [
|
|
437
|
-
{
|
|
438
|
-
"n": 1341,
|
|
439
|
-
"t": "Chief agent and unit owners — derived owner, daily brief, chief's desk, scoped memory",
|
|
440
|
-
"s": "Chief agent and unit owners — derived owner, daily brief, chief's desk, scoped memory",
|
|
441
|
-
"k": "new"
|
|
442
|
-
}
|
|
443
|
-
]
|
|
444
|
-
},
|
|
445
|
-
{
|
|
446
|
-
"v": "0.598.0",
|
|
447
|
-
"at": "2026-11-18T04:44:46.210Z",
|
|
448
|
-
"f": 4,
|
|
449
|
-
"prs": [
|
|
450
|
-
{
|
|
451
|
-
"n": 1340,
|
|
452
|
-
"t": "A Connectors row shows a new rhythm as soon as you change it",
|
|
453
|
-
"s": "A Connectors row shows a new rhythm as soon as you change it",
|
|
454
|
-
"k": "fix"
|
|
455
|
-
}
|
|
456
|
-
]
|
|
457
463
|
}
|
|
458
464
|
]
|
|
459
465
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T04:21:50Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T04:21:50Z"}
|
|
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-
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-19T04:21:50Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -171,7 +171,8 @@ const WRITES = /^\/api\/(?:boards\/(?:move|tasks\/(?:add|state))|lifecycle|core-
|
|
|
171
171
|
const mint = await T.nonce(BASE);
|
|
172
172
|
const settle = async (fn) => { const c = A.calls(); await fn(); await until(() => A.calls() > c, 10000); await sleep(500); }; // a press that lands reads the initiative again and draws the Overview again
|
|
173
173
|
await show(p, 'stage');
|
|
174
|
-
|
|
174
|
+
// a stage move asks the day it happened first (popup round 3 point 18f): Today keeps the move as it was
|
|
175
|
+
await settle(async () => { await p.click(`${V} [data-ov-move="Deliver"]`); await p.click('.hi-pop [data-sw="today"]'); });
|
|
175
176
|
const mv = await until(() => A.posts.find((x) => x.path === '/api/boards/move'));
|
|
176
177
|
ok('I10 a stage press posts the board, the initiative and the stage to the move route', mv && mv.body.ws === 'w1' && mv.body.board === 'w1' && mv.body.id === 'self-serve-v2' && mv.body.to === 'Deliver', JSON.stringify(mv && mv.body));
|
|
177
178
|
await until(() => p.evaluate((v) => !!document.querySelector(v + ' [data-ov-move]'), V));
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.619.0",
|
|
4
|
+
"at": "2026-11-19T04:21:53.302Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1401,
|
|
9
|
+
"t": "A task on Today opens the small task popup on top of its initiative",
|
|
10
|
+
"s": "A task on Today opens the small task popup on top of its initiative",
|
|
11
|
+
"k": "new"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"v": "0.618.0",
|
|
17
|
+
"at": "2026-11-19T04:00:56.732Z",
|
|
18
|
+
"f": 4,
|
|
19
|
+
"prs": [
|
|
20
|
+
{
|
|
21
|
+
"n": 1400,
|
|
22
|
+
"t": "A key result waits on Confluence, not on a raw page id",
|
|
23
|
+
"s": "A key result waits on Confluence, not on a raw page id",
|
|
24
|
+
"k": "fix"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"n": 1391,
|
|
28
|
+
"t": "Popup round 3 follow-up (stage-move day, task popup, phone chat, one task list)",
|
|
29
|
+
"s": "Popup round 3 follow-up (stage-move day, task popup, phone chat, one task list)",
|
|
30
|
+
"k": "new"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
2
34
|
{
|
|
3
35
|
"v": "0.617.0",
|
|
4
36
|
"at": "2026-11-19T03:50:13.896Z",
|
|
@@ -47,7 +47,9 @@ To use the log:
|
|
|
47
47
|
|
|
48
48
|
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.
|
|
49
49
|
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.
|
|
50
|
-
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. 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.
|
|
50
|
+
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.
|
|
51
|
+
|
|
52
|
+
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.
|
|
51
53
|
|
|
52
54
|
Every row says why it is on Today, after its title: "Due today", "3 days late", "Chen waits on you 13 days", "Goes out today 16:00", "PMOS finished it, needs your look" or "You said today". A task with none of these reasons is not on Today. A task whose date passed more than 30 days ago is not a row either: the Overview says how many there are in one ✦ line, and ✓ clears them from Today. A small **✦ 1** before the reason says what PMOS did on that row already (point at it to read it).
|
|
53
55
|
|
|
@@ -59,7 +61,7 @@ What you do not finish is carried to the next day, and the When column says for
|
|
|
59
61
|
|
|
60
62
|
Findings that fit no initiative (the Lab) are ✦ rows in the log. ✓ keeps one and starts an initiative from it. ✕ drops it.
|
|
61
63
|
|
|
62
|
-
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. Press the focus time to open that row. **Events** at the top right opens the Events page. "PMOS did" is not on Today; it moves to Routine.
|
|
64
|
+
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.
|
|
63
65
|
|
|
64
66
|
On a phone, Today is Home: the list of your work, and the chat when you open a row.
|
|
65
67
|
|
|
@@ -82,7 +84,8 @@ On a computer, an initiative you open from Home, Board or Intelligence opens in
|
|
|
82
84
|
- The chat's title chooses the session. It shows your sessions, newest first, each with the work it is about and its state: **Waits for you**, **PMOS is working**, or when you last used it. **New session** starts another session about the same work. **All sessions** shows the full list with a search box, and the popup stays open.
|
|
83
85
|
- The stop icon on a live session ends it at once. **Session ended** shows with **Undo** for a few seconds, and the session moves to **Earlier**.
|
|
84
86
|
- The chat icon opens the popup on the session that waits for you, or else the newest. The left side shows that session's work, or the list of sessions when it is about no work.
|
|
85
|
-
- The
|
|
87
|
+
- The chat's top bar has the session, one quiet line under it that says what the chat is about, ⋯ and ×. ⋯ has **Open work beside the page** (it keeps work beside the page instead, as before; press it again in the popup to go back, and PMOS keeps this choice on this computer), **Hide the chat**, **Sessions** and, while the session is live, **End session**.
|
|
88
|
+
- The chat reads as on a phone: messages only, without names or times on each one. Each answer shows in full, and the small notes and steps before it fold into one line, for example "Worked 6 steps · 20 s"; press it to see them. Copy, Retry and Make it a task show on the newest answer. The box is one row: +, the words, the microphone and send.
|
|
86
89
|
- Beside the page, a panel you slide off the edge is put away. The round Live button above the chat icon then shows, and its first row brings the panel back. Otherwise the chat icon holds your sessions, and there is no Live button.
|
|
87
90
|
|
|
88
91
|
A phone keeps its own layout. A shared read-only Board has no popup.
|
|
@@ -92,11 +95,15 @@ A phone keeps its own layout. A shared read-only Board has no popup.
|
|
|
92
95
|
The work side has three parts, top to bottom.
|
|
93
96
|
|
|
94
97
|
- **Overview.** Three short lines from the initiative's own records: **Problem**, **Goal** (with the goal it serves, by name) and **Done when**. A line with no record says **Not written yet.** and offers a draft with ✓ and ✕. Press a line to change it; it saves when you leave the field, with **Undo**. Then one line on where it stands, **PMOS suggests** (at most three, each with ✓ and ✕), and **Details ›** for the facts: Stage, Status, Start, Target end, Next milestone, Goal, Product, Program, Workflow and Open. A fact with no value is not shown. Goal, Product, Program and Next milestone are in the link colour and open their thing; the others are plain text. An initiative that is closed or done but has open tasks shows one suggestion: **Close them** or **Reopen**.
|
|
95
|
-
- **Work breakdown.**
|
|
98
|
+
- **Work breakdown.** The stages are one row: the initiative's own steps, with its bar on the timeline. Press a stage to see its dates. The first line is its action: **Move to** another stage, or **Mark … done** on the stage now; after the press it asks when it happened. A done stage has a tick. Under the stages, **Tasks** is one list with the Backlog's own columns and groups (Jira ticket, Epic, Who, Due, State), this initiative's tasks only. A task has no stage. Press a task's name to open it on top. The four-corners icon shows each task with its date and bar on the timeline. **Open in Backlog** opens Work › Backlog on this initiative. When the task list cannot be read, the older view below shows instead.
|
|
99
|
+
- **Work breakdown, the older view.** Each stage is a row that folds and says how much is done, for example "3 of 9 done". Only the stage in progress opens by itself. In a long stage you see the late tasks, the tasks in progress and the next five, then **N more tasks**. Done tasks fold to one line, and the stages after the next one fold to one row. **Not in a stage** is one folded row at the end; open it to see its tasks (PMOS remembers this for each initiative), or press ✓ on its suggestion to put them in the stage in progress, with **Undo**. The timeline is on the right, with **Today** on it. Drag the grip between the columns and the timeline to make the timeline wider or narrower; a double press puts it back. Choose its span (Quarter to Full) beside the tune icon, which shows or hides columns. The four-corners icon gives the breakdown the whole popup. Type in the last row of a stage to add a task; the **Task** choice beside it makes the next one a milestone.
|
|
96
100
|
- **Status.** Press a task's status and pick the new one. **When did this happen?** shows under the list, with **Today** chosen: press the status again, or Enter, to keep today. Press **Yesterday**, or **Pick a date**, when the work moved earlier than you noted it. A day in the future, or a day before the task's previous move, cannot be picked. The toast says both days, for example "Done on 14 Nov, noted today.", with **Undo**.
|
|
101
|
+
- **Open the task.** The ↗ on a row, or **Open the task** in its ⋯, opens a small popup on top: Task or Milestone, the name (press it to rename), status, dates, owner and notes. Its status asks **When did this happen?** too. ↑ and ↓ go to the task before or after it, and ⋯ has **Make it a milestone** and **Archive**, with **Undo**. Escape, × or a press outside closes only the small popup, and the task's row lights for a moment.
|
|
97
102
|
- **Dates.** Press a task's date. **Task | Milestone** on top turns it into a milestone (one Date) or back into a task (Start and Due). Write a day as "15 Oct 2026", or press the calendar icon. The row's ⋯ also has **Make it a milestone** and **Open the task**.
|
|
98
103
|
- **Artefacts.** One row for each kind, such as PRD, Prototype brief or Minutes, with its newest file. **Version** shows when there are more, and opens the earlier ones. When one kind has several different files, one suggestion above the table offers to merge them into one artefact for each kind; nothing is deleted. A document opens as the document page, read from the initiative's own product. When it cannot be read, the page says why, with **Retry**. A link opens in a new tab. The last row adds a file, a link or a new document.
|
|
99
104
|
|
|
105
|
+
**Moving a stage** asks **When did this happen?** in the same way, on the Board's Stage menu and on the initiative's stage buttons. A stage move cannot be dated before the initiative's previous move, and the stage's days count from the day you pick.
|
|
106
|
+
|
|
100
107
|
**Ask PMOS** is hidden until you want it, so the work takes the whole popup. It shows by itself when you had it open on the same item in the last 24 hours, or when a session about the item works or waits for you (a dot on the round **Ask PMOS** button). Press that button, or Ctrl or Cmd J, to show or hide it.
|
|
101
108
|
|
|
102
109
|
Press a suggestion's words to open it as its own page: ✓ and ✕, why PMOS suggests it, what changes, what PMOS read and **Ask PMOS about this**. ← goes back to the same place. A suggestion about one task shows under that task, never twice.
|
|
@@ -149,7 +156,7 @@ The notes of a held meeting look the same wherever you open them: a short summar
|
|
|
149
156
|
|
|
150
157
|
## Goals
|
|
151
158
|
|
|
152
|
-
**Goals** in the navigation answers "Am I on track? What do I do?" for the products you chose at the top left. The product choice and each product's heading show the product's name, such as IDPF, not the name of its folder. It reads your OKR file as one hierarchy: the North Star, then each objective with its key results, the levers behind them and the initiatives that move them.
|
|
159
|
+
**Goals** in the navigation answers "Am I on track? What do I do?" for the products you chose at the top left. The product choice and each product's heading show the product's name, such as IDPF, not the name of its folder. When a key result waits on a source, Goals names the tool, such as Confluence, and not a page number. It reads your OKR file as one hierarchy: the North Star, then each objective with its key results, the levers behind them and the initiatives that move them.
|
|
153
160
|
|
|
154
161
|
1. The card at the top is the North Star. When PMOS drafted one, press the tick to approve it or the cross to drop it. You can undo either for a moment.
|
|
155
162
|
2. Each key result shows its reading against its target and the days left. A grey dot and a dash mean nothing reads it yet: the line under it says what it waits on. PMOS never shows a number it did not read.
|
|
@@ -182,7 +189,7 @@ A chat on a phone uses the full width of the screen:
|
|
|
182
189
|
|
|
183
190
|
- **The top bar** has ← on the left, the chat's name with one line under it, and **⋯** on the right. The line says what the chat is about: the initiative, the number of files and the number of pull requests. Something with none is left out. With nothing to show, the line says where your messages go. Tap the line to open a sheet with the initiative, its newest files (and **All files**), its pull requests and **Sends to**, where you change where your messages go.
|
|
184
191
|
- **⋯** opens the menu under the top bar. **Waiting on you** and **Live now** are at the top of it when something is there. A blue dot on ⋯ means that something waits on you. A chat has no round menu button.
|
|
185
|
-
- **The messages** have no picture and no name or time line. Copy, Retry and Make a
|
|
192
|
+
- **The messages** have no picture and no name or time line. Copy, Retry and Make it a task are under the newest message. To see them under an older message, touch and hold that message.
|
|
186
193
|
- **The message box** is one row: **+**, the text, the microphone and send. It stays at the bottom of the screen while you scroll.
|
|
187
194
|
|
|
188
195
|
## First run
|
|
@@ -193,6 +193,7 @@ function actsOf(r, boardNames) {
|
|
|
193
193
|
stages: own, stage: (lib ? r.wfStage.name : r.stage) || null, life,
|
|
194
194
|
reason: life ? clip(st.reason || '', 300) : '', back: life === 'hold' && st.back ? shortDate(st.back) : '', backDay: life === 'hold' && st.back ? String(st.back).slice(0, 10) : null,
|
|
195
195
|
...(life && st.at ? { since: shortDate(String(st.at).slice(0, 10)) } : {}),
|
|
196
|
+
...(r.movedOn ? { movedOn: r.movedOn } : {}), // a stage move is never dated before the last one (round 3 follow-up of point 18)
|
|
196
197
|
archived: r.archived ? { reason: clip(r.archived.reason || '', 300), into: r.archived.into ? (r.archived.intoTitle || r.archived.into) : null, ...(r.archived.into ? { intoId: r.archived.into } : {}), ...(r.archived.at ? { at: shortDate(String(r.archived.at).slice(0, 10)) } : {}) } : null,
|
|
197
198
|
};
|
|
198
199
|
}
|
|
@@ -33,6 +33,7 @@ const fs = require('fs');
|
|
|
33
33
|
const path = require('path');
|
|
34
34
|
const { execFileSync } = require('child_process');
|
|
35
35
|
const { repoScript } = require('./repo-script.js');
|
|
36
|
+
const SW = require('./status-when.js'); // a move's real day (round 3 follow-up of point 18)
|
|
36
37
|
|
|
37
38
|
const STAGES = ['triage', 'discover', 'plan', 'prioritize', 'build', 'deliver', 'monitor', 'evaluate'];
|
|
38
39
|
const LABEL = { triage: 'Triage', discover: 'Discover', plan: 'Plan', prioritize: 'Prioritize', build: 'Build', deliver: 'Deliver', monitor: 'Monitor', evaluate: 'Evaluate' };
|
|
@@ -175,7 +176,8 @@ function trail({ root, ids, rows = [], moves = [], now = Date.now(), io } = {})
|
|
|
175
176
|
for (let i = 0; i + 1 < L.length; i++) if (L[i + 1][1] !== L[i][1]) samples[L[i][0]].push(Math.max(0, Math.round((L[i + 1][1] - L[i][1]) / DAY)));
|
|
176
177
|
}
|
|
177
178
|
const byIni = new Map();
|
|
178
|
-
|
|
179
|
+
// a move the PM dated earlier counts from that day (round 3 follow-up of point 18): the stage durations and "since" read the real day
|
|
180
|
+
for (const m0 of moves) { if (!m0 || !m0.id || !m0.at) continue; const m = m0.happened ? { ...m0, at: SW.realAt(m0) } : m0; if (!byIni.has(m.id)) byIni.set(m.id, []); byIni.get(m.id).push(m); }
|
|
179
181
|
const wfOfRow = (id) => { const r = rowBy.get(id); return r && r.wf && r.wf.id && r.wf.id !== 'product-feature' ? r.wf.id : null; };
|
|
180
182
|
const other = {}; // workflow id → stage key → [days]
|
|
181
183
|
for (const [id, L] of byIni) {
|
|
@@ -427,7 +427,7 @@ function initiativeExtras(ctx, w) {
|
|
|
427
427
|
}
|
|
428
428
|
function lastMoveOf(folded, id) {
|
|
429
429
|
let at = null;
|
|
430
|
-
for (const m of (folded && folded.moves) || []) { if (m.id !== id) continue; const t = msOf(
|
|
430
|
+
for (const m of (folded && folded.moves) || []) { if (m.id !== id) continue; const t = msOf(require('./status-when.js').realAt(m)); if (Number.isFinite(t) && (at == null || t > at)) at = t; }
|
|
431
431
|
return at;
|
|
432
432
|
}
|
|
433
433
|
|
|
@@ -258,7 +258,7 @@ function fold(events) {
|
|
|
258
258
|
}
|
|
259
259
|
} else if (e.kind === 'move' && b && typeof e.id === 'string' && typeof e.to === 'string') {
|
|
260
260
|
stages.set(key(b, e.id), e.to);
|
|
261
|
-
moves.push({ at: e.at || null, by: e.by || null, board: b, id: e.id, from: e.from || null, to: e.to, why: e.why || '', warnings: Array.isArray(e.warnings) ? e.warnings : [], via: 'move' });
|
|
261
|
+
moves.push({ at: e.at || null, by: e.by || null, board: b, id: e.id, from: e.from || null, to: e.to, why: e.why || '', warnings: Array.isArray(e.warnings) ? e.warnings : [], via: 'move', ...(typeof e.happened === 'string' && e.happened ? { happened: e.happened } : {}) });
|
|
262
262
|
} else if (e.kind === 'assign' && typeof e.id === 'string' && typeof e.to === 'string') {
|
|
263
263
|
assigns.set(e.id, e.to);
|
|
264
264
|
} else if (e.kind === 'ask' && b && typeof e.ask === 'string' && !asks.has(e.ask)) {
|
|
@@ -356,7 +356,7 @@ function fold(events) {
|
|
|
356
356
|
left: isObj(e.moved) ? e.moved.from || null : null, landed: isObj(e.moved) ? e.moved.to || null : null });
|
|
357
357
|
if (isObj(e.moved) && typeof e.moved.to === 'string') {
|
|
358
358
|
stages.set(k, e.moved.to);
|
|
359
|
-
moves.push({ at: e.at || null, by: e.by || null, board: b, id: e.id, from: e.moved.from || null, to: e.moved.to, why: 'workflow changed', warnings: [], via: 'ini-wf', ...(isObj(e.map) && e.undo !== true ? { map: e.map } : {}) });
|
|
359
|
+
moves.push({ at: e.at || null, by: e.by || null, board: b, id: e.id, from: e.moved.from || null, to: e.moved.to, why: 'workflow changed', warnings: [], via: 'ini-wf', ...(isObj(e.map) && e.undo !== true ? { map: e.map } : {}), ...(typeof e.happened === 'string' && e.happened ? { happened: e.happened } : {}) });
|
|
360
360
|
}
|
|
361
361
|
} else if (e.kind === 'ini-end' && b && typeof e.id === 'string') {
|
|
362
362
|
const k = key(b, e.id);
|
|
@@ -81,10 +81,11 @@ function needOf(source, host) {
|
|
|
81
81
|
if (/new relic/i.test(s)) return 'New Relic';
|
|
82
82
|
if (/servicenow/i.test(s)) return 'ServiceNow';
|
|
83
83
|
if (/\bjira\b/i.test(s)) return 'Jira';
|
|
84
|
+
if (/\bconfluence\b/i.test(s)) return 'Confluence'; // names, not ids: never "Confluence 3542351901"
|
|
84
85
|
const h = /\b([a-z0-9-]+(?:\.[a-z0-9-]+)+\.[a-z]{2,})(?:\/|\b)/i.exec(s);
|
|
85
86
|
if (h) return h[1];
|
|
86
87
|
if (/^\/[a-z]/i.test(s) && host) return host;
|
|
87
|
-
return clip(s, 60);
|
|
88
|
+
return clip(s.replace(/\s+(?:page\s+|id\s+)?#?\d{5,}\b.*$/i, '') || s, 60); // a long number is an id, not a name
|
|
88
89
|
}
|
|
89
90
|
/** The line under a key result's name: "60.2% → ≥ 70% by Dec 2026", from "Baseline: … Target: …" or the bolded numbers. */
|
|
90
91
|
function lineOf(text, due) {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* health budgets and domains a new initiative can anchor to (D59)
|
|
18
18
|
* POST /api/boards/create { ws, name, domain?, template } → { ok, board }
|
|
19
19
|
* POST /api/boards/workflow { ws, board, stages, moveRemoved?, sprints? } → { ok, board, moved }
|
|
20
|
-
* POST /api/boards/move { ws, board, id, to, why? }
|
|
20
|
+
* POST /api/boards/move { ws, board, id, to, why?, happened? } → { ok, row, warnings } happened: the day it really happened
|
|
21
21
|
* POST /api/boards/assign { ws, id, to } → { ok }
|
|
22
22
|
* POST /api/boards/asks/add { ws, board, line, source? } → { ok, ask, draft }
|
|
23
23
|
* POST /api/boards/asks/accept { ws, board, ask, title, lane, anchor, intent?, id?, kind? } → { ok, initiative, stage } (kind: product | sdlc | project, default product)
|
|
@@ -620,6 +620,8 @@ function boardRow(board, base, folded, lib) {
|
|
|
620
620
|
// a finished initiative is never late, at risk or without a signal: its last stage is the PM's own move (batch 26 item 5)
|
|
621
621
|
// …except a refuted outcome: its check said it did not work, and that stays at risk until the PM picks the next step (launch simulation W2)
|
|
622
622
|
if (row.closed && ['late', 'at risk', 'no signal'].includes(row.status) && !(row.signal && row.signal.from === 'outcome')) { row.status = 'on track'; row.signal = { from: 'pm', why: 'In its last stage', source: 'the workflow', readAt: new Date().toISOString() }; }
|
|
623
|
+
// the day of the last move: a stage move cannot be dated before it (round 3 follow-up of point 18)
|
|
624
|
+
{ const mf = SW.moveFloor(((folded && folded.moves) || []).filter((m) => m.board === board.id), base.id); if (mf) row.movedOn = mf; }
|
|
623
625
|
const w = [];
|
|
624
626
|
if (s.source === 'move') {
|
|
625
627
|
const last = [...folded.moves].reverse().find((m) => m.board === board.id && m.id === base.id);
|
|
@@ -1077,6 +1079,14 @@ function settingsOf(body, board) {
|
|
|
1077
1079
|
return { value: v };
|
|
1078
1080
|
}
|
|
1079
1081
|
|
|
1082
|
+
/** The day a stage move really happened (round 3 follow-up of point 18): null when the body gives none, else the checked day; a refusal
|
|
1083
|
+
* answers 400 and returns false. Never in the future, never before the initiative's previous move. */
|
|
1084
|
+
function stageHappened(ctx, res, body, folded, boardId) {
|
|
1085
|
+
if (body.happened == null || body.happened === '') return null;
|
|
1086
|
+
const e = SW.checkHappened(body.happened, { floor: SW.moveFloor(((folded && folded.moves) || []).filter((m) => m.board === boardId), body.id) });
|
|
1087
|
+
if (e) { fail(ctx, res, 400, e); return false; }
|
|
1088
|
+
return body.happened;
|
|
1089
|
+
}
|
|
1080
1090
|
const WONTDO_REASONS = ['budget', 'scope', 'another', 'other']; // No budget · Out of scope · Done another way · Other (WfAWontDo)
|
|
1081
1091
|
/** A move of an initiative that runs a library workflow (D99): `to` is a stage key or name of ITS workflow; the key is stored. */
|
|
1082
1092
|
function moveOnWorkflow(ctx, res, body, g, p, own) {
|
|
@@ -1095,7 +1105,9 @@ function moveOnWorkflow(ctx, res, body, g, p, own) {
|
|
|
1095
1105
|
const warnings = [];
|
|
1096
1106
|
for (let i = a + 1; i < b; i++) { const sk = before.wfStages[i]; if (sk && sk.status !== 'skipped' && sk.when.mode !== 'optional') warnings.push('Skipped ' + sk.name); }
|
|
1097
1107
|
if (!before.anchor) warnings.push('No anchor');
|
|
1098
|
-
|
|
1108
|
+
const happened = stageHappened(ctx, res, body, p.fr.folded, p.board.id);
|
|
1109
|
+
if (happened === false) return;
|
|
1110
|
+
append(p.file, g.actor, { kind: 'move', board: p.board.id, id: body.id, from: before.wfStage.key, to: t.key, why: body.why || '', warnings, ...(happened ? { happened } : {}) });
|
|
1099
1111
|
const f1 = foldOf(ctx, p.w), row = boardRow(p.board, b0, f1);
|
|
1100
1112
|
const made = stageTasks(p.file, f1, p.board, row, g.actor.by); // the new stage's To finish entries, as tasks
|
|
1101
1113
|
ctx.json(res, { ok: true, row, warnings, ...(made ? { tasksMade: made } : {}) });
|
|
@@ -1118,7 +1130,9 @@ function moveToProductStage(ctx, res, body, g, p, pf) {
|
|
|
1118
1130
|
const warnings = [];
|
|
1119
1131
|
for (let i = a + 1; i < b; i++) { const sk = before.wfStages[i]; if (sk && sk.status !== 'skipped' && (!sk.when || sk.when.mode !== 'optional')) warnings.push('Skipped ' + sk.name); }
|
|
1120
1132
|
if (!before.anchor) warnings.push('No anchor');
|
|
1121
|
-
|
|
1133
|
+
const happened = stageHappened(ctx, res, body, p.fr.folded, p.board.id);
|
|
1134
|
+
if (happened === false) return;
|
|
1135
|
+
append(p.file, g.actor, { kind: 'ini-wf', board: p.board.id, id: body.id, wf: wf.id, from: wf.id, moved: { from: before.wfStage.key, to: pf.key }, why: body.why ? String(body.why).trim() : '', ...(happened ? { happened } : {}) });
|
|
1122
1136
|
const f1 = foldOf(ctx, p.w), row = boardRow(p.board, b0, f1);
|
|
1123
1137
|
const made = stageTasks(p.file, f1, p.board, row, g.actor.by);
|
|
1124
1138
|
ctx.json(res, { ok: true, row, warnings, ...(made ? { tasksMade: made } : {}) });
|
|
@@ -1212,7 +1226,9 @@ const WRITES = {
|
|
|
1212
1226
|
if (!b0 || boardIdOf(b0, p.fr.boards, p.fr.folded, p.w) !== p.board.id) return fail(ctx, res, 404, `no initiative ${body.id} on this board`);
|
|
1213
1227
|
const before = boardRow(p.board, b0, p.fr.folded);
|
|
1214
1228
|
const warnings = B.moveWarnings(p.board, before, before.stage, body.to, { hasSpec: b0.hasSpec });
|
|
1215
|
-
|
|
1229
|
+
const happened = stageHappened(ctx, res, body, p.fr.folded, p.board.id);
|
|
1230
|
+
if (happened === false) return;
|
|
1231
|
+
append(p.file, g.actor, { kind: 'move', board: p.board.id, id: body.id, from: before.stage, to: body.to, why: body.why || '', warnings, ...(happened ? { happened } : {}) });
|
|
1216
1232
|
const row = boardRow(p.board, b0, foldOf(ctx, p.w));
|
|
1217
1233
|
ctx.json(res, { ok: true, row, warnings });
|
|
1218
1234
|
},
|
|
@@ -6,7 +6,10 @@
|
|
|
6
6
|
* UTC day; one day of slack lets a person east of UTC say their own today), never before floor (the
|
|
7
7
|
* previous move's day, or the day the task was made)
|
|
8
8
|
* floorOf(t) → that floor for a folded PMOS task: the day of its last move (its happened, else its at), else its at
|
|
9
|
-
* lateDays(due, done) → whole days a Done came after its due day (0 when on time or a day is missing)
|
|
9
|
+
* lateDays(due, done) → whole days a Done came after its due day (0 when on time or a day is missing)
|
|
10
|
+
* realAt(m) → the time a move counts from: its at, or the end of its happened day when the PM said an earlier day
|
|
11
|
+
* (the end of the day keeps the order of the moves, since a move is never before the one before it)
|
|
12
|
+
* moveFloor(moves, id) → the floor for an initiative's stage move: the day of its last move (round 3 follow-up) */
|
|
10
13
|
const DAY_RE = /^\d{4}-\d{2}-\d{2}$/;
|
|
11
14
|
const DAY = 864e5;
|
|
12
15
|
const ms = (v) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(v || '')); return m ? Date.UTC(+m[1], +m[2] - 1, +m[3]) : null; };
|
|
@@ -33,4 +36,14 @@ function lateDays(due, done) {
|
|
|
33
36
|
const a = ms(due), b = ms(done);
|
|
34
37
|
return a == null || b == null || b <= a ? 0 : Math.round((b - a) / DAY);
|
|
35
38
|
}
|
|
36
|
-
|
|
39
|
+
function realAt(m) {
|
|
40
|
+
if (!m) return null;
|
|
41
|
+
const h = m.happened, a = m.at ? String(m.at) : '';
|
|
42
|
+
return h && DAY_RE.test(h) && h !== a.slice(0, 10) ? h + 'T23:59:59.999Z' : (m.at || null);
|
|
43
|
+
}
|
|
44
|
+
function moveFloor(moves, id) {
|
|
45
|
+
let v = null;
|
|
46
|
+
for (const m of moves || []) if (m && m.id === id) { const t = realAt(m); if (t && (!v || String(t) > v)) v = String(t); }
|
|
47
|
+
return v ? v.slice(0, 10) : null;
|
|
48
|
+
}
|
|
49
|
+
module.exports = { checkHappened, floorOf, lateDays, realAt, moveFloor, DAY_RE };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.619.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.619.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -232,6 +232,7 @@ const ALLOWED = /^\/api\/(?:boards\/(?:asks\/(?:add|accept|decline)|move|archive
|
|
|
232
232
|
const n0 = lines('boards.jsonl').filter(isMove).length;
|
|
233
233
|
const next = bar ? bar.moves[bar.moves.indexOf(bar.cur) + 1] : '';
|
|
234
234
|
await ip.click(`#czViewer [data-ov-move="${next}"]`);
|
|
235
|
+
await ip.click('.hi-pop [data-sw="today"]'); // a stage move asks the day first (popup round 3 point 18f)
|
|
235
236
|
ok('I2 a stage press records one move line', await until(() => { const L = lines('boards.jsonl').filter(isMove); return L.length === n0 + 1 && L[L.length - 1].id === 'pa-one' && sameStage(toOf(L[L.length - 1]), next); }), JSON.stringify(lines('boards.jsonl').filter(isMove).slice(-1)));
|
|
236
237
|
ok('I2 the Overview then shows the new stage pressed', await until(() => ip.evaluate((n) => !!document.querySelector(`#czViewer [data-ov-move="${n}"][aria-pressed="true"]`), next)));
|
|
237
238
|
const lif0 = lines('lifecycle.jsonl').length;
|
|
@@ -124,10 +124,10 @@ body.bd-page.wk-on .bd-hd .bd-tools { margin-left: auto; }
|
|
|
124
124
|
/* the stage list under a Stage cell */
|
|
125
125
|
.wk-stm { position: fixed; z-index: 80; min-width: 168px; padding: 6px; border-radius: 12px; background: var(--cz-card); box-shadow: 0 8px 28px rgba(42, 46, 53, .18), inset 0 0 0 1px var(--cz-hair); display: grid; gap: 1px; font-family: var(--cz-sans); }
|
|
126
126
|
.wk-stm .h { font-size: var(--fs-badge); font-weight: var(--fw-strong); color: var(--cz-ink3); padding: 5px 8px 6px; }
|
|
127
|
-
.wk-stm button { all: unset; cursor: pointer; font-size: var(--fs-meta); color: var(--cz-ink); padding: 7px 8px; border-radius: 7px; display: flex; justify-content: space-between; gap: 14px; }
|
|
128
|
-
.wk-stm button:hover, .wk-stm button:focus-visible { background: var(--cz-well); }
|
|
129
|
-
.wk-stm button.on { font-weight: var(--fw-strong); background: var(--cz-well); }
|
|
130
|
-
.wk-stm button.on::after { content: '✓'; color: var(--cz-ink2); }
|
|
127
|
+
.wk-stm > button { all: unset; cursor: pointer; font-size: var(--fs-meta); color: var(--cz-ink); padding: 7px 8px; border-radius: 7px; display: flex; justify-content: space-between; gap: 14px; }
|
|
128
|
+
.wk-stm > button:hover, .wk-stm > button:focus-visible { background: var(--cz-well); }
|
|
129
|
+
.wk-stm > button.on { font-weight: var(--fw-strong); background: var(--cz-well); }
|
|
130
|
+
.wk-stm > button.on::after { content: '✓'; color: var(--cz-ink2); }
|
|
131
131
|
/* Work's rows in the shell's ⋯ menu (board 5 keeps them out of the view menu): a count or "on" sits at the right, small and grey */
|
|
132
132
|
.crmenu > .wk-xo .k { margin-left: auto; padding-left: 16px; font-size: var(--fs-meta); font-weight: var(--fw-regular); color: var(--cz-ink3); }
|
|
133
133
|
/* round 2 (Wawan, 2026-11-19): the Board's own bar sits in Work's track; the key says what it draws; the closed ones fold into one line */
|
|
@@ -190,3 +190,4 @@ body.bd-page.wk-on [id="bdFilter"] { position: relative; }
|
|
|
190
190
|
.wk-menu .wk-pl button.q:not(.on) { color: var(--cz-ink3); background: none; box-shadow: inset 0 0 0 1px var(--cz-hair); }
|
|
191
191
|
.wk-menu .wk-pl button em { font-style: normal; color: var(--cz-ink3); }
|
|
192
192
|
.wk-menu .wk-pl button.on em { color: inherit; opacity: .7; }
|
|
193
|
+
.wk-stm .wk-when { padding: 0 6px 4px; max-width: 280px; }
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
/* pm/day-pick.css — the app's own day field and its small calendar (pm/cozy-day-pick.js), and the "When did this happen?" line (pm/cozy-status-when.js)
|
|
1
|
+
/* pm/cozy-day-pick.css — the app's own day field and its small calendar (pm/cozy-day-pick.js), and the "When did this happen?" line (pm/cozy-status-when.js).
|
|
2
|
+
* Each button rule names its parent too, so a host's own button reset (task-card.css .tkc button) does not undo it. */
|
|
2
3
|
.dp { display: flex; flex-direction: column; gap: 4px; }
|
|
3
4
|
.dp-box { position: relative; display: block; }
|
|
4
5
|
.hi-field .dp-in { padding-right: 44px; }
|
|
5
6
|
.dp-box .dp-tg { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
|
|
6
|
-
.dp-tg, .dp-nav { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--cz-ink2); cursor: pointer; }
|
|
7
|
-
.dp-tg:hover, .dp-nav:hover, .dp-tg[aria-expanded="true"] { background: var(--cz-well); color: var(--cz-ink); }
|
|
7
|
+
.dp .dp-tg, .dp-cal .dp-nav { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--cz-ink2); cursor: pointer; }
|
|
8
|
+
.dp .dp-tg:hover, .dp-cal .dp-nav:hover, .dp .dp-tg[aria-expanded="true"] { background: var(--cz-well); color: var(--cz-ink); }
|
|
8
9
|
.dp-msg { margin: 2px 0 0; color: var(--cz-late); }
|
|
9
10
|
.dp-cal { margin-top: 6px; display: flex; flex-direction: column; gap: 2px; width: 224px; }
|
|
10
11
|
.dp-mh { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-meta); }
|
|
11
12
|
.dp-mh b { font-weight: var(--fw-strong); color: var(--cz-ink); }
|
|
12
13
|
.dp-wk, .dp-row { display: grid; grid-template-columns: repeat(7, 32px); }
|
|
13
14
|
.dp-wk i { font-style: normal; text-align: center; font-size: var(--fs-meta); color: var(--cz-ink3); padding: 2px 0; }
|
|
14
|
-
.dp-d { height: 28px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink); cursor: pointer; font-variant-numeric: tabular-nums; }
|
|
15
|
-
.dp-d:hover:not(:disabled) { background: var(--cz-well); }
|
|
15
|
+
.dp-row .dp-d { height: 28px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink); cursor: pointer; font-variant-numeric: tabular-nums; }
|
|
16
|
+
.dp-row .dp-d:hover:not(:disabled) { background: var(--cz-well); }
|
|
16
17
|
.dp-d.out { color: var(--cz-ink3); }
|
|
17
18
|
.dp-d.td { box-shadow: 0 0 0 1px var(--cz-blue) inset; }
|
|
18
19
|
.dp-d.on { background: var(--cz-blue); color: var(--cz-onsolid); font-weight: var(--fw-strong); }
|
|
@@ -20,8 +21,8 @@
|
|
|
20
21
|
.sw { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--cz-hair); }
|
|
21
22
|
.sw-q { margin: 0 0 6px; font-size: var(--fs-meta); color: var(--cz-ink2); }
|
|
22
23
|
.sw-ch { display: flex; flex-wrap: wrap; gap: 6px; }
|
|
23
|
-
.sw-b { border: 0; border-radius: 999px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair) inset; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink); padding: 4px 11px; cursor: pointer; white-space: nowrap; }
|
|
24
|
-
.sw-b:hover { background: var(--cz-well); }
|
|
25
|
-
.sw-b[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cz-blue) inset; font-weight: var(--fw-strong); }
|
|
24
|
+
.sw .sw-b { border: 0; border-radius: 999px; background: var(--cz-card); box-shadow: 0 0 0 1px var(--cz-hair) inset; font: inherit; font-size: var(--fs-meta); color: var(--cz-ink); padding: 4px 11px; cursor: pointer; white-space: nowrap; }
|
|
25
|
+
.sw .sw-b:hover { background: var(--cz-well); }
|
|
26
|
+
.sw .sw-b[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cz-blue) inset; font-weight: var(--fw-strong); }
|
|
26
27
|
.sw-day:not(:empty) { margin-top: 8px; }
|
|
27
28
|
.pw-dp + .pw-dp { margin-top: 8px; }
|
|
@@ -886,7 +886,6 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
886
886
|
body.cz-home:not(.hm-plist):not(.hm-sheet) .cz-fabw:has(> .lv-tray:not([hidden])) { display: flex; }
|
|
887
887
|
body.cz-home:not(.hm-plist):not(.hm-sheet) .cz-fabw.cz-top { top: 52px; right: 16px; bottom: auto; left: auto; }
|
|
888
888
|
body.cz-home:not(.hm-plist):not(.hm-sheet) .cz-fabw > :is(.cz-fab, .cz-live, .ev-fd) { display: none; }
|
|
889
|
-
body.cz-home:not(.hm-plist) .hm-also, body.cz-home:not(.hm-plist) form#hmForm.hm-box .hm-chip { display: none; }
|
|
890
889
|
/* the sheet the context line opens: the initiative, its files, its pull requests, Sends to */
|
|
891
890
|
.hm-csc { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--cz-ink) 22%, transparent); }
|
|
892
891
|
.hm-cs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 80vh; max-height: 80dvh; overflow-y: auto; box-sizing: border-box; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--cz-card); box-shadow: var(--cz-sheet); display: flex; flex-direction: column; }
|
|
@@ -902,6 +901,18 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
902
901
|
.hm-csr > svg { flex: none; color: var(--cz-ink3); }
|
|
903
902
|
.hm-csr:focus-visible { outline: 2px solid var(--cz-blue); outline-offset: 2px; border-radius: 12px; }
|
|
904
903
|
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
/* The stream and the box of the phone chat, also in the popup's chat column (popup round 3 point 19: "simplify this chat panel on mobile, apply
|
|
907
|
+
* here as well"). ONE set of rules: they apply inside a chat container no wider than a phone. They apply on a phone (Home's
|
|
908
|
+
* conversation, not its list) and in the popup's chat column on any width (pm/cozy-popup.js .cz-pop-chat). The selectors keep the phone rules'
|
|
909
|
+
* weight, so nothing on a wide Home changes. */
|
|
910
|
+
.cz-pop-chat { container: hmchat / inline-size; }
|
|
911
|
+
/* the page is not a container on a phone: a container holds fixed children, and Home's top bar is fixed. So the same rules twice. */
|
|
912
|
+
@media (max-width: 760px) {
|
|
913
|
+
/* the In: chip and "also" leave the box: the context line says it */
|
|
914
|
+
body.cz-home:not(.hm-plist) .hm-also, body.cz-home:not(.hm-plist) form#hmForm.hm-box .hm-chip { display: none; }
|
|
915
|
+
|
|
905
916
|
/* the stream: messages only, from margin to margin. Adler stays on the empty chat's intro. */
|
|
906
917
|
body.cz-home:not(.hm-plist) .hm-log { gap: 0; padding: 12px 0 16px; }
|
|
907
918
|
body.cz-home:not(.hm-plist) .hm-log > * + * { margin-top: 24px; }
|
|
@@ -917,7 +928,7 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
917
928
|
/* no name and time line and no "You · 12:09": still read out to a screen reader. The ask card keeps its name line. */
|
|
918
929
|
body.cz-home:not(.hm-plist) .hm-a:not(.ask):not(.hm-intro) .hm-ab > .hm-who:not(:has(.hm-say)),
|
|
919
930
|
body.cz-home:not(.hm-plist) .hm-u > .hm-you { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
920
|
-
/* Copy, Retry and Make a
|
|
931
|
+
/* Copy, Retry and Make it a task: on the newest message; an older one shows them on press and hold, or on focus */
|
|
921
932
|
body.cz-home:not(.hm-plist) .hm-tools { margin-top: 8px; }
|
|
922
933
|
body.cz-home:not(.hm-plist) .hm-a:not(.last):not(.held):not(:focus-within) .hm-tools { height: 0; margin: 0; overflow: hidden; opacity: 0; }
|
|
923
934
|
|
|
@@ -936,3 +947,44 @@ form.hm-box textarea { min-height: 48px; border: 0; background: none; resize: no
|
|
|
936
947
|
body.cz-home:not(.hm-plist) form#hmForm.hm-box :is(.hm-tool, .ut-mic, .hm-send) { flex: none; width: 44px; height: 44px; margin: 0; }
|
|
937
948
|
body.cz-home:not(.hm-plist) form#hmForm.hm-box > .hm-files { order: 9; flex-basis: 100%; padding: 4px 8px; box-sizing: border-box; }
|
|
938
949
|
}
|
|
950
|
+
@container hmchat (max-width: 760px) {
|
|
951
|
+
/* the In: chip and "also" leave the box: the context line says it */
|
|
952
|
+
.cz-pop-chat .hm-also, .cz-pop-chat form#hmForm.hm-box .hm-chip { display: none; }
|
|
953
|
+
|
|
954
|
+
/* the stream: messages only, from margin to margin. Adler stays on the empty chat's intro. */
|
|
955
|
+
.cz-pop-chat .hm-log { gap: 0; padding: 12px 0 16px; }
|
|
956
|
+
.cz-pop-chat .hm-log > * + * { margin-top: 24px; }
|
|
957
|
+
.cz-pop-chat .hm-log > .hm-worked + .hm-a { margin-top: 2px; }
|
|
958
|
+
.cz-pop-chat .hm-a:not(.hm-intro) > .hm-av { display: none; }
|
|
959
|
+
.cz-pop-chat .hm-a { gap: 0; }
|
|
960
|
+
.cz-pop-chat .hm-a.hm-intro { gap: 10px; }
|
|
961
|
+
.cz-pop-chat :is(.hm-worked, .hm-pills) { padding-left: 0; }
|
|
962
|
+
.cz-pop-chat .hm-wk { padding: 0; gap: 6px; min-height: 28px; }
|
|
963
|
+
.cz-pop-chat .hm-ab .md p { margin: 0 0 8px; }
|
|
964
|
+
.cz-pop-chat .hm-ab .md p:last-child { margin-bottom: 0; }
|
|
965
|
+
.cz-pop-chat .hm-bub { padding: 10px 16px; }
|
|
966
|
+
/* no name and time line and no "You · 12:09": still read out to a screen reader. The ask card keeps its name line. */
|
|
967
|
+
.cz-pop-chat .hm-a:not(.ask):not(.hm-intro) .hm-ab > .hm-who:not(:has(.hm-say)),
|
|
968
|
+
.cz-pop-chat .hm-u > .hm-you { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
|
|
969
|
+
/* Copy, Retry and Make it a task: on the newest message; an older one shows them on press and hold, or on focus */
|
|
970
|
+
.cz-pop-chat .hm-tools { margin-top: 8px; }
|
|
971
|
+
.cz-pop-chat .hm-a:not(.last):not(.held):not(:focus-within) .hm-tools { height: 0; margin: 0; overflow: hidden; opacity: 0; }
|
|
972
|
+
|
|
973
|
+
/* the foot: one box, + · input · mic · send, on the card with no fade over the stream */
|
|
974
|
+
.cz-pop-chat #hmFoot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--cz-card); }
|
|
975
|
+
.cz-pop-chat #hmFoot::before { content: none; }
|
|
976
|
+
.cz-pop-chat form#hmForm.hm-box { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 0; padding: 4px; border-radius: 26px; }
|
|
977
|
+
.cz-pop-chat form#hmForm.hm-box .hm-tb { display: contents; }
|
|
978
|
+
.cz-pop-chat form#hmForm.hm-box .hm-tb > :is(.sp, .hm-key) { display: none; }
|
|
979
|
+
.cz-pop-chat form#hmForm.hm-box > *, .cz-pop-chat form#hmForm.hm-box .hm-tb > * { order: 2; }
|
|
980
|
+
.cz-pop-chat form#hmForm.hm-box .hm-addw { order: 0; width: 44px; flex: none; margin: 0; }
|
|
981
|
+
.cz-pop-chat form#hmForm.hm-box textarea { order: 1; flex: 1; min-width: 0; box-sizing: border-box; min-height: 44px; margin: 0; padding: 11px 8px 11px 4px; line-height: 22px; }
|
|
982
|
+
.cz-pop-chat form#hmForm.hm-box textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* one row: a long placeholder ends in … */
|
|
983
|
+
.cz-pop-chat form#hmForm.hm-box .ut-mic { order: 3; }
|
|
984
|
+
.cz-pop-chat form#hmForm.hm-box .hm-send { order: 4; }
|
|
985
|
+
.cz-pop-chat form#hmForm.hm-box :is(.hm-tool, .ut-mic, .hm-send) { flex: none; width: 44px; height: 44px; margin: 0; }
|
|
986
|
+
.cz-pop-chat form#hmForm.hm-box > .hm-files { order: 9; flex-basis: 100%; padding: 4px 8px; box-sizing: border-box; }
|
|
987
|
+
}
|
|
988
|
+
/* the notes a turn's worked line folds (popup round 3 point 19c): quiet, above its steps */
|
|
989
|
+
.hm-notes { padding: 4px 0 2px 18px; }
|
|
990
|
+
.hm-notes p { margin: 0 0 4px; font-size: var(--fs-meta); color: var(--cz-ink2); }
|