create-pmos 0.656.0 → 0.658.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 +20 -14
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +19 -0
- package/workspace/guide/layout.md +16 -11
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/public/pm/cozy-events-view.js +130 -69
- package/workspace/public/pm/cozy-events.css +90 -83
- package/workspace/public/pm/cozy-events.js +44 -15
- package/workspace/public/pm/cozy-goals.css +49 -63
- package/workspace/public/pm/goals-ds.js +207 -0
- package/workspace/public/pm/goals-model.js +9 -2
- package/workspace/public/pm/premium-goals.js +146 -61
- package/workspace/public/premium-events.html +20 -8
- package/workspace/public/premium-goals.html +11 -6
- package/workspace/test-lists/goals-ds-page.json +9 -0
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
<meta name="pmos-nonce" content="" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
7
7
|
<title>PMOS · Events</title>
|
|
8
|
-
<!-- Events (
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
<!-- Events (initiative events-place; rebuilt from the design system's blocks by events-ds-page, board EventsDS on Exploring 3): everything
|
|
9
|
+
with a date in one page. Main + side. The top line is the path, the product chip, then Search, + and More. Main: Late, Today (a Timeline)
|
|
10
|
+
and Coming up, each a block. Side: the Calendar block and Show. It reads GET /api/events-place; the page is drawn from the PMOS design
|
|
11
|
+
system (Komorebi: pm-ds on the page panel, brand, charts and komorebi sheets); the page code is pm/cozy-events.js and its markup
|
|
12
|
+
pm/cozy-events-view.js. -->
|
|
11
13
|
<link rel="preload" href="/vendor/plus-jakarta-sans-var.woff2" as="font" type="font/woff2" crossorigin />
|
|
12
14
|
<link rel="stylesheet" href="/pm/brand.css" />
|
|
13
15
|
<link rel="stylesheet" href="/pm/charts.css" />
|
|
@@ -18,10 +20,21 @@
|
|
|
18
20
|
<body class="cz evp-page">
|
|
19
21
|
<main class="cz-panel stage evp pm-ds" id="stage">
|
|
20
22
|
<div class="evp-hd">
|
|
21
|
-
<h1 class="
|
|
23
|
+
<nav class="pm-path" aria-label="Path"><h1 class="evp-h1"><b>Events</b></h1></nav>
|
|
22
24
|
<div class="evp-scope" id="evpScope"></div>
|
|
23
|
-
<p class="evp-dayf pm-chip" id="evpDay" hidden>Only <b></b><button type="button" class="evp-ib pm-btn" data-evp-clear aria-label="Show every day" title="Show every day"><svg class="pm-ic" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"><path d="M6 6l12 12M18 6L6 18"/></svg></button></p>
|
|
24
|
-
<
|
|
25
|
+
<p class="evp-dayf pm-chip" id="evpDay" hidden>Only <b></b><button type="button" class="evp-ib pm-btn" data-evp-clear aria-label="Show every day" title="Show every day"><svg class="pm-ic" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 6l12 12M18 6L6 18"/></svg></button></p>
|
|
26
|
+
<span class="evp-sp"></span>
|
|
27
|
+
<button type="button" class="evp-ib pm-btn" data-evp-search aria-label="Search" title="Search"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM21 21l-5-5"/></svg></button>
|
|
28
|
+
<button type="button" class="evp-ib evp-add pm-btn" data-evp-add aria-label="Add your own date" title="Add your own date"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M12 5v14M5 12h14"/></svg></button>
|
|
29
|
+
<span class="evp-mw">
|
|
30
|
+
<button type="button" class="evp-ib pm-btn" data-evp-more aria-haspopup="menu" aria-expanded="false" aria-controls="evpMenu" aria-label="More" title="More"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h.01M12 12h.01M19 12h.01"/></svg></button>
|
|
31
|
+
<div class="evp-menu pm-menu" id="evpMenu" role="menu" aria-label="More" hidden>
|
|
32
|
+
<button type="button" role="menuitem" data-evp-view="month"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5.5h16v14H4zM4 10h16M8.5 3.5v4M15.5 3.5v4"/></svg>The month</button>
|
|
33
|
+
<button type="button" role="menuitem" data-evp-view="week"><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5.5h16v14H4zM4 10h16M10 10v9.5M14 10v9.5"/></svg>The week</button>
|
|
34
|
+
<button type="button" role="menuitem" data-evp-showall><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12zM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z"/></svg>Show every date</button>
|
|
35
|
+
<button type="button" role="menuitem" data-evp-connect><svg class="pm-ic" aria-hidden="true" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M9 7V3M15 7V3M6 7h12v5a6 6 0 0 1-12 0zM12 18v3"/></svg>Connectors</button>
|
|
36
|
+
</div>
|
|
37
|
+
</span>
|
|
25
38
|
</div>
|
|
26
39
|
<div class="evp-grid">
|
|
27
40
|
<div class="evp-left">
|
|
@@ -34,10 +47,9 @@
|
|
|
34
47
|
<div id="evpHid"></div>
|
|
35
48
|
<div id="evpList" aria-live="polite"><p class="evp-quiet pm-meta" role="status">Reading the dates.</p></div>
|
|
36
49
|
</div>
|
|
37
|
-
<aside class="evp-side
|
|
50
|
+
<aside class="evp-side" aria-label="The month">
|
|
38
51
|
<div id="evpMonth"></div>
|
|
39
52
|
<div id="evpShow"></div>
|
|
40
|
-
<p class="evp-hint pm-meta">Press a type to hide it or show it. Press a day to see only that day. Press the month to open the full calendar.</p>
|
|
41
53
|
</aside>
|
|
42
54
|
</div>
|
|
43
55
|
<div class="evp-toast pm-toast" id="toast" role="status" aria-live="polite"></div>
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
<meta name="pmos-nonce" content="" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
|
7
7
|
<title>PMOS · Goals</title>
|
|
8
|
-
<!-- Goals
|
|
8
|
+
<!-- Goals, rebuilt from design system blocks (initiative goals-ds-page; board GoalsDS on Exploring 3, page "pages"): the path with the product
|
|
9
|
+
chip, the period chip, Search, New key result and More; then one column of blocks: Where it stands with one Suggestion, North Star, input and
|
|
10
|
+
guardrail as Number blocks, the Key results Table, and the Conversation block (the one chat, pm/page-chat.js) at the end.
|
|
11
|
+
First built as Goals (initiative goals-place, slice 9 of the six-place navigation; boards 8, 13, 31, 32, 33 on Exploring 2, handover
|
|
9
12
|
/mnt/project-files/goals-handover/). "Am I on track? What do I do?" as one hierarchy: the North Star, then one table Objective › Key result
|
|
10
13
|
(Actual / target, Left) › Levers › Initiative, a Budget row per health budget with work in it, and the work no key result names (Unlinked).
|
|
11
14
|
A press on a key result, an initiative or ⋯ › Set up opens it in the one popup (pm/cozy-popup.js) with the chat about it. It reads
|
|
@@ -25,16 +28,18 @@
|
|
|
25
28
|
<main class="stage cz-panel gl" id="stage">
|
|
26
29
|
<h1 class="vh">Goals</h1>
|
|
27
30
|
<div class="pm-row gl-bar">
|
|
28
|
-
<
|
|
29
|
-
<span id="glPick"></span>
|
|
31
|
+
<nav class="pm-path" aria-label="Path"><b>Goals</b><svg class="pm-ic" width="14" height="14" viewBox="0 0 24 24" aria-hidden="true"><path d="M10 8l4 4-4 4"/></svg><span id="glPick"></span></nav>
|
|
30
32
|
<span class="pm-chip gl-per" id="glPer" hidden></span>
|
|
31
33
|
<span class="gl-sp"></span>
|
|
32
34
|
<button type="button" class="pm-btn" id="glFind" aria-label="Find a goal" title="Find a goal"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M11 4.5a6.5 6.5 0 1 0 0 13a6.5 6.5 0 1 0 0-13M16 16l4 4"/></svg></button>
|
|
33
|
-
<
|
|
35
|
+
<button type="button" class="pm-btn" id="glNew" aria-label="New key result" title="New key result"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg></button>
|
|
34
36
|
<span class="gl-mw"><button type="button" class="pm-btn" id="glMore" aria-haspopup="menu" aria-expanded="false" aria-controls="glMoreMenu" aria-label="More: set up, charts and dashboards, export" title="More"><svg class="pm-ic" viewBox="0 0 24 24" aria-hidden="true"><path d="M5 12h.01M12 12h.01M19 12h.01"/></svg></button><div class="pm-menu gl-menu" id="glMoreMenu" role="menu" aria-label="More" hidden></div></span>
|
|
35
37
|
</div>
|
|
36
|
-
<div
|
|
37
|
-
|
|
38
|
+
<div class="gl-col">
|
|
39
|
+
<div id="glBody" aria-live="polite"><div class="gl-sk" aria-hidden="true"><i class="pm-block flat"></i><i class="pm-block flat"></i><i class="pm-block flat"></i></div></div>
|
|
40
|
+
<section class="pm-block gl-talk" id="glTalk" aria-label="Ask about your goals" hidden><div class="head"><svg class="pm-ic" width="16" height="16" viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z"/></svg><h2 class="pm-h-sm">Ask about your goals</h2></div><div class="gl-chat" id="glChat"></div></section>
|
|
41
|
+
<p class="pm-meta gl-n" id="glNote" hidden>Reports are routine jobs, so they live in <a href="/premium-routine.html">Routine</a>: who each one tells, when it runs, what PMOS did.</p>
|
|
42
|
+
</div>
|
|
38
43
|
</main>
|
|
39
44
|
<noscript>This page needs JavaScript.</noscript>
|
|
40
45
|
<script type="module" src="/pm/premium-goals.js"></script>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Goals rebuilt from design system blocks (initiative goals-ds-page, done test C2-C7): pm/goals-ds.js, pm/goals-model.js pace, the page's top line, Conversation and sheet. Pure, node.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"goals-ds.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"goals-ds.test.js": 2
|
|
8
|
+
}
|
|
9
|
+
}
|