@purview-dev/pm-docs-site 0.0.0-stage → 0.1.0-pre.1
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/LICENSE.md +9 -0
- package/README.md +167 -2
- package/cli.mjs +120 -0
- package/index.d.ts +49 -0
- package/index.mjs +97 -0
- package/lib/options.mjs +67 -0
- package/lib/repo-docs.mjs +148 -0
- package/lib/schema-version.mjs +29 -0
- package/lib/sidebar.mjs +47 -0
- package/lib/site-options.mjs +38 -0
- package/package.json +62 -5
- package/src/components/ExportStamp.astro +29 -0
- package/src/components/FeatureSummary.astro +160 -0
- package/src/components/FeatureTable.astro +64 -0
- package/src/components/ItemDetail.astro +16 -0
- package/src/components/ItemDialog.astro +16 -0
- package/src/components/LinkedFrom.astro +33 -0
- package/src/components/LinkedText.astro +12 -0
- package/src/components/PlanInteractions.astro +18 -0
- package/src/components/RefLink.astro +18 -0
- package/src/components/StateBadge.astro +15 -0
- package/src/components/lib/KanbanItemCard.astro +264 -0
- package/src/components/lib/StatusTimelineFeed.astro +194 -0
- package/src/components/lib/TaskKanbanCard.astro +215 -0
- package/src/content.config.ts +16 -0
- package/src/env.d.ts +7 -0
- package/src/lib/planning-types.ts +207 -0
- package/src/lib/planning.ts +387 -0
- package/src/lib/references.ts +360 -0
- package/src/loaders/repo-docs.ts +69 -0
- package/src/pages/index.astro +158 -0
- package/src/pages/plan/board.astro +140 -0
- package/src/pages/plan/log.astro +83 -0
- package/src/pages/plan/risks/[id].astro +72 -0
- package/src/pages/plan/risks.astro +263 -0
- package/src/pages/plan/roadmap.astro +90 -0
- package/src/routes/plan/briefs.astro +66 -0
- package/src/routes/plan/features/[id].astro +113 -0
- package/src/routes/plan/features/index.astro +29 -0
- package/src/routes/plan/inbox.astro +78 -0
- package/src/routes/plan/milestones/[milestone].astro +113 -0
- package/src/routes/plan/milestones/index.astro +56 -0
- package/src/routes/plan/now.astro +135 -0
- package/src/routes/plan/strategy.astro +194 -0
- package/src/scripts/plan.ts +86 -0
- package/src/styles/components.css +374 -0
- package/src/styles/width.css +4 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
---
|
|
2
|
+
// The vision and the strategy from planning.json's `vision` and `strategy`:
|
|
3
|
+
// the problem, the V lines, the focus, bets, assumptions, what is not being
|
|
4
|
+
// done, and the decisions, newest first.
|
|
5
|
+
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
|
|
6
|
+
|
|
7
|
+
import ExportStamp from '../../components/ExportStamp.astro';
|
|
8
|
+
import LinkedText from '../../components/LinkedText.astro';
|
|
9
|
+
import RefLink from '../../components/RefLink.astro';
|
|
10
|
+
import { loadPlanning, milestoneId } from '../../lib/planning';
|
|
11
|
+
import '../../styles/components.css';
|
|
12
|
+
|
|
13
|
+
const planning = loadPlanning();
|
|
14
|
+
const { vision, strategy } = planning;
|
|
15
|
+
const focusId = milestoneId(strategy.focus.milestone, strategy.milestones);
|
|
16
|
+
const constraints = [
|
|
17
|
+
{ label: 'Time available', value: vision.constraints.timeAvailable },
|
|
18
|
+
{ label: 'Budget', value: vision.constraints.budget },
|
|
19
|
+
{ label: 'Stack', value: vision.constraints.stack },
|
|
20
|
+
];
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<StarlightPage frontmatter={{ title: 'Strategy', description: 'The vision, the focus, bets, assumptions, what is not being done, and the decisions.', tableOfContents: false }}>
|
|
24
|
+
<ExportStamp />
|
|
25
|
+
|
|
26
|
+
<section>
|
|
27
|
+
<h2>Vision</h2>
|
|
28
|
+
<p><strong>Problem:</strong> {vision.problem ? <LinkedText text={vision.problem} /> : 'Not set.'}</p>
|
|
29
|
+
<p><strong>Customer:</strong> {vision.customer ? <LinkedText text={vision.customer} /> : 'Not set.'}</p>
|
|
30
|
+
<h3>v1 is done when</h3>
|
|
31
|
+
{vision.outcomes.length === 0 && <p class="plan-empty">No V lines.</p>}
|
|
32
|
+
<ul>
|
|
33
|
+
{
|
|
34
|
+
vision.outcomes.map((outcome) => (
|
|
35
|
+
<li>
|
|
36
|
+
<strong>{outcome.id}</strong> <LinkedText text={outcome.text} />
|
|
37
|
+
</li>
|
|
38
|
+
))
|
|
39
|
+
}
|
|
40
|
+
</ul>
|
|
41
|
+
{
|
|
42
|
+
vision.outOfScope.length > 0 && (
|
|
43
|
+
<>
|
|
44
|
+
<h3>Out of scope</h3>
|
|
45
|
+
<ul>
|
|
46
|
+
{vision.outOfScope.map((line) => (
|
|
47
|
+
<li><LinkedText text={line} /></li>
|
|
48
|
+
))}
|
|
49
|
+
</ul>
|
|
50
|
+
</>
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
<dl class="plan-facts">
|
|
54
|
+
{
|
|
55
|
+
constraints.map((entry) => (
|
|
56
|
+
<div>
|
|
57
|
+
<dt>{entry.label}</dt>
|
|
58
|
+
<dd>{entry.value ? <LinkedText text={entry.value} /> : '–'}</dd>
|
|
59
|
+
</div>
|
|
60
|
+
))
|
|
61
|
+
}
|
|
62
|
+
</dl>
|
|
63
|
+
</section>
|
|
64
|
+
|
|
65
|
+
<section>
|
|
66
|
+
<h2>Focus</h2>
|
|
67
|
+
<p>
|
|
68
|
+
<strong>
|
|
69
|
+
{focusId ? <RefLink ref={focusId} /> : strategy.focus.milestone ? <LinkedText text={strategy.focus.milestone} /> : 'No focus set'}
|
|
70
|
+
</strong>
|
|
71
|
+
</p>
|
|
72
|
+
{strategy.focus.whyNow && (
|
|
73
|
+
<p>
|
|
74
|
+
<LinkedText text={strategy.focus.whyNow} />
|
|
75
|
+
</p>
|
|
76
|
+
)}
|
|
77
|
+
</section>
|
|
78
|
+
|
|
79
|
+
<section>
|
|
80
|
+
<h2>Bets</h2>
|
|
81
|
+
{strategy.bets.length === 0 && <p class="plan-empty">No bets.</p>}
|
|
82
|
+
{
|
|
83
|
+
strategy.bets.length > 0 && (
|
|
84
|
+
<table class="plan-table">
|
|
85
|
+
<thead>
|
|
86
|
+
<tr>
|
|
87
|
+
<th scope="col">Bet</th>
|
|
88
|
+
<th scope="col">Evidence</th>
|
|
89
|
+
<th scope="col">We will know when</th>
|
|
90
|
+
<th scope="col">Status</th>
|
|
91
|
+
</tr>
|
|
92
|
+
</thead>
|
|
93
|
+
<tbody>
|
|
94
|
+
{strategy.bets.map((bet) => (
|
|
95
|
+
<tr>
|
|
96
|
+
<td>
|
|
97
|
+
<strong>{bet.id}</strong> <LinkedText text={bet.statement} />
|
|
98
|
+
</td>
|
|
99
|
+
<td>{bet.evidence ? <LinkedText text={bet.evidence} /> : '–'}</td>
|
|
100
|
+
<td>{bet.signal ? <LinkedText text={bet.signal} /> : '–'}</td>
|
|
101
|
+
<td>{bet.status ? <LinkedText text={bet.status} /> : '–'}</td>
|
|
102
|
+
</tr>
|
|
103
|
+
))}
|
|
104
|
+
</tbody>
|
|
105
|
+
</table>
|
|
106
|
+
)
|
|
107
|
+
}
|
|
108
|
+
</section>
|
|
109
|
+
|
|
110
|
+
<section>
|
|
111
|
+
<h2>Assumptions</h2>
|
|
112
|
+
{strategy.assumptions.length === 0 && <p class="plan-empty">No assumptions.</p>}
|
|
113
|
+
{
|
|
114
|
+
strategy.assumptions.length > 0 && (
|
|
115
|
+
<table class="plan-table">
|
|
116
|
+
<thead>
|
|
117
|
+
<tr>
|
|
118
|
+
<th scope="col">Assumption</th>
|
|
119
|
+
<th scope="col">Test</th>
|
|
120
|
+
<th scope="col">Status</th>
|
|
121
|
+
</tr>
|
|
122
|
+
</thead>
|
|
123
|
+
<tbody>
|
|
124
|
+
{strategy.assumptions.map((assumption) => (
|
|
125
|
+
<tr>
|
|
126
|
+
<td>
|
|
127
|
+
<strong>{assumption.id}</strong> <LinkedText text={assumption.statement} />
|
|
128
|
+
</td>
|
|
129
|
+
<td>{assumption.test ? <LinkedText text={assumption.test} /> : '–'}</td>
|
|
130
|
+
<td>{assumption.status ? <LinkedText text={assumption.status} /> : '–'}</td>
|
|
131
|
+
</tr>
|
|
132
|
+
))}
|
|
133
|
+
</tbody>
|
|
134
|
+
</table>
|
|
135
|
+
)
|
|
136
|
+
}
|
|
137
|
+
</section>
|
|
138
|
+
|
|
139
|
+
<section>
|
|
140
|
+
<h2>Not doing</h2>
|
|
141
|
+
{strategy.notDoing.length === 0 && <p class="plan-empty">Nothing ruled out.</p>}
|
|
142
|
+
{
|
|
143
|
+
strategy.notDoing.length > 0 && (
|
|
144
|
+
<table class="plan-table">
|
|
145
|
+
<thead>
|
|
146
|
+
<tr>
|
|
147
|
+
<th scope="col">Not doing</th>
|
|
148
|
+
<th scope="col">Why</th>
|
|
149
|
+
<th scope="col">Revisit</th>
|
|
150
|
+
</tr>
|
|
151
|
+
</thead>
|
|
152
|
+
<tbody>
|
|
153
|
+
{strategy.notDoing.map((entry) => (
|
|
154
|
+
<tr>
|
|
155
|
+
<td><LinkedText text={entry.thing} /></td>
|
|
156
|
+
<td>{entry.why ? <LinkedText text={entry.why} /> : '–'}</td>
|
|
157
|
+
<td>{entry.revisit ? <LinkedText text={entry.revisit} /> : '–'}</td>
|
|
158
|
+
</tr>
|
|
159
|
+
))}
|
|
160
|
+
</tbody>
|
|
161
|
+
</table>
|
|
162
|
+
)
|
|
163
|
+
}
|
|
164
|
+
</section>
|
|
165
|
+
|
|
166
|
+
<section>
|
|
167
|
+
<h2>Decisions</h2>
|
|
168
|
+
{strategy.decisions.length === 0 && <p class="plan-empty">No decisions recorded.</p>}
|
|
169
|
+
{
|
|
170
|
+
strategy.decisions.length > 0 && (
|
|
171
|
+
<table class="plan-table">
|
|
172
|
+
<thead>
|
|
173
|
+
<tr>
|
|
174
|
+
<th scope="col">Date</th>
|
|
175
|
+
<th scope="col">Decision</th>
|
|
176
|
+
<th scope="col">Why</th>
|
|
177
|
+
<th scope="col">Rejected</th>
|
|
178
|
+
</tr>
|
|
179
|
+
</thead>
|
|
180
|
+
<tbody>
|
|
181
|
+
{strategy.decisions.map((entry) => (
|
|
182
|
+
<tr>
|
|
183
|
+
<td class="plan-nowrap">{entry.date ? <LinkedText text={entry.date} /> : '–'}</td>
|
|
184
|
+
<td><LinkedText text={entry.decision} /></td>
|
|
185
|
+
<td>{entry.why ? <LinkedText text={entry.why} /> : '–'}</td>
|
|
186
|
+
<td>{entry.rejected ? <LinkedText text={entry.rejected} /> : '–'}</td>
|
|
187
|
+
</tr>
|
|
188
|
+
))}
|
|
189
|
+
</tbody>
|
|
190
|
+
</table>
|
|
191
|
+
)
|
|
192
|
+
}
|
|
193
|
+
</section>
|
|
194
|
+
</StarlightPage>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// The Board and Roadmap in the browser: a plain click on a card opens its item
|
|
2
|
+
// popup (any other click is the browser's), and Board columns collapse and
|
|
3
|
+
// remember it. Without this script every card is a link and every column open.
|
|
4
|
+
|
|
5
|
+
export const STORAGE_KEY = 'pm-docs-site:board:collapsed';
|
|
6
|
+
|
|
7
|
+
/** The collapsed column names in storage; junk or no storage is none. */
|
|
8
|
+
export function readCollapsed(): Set<string> {
|
|
9
|
+
try {
|
|
10
|
+
const value: unknown = JSON.parse(localStorage.getItem(STORAGE_KEY) ?? '[]');
|
|
11
|
+
|
|
12
|
+
return new Set(Array.isArray(value) ? value.filter((name): name is string => typeof name === 'string') : []);
|
|
13
|
+
} catch {
|
|
14
|
+
return new Set();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function writeCollapsed(names: Set<string>): void {
|
|
19
|
+
try {
|
|
20
|
+
localStorage.setItem(STORAGE_KEY, JSON.stringify([...names]));
|
|
21
|
+
} catch {
|
|
22
|
+
// No storage (private mode, a blocked origin): the state lasts until the page closes.
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function applyCollapsed(names: Set<string>): void {
|
|
27
|
+
document.documentElement.dataset.boardCollapsed = [...names].join(' ');
|
|
28
|
+
|
|
29
|
+
for (const column of document.querySelectorAll<HTMLElement>('[data-column]')) {
|
|
30
|
+
const collapsed = names.has(column.dataset.column ?? '');
|
|
31
|
+
|
|
32
|
+
column.toggleAttribute('data-collapsed', collapsed);
|
|
33
|
+
column.querySelector('.plan-column__toggle')?.setAttribute('aria-expanded', String(!collapsed));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function openItem(link: HTMLAnchorElement): void {
|
|
38
|
+
const dialog = document.querySelector<HTMLDialogElement>('dialog[data-item-dialog]');
|
|
39
|
+
const template = document.querySelector<HTMLTemplateElement>(`template[data-item-detail="${CSS.escape(link.dataset.item ?? '')}"]`);
|
|
40
|
+
|
|
41
|
+
if (!dialog || !template) {
|
|
42
|
+
window.location.assign(link.href);
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
dialog.querySelector('#plan-dialog-title')!.textContent = link.textContent?.trim() ?? '';
|
|
47
|
+
dialog.querySelector('[data-item-dialog-body]')!.replaceChildren(template.content.cloneNode(true));
|
|
48
|
+
dialog.querySelector('[data-item-dialog-open]')!.setAttribute('href', link.getAttribute('href') ?? '');
|
|
49
|
+
dialog.addEventListener('close', () => link.focus(), { once: true });
|
|
50
|
+
dialog.showModal();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function start(): void {
|
|
54
|
+
const collapsed = readCollapsed();
|
|
55
|
+
|
|
56
|
+
applyCollapsed(collapsed);
|
|
57
|
+
|
|
58
|
+
document.addEventListener('click', (event) => {
|
|
59
|
+
const target = event.target as Element | null;
|
|
60
|
+
const link = target?.closest<HTMLAnchorElement>('a[data-item]');
|
|
61
|
+
|
|
62
|
+
if (link) {
|
|
63
|
+
if (event.button !== 0 || event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) return;
|
|
64
|
+
event.preventDefault();
|
|
65
|
+
openItem(link);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (target?.closest('[data-item-dialog-close]')) {
|
|
70
|
+
target.closest('dialog')?.close();
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const toggle = target?.closest<HTMLButtonElement>('.plan-column__toggle');
|
|
75
|
+
const name = toggle?.closest<HTMLElement>('[data-column]')?.dataset.column;
|
|
76
|
+
|
|
77
|
+
if (name) {
|
|
78
|
+
if (collapsed.has(name)) collapsed.delete(name);
|
|
79
|
+
else collapsed.add(name);
|
|
80
|
+
writeCollapsed(collapsed);
|
|
81
|
+
applyCollapsed(collapsed);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
start();
|
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The astrocomponents.dev components read a small set of design tokens
|
|
3
|
+
* (--c-primary, --c-text-1, --r-md, --font-sans, …). They map onto Starlight's
|
|
4
|
+
* theme variables here, which Starlight switches between light and dark.
|
|
5
|
+
*/
|
|
6
|
+
:root {
|
|
7
|
+
--c-primary: var(--sl-color-accent);
|
|
8
|
+
--c-primary-light: var(--sl-color-accent-high);
|
|
9
|
+
--c-text-1: var(--sl-color-white);
|
|
10
|
+
--c-text-2: var(--sl-color-gray-2);
|
|
11
|
+
--c-text-3: var(--sl-color-gray-3);
|
|
12
|
+
--r-md: 10px;
|
|
13
|
+
--sp-4: 0.9rem;
|
|
14
|
+
--font-sans: var(--sl-font);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* A kanban board: always one row of five columns, scrolling sideways when the
|
|
18
|
+
page is narrower than the board, never wrapping a column onto a new line. */
|
|
19
|
+
.plan-columns {
|
|
20
|
+
--plan-open: minmax(11rem, 1fr);
|
|
21
|
+
--plan-shut: 3rem;
|
|
22
|
+
display: grid;
|
|
23
|
+
grid-template-columns: var(--col-now, var(--plan-open)) var(--col-next, var(--plan-open)) var(--col-foryou, var(--plan-open)) var(--col-waiting, var(--plan-open)) var(--col-done, var(--plan-open));
|
|
24
|
+
gap: 1rem;
|
|
25
|
+
align-items: start;
|
|
26
|
+
overflow-x: auto;
|
|
27
|
+
padding-bottom: 0.5rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.plan-column {
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
gap: 0.75rem;
|
|
34
|
+
padding: 0.75rem;
|
|
35
|
+
border: 1px solid var(--sl-color-hairline);
|
|
36
|
+
border-radius: 12px;
|
|
37
|
+
background: var(--sl-color-bg);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.plan-column > h2 {
|
|
41
|
+
margin: 0;
|
|
42
|
+
font-size: var(--sl-text-base);
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.plan-column > * {
|
|
48
|
+
max-width: none !important;
|
|
49
|
+
margin-top: 0 !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.plan-column__toggle {
|
|
53
|
+
all: unset;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: space-between;
|
|
57
|
+
gap: 0.5rem;
|
|
58
|
+
width: 100%;
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
border-radius: 6px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.plan-column__toggle:focus-visible {
|
|
64
|
+
outline: 2px solid var(--sl-color-accent);
|
|
65
|
+
outline-offset: 2px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* A collapsed column (src/scripts/plan.ts, set before paint on the root) is a
|
|
69
|
+
narrow strip with its name and count written down it. */
|
|
70
|
+
:root[data-board-collapsed~='now'] .plan-columns {
|
|
71
|
+
--col-now: var(--plan-shut);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
:root[data-board-collapsed~='next'] .plan-columns {
|
|
75
|
+
--col-next: var(--plan-shut);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
:root[data-board-collapsed~='foryou'] .plan-columns {
|
|
79
|
+
--col-foryou: var(--plan-shut);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:root[data-board-collapsed~='waiting'] .plan-columns {
|
|
83
|
+
--col-waiting: var(--plan-shut);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
:root[data-board-collapsed~='done'] .plan-columns {
|
|
87
|
+
--col-done: var(--plan-shut);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:root[data-board-collapsed~='now'] [data-column='now'],
|
|
91
|
+
:root[data-board-collapsed~='next'] [data-column='next'],
|
|
92
|
+
:root[data-board-collapsed~='foryou'] [data-column='foryou'],
|
|
93
|
+
:root[data-board-collapsed~='waiting'] [data-column='waiting'],
|
|
94
|
+
:root[data-board-collapsed~='done'] [data-column='done'] {
|
|
95
|
+
padding: 0.75rem 0.25rem;
|
|
96
|
+
min-width: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:root[data-board-collapsed~='now'] [data-column='now'] .plan-column__cards,
|
|
100
|
+
:root[data-board-collapsed~='next'] [data-column='next'] .plan-column__cards,
|
|
101
|
+
:root[data-board-collapsed~='foryou'] [data-column='foryou'] .plan-column__cards,
|
|
102
|
+
:root[data-board-collapsed~='waiting'] [data-column='waiting'] .plan-column__cards,
|
|
103
|
+
:root[data-board-collapsed~='done'] [data-column='done'] .plan-column__cards {
|
|
104
|
+
display: none;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:root[data-board-collapsed~='now'] [data-column='now'] .plan-column__toggle,
|
|
108
|
+
:root[data-board-collapsed~='next'] [data-column='next'] .plan-column__toggle,
|
|
109
|
+
:root[data-board-collapsed~='foryou'] [data-column='foryou'] .plan-column__toggle,
|
|
110
|
+
:root[data-board-collapsed~='waiting'] [data-column='waiting'] .plan-column__toggle,
|
|
111
|
+
:root[data-board-collapsed~='done'] [data-column='done'] .plan-column__toggle {
|
|
112
|
+
writing-mode: vertical-rl;
|
|
113
|
+
justify-content: start;
|
|
114
|
+
align-items: center;
|
|
115
|
+
gap: 0.75rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.plan-column__cards {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-direction: column;
|
|
121
|
+
gap: 0.75rem;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.plan-column__cards > * {
|
|
125
|
+
margin-top: 0 !important;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* A card's title is the link to its item's page; a plain click opens the item popup. */
|
|
129
|
+
.plan-item-link {
|
|
130
|
+
color: inherit;
|
|
131
|
+
text-decoration: none;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.plan-item-link:hover,
|
|
135
|
+
.plan-item-link:focus-visible {
|
|
136
|
+
text-decoration: underline;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.k-item__tag[href] {
|
|
140
|
+
text-decoration: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.plan-dialog {
|
|
144
|
+
width: min(42rem, calc(100vw - 2rem));
|
|
145
|
+
max-height: calc(100vh - 4rem);
|
|
146
|
+
padding: 1.25rem 1.5rem;
|
|
147
|
+
border: 1px solid var(--sl-color-hairline);
|
|
148
|
+
border-radius: 12px;
|
|
149
|
+
background: var(--sl-color-bg);
|
|
150
|
+
color: var(--sl-color-text);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.plan-dialog::backdrop {
|
|
154
|
+
background: rgb(0 0 0 / 0.45);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.plan-dialog__head {
|
|
158
|
+
display: flex;
|
|
159
|
+
justify-content: space-between;
|
|
160
|
+
align-items: start;
|
|
161
|
+
gap: 1rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.plan-dialog__head h2 {
|
|
165
|
+
margin: 0;
|
|
166
|
+
font-size: var(--sl-text-xl);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.plan-dialog__close {
|
|
170
|
+
border: 0;
|
|
171
|
+
background: none;
|
|
172
|
+
color: inherit;
|
|
173
|
+
font-size: 1.5rem;
|
|
174
|
+
line-height: 1;
|
|
175
|
+
cursor: pointer;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.plan-dialog__body > * + * {
|
|
179
|
+
margin-top: 0.75rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.plan-dialog__foot {
|
|
183
|
+
margin: 1rem 0 0;
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.plan-empty {
|
|
188
|
+
color: var(--sl-color-gray-3);
|
|
189
|
+
font-size: var(--sl-text-sm);
|
|
190
|
+
margin: 0;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* A risk's RAG status, wherever it is shown: the word is always printed, so
|
|
194
|
+
the colour is never the only signal. */
|
|
195
|
+
.rag {
|
|
196
|
+
display: inline-block;
|
|
197
|
+
padding: 0.1rem 0.45rem;
|
|
198
|
+
border-radius: 4px;
|
|
199
|
+
border: 1px solid var(--sl-color-hairline);
|
|
200
|
+
font-size: var(--sl-text-xs);
|
|
201
|
+
font-weight: 600;
|
|
202
|
+
text-transform: uppercase;
|
|
203
|
+
letter-spacing: 0.03em;
|
|
204
|
+
white-space: nowrap;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.rag--red {
|
|
208
|
+
color: #b91c1c;
|
|
209
|
+
background: #ef44441a;
|
|
210
|
+
border-color: #ef444466;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.rag--amber {
|
|
214
|
+
color: #b45309;
|
|
215
|
+
background: #f59e0b1a;
|
|
216
|
+
border-color: #f59e0b66;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.rag--green {
|
|
220
|
+
color: #047857;
|
|
221
|
+
background: #10b9811a;
|
|
222
|
+
border-color: #10b98166;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:root[data-theme='dark'] .rag--red {
|
|
226
|
+
color: #fca5a5;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:root[data-theme='dark'] .rag--amber {
|
|
230
|
+
color: #fcd34d;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
:root[data-theme='dark'] .rag--green {
|
|
234
|
+
color: #6ee7b7;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.export-stamp {
|
|
238
|
+
color: var(--sl-color-gray-3);
|
|
239
|
+
font-size: var(--sl-text-xs);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* An item's state or roadmap label: the word is always printed. */
|
|
243
|
+
.state {
|
|
244
|
+
display: inline-block;
|
|
245
|
+
padding: 0.1rem 0.45rem;
|
|
246
|
+
border-radius: 4px;
|
|
247
|
+
border: 1px solid var(--sl-color-hairline);
|
|
248
|
+
font-size: var(--sl-text-xs);
|
|
249
|
+
font-weight: 600;
|
|
250
|
+
text-transform: uppercase;
|
|
251
|
+
letter-spacing: 0.03em;
|
|
252
|
+
white-space: nowrap;
|
|
253
|
+
vertical-align: middle;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.state--now {
|
|
257
|
+
color: var(--sl-color-accent-high);
|
|
258
|
+
background: var(--sl-color-accent-low);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.state--done {
|
|
262
|
+
color: #047857;
|
|
263
|
+
border-color: #10b98166;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.state--dropped,
|
|
267
|
+
.state--blocked {
|
|
268
|
+
color: #b91c1c;
|
|
269
|
+
border-color: #ef444466;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.state--waiting {
|
|
273
|
+
color: #b45309;
|
|
274
|
+
border-color: #f59e0b66;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
:root[data-theme='dark'] .state--done {
|
|
278
|
+
color: #6ee7b7;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
:root[data-theme='dark'] .state--dropped,
|
|
282
|
+
:root[data-theme='dark'] .state--blocked {
|
|
283
|
+
color: #fca5a5;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
:root[data-theme='dark'] .state--waiting {
|
|
287
|
+
color: #fcd34d;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/* Tables and fact lists on the plan pages. */
|
|
291
|
+
.plan-table td:first-child {
|
|
292
|
+
min-width: 12rem;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.plan-table td.plan-nowrap {
|
|
296
|
+
white-space: nowrap;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.plan-count {
|
|
300
|
+
color: var(--sl-color-gray-3);
|
|
301
|
+
font-size: var(--sl-text-base);
|
|
302
|
+
font-weight: 400;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.plan-facts {
|
|
306
|
+
display: grid;
|
|
307
|
+
grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
|
|
308
|
+
gap: 0.75rem;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.plan-facts > div {
|
|
312
|
+
padding: 0.6rem 0.9rem;
|
|
313
|
+
border: 1px solid var(--sl-color-hairline);
|
|
314
|
+
border-radius: 10px;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.plan-facts dt {
|
|
318
|
+
color: var(--sl-color-gray-3);
|
|
319
|
+
font-size: var(--sl-text-xs);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.plan-facts dd {
|
|
323
|
+
margin: 0;
|
|
324
|
+
font-weight: 600;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.plan-progress {
|
|
328
|
+
width: 100%;
|
|
329
|
+
max-width: 24rem;
|
|
330
|
+
height: 0.5rem;
|
|
331
|
+
accent-color: var(--sl-color-accent);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.plan-focus {
|
|
335
|
+
margin-left: 0.5rem;
|
|
336
|
+
padding: 0.1rem 0.5rem;
|
|
337
|
+
border-radius: 999px;
|
|
338
|
+
background: var(--sl-color-accent-low);
|
|
339
|
+
color: var(--sl-color-accent-high);
|
|
340
|
+
font-size: var(--sl-text-xs);
|
|
341
|
+
vertical-align: middle;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.plan-meta {
|
|
345
|
+
color: var(--sl-color-gray-2);
|
|
346
|
+
font-size: var(--sl-text-sm);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/* Cards in a wrapping grid (milestones, inbox ideas, plan tasks). */
|
|
350
|
+
.plan-cards {
|
|
351
|
+
display: grid;
|
|
352
|
+
grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
|
|
353
|
+
gap: 1rem;
|
|
354
|
+
align-items: start;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.plan-cards > * {
|
|
358
|
+
margin-top: 0 !important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.plan-card {
|
|
362
|
+
padding: 1rem;
|
|
363
|
+
border: 1px solid var(--sl-color-hairline);
|
|
364
|
+
border-radius: 12px;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.plan-card h3 {
|
|
368
|
+
margin: 0 0 0.35rem;
|
|
369
|
+
font-size: var(--sl-text-lg);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.plan-card p {
|
|
373
|
+
margin: 0.35rem 0 0;
|
|
374
|
+
}
|