create-pmos 0.321.0 → 0.322.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 +1 -1
- 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/guide/briefing-premium.md +2 -2
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/premium-vw-jira-test.js +156 -0
- package/workspace/public/pm/premium-board.js +2 -0
- package/workspace/public/pm/premium-initiative.js +2 -0
- package/workspace/public/pm/premium-vw-jira-model.js +118 -0
- package/workspace/public/pm/premium-vw-jira.css +79 -0
- package/workspace/public/pm/premium-vw-jira.js +109 -0
- package/workspace/test-lists/premium-vw-jira.json +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.322.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": {
|
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-10-19T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T15:33:17Z"}
|
|
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-10-19T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T15:33:17Z"}
|
|
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-10-19T15:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-10-19T15:33:17Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -258,7 +258,7 @@ Board is the third place on the rail, at `/premium-board.html`. It reads what th
|
|
|
258
258
|
- **List** shows the late and at-risk initiatives first, then the board's now view, up to 100 loaded and 25 on screen at a time. A row shows the owner and lane, a status chip when it is not on track, how far through the workflow it is (and "derived" when the workflow engine placed it), a progress bar only when a record holds progress, and the planned finish only when an end date was set ("Not planned" otherwise). "Do this first" appears only when the first row is late.
|
|
259
259
|
- **By stage** has one column for each stage of the board's workflow with the board's own count and its first five initiatives.
|
|
260
260
|
- **List** and **Timeline** show ten tasks a page with Previous and Next; **By stage** shows six cards a column with Show more. **Timeline** draws a bar for each initiative that has both a start and an end date, with the days left or over, and counts the rest. With no dates on record it says so and draws nothing.
|
|
261
|
-
- **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. **Coming up** shows the next release, from the releases ledger.
|
|
261
|
+
- **Sprint** appears when an agent session has read Jira for the board. Otherwise it says there is none. Press it to open the sprint's facts, with the sprint as a board in a second tab: **To do**, **In progress** and **Done** columns from the last Jira read, with the goal, the dates, the days left and the points. When the board has more than one sprint, you can switch to another one. Press a card to open its ticket in another tab. A card that is on no initiative of this board is drawn, but it does not open. The board is read only: Jira owns each ticket's status and sprint, so you move tickets in Jira. Tickets with no sprint are not in this read. **Coming up** shows the next release, from the releases ledger.
|
|
262
262
|
- **Metrics** appears above the Initiatives card on the board of any workspace except the home one (PMOS itself), and counts from that workspace's own repository. It has four tiles. **Corrections per 100 runs** is the corrections logged on the week's runs in `planning/runs/agent-runs.jsonl`; a week with fewer than 10 runs is left blank. **Merged a week** counts the commits on the first-parent line of the trunk. **Blocked** and **Idle for a month** come from the workflow engine, which keeps no history. From the first day the card is read, PMOS keeps their counts once a day in the workspace's state folder (`board-metric-history.jsonl`), so their charts start on that day and their caption says **history starts today** (later, the date). Earlier weeks read **Not kept yet**. Move over a chart, or use the arrow keys, to read a week. A tile that cannot be counted says **Not read** and why; a repository with no run log says **No runs yet**. The line above the tiles starts with how many tiles need a look, and those tiles have a **Needs a look** chip and an orange outline. The line ends with **open Insights**, which opens the same board's Insights page. Press a tile for its definition and values, with the read-only agent beside it. A target is set on Insights, not here. A measure with a target shows it under the value, draws it as a dashed line, and carries **On target** or its gap (for example **2 short**); off target, it also has the orange outline. A measure without a target draws no line. Day and Month are off. It was tested only on made-up repositories, not on a real IDPF or microsite repository.
|
|
263
263
|
- **The top bar** names the page and the board. With more than one board a menu switches between them, and **Chat** opens the board in the dialog with the read-only agent.
|
|
264
264
|
- **Core documents** lists the board's documents with their state, cadence and writer, a summary (drafts to review, not started, up to date), a progress bar, a filter and a search. A document with a file opens in the dialog, read only, with its path and state; a draft there has **Issue it**, which marks it issued through the console's own route and sends nothing, and **Draft it again**, which starts a new draft that replaces this one (a board draft has no Edit tab). **Draft it** starts the existing read-only run that writes a draft and sends nothing; **Draft the N not started** does that for each document that can be drafted. **Set it up** and **Open** go to the console. **Add a document** opens a form (title, who writes it, where it lives) and saves a document the core set does not cover on the board's record, in `custom-docs.jsonl`. A document with no link reads "Not started". A document with a link to Confluence or Google Docs reads "Linked" and shows its address. PMOS does not read or sync the linked page, so a linked document is never counted as up to date. Issue and Drop are not on this page.
|
|
@@ -279,7 +279,7 @@ The initiative page is at `/premium-initiative.html?id=<initiative>`. A click on
|
|
|
279
279
|
- **The header** shows a status chip, the owner and the planned finish. Each appears only when a record holds it. Under it, the stage strip shows how far through the board's workflow the initiative is.
|
|
280
280
|
- **Overview** shows the description (the part of the record's title after " — "), then the next step with its reason, its action and what happens if you wait, as the workflow engine states them, and who it waits on. **PMOS can help** offers up to three presses that do something real: a draft of the first core document not started (the existing read-only run) and a question for the read-only agent. The health reasons and the board's warnings are shown as written.
|
|
281
281
|
- **Overview** is one full-width card, as in the mockup; there is no separate Checks card. A blocked step shows as a note, and "All N workflow steps" lists every step of the engine with the evidence each states.
|
|
282
|
-
- **Tasks** lists the PRD requirements and the board's tracker items for this initiative. The repository records no result for each requirement, so a requirement says "No result" and is never drawn as done or open. **By stage** groups them by state. **Timeline** draws a bar for each task that has both a start and a due date, and lists the rest. Press a task to read its record; every Core documents row opens too: a document with no file shows what it is for, who writes it and what a draft will contain, with Draft it where a draft can run; for a PMOS task you can change its status. **Add a task** writes a PMOS task to the board's own record; with no dates the board plans it from tomorrow for a week. Jira tickets stay read-only. **Add a document** works as on the Board, with a phase as well, and saves on the initiative's record.
|
|
282
|
+
- **Tasks** lists the PRD requirements and the board's tracker items for this initiative. The repository records no result for each requirement, so a requirement says "No result" and is never drawn as done or open. **By stage** groups them by state. **Timeline** draws a bar for each task that has both a start and a due date, and lists the rest. Press a task to read its record; every Core documents row opens too: a document with no file shows what it is for, who writes it and what a draft will contain, with Draft it where a draft can run; for a PMOS task you can change its status. **Add a task** writes a PMOS task to the board's own record; with no dates the board plans it from tomorrow for a week. Jira tickets stay read-only. A Jira task also opens its ticket in a second tab. The tab shows the key, the title, the status, the sprint, the points, the priority and size, the ticket's text from the Jira draft, how many subtasks are done, the links to other tickets and the PRD, and **Open in Jira**. The assignee, comments, history and the other fields stay in Jira, because the Jira read holds no people. A ticket with no record says what is missing. **Add a document** works as on the Board, with a phase as well, and saves on the initiative's record.
|
|
283
283
|
- **Core documents** has the same counts, filter and search as the Board's card, for this initiative. **Draft it** starts the existing read-only run that writes a draft and sends nothing. Technical documents (the record, the rubric, the stories, the review and the explainer) are grouped and not counted.
|
|
284
284
|
- **The document sheet.** A document that has a file opens in a dialog with **Read** (the file's text, its front matter as a grid and an outline), **Edit** (the file as plain Markdown, a reason, and **Save**), **Proposals** (**Ask the agent**, the open proposals with **Accept** and **Reject**, and the closed ones), **Edit log** (the revisions and other entries of the document sheet; **Show change** on a revision marks the words it added and removed against the revision before), **Health** (the document-health checks; a check with no input is not counted) and **Relations** (the documents it draws on, its goals, and the documents that use it, from the document library; a related file opens in the same sheet, and a goal or a missing file is listed but cannot be opened). The status line also names each **copy in another tool** (a Confluence page or Google Doc, with its state: in step, behind, both changed and so on), or offers **Link a copy**. Pressing it opens a panel with each copy's state, a link to open it, **Check now** (one agent session reads the copies with your connectors) and a box to paste a link. The sheet never writes to a copy; updating one is in the console. The file changes only when you press Save or Accept, and every change is kept in the Edit log with its reason. Save and Reject need a reason. A proposal made on text that has since changed shows which sections are out of date and cannot take them. The agent beside the sheet still only reads. A draft shows a bar above its text: **Issue it** marks the draft issued, through the console's own route, and sends nothing; it refuses while the Edit tab holds unsaved changes. Bold and undo buttons and Drop are not built on this page.
|
|
285
285
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.322.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.322.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/workspace/package.json
CHANGED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
/* premium-vw-jira-test.js — the Jira tabs of the premium viewer in a real browser (initiative premium-viewer S5; planning/prd/premium-viewer-prd.md R5 to R7).
|
|
4
|
+
* A real server; the Board page's model and the two Jira reads are route stand-ins (GET /api/board-premium, /api/boards/sprints, /api/jira/tickets), since
|
|
5
|
+
* Jira readings are written only by an agent session holding the PM's Atlassian connection.
|
|
6
|
+
* B the Board's Sprint card opens the sprint as a board by status in a viewer tab · K a card opens its ticket · N no Jira data says so
|
|
7
|
+
* F floors: 390 px with no sideways scroll, 44 px targets, light and dark, no write */
|
|
8
|
+
const path = require('path');
|
|
9
|
+
const { spawn } = require('child_process');
|
|
10
|
+
const { findBrowser } = require('./lib/find-browser');
|
|
11
|
+
const T = require('./test-run').configure({ name: 'premium-vw-jira' });
|
|
12
|
+
const BP = require('./lib/board-premium.js');
|
|
13
|
+
const F = require('./fixtures/board-premium-facts.js');
|
|
14
|
+
|
|
15
|
+
const BASE = T.BASE;
|
|
16
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
17
|
+
const until = async (fn, ms = 15000, step = 120) => { const t0 = Date.now(); for (;;) { const v = await fn(); if (v) return v; if (Date.now() - t0 > ms) return v; await sleep(step); } };
|
|
18
|
+
const results = [];
|
|
19
|
+
const ok = (name, cond, extra = '') => { results.push({ name, cond: !!cond }); console.log(`${cond ? '✓' : '✗'} ${name}${!cond && extra !== '' ? ' — ' + String(extra).slice(0, 500) : ''}`); };
|
|
20
|
+
let srv = null; let browser = null;
|
|
21
|
+
const finish = async (code) => {
|
|
22
|
+
if (browser) await browser.close().catch(() => {});
|
|
23
|
+
if (srv) { try { srv.kill('SIGKILL'); } catch { /* gone */ } }
|
|
24
|
+
T.killTmux();
|
|
25
|
+
const bad = results.filter((x) => !x.cond).length;
|
|
26
|
+
console.log(`\n${results.length - bad}/${results.length} premium-vw-jira assertions passed`);
|
|
27
|
+
process.exit(code !== undefined ? code : (bad ? 1 : 0));
|
|
28
|
+
};
|
|
29
|
+
process.on('unhandledRejection', (e) => { console.error(e); finish(1); });
|
|
30
|
+
|
|
31
|
+
const SECTIONS = [['story', 'User Story'], ['acceptance', 'Acceptance Criteria']].map(([key, name]) => ({ key, name }));
|
|
32
|
+
const SP = { name: 'Sprint 14', state: 'active', start: '2026-10-07', end: '2026-10-21' };
|
|
33
|
+
const SPRINTS = {
|
|
34
|
+
ok: true, ws: 'w1', board: 'w1', source: 'jira', readAt: new Date().toISOString(), velocity: [],
|
|
35
|
+
sprints: [
|
|
36
|
+
{ ...SP, goal: { from: 'tickets', text: 'Ship guided setup to new workspaces' }, points: { committed: 10, done: 3, unestimated: 0 }, pace: { daysLeft: 2 }, counts: { todo: 2, doing: 1, done: 1 },
|
|
37
|
+
issues: [
|
|
38
|
+
{ key: 'PMOS-142', summary: 'Migration check for older workspaces', status: 'To Do', category: 'todo', initiative: 'self-serve-v2', flagged: true, reason: 'Flagged in Jira', points: 5 },
|
|
39
|
+
{ key: 'PMOS-141', summary: 'Setup drops custom fields', status: 'Code review', category: 'doing', initiative: 'self-serve-v2', flagged: false, reason: null, points: 2 },
|
|
40
|
+
{ key: 'PMOS-138', summary: 'Guided setup copy', status: 'Done', category: 'done', initiative: 'self-serve-v2', flagged: false, reason: null, points: 3 },
|
|
41
|
+
{ key: 'OPS-9', summary: 'Rotate keys', status: 'To Do', category: 'todo', initiative: null, flagged: false, reason: null, points: null }] },
|
|
42
|
+
{ name: 'Sprint 15', state: 'future', start: '2026-10-22', end: '2026-11-04', goal: null, jiraGoal: null, points: null, counts: { todo: 0, doing: 0, done: 0 }, issues: [] }],
|
|
43
|
+
};
|
|
44
|
+
const TICKETS = {
|
|
45
|
+
ok: true, initiative: 'self-serve-v2', title: 'Self-serve onboarding v2', prd: 'planning/prd/self-serve-v2-prd.md', checkedAt: new Date().toISOString(),
|
|
46
|
+
epic: { mode: 'existing', key: 'PMOS-100', summary: 'Self-serve v2' }, sectionNames: SECTIONS,
|
|
47
|
+
tickets: [
|
|
48
|
+
{ id: 'TD-01', summary: 'Migration check for older workspaces', type: 'Story', priority: 'High', estimate: 'M', depends: [], key: 'PMOS-142',
|
|
49
|
+
sections: { story: 'As an admin I keep my **custom fields**.<img src=x onerror="window.__pwned=1">', acceptance: '- [ ] Runs on every older workspace\n- [ ] A report lists the failures' },
|
|
50
|
+
jira: { status: 'To Do', category: 'todo', sprint: SP, subtasks: { done: 1, total: 3 }, flagged: true, reason: 'Flagged in Jira', url: 'https://acme.atlassian.net/browse/PMOS-142', stale: false } },
|
|
51
|
+
{ id: 'TD-02', summary: 'Release to existing workspaces', type: 'Task', priority: 'Medium', estimate: null, depends: ['TD-01'], key: 'PMOS-152', sections: { story: 'Ship it.' },
|
|
52
|
+
jira: { status: 'In Progress', category: 'doing', sprint: null, subtasks: { done: 0, total: 0 }, flagged: false, reason: null, url: 'https://acme.atlassian.net/browse/PMOS-152', stale: false } }],
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
(async () => {
|
|
56
|
+
const exe = findBrowser();
|
|
57
|
+
if (!exe) { console.log('✗ no Chrome/Chromium on this machine — the suite cannot run'); return finish(1); }
|
|
58
|
+
let chromium;
|
|
59
|
+
try { ({ chromium } = require('playwright-core')); } catch { console.log('✗ playwright-core is not installed'); return finish(1); }
|
|
60
|
+
srv = spawn(process.execPath, [path.join(__dirname, 'server.js')], { cwd: __dirname, stdio: 'ignore', env: T.env({ PMOS_WS_PORT: String(T.PORT), PMOS_NO_OPEN: '1' }) });
|
|
61
|
+
await T.waitForServer(BASE);
|
|
62
|
+
browser = await chromium.launch({ executablePath: exe });
|
|
63
|
+
|
|
64
|
+
const model = (sprints) => BP.build(F.facts({ sprints }));
|
|
65
|
+
const open = async ({ w = 1280, h = 900, theme = 'light', sprints = SPRINTS, tickets = TICKETS } = {}) => {
|
|
66
|
+
const ctx = await browser.newContext({ viewport: { width: w, height: h }, colorScheme: theme });
|
|
67
|
+
await ctx.addInitScript((t) => { try { localStorage.setItem('pmos.premium.openAs', 'popup'); localStorage.setItem('pmos.c3.theme', t); } catch { /* none */ } }, theme);
|
|
68
|
+
const page = await ctx.newPage(), errors = [], posts = [], reads = [];
|
|
69
|
+
page.on('pageerror', (e) => errors.push(String((e && e.message) || e)));
|
|
70
|
+
page.on('request', (rq) => { const u = new URL(rq.url()); if (rq.method() === 'POST') posts.push(u.pathname); if (/^\/api\/(jira|boards\/sprints)/.test(u.pathname)) reads.push(u.pathname + u.search); });
|
|
71
|
+
const json = (r, b) => r.fulfill({ contentType: 'application/json', body: JSON.stringify(b) });
|
|
72
|
+
await page.route('**/api/board-premium*', (r) => json(r, { ok: true, state: 'ready', model: model(sprints), as_of: Date.now() }));
|
|
73
|
+
await page.route('**/api/boards/sprints*', (r) => json(r, sprints));
|
|
74
|
+
await page.route('**/api/jira/tickets*', (r) => json(r, tickets));
|
|
75
|
+
await page.goto(BASE + '/premium-board.html');
|
|
76
|
+
await until(() => page.evaluate(() => !!document.querySelector('#cSpr [data-open="board:sprint"]') || /No sprint/.test((document.querySelector('#cSpr') || {}).textContent || '')));
|
|
77
|
+
return { ctx, page, errors, posts, reads };
|
|
78
|
+
};
|
|
79
|
+
const tabIds = (p) => p.evaluate(() => [...document.querySelectorAll('#vTabs .vtab')].map((t) => t.dataset.vw));
|
|
80
|
+
const paneText = (p, id) => p.evaluate((x) => { const e = document.querySelector(`#dOut .obody.vw[data-vw="${CSS.escape(x)}"]`); return e && !e.hidden ? e.textContent : null; }, id);
|
|
81
|
+
|
|
82
|
+
/* B the sprint */
|
|
83
|
+
const A = await open();
|
|
84
|
+
const p = A.page;
|
|
85
|
+
await p.click('#cSpr [data-open="board:sprint"]');
|
|
86
|
+
const board = await until(async () => { const t = await paneText(p, 'sprint:w1'); return t && /Migration check/.test(t) ? t : null; });
|
|
87
|
+
ok('B1 the Sprint card opens the dialog with the sprint as a second tab', !!board && (await tabIds(p)).join() === 'main,sprint:w1', JSON.stringify(await tabIds(p)));
|
|
88
|
+
ok('B2 the board names the sprint, its dates, goal, days left and points from the read', /Sprint 14 · 7 Oct – 21 Oct/.test(board) && /Goal: Ship guided setup/.test(board) && /2 days left/.test(board) && /3 of 10 points done/.test(board), board);
|
|
89
|
+
const cols = await p.evaluate(() => [...document.querySelectorAll('.jcol')].map((c) => c.querySelector('.jcolh').textContent + ':' + c.querySelectorAll('.jcrd').length).join());
|
|
90
|
+
ok('B3 the cards sit in To do, In progress and Done by the reading\'s category', cols === 'To do2:2,In progress1:1,Done1:1', cols);
|
|
91
|
+
ok('B4 a card shows its own Jira status where it differs from the column, a flag, and points', await p.evaluate(() => { const c = [...document.querySelectorAll('.jcrd')]; const r = c.find((x) => /PMOS-141/.test(x.textContent)), f = c.find((x) => /PMOS-142/.test(x.textContent)); return /Code review/.test(r.textContent) && /2/.test(r.querySelector('.jpts').textContent) && f.classList.contains('risk') && /Flagged in Jira/.test(f.textContent); }));
|
|
92
|
+
ok('B5 a ticket on no initiative of the board is drawn but not a button, and the note counts it', await p.evaluate(() => { const o = [...document.querySelectorAll('.jcrd')].find((x) => /OPS-9/.test(x.textContent)); return o.tagName === 'DIV' && o.classList.contains('off'); }) && /1 ticket is in this sprint but on no initiative/.test(board));
|
|
93
|
+
ok('B6 the view says it is read-only and moves nothing', /Read-only: Jira owns each ticket's status and sprint/.test(board) && !(await p.$('#dOut .obody.vw [draggable="true"]')));
|
|
94
|
+
await p.click('.jseg [data-sp="Sprint 15"]');
|
|
95
|
+
ok('B7 the other sprint is one press away, and an empty one draws empty columns', !!(await until(async () => { const t = await paneText(p, 'sprint:w1'); return t && /Sprint 15 · 22 Oct – 4 Nov/.test(t) && /No sprint goal on record/.test(t) && (t.match(/None/g) || []).length === 3; })));
|
|
96
|
+
await p.click('.jseg [data-sp="Sprint 14"]');
|
|
97
|
+
await until(() => p.$('.jcrd[data-k="PMOS-142"]'));
|
|
98
|
+
|
|
99
|
+
/* K the ticket */
|
|
100
|
+
await p.click('.jcrd[data-k="PMOS-142"]');
|
|
101
|
+
const tk = await until(async () => { const t = await paneText(p, 'jira:PMOS-142'); return t && /Acceptance Criteria/.test(t) ? t : null; });
|
|
102
|
+
ok('K1 a card opens its ticket as a third tab', !!tk && (await tabIds(p)).join() === 'main,sprint:w1,jira:PMOS-142', JSON.stringify(await tabIds(p)));
|
|
103
|
+
ok('K2 the ticket shows key, title, status, sprint, points and priority', /PMOS-142/.test(tk) && /Migration check for older workspaces/.test(tk) && /To Do/.test(tk) && /Sprint 14 · active/.test(tk) && /5 pt/.test(tk) && /High/.test(tk), tk);
|
|
104
|
+
ok('K3 the description is the draft\'s sections, rendered as markdown with nothing run', /User Story/.test(tk) && await p.evaluate(() => !!document.querySelector('.jmd strong') && !document.querySelector('.jmd img[onerror]') && !window.__pwned));
|
|
105
|
+
ok('K4 subtasks are the reading\'s count, and links come from the draft', /Subtasks · 1 of 3 done/.test(tk) && /blocks/.test(tk) && /PMOS-152/.test(tk) && /planning\/prd\/self-serve-v2-prd.md/.test(tk));
|
|
106
|
+
ok('K5 no comments, history or fields panel: a line sends the rest to Jira with a real link', /Assignee, comments, history and the other fields stay in Jira/.test(tk) && !/Comments \(/.test(tk)
|
|
107
|
+
&& await p.evaluate(() => [...document.querySelectorAll('#dOut .obody.vw:not([hidden]) a[href]')].every((a) => a.href === 'https://acme.atlassian.net/browse/PMOS-142' && a.target === '_blank' && /noopener/.test(a.rel))));
|
|
108
|
+
await p.click('#dOut .obody.vw:not([hidden]) [data-jt="PMOS-152"]');
|
|
109
|
+
ok('K6 a linked ticket opens in its own tab', !!(await until(async () => { const t = await paneText(p, 'jira:PMOS-152'); return t && /Release to existing workspaces/.test(t) && /No sprint/.test(t); })));
|
|
110
|
+
await p.click('#vTabs .vtab[data-vw="main"]');
|
|
111
|
+
const k7 = await until(() => p.evaluate(() => { const m = document.querySelector('#oMain'); return !m.hidden && /Ship guided setup/.test(m.textContent) ? m.textContent : null; }));
|
|
112
|
+
ok('K7 the first tab is the sprint dialog\'s own facts, as before', !!k7, await p.evaluate(() => [document.querySelector('#oMain').hidden, document.querySelector('#oMain').textContent.slice(0, 300)].join(' | ')));
|
|
113
|
+
ok('K8 the views read the two Jira routes only, and wrote nothing', A.posts.filter((x) => !/thread|note/.test(x)).length === 0 && A.reads.every((r) => /^\/api\/(jira\/tickets|boards\/sprints)\?/.test(r)) && A.reads.some((r) => /jira\/tickets\?.*initiative=self-serve-v2/.test(r)), JSON.stringify([A.posts, A.reads]));
|
|
114
|
+
ok('K9 no page error', A.errors.length === 0, A.errors.join(' | '));
|
|
115
|
+
await A.ctx.close();
|
|
116
|
+
|
|
117
|
+
/* N no Jira data */
|
|
118
|
+
{
|
|
119
|
+
const N = await open({ sprints: { ok: true, source: 'none', readAt: null, sprints: [], velocity: [] }, tickets: { ok: false, error: 'no such initiative' } });
|
|
120
|
+
const r = await N.page.evaluate(async () => { const m = await import('/pm/premium-vw-jira.js'); m.openSprint({ ws: 'w1', board: 'w1' }); return true; }).catch(() => false);
|
|
121
|
+
const t = r && await until(async () => { const x = await paneText(N.page, 'sprint:w1'); return x && /Nothing to show/.test(x) ? x : null; });
|
|
122
|
+
ok('N1 with no Jira read the sprint tab says what is missing', !!t && /No sprint is on record for this board/.test(t), t);
|
|
123
|
+
await N.page.evaluate(async () => { const m = await import('/pm/premium-vw-jira.js'); m.openTicket({ ws: 'w1', board: 'w1', initiative: 'gone', ref: 'PMOS-1' }); });
|
|
124
|
+
const k = await until(async () => { const x = await paneText(N.page, 'jira:PMOS-1'); return x && /Nothing to show/.test(x) ? x : null; });
|
|
125
|
+
ok('N2 a ticket that cannot be read says why, and invents nothing', !!k && /no such initiative/.test(k), k);
|
|
126
|
+
await N.ctx.close();
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* I the initiative page loads the ticket view for its Jira tasks */
|
|
130
|
+
{
|
|
131
|
+
const I = await open();
|
|
132
|
+
await I.page.goto(BASE + '/premium-initiative.html');
|
|
133
|
+
ok('I1 the initiative page loads the Jira view module without a page error', !!(await until(() => I.page.evaluate(() => !!window.__premiumVwJira))) && I.errors.length === 0, I.errors.join(' | '));
|
|
134
|
+
await I.ctx.close();
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* F floors */
|
|
138
|
+
for (const theme of ['light', 'dark']) {
|
|
139
|
+
const S = await open({ w: 390, h: 844, theme });
|
|
140
|
+
await S.page.click('#cSpr [data-open="board:sprint"]');
|
|
141
|
+
await until(() => S.page.$('.jcrd[data-k="PMOS-142"]'));
|
|
142
|
+
await S.page.evaluate(() => { const d = document.querySelector('#dlg'); if (d) d.classList.add('vopen'); const b = document.querySelector('#dTabs button[data-t="out"]'); if (b) b.click(); });
|
|
143
|
+
await sleep(400);
|
|
144
|
+
const f = await S.page.evaluate(() => {
|
|
145
|
+
const pane = document.querySelector('#dOut .obody.vw:not([hidden])');
|
|
146
|
+
const small = [...pane.querySelectorAll('button.jcrd,.jseg button,.jbtn')].filter((b) => b.getBoundingClientRect().height && b.getBoundingClientRect().height < 44).map((b) => b.textContent.trim().slice(0, 30));
|
|
147
|
+
const crd = getComputedStyle(pane.querySelector('.jcrd')).backgroundColor, ink = getComputedStyle(pane.querySelector('.jcrd b')).color;
|
|
148
|
+
return { wide: document.documentElement.scrollWidth > innerWidth + 1, paneWide: pane.scrollWidth > pane.clientWidth + 1, small, crd, ink };
|
|
149
|
+
});
|
|
150
|
+
ok(`F1 ${theme}: 390 px has no sideways scroll and every target is 44 px or more`, !f.wide && !f.paneWide && !f.small.length, JSON.stringify(f));
|
|
151
|
+
const lum = (c) => { const m = c.match(/\d+(\.\d+)?/g).map(Number); return (m[0] * 299 + m[1] * 587 + m[2] * 114) / 1000; };
|
|
152
|
+
ok(`F2 ${theme}: cards follow the theme`, theme === 'dark' ? lum(f.ink) > lum(f.crd) : lum(f.ink) < lum(f.crd), JSON.stringify(f));
|
|
153
|
+
await S.ctx.close();
|
|
154
|
+
}
|
|
155
|
+
await finish();
|
|
156
|
+
})();
|
|
@@ -8,6 +8,7 @@ import { $, $$, esc, openDlg, closeDlg, toast, loadThread, onScroll, wireRail, l
|
|
|
8
8
|
import { issueBody } from './premium-doc-edit.js';
|
|
9
9
|
import { mountDocSheet } from './premium-doc-sheet.js';
|
|
10
10
|
import * as MT from './premium-metric-tiles.js';
|
|
11
|
+
import { openSprint } from './premium-vw-jira.js';
|
|
11
12
|
import { dotsBtn, openMenu, closeMenu, menuKey, asksHtml, onAsks, openIniForm } from './premium-acts.js';
|
|
12
13
|
|
|
13
14
|
const MODE_KEY = 'pmos.premium.openAs';
|
|
@@ -188,6 +189,7 @@ function openRow(r) {
|
|
|
188
189
|
const d = r.dialog;
|
|
189
190
|
openDlg({ eye: d.eye + ' · real data', title: r.title, sub: r.sub + (r.statusLabel ? ' · ' + r.statusLabel : ''), say: d.say, stream: turnA(logHtml(d)) + turnA(ptx(d.say)) + cardHtml(r), noteKey: r.key, pane: paneHtml(r), label: d.pane.label });
|
|
190
191
|
loadThread(r.key);
|
|
192
|
+
if (r.key === 'board:sprint') openSprint({ ws: M.board.ws, board: M.board.id, name: r.title }); // the sprint as a board by status, beside its facts (premium-viewer S5)
|
|
191
193
|
setTimeout(() => { const b = $('#dBody'); b.scrollTop = b.scrollHeight; }, 120);
|
|
192
194
|
}
|
|
193
195
|
$('#dBody').addEventListener('click', (e) => { const lt = e.target.closest('#logT'); if (lt) { const c = $('#alog').classList.toggle('col'); lt.setAttribute('aria-expanded', !c); } });
|
|
@@ -8,6 +8,7 @@ import { pmPost } from './http.js';
|
|
|
8
8
|
import { mountDocSheet } from './premium-doc-sheet.js';
|
|
9
9
|
import { $, $$, esc, openDlg, closeDlg, setMode, toast, loadThread, onScroll, wireRail, logHtml, turnA, ptx, pillOf, kv, H2, CHECK, CHEV, crumbHtml, wireCrumb, AI, openAddDoc, setPageGaps } from './premium-shell.js';
|
|
10
10
|
import { barHtml, onBar, closeMenu } from './premium-acts.js';
|
|
11
|
+
import { openTicket } from './premium-vw-jira.js';
|
|
11
12
|
|
|
12
13
|
let M = null; // the model
|
|
13
14
|
let taskView = 'list', taskPage = 0;
|
|
@@ -134,6 +135,7 @@ function openTask(t) {
|
|
|
134
135
|
const act = t.pmos ? `<div class="tkact"><span class="label">Status</span><div class="seg tkst" role="group" aria-label="Status"><i class="pill"></i>${STATES.map((s) => `<button data-tks="${esc(s)}" aria-pressed="${t.state === s}">${s}</button>`).join('')}</div></div><p class="note" style="margin-top:12px">A PMOS task is kept on the board. Jira tickets are read-only here: Jira owns their status and dates.</p>` : `<p class="xn">${t.src === 'PRD requirement' ? 'Read from the initiative’s PRD. Nothing on this page changes it.' : 'Read from the board. Jira owns its status and dates.'}</p>`;
|
|
135
136
|
openDlg({ eye: 'Task · real data', title: t.title, sub: M.title, say, stream: turnA(ptx(say)), noteKey: null, pane: `<article class="paper doc">${kv(rows)}${act}</article>`, label: 'Task' });
|
|
136
137
|
$('#askF').hidden = true; if ($('#oMain .tkst')) pillOf($('#oMain .tkst'));
|
|
138
|
+
if (taskKind(t) === 'jira' && t.ref) openTicket({ ws: M.board.ws, board: M.board.id, initiative: M.id, ref: t.ref }); // the ticket beside its facts (premium-viewer S5)
|
|
137
139
|
$$('#oMain [data-tks]').forEach((b) => { b.onclick = async () => {
|
|
138
140
|
if (b.getAttribute('aria-pressed') === 'true') return;
|
|
139
141
|
const res = await pmPost('/api/boards/tasks/state', { ws: M.board.ws, board: M.board.id, task: t.uid, state: b.dataset.tks });
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/* pm/premium-vw-jira-model.js — the pure half of the Jira views in the premium viewer (initiative premium-viewer, R5 and R6). No DOM, no
|
|
2
|
+
* request: it turns the answers of the two routes the views read into what they draw, so a node test loads it with import().
|
|
3
|
+
* GET /api/jira/tickets?ws&initiative → the initiative's ticket draft and the last Jira reading of each pushed ticket (lib/jira-tickets.js view)
|
|
4
|
+
* GET /api/boards/sprints?ws&board → the board's sprints from the cached Jira readings (scripts/boards.js sprintsOf)
|
|
5
|
+
* Every value comes from one of the two answers. The readings hold titles, statuses, sprints, subtask counts and points only (lib/jira-status.js:
|
|
6
|
+
* "never a description, a comment or a person"), so the ticket draws no assignee and no subtask list, and says that the rest stays in Jira.
|
|
7
|
+
* Nothing here writes to Jira: PMOS owns the ticket text and Jira owns its status (D88). */
|
|
8
|
+
|
|
9
|
+
export const COLS = [['todo', 'To do'], ['doing', 'In progress'], ['done', 'Done']];
|
|
10
|
+
const CAT = { todo: 'To do', doing: 'In progress', done: 'Done' };
|
|
11
|
+
const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
12
|
+
const str = (s) => (typeof s === 'string' ? s.trim() : '');
|
|
13
|
+
const plural = (n, one, many) => n + ' ' + (n === 1 ? one : many);
|
|
14
|
+
|
|
15
|
+
/** 2026-10-07 → "7 Oct"; anything else → '' */
|
|
16
|
+
export function day(iso) {
|
|
17
|
+
const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || ''));
|
|
18
|
+
return m ? +m[3] + ' ' + MON[+m[2] - 1] : '';
|
|
19
|
+
}
|
|
20
|
+
/** A link to Jira only when the reading holds an http(s) address. */
|
|
21
|
+
export const safeUrl = (u) => (/^https?:\/\/[^\s"'<>]+$/i.test(str(u)) ? str(u) : '');
|
|
22
|
+
/** The issue in a sprint read, by key, with the sprint it is in. */
|
|
23
|
+
function inSprints(sprints, key) {
|
|
24
|
+
for (const sp of (sprints && Array.isArray(sprints.sprints) ? sprints.sprints : [])) {
|
|
25
|
+
const i = (sp.issues || []).find((x) => x && x.key === key);
|
|
26
|
+
if (i) return { issue: i, sprint: sp };
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* One ticket. view: the /api/jira/tickets answer (or null), ref: a Jira key or a draft ticket id, sprints: the /api/boards/sprints answer (or null).
|
|
33
|
+
* → { ok: true, ... } or { ok: false, why } when no record holds the ticket.
|
|
34
|
+
*/
|
|
35
|
+
export function ticketModel(view, ref, sprints = null) {
|
|
36
|
+
const r = str(ref);
|
|
37
|
+
const tickets = view && view.ok && Array.isArray(view.tickets) ? view.tickets : [];
|
|
38
|
+
const t = tickets.find((x) => x && (x.key === r || x.id === r)) || null;
|
|
39
|
+
const key = t ? t.key || '' : r;
|
|
40
|
+
const hit = key ? inSprints(sprints, key) : null;
|
|
41
|
+
if (!t && !hit) {
|
|
42
|
+
return { ok: false, ref: r, why: view && view.ok === false && view.error ? `The Jira tickets could not be read: ${view.error}.`
|
|
43
|
+
: `${r || 'This ticket'} is not in this initiative's ticket draft or in a sprint read, so there is nothing to show. It may be in Jira only.` };
|
|
44
|
+
}
|
|
45
|
+
const j = t && t.jira ? t.jira : null;
|
|
46
|
+
const sp = (j && j.sprint) || (hit && hit.sprint ? { name: hit.sprint.name, state: hit.sprint.state, start: hit.sprint.start, end: hit.sprint.end } : null);
|
|
47
|
+
const status = (j && j.status) || (hit && hit.issue.status) || '';
|
|
48
|
+
const category = (j && j.category) || (hit && hit.issue.category) || null;
|
|
49
|
+
const names = view && Array.isArray(view.sectionNames) ? view.sectionNames : [];
|
|
50
|
+
const sections = t && t.sections ? names.filter((n) => str(t.sections[n.key])).map((n) => ({ key: n.key, name: n.name, text: t.sections[n.key] })) : [];
|
|
51
|
+
const byId = new Map(tickets.map((x) => [x.id, x]));
|
|
52
|
+
const links = [];
|
|
53
|
+
for (const id of (t && Array.isArray(t.depends) ? t.depends : [])) {
|
|
54
|
+
const d = byId.get(id);
|
|
55
|
+
links.push({ rel: 'depends on', ref: d && d.key ? d.key : id, key: d ? d.key || '' : '', title: d ? d.summary || '' : '', open: !!d });
|
|
56
|
+
}
|
|
57
|
+
for (const x of tickets) if (t && x !== t && Array.isArray(x.depends) && x.depends.includes(t.id)) links.push({ rel: 'blocks', ref: x.key || x.id, key: x.key || '', title: x.summary || '', open: true });
|
|
58
|
+
const sub = j && j.subtasks && Number.isInteger(j.subtasks.total) && j.subtasks.total > 0 ? { done: Math.min(j.subtasks.done || 0, j.subtasks.total), total: j.subtasks.total } : null;
|
|
59
|
+
const epic = view && view.epic && view.epic.key ? { key: view.epic.key, title: view.epic.summary || '' } : null;
|
|
60
|
+
const points = hit && typeof hit.issue.points === 'number' ? hit.issue.points : null;
|
|
61
|
+
const flagged = !!((j && j.flagged) || (hit && hit.issue.flagged));
|
|
62
|
+
return {
|
|
63
|
+
ok: true, id: t ? t.id : '', key, inJira: !!key && (!t || !!t.key), title: (t && t.summary) || (hit && hit.issue.summary) || key,
|
|
64
|
+
type: (t && t.type) || '', priority: (t && t.priority) || '', estimate: (t && t.estimate) || '', points,
|
|
65
|
+
status: status || (t && !t.key ? 'Not in Jira yet' : ''), category: category || (t && !t.key ? 'draft' : 'todo'),
|
|
66
|
+
sprint: sp && sp.name ? { name: sp.name, state: sp.state || '', dates: [day(sp.start), day(sp.end)].filter(Boolean).join(' – ') } : null,
|
|
67
|
+
flagged, reason: flagged ? (j && j.reason) || (hit && hit.issue.reason) || 'Flagged in Jira' : '',
|
|
68
|
+
stale: !!(j && j.stale), sections, subtasks: sub, links, epic, prd: view && view.prd ? String(view.prd) : '',
|
|
69
|
+
initiative: view && view.title ? view.title : '', url: safeUrl(j && j.url),
|
|
70
|
+
readAt: (view && view.checkedAt) || (sprints && sprints.readAt) || null,
|
|
71
|
+
draftOnly: !t, readingOnly: !!t && !!t.key && !j,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** The sprints a board can show, in the route's order (active, future, closed), each with what its tab is called. */
|
|
76
|
+
export function sprintList(sprints) {
|
|
77
|
+
const l = sprints && sprints.ok !== false && Array.isArray(sprints.sprints) ? sprints.sprints : [];
|
|
78
|
+
return l.filter((s) => s && s.name).map((s) => ({ name: s.name, state: s.state || '', n: (s.issues || []).length }));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* One sprint as a board by status. sprints: the /api/boards/sprints answer; name: the sprint (default the first, which the route orders active first).
|
|
83
|
+
* → { ok: true, name, ..., cols: [{ cat, label, cards }] } or { ok: false, why }.
|
|
84
|
+
*/
|
|
85
|
+
export function sprintModel(sprints, name, { today } = {}) {
|
|
86
|
+
if (!sprints || sprints.ok === false) return { ok: false, why: `The sprints could not be read${sprints && sprints.error ? ': ' + sprints.error : ''}.` };
|
|
87
|
+
if (sprints.source !== 'jira') return { ok: false, why: 'No sprint is on record for this board. A sprint appears when an agent session has read Jira for it.' };
|
|
88
|
+
const all = Array.isArray(sprints.sprints) ? sprints.sprints : [];
|
|
89
|
+
const sp = (name && all.find((s) => s.name === name)) || all[0];
|
|
90
|
+
if (!sp) return { ok: false, why: 'Jira was read, but none of this board\'s tickets is in a sprint.' };
|
|
91
|
+
const goal = sp.goal && typeof sp.goal === 'object' ? str(sp.goal.text) : str(sp.jiraGoal);
|
|
92
|
+
const pts = sp.points && Number.isFinite(sp.points.committed) ? { done: sp.points.done, committed: sp.points.committed, unestimated: sp.points.unestimated || 0 } : null;
|
|
93
|
+
const pace = sp.pace || null;
|
|
94
|
+
let left = '';
|
|
95
|
+
if (sp.state === 'active' && pace && Number.isInteger(pace.daysLeft)) left = pace.daysLeft === 0 ? 'ends today' : plural(pace.daysLeft, 'day', 'days') + ' left';
|
|
96
|
+
else if (sp.state === 'active' && sp.end && today) {
|
|
97
|
+
const a = Date.parse(String(sp.end).slice(0, 10)), b = Date.parse(String(today).slice(0, 10));
|
|
98
|
+
if (Number.isFinite(a) && Number.isFinite(b)) { const d = Math.round((a - b) / 864e5); left = d < 0 ? 'ended ' + plural(-d, 'day', 'days') + ' ago' : d === 0 ? 'ends today' : plural(d, 'day', 'days') + ' left'; }
|
|
99
|
+
}
|
|
100
|
+
const cards = (sp.issues || []).map((i) => ({ key: i.key, title: i.summary || i.key, status: i.status || CAT[i.category] || '', cat: CAT[i.category] ? i.category : 'todo',
|
|
101
|
+
points: typeof i.points === 'number' ? i.points : null, initiative: i.initiative || null, flagged: !!i.flagged, reason: i.flagged ? i.reason || 'Flagged in Jira' : '' }));
|
|
102
|
+
const cols = COLS.map(([cat, label]) => ({ cat, label, cards: cards.filter((c) => c.cat === cat) }));
|
|
103
|
+
const other = cards.filter((c) => !c.initiative).length;
|
|
104
|
+
return {
|
|
105
|
+
ok: true, name: sp.name, state: sp.state || '', dates: [day(sp.start), day(sp.end)].filter(Boolean).join(' – '), goal, left, points: pts,
|
|
106
|
+
counts: { todo: cols[0].cards.length, doing: cols[1].cards.length, done: cols[2].cards.length }, total: cards.length, cols, other,
|
|
107
|
+
readAt: sprints.readAt || null, sprints: sprintList(sprints),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/** "read 14:05" or "read 17 Oct" from an ISO time, against now. */
|
|
112
|
+
export function readLine(iso, now = Date.now()) {
|
|
113
|
+
const t = Date.parse(String(iso || ''));
|
|
114
|
+
if (!Number.isFinite(t)) return 'no read time on record';
|
|
115
|
+
const d = new Date(t), n = new Date(now);
|
|
116
|
+
const same = d.getFullYear() === n.getFullYear() && d.getMonth() === n.getMonth() && d.getDate() === n.getDate();
|
|
117
|
+
return 'read ' + (same ? String(d.getHours()).padStart(2, '0') + ':' + String(d.getMinutes()).padStart(2, '0') : d.getDate() + ' ' + MON[d.getMonth()]);
|
|
118
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
:root{--fs-1:11px;--fs-2:12px;--fs-3:14px;--fs-4:16px;--fs-5:20px;--fs-6:28px}
|
|
2
|
+
/* pm/premium-vw-jira.css — the Jira ticket and sprint tabs of the premium viewer (initiative premium-viewer, S5). Loaded once by
|
|
3
|
+
* pm/premium-vw-jira.js. Console type only: sizes var(--fs-1..6), weights 400, 500 and 600. */
|
|
4
|
+
.jv{max-width:900px;margin:0 auto;display:grid;gap:12px;min-width:0}
|
|
5
|
+
.jv .i{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
|
|
6
|
+
.jv .gap{flex:1}
|
|
7
|
+
.jk{font:500 var(--fs-2) var(--mono);color:var(--ink-3);white-space:nowrap}
|
|
8
|
+
.jnote{margin:0;font-size:var(--fs-2);color:var(--ink-3);line-height:1.5}
|
|
9
|
+
.jbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 6px 6px 10px;border:1px solid var(--hair);border-radius:8px;background:var(--card-solid);font-size:var(--fs-2);color:var(--ink-2)}
|
|
10
|
+
.jbt{flex:1;min-width:0}
|
|
11
|
+
.jbt b{font-weight:600;color:var(--ink)}
|
|
12
|
+
.jlg{width:22px;height:22px;border-radius:6px;display:grid;place-items:center;background:var(--solid);color:var(--on-solid);font:600 var(--fs-1) var(--sans);flex:none}
|
|
13
|
+
.jbtn{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:6px;border:1px solid var(--hair);background:transparent;color:var(--ink);font:500 var(--fs-2) var(--sans);text-decoration:none;cursor:pointer}
|
|
14
|
+
.jbtn:focus-visible,.jcrd:focus-visible,.jln button:focus-visible,.jseg button:focus-visible,.jfoot a:focus-visible{outline:2px solid var(--ember);outline-offset:2px}
|
|
15
|
+
.jempty{padding:22px;border:1px dashed var(--hair);border-radius:8px;text-align:center;color:var(--ink-2)}
|
|
16
|
+
.jempty b{display:block;font-size:var(--fs-3);font-weight:600;color:var(--ink);margin-bottom:4px}
|
|
17
|
+
.jempty p{margin:0;font-size:var(--fs-2)}
|
|
18
|
+
/* ticket */
|
|
19
|
+
.jtk{background:var(--card-solid);border:1px solid var(--hair);border-radius:8px;padding:22px 24px;box-shadow:var(--card-shadow);min-width:0;overflow-wrap:anywhere}
|
|
20
|
+
.jbc{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:var(--fs-2);color:var(--ink-3);margin-bottom:6px}
|
|
21
|
+
.jtk h1{font-size:var(--fs-5);line-height:1.3;font-weight:600;margin:0 0 10px;color:var(--ink)}
|
|
22
|
+
.jtk h3{font-size:var(--fs-3);font-weight:600;margin:18px 0 6px;color:var(--ink)}
|
|
23
|
+
.jmeta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 6px}
|
|
24
|
+
.jst{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:6px;font:600 var(--fs-1) var(--sans);text-transform:uppercase;letter-spacing:.03em;background:var(--well);color:var(--ink-2)}
|
|
25
|
+
.jst.doing{background:color-mix(in oklab,var(--sky,rgb(29,122,252)) 16%,transparent);color:var(--ink)}
|
|
26
|
+
.jst.done{background:color-mix(in oklab,var(--ok) 16%,transparent);color:var(--ok)}
|
|
27
|
+
.jst.draft{background:transparent;border:1px dashed var(--hair);color:var(--ink-3)}
|
|
28
|
+
.jchip{display:inline-flex;align-items:center;height:28px;padding:0 10px;border-radius:6px;border:1px solid var(--hair);font-size:var(--fs-2);color:var(--ink-2)}
|
|
29
|
+
.jchip.mut{color:var(--ink-3)}
|
|
30
|
+
.jpts{min-width:22px;height:20px;padding:0 7px;border-radius:6px;background:var(--well);font:600 var(--fs-1)/20px var(--sans);text-align:center;color:var(--ink-2);flex:none}
|
|
31
|
+
.jmeta .jpts{height:28px;line-height:28px}
|
|
32
|
+
.jflag{display:flex;align-items:center;gap:6px;margin:8px 0 0;font-size:var(--fs-2);font-weight:500;color:var(--bad)}
|
|
33
|
+
.jbody{font-size:var(--fs-3);line-height:1.5;color:var(--ink)}
|
|
34
|
+
.jmd>:first-child{margin-top:0}.jmd>:last-child{margin-bottom:0}
|
|
35
|
+
.jmd p,.jmd ul,.jmd ol{margin:0 0 8px}
|
|
36
|
+
.jmd ul,.jmd ol{padding-left:20px}
|
|
37
|
+
.jmd code{font:400 var(--fs-2) var(--mono)}
|
|
38
|
+
.jprog{height:6px;border-radius:6px;background:var(--well);overflow:hidden;margin:0 0 6px}
|
|
39
|
+
.jprog i{display:block;height:100%;width:var(--bd-w,0);background:var(--ok);border-radius:6px}
|
|
40
|
+
.jlinks{display:grid}
|
|
41
|
+
.jln{display:flex;align-items:center;gap:8px;min-height:44px;border-top:1px solid var(--hair);font-size:var(--fs-3)}
|
|
42
|
+
.jln:first-child{border-top:0}
|
|
43
|
+
.jln em{font-style:normal;font-size:var(--fs-2);color:var(--ink-3);width:76px;flex:none}
|
|
44
|
+
.jln button,.jlx{display:flex;align-items:center;gap:7px;min-height:44px;min-width:0;padding:0;border:0;background:none;color:var(--ink);font:inherit;text-align:left}
|
|
45
|
+
.jln button{cursor:pointer}
|
|
46
|
+
.jln b{font-weight:500;min-width:0;overflow-wrap:anywhere}
|
|
47
|
+
.jfoot{margin:18px 0 0;padding-top:12px;border-top:1px solid var(--hair);font-size:var(--fs-2);color:var(--ink-3)}
|
|
48
|
+
.jfoot a{color:var(--ink);font-weight:500}
|
|
49
|
+
/* sprint */
|
|
50
|
+
.jseg{display:flex;gap:6px;flex-wrap:wrap}
|
|
51
|
+
.jseg button{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:6px;border:1px solid var(--hair);background:transparent;color:var(--ink-2);font:500 var(--fs-2) var(--sans);cursor:pointer}
|
|
52
|
+
.jseg button small{font-size:var(--fs-1);color:var(--ink-3)}
|
|
53
|
+
.jseg button[aria-pressed="true"]{background:var(--solid);border-color:var(--solid);color:var(--on-solid)}
|
|
54
|
+
.jseg button[aria-pressed="true"] small{color:inherit}
|
|
55
|
+
.jsh{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:var(--card-solid);border:1px solid var(--hair);border-radius:8px;padding:12px 16px;box-shadow:var(--card-shadow)}
|
|
56
|
+
.jsh h3{margin:0;font-size:var(--fs-4);font-weight:600;color:var(--ink)}
|
|
57
|
+
.jsh p{margin:2px 0 0;font-size:var(--fs-2);color:var(--ink-3)}
|
|
58
|
+
.jsh>div{min-width:0}
|
|
59
|
+
.jcap{display:flex;align-items:center;gap:8px;font-size:var(--fs-2);color:var(--ink-3)}
|
|
60
|
+
.jcap i{display:block;width:90px;height:6px;border-radius:6px;background:var(--well);overflow:hidden;position:relative}
|
|
61
|
+
.jcap i::after{content:"";position:absolute;inset:0;width:var(--bd-w,0);background:var(--ok);border-radius:6px}
|
|
62
|
+
.jbrd{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
|
|
63
|
+
.jcol{background:color-mix(in oklab,var(--well) 80%,transparent);border-radius:8px;padding:8px;display:flex;flex-direction:column;gap:7px;min-width:0}
|
|
64
|
+
.jcolh{display:flex;justify-content:space-between;font:600 var(--fs-1) var(--mono);letter-spacing:.07em;text-transform:uppercase;color:var(--ink-3);padding:4px 4px 2px}
|
|
65
|
+
.jnone{margin:0;padding:6px 4px;font-size:var(--fs-2);color:var(--ink-3)}
|
|
66
|
+
.jcrd{display:grid;gap:8px;min-height:44px;padding:9px 10px;border-radius:6px;border:1px solid var(--hair);background:var(--card-solid);color:var(--ink);font:inherit;text-align:left;box-shadow:0 1px 2px rgba(0,0,0,.04);min-width:0;overflow-wrap:anywhere}
|
|
67
|
+
button.jcrd{cursor:pointer}
|
|
68
|
+
.jcrd b{font-size:var(--fs-2);font-weight:500;line-height:1.4}
|
|
69
|
+
.jcrd.off{background:transparent;border-style:dashed}
|
|
70
|
+
.jcrd.risk{border-color:color-mix(in oklab,var(--bad) 45%,var(--hair))}
|
|
71
|
+
.jrk{display:flex;align-items:center;gap:5px;font-size:var(--fs-1);font-weight:600;color:var(--bad)}
|
|
72
|
+
.jft{display:flex;align-items:center;gap:6px;min-width:0}
|
|
73
|
+
.jsx{font-size:var(--fs-1);color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
|
|
74
|
+
@media (max-width:640px){
|
|
75
|
+
.jtk{padding:16px}
|
|
76
|
+
.jbtn,.jseg button{min-height:44px}
|
|
77
|
+
.jbrd{grid-template-columns:1fr}
|
|
78
|
+
}
|
|
79
|
+
@media (hover:hover){.jbtn:hover{background:var(--well)}.jln button:hover b{text-decoration:underline}button.jcrd:hover{box-shadow:0 6px 16px -10px rgba(0,0,0,.35)}}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* pm/premium-vw-jira.js — a Jira ticket and a sprint board as tabs of the premium viewer (initiative premium-viewer, S5, PRD R5 and R6).
|
|
2
|
+
* openTicket({ ws, board, initiative, ref }) a ticket of the initiative's Jira draft: key, title, status, sprint, points, its sections,
|
|
3
|
+
* subtasks and links, and a line that sends the rest to Jira (PM, 2026-10-19: no comments,
|
|
4
|
+
* history or fields panel; those stay in Jira)
|
|
5
|
+
* openSprint({ ws, board, name }) a sprint of the board as columns by status; a card of the board opens its ticket
|
|
6
|
+
* Reads GET /api/jira/tickets and GET /api/boards/sprints only; the model is pm/premium-vw-jira-model.js. Read-only: Jira owns status, sprint and
|
|
7
|
+
* assignee (D88), so nothing here moves a ticket. With no Jira data a view says what is missing. */
|
|
8
|
+
import { vwOpen, vwStyle } from './premium-viewer.js';
|
|
9
|
+
import { mdRender } from './markdown.js';
|
|
10
|
+
import { esc, toast } from './premium-shell.js';
|
|
11
|
+
import { ticketModel, sprintModel, readLine } from './premium-vw-jira-model.js';
|
|
12
|
+
|
|
13
|
+
const ICO = (p) => `<svg class="i" viewBox="0 0 24 24">${p}</svg>`;
|
|
14
|
+
const EXT = ICO('<path d="M14 4h6v6M20 4l-9 9M18 14v6H4V6h6"/>');
|
|
15
|
+
const LINK = ICO('<path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1"/>');
|
|
16
|
+
const DOC = ICO('<path d="M6 3h9l4 4v14H6zM14 3v5h5M9 12h7M9 16h5"/>');
|
|
17
|
+
const FLAG = ICO('<path d="M5 21V4M5 4h11l-2 4 2 4H5"/>');
|
|
18
|
+
|
|
19
|
+
async function getJson(p, q) {
|
|
20
|
+
const s = new URLSearchParams(Object.entries(q).filter(([, v]) => v)).toString();
|
|
21
|
+
try { const r = await fetch(p + (s ? '?' + s : ''), { credentials: 'same-origin' }); return await r.json(); } catch { return null; }
|
|
22
|
+
}
|
|
23
|
+
// mdRender builds nodes, never a string, so nothing in a ticket's text runs
|
|
24
|
+
const md = (t) => { try { const d = document.createElement('div'); d.append(...mdRender(String(t)).blocks.map((b) => b.node || b)); return d.innerHTML; } catch { return `<p>${esc(t)}</p>`; } };
|
|
25
|
+
const bar = (what, m) => `<div class="jbar"><span class="jlg" aria-hidden="true">J</span><span class="jbt"><b>From the last Jira read</b> · ${esc(what)} · ${esc(readLine(m.readAt))}</span>${m.url ? `<a class="jbtn" href="${esc(m.url)}" target="_blank" rel="noopener">${EXT}Open in Jira</a>` : ''}<button type="button" class="jbtn" data-jre>Read again</button></div>`;
|
|
26
|
+
// the bars' widths are run-time geometry, set as a property rather than an inline style
|
|
27
|
+
const bars = (el) => el.querySelectorAll('[data-pct]').forEach((i) => i.style.setProperty('--bd-w', Math.max(0, Math.min(100, +i.dataset.pct || 0)) + '%'));
|
|
28
|
+
const empty = (why) => `<div class="jv"><div class="jempty"><b>Nothing to show</b><p>${esc(why)}</p></div></div>`;
|
|
29
|
+
|
|
30
|
+
/* ── the ticket ─────────────────────────────────────────────────────────────────────────────────────────── */
|
|
31
|
+
function ticketHtml(m) {
|
|
32
|
+
if (!m.ok) return empty(m.why);
|
|
33
|
+
const chips = [
|
|
34
|
+
m.sprint ? `<span class="jchip" title="Sprint">${esc(m.sprint.name)}${m.sprint.state ? ` · ${esc(m.sprint.state)}` : ''}</span>` : '<span class="jchip mut" title="Sprint">No sprint</span>',
|
|
35
|
+
m.points != null ? `<span class="jpts" title="Story points">${esc(m.points)} pt</span>` : '',
|
|
36
|
+
m.priority ? `<span class="jchip" title="Priority">${esc(m.priority)}</span>` : '',
|
|
37
|
+
m.estimate ? `<span class="jchip" title="Estimate">Size ${esc(m.estimate)}</span>` : '',
|
|
38
|
+
m.type ? `<span class="jchip" title="Type">${esc(m.type)}</span>` : '',
|
|
39
|
+
].join('');
|
|
40
|
+
const sub = m.subtasks ? `<h3>Subtasks <span class="jk">· ${m.subtasks.done} of ${m.subtasks.total} done</span></h3><div class="jprog" role="img" aria-label="${m.subtasks.done} of ${m.subtasks.total} subtasks done"><i data-pct="${Math.round(m.subtasks.done / m.subtasks.total * 100)}"></i></div><p class="jnote">The Jira read holds the count, not the list. Open Jira for the subtasks.</p>` : '';
|
|
41
|
+
const links = m.links.length || m.prd ? `<h3>Linked</h3><div class="jlinks">${m.links.map((l) => `<div class="jln"><em>${esc(l.rel)}</em>${l.open
|
|
42
|
+
? `<button type="button" data-jt="${esc(l.ref)}">${LINK}<span class="jk">${esc(l.key || l.ref)}</span><b>${esc(l.title)}</b></button>`
|
|
43
|
+
: `<span class="jlx">${LINK}<span class="jk">${esc(l.ref)}</span></span>`}</div>`).join('')}${m.prd ? `<div class="jln"><em>from</em><span class="jlx">${DOC}<b>${esc(m.prd)}</b></span></div>` : ''}</div>` : '';
|
|
44
|
+
const body = m.sections.length ? m.sections.map((s) => `<h3>${esc(s.name)}</h3><div class="jmd">${md(s.text)}</div>`).join('')
|
|
45
|
+
: `<p class="jnote">${m.draftOnly ? 'This ticket is not in the initiative\'s ticket draft, so PMOS holds no text for it. Its title, status and points come from the sprint read.' : 'The ticket draft holds no text for this ticket.'}</p>`;
|
|
46
|
+
return `<div class="jv">${bar('ticket', m)}<article class="jtk">
|
|
47
|
+
<div class="jbc">${m.epic ? `<span class="jk">${esc(m.epic.key)}</span>${m.epic.title ? ` ${esc(m.epic.title)}` : ''} <span aria-hidden="true">/</span> ` : m.initiative ? `${esc(m.initiative)} <span aria-hidden="true">/</span> ` : ''}<span class="jk">${esc(m.key || m.id)}</span></div>
|
|
48
|
+
<h1>${esc(m.title)}</h1>
|
|
49
|
+
<div class="jmeta"><span class="jst ${esc(m.category)}">${esc(m.status || 'No status read')}</span>${chips}</div>
|
|
50
|
+
${m.flagged ? `<p class="jflag">${FLAG}${esc(m.reason)}</p>` : ''}
|
|
51
|
+
${m.stale ? '<p class="jnote">The last Jira check did not return this ticket, so this is an older reading.</p>' : ''}
|
|
52
|
+
${m.readingOnly ? '<p class="jnote">This ticket is in Jira, but no Jira check has read it yet.</p>' : ''}
|
|
53
|
+
<div class="jbody">${body}</div>${sub}${links}
|
|
54
|
+
<p class="jfoot">Assignee, comments, history and the other fields stay in Jira.${m.url ? ` <a href="${esc(m.url)}" target="_blank" rel="noopener">Open in Jira</a>` : m.inJira ? ' The reading holds no link to the ticket.' : ' This ticket is not in Jira yet; push it from the initiative\'s Jira tickets tab.'}</p>
|
|
55
|
+
</article></div>`;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** A ticket of the initiative's Jira draft in its own tab. ref is a Jira key or a draft ticket id. */
|
|
59
|
+
export async function openTicket(o) {
|
|
60
|
+
const { ws, board, initiative, ref } = o || {};
|
|
61
|
+
if (!ref) return null;
|
|
62
|
+
vwStyle('jira');
|
|
63
|
+
const id = 'jira:' + ref;
|
|
64
|
+
const draw = async (el) => {
|
|
65
|
+
el.innerHTML = '<div class="jv"><p class="jnote">Reading the ticket</p></div>';
|
|
66
|
+
const [view, sprints] = await Promise.all([initiative ? getJson('/api/jira/tickets', { ws, initiative }) : null, board ? getJson('/api/boards/sprints', { ws, board }) : null]);
|
|
67
|
+
const m = ticketModel(view, ref, sprints);
|
|
68
|
+
el.innerHTML = ticketHtml(m); bars(el);
|
|
69
|
+
el.querySelectorAll('[data-jt]').forEach((b) => { b.onclick = () => openTicket({ ws, board, initiative, ref: b.dataset.jt }); });
|
|
70
|
+
const re = el.querySelector('[data-jre]'); if (re) re.onclick = async () => { await draw(el); toast('Read the cached Jira reading again. A Jira check reads Jira itself.'); };
|
|
71
|
+
};
|
|
72
|
+
return vwOpen({ id, title: ref, icon: 'tk', render: (el) => { draw(el); } });
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* ── the sprint ─────────────────────────────────────────────────────────────────────────────────────────── */
|
|
76
|
+
function sprintHtml(m) {
|
|
77
|
+
if (!m.ok) return empty(m.why);
|
|
78
|
+
const pick = m.sprints.length > 1 ? `<div class="jseg" role="group" aria-label="Sprint">${m.sprints.map((s) => `<button type="button" data-sp="${esc(s.name)}" aria-pressed="${s.name === m.name}">${esc(s.name)}${s.state ? `<small>${esc(s.state)}</small>` : ''}</button>`).join('')}</div>` : '';
|
|
79
|
+
const pts = m.points ? `<span class="jcap"><i data-pct="${m.points.committed ? Math.round(m.points.done / m.points.committed * 100) : 0}"></i>${m.points.done} of ${m.points.committed} points done</span>`
|
|
80
|
+
: `<span class="jcap">${m.counts.done} of ${m.total} done · no points on record</span>`;
|
|
81
|
+
const card = (c) => {
|
|
82
|
+
const inner = `<b>${esc(c.title)}</b>${c.flagged ? `<span class="jrk">${FLAG}${esc(c.reason)}</span>` : ''}<span class="jft"><span class="jk">${esc(c.key)}</span>${c.status && c.status !== m.cols.find((x) => x.cat === c.cat).label ? `<span class="jsx">${esc(c.status)}</span>` : ''}<span class="gap"></span>${c.points != null ? `<span class="jpts">${esc(c.points)}</span>` : ''}</span>`;
|
|
83
|
+
return c.initiative ? `<button type="button" class="jcrd${c.flagged ? ' risk' : ''}" data-k="${esc(c.key)}" data-ini="${esc(c.initiative)}" aria-label="${esc(c.key)}: ${esc(c.title)}. Open the ticket">${inner}</button>`
|
|
84
|
+
: `<div class="jcrd off${c.flagged ? ' risk' : ''}" title="Not a ticket of this board">${inner}</div>`;
|
|
85
|
+
};
|
|
86
|
+
return `<div class="jv">${bar(m.name, m)}${pick}
|
|
87
|
+
<div class="jsh"><div><h3>${esc(m.name)}${m.dates ? ` · ${esc(m.dates)}` : ''}</h3><p>${[m.goal ? 'Goal: ' + m.goal : 'No sprint goal on record', m.left || m.state].filter(Boolean).map(esc).join(' · ')}</p></div><span class="gap"></span>${pts}</div>
|
|
88
|
+
<div class="jbrd">${m.cols.map((c) => `<section class="jcol" aria-label="${esc(c.label)}, ${c.cards.length}"><div class="jcolh"><span>${esc(c.label)}</span><span>${c.cards.length}</span></div>${c.cards.map(card).join('') || '<p class="jnone">None</p>'}</section>`).join('')}</div>
|
|
89
|
+
<p class="jnote">Read-only: Jira owns each ticket's status and sprint, so move a ticket in Jira.${m.other ? ` ${m.other} ${m.other === 1 ? 'ticket is' : 'tickets are'} in this sprint but on no initiative of this board, so ${m.other === 1 ? 'it has' : 'they have'} no ticket here.` : ''} Tickets with no sprint are not in this read.</p></div>`;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** The board's sprints as a board by status in one tab; name picks a sprint (default: the active one). */
|
|
93
|
+
export async function openSprint(o) {
|
|
94
|
+
const { ws, board } = o || {};
|
|
95
|
+
let name = (o && o.name) || '';
|
|
96
|
+
vwStyle('jira');
|
|
97
|
+
const draw = async (el) => {
|
|
98
|
+
el.innerHTML = '<div class="jv"><p class="jnote">Reading the sprint</p></div>';
|
|
99
|
+
const sprints = await getJson('/api/boards/sprints', { ws, board });
|
|
100
|
+
const m = sprintModel(sprints, name, { today: new Date().toISOString() });
|
|
101
|
+
el.innerHTML = sprintHtml(m); bars(el);
|
|
102
|
+
el.querySelectorAll('[data-sp]').forEach((b) => { b.onclick = () => { name = b.dataset.sp; draw(el); }; });
|
|
103
|
+
el.querySelectorAll('.jcrd[data-k]').forEach((b) => { b.onclick = () => openTicket({ ws, board, initiative: b.dataset.ini, ref: b.dataset.k }); });
|
|
104
|
+
const re = el.querySelector('[data-jre]'); if (re) re.onclick = async () => { await draw(el); toast('Read the cached Jira reading again. A Jira check reads Jira itself.'); };
|
|
105
|
+
};
|
|
106
|
+
return vwOpen({ id: 'sprint:' + (board || ''), title: 'Sprint', icon: 'list', render: (el) => { draw(el); } });
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (typeof window !== 'undefined') window.__premiumVwJira = { openTicket, openSprint };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Initiative premium-viewer S5: the Jira ticket and sprint tabs of the premium viewer. The pure model, and the views in a real browser with the Board model and the two Jira reads as route stand-ins.",
|
|
3
|
+
"modules": [
|
|
4
|
+
"premium-vw-jira.test.js"
|
|
5
|
+
],
|
|
6
|
+
"panels": [
|
|
7
|
+
"premium-vw-jira-test.js"
|
|
8
|
+
],
|
|
9
|
+
"seconds": {
|
|
10
|
+
"premium-vw-jira.test.js": 1,
|
|
11
|
+
"premium-vw-jira-test.js": 40
|
|
12
|
+
}
|
|
13
|
+
}
|