create-pmos 0.53.1 → 0.53.2
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/REMOTE.md +87 -6
- package/workspace/first-paint-audit.js +6 -2
- package/workspace/fixtures/initiatives-api/list.json +13 -0
- package/workspace/fixtures/initiatives-api/roadmap.json +13 -0
- package/workspace/fixtures/report-api/draft.json +105 -0
- package/workspace/fixtures/reports-page/draft-biweekly-2026-10-16.md +12 -0
- package/workspace/guide/index.md +1 -0
- package/workspace/guide/initiatives-roadmap.md +1 -0
- package/workspace/guide/initiatives-screen.md +1 -0
- package/workspace/guide/layout.md +3 -2
- package/workspace/guide/report-slides.md +28 -0
- package/workspace/guide/reports.md +2 -0
- package/workspace/lib/auto-sync.js +83 -0
- package/workspace/lib/remote-access.js +96 -16
- package/workspace/lib/report-draft.js +33 -4
- package/workspace/lib/report-slides-data.js +141 -0
- package/workspace/lib/routes-initiatives.js +35 -2
- package/workspace/lib/routes-reports.js +3 -3
- package/workspace/lib/sync.js +61 -6
- package/workspace/package-lock.json +1 -1
- package/workspace/package.json +1 -1
- package/workspace/public/pm/app.js +16 -1
- package/workspace/public/pm/components.css +783 -0
- package/workspace/public/pm/dest-reports.js +8 -2
- package/workspace/public/pm/initiative-list.js +18 -1
- package/workspace/public/pm/initiatives-copy.js +4 -0
- package/workspace/public/pm/print.css +11 -0
- package/workspace/public/pm/report-slides.js +438 -0
- package/workspace/public/pm/report-view.js +8 -2
- package/workspace/public/pm/reports-copy.js +3 -0
- package/workspace/public/pm/roadmap.js +23 -0
- package/workspace/public/pm/slides-copy.js +52 -0
- package/workspace/public/pm/tokens.css +13 -0
- package/workspace/public/pm/topbar.js +5 -2
- package/workspace/replaced-tests.json +23 -1
- package/workspace/server.js +33 -13
- package/workspace/skills/report-biweekly.skill +1 -0
- package/workspace/test-files.json +2 -0
- package/workspace/test-lists/run6.json +9 -0
- package/workspace/test-lists/workspace-public-host.json +5 -0
package/workspace/package.json
CHANGED
|
@@ -509,10 +509,25 @@ async function runSync() {
|
|
|
509
509
|
try { res = await mods.data.syncRepository(repo); } catch (e) { res = { ok: false, message: String((e && e.message) || e) }; }
|
|
510
510
|
fr.syncing = false;
|
|
511
511
|
syncSeen.delete(repo);
|
|
512
|
-
toast({ text: res && res.ok ? FC.sync.done : FC.sync.stopped((res && res.step) || FC.sync.label, (res && (res.message || res.error)) || '') });
|
|
512
|
+
toast({ text: res && res.ok ? FC.sync.done : FC.sync.stopped((res && (res.stopped_at || res.step)) || FC.sync.label, (res && (res.message || res.error)) || '') });
|
|
513
513
|
setState({});
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
/* Closing the tab with work that is not yet pushed asks first (D70 as amended 2026-10-06): idle auto-sync waits for a
|
|
517
|
+
* few quiet minutes, and a laptop closed inside that window would carry the work away unsynced. The reading is the
|
|
518
|
+
* last local one for each repository; a stale or unread reading never asks. */
|
|
519
|
+
function unpushedOf(st) {
|
|
520
|
+
// only a repository with an upstream: one with none has nowhere to push, and would ask on every close for ever
|
|
521
|
+
return !!st && st.ok !== false && !!st.upstream && ((st.ahead | 0) > 0 || (st.dirty_records | 0) > 0);
|
|
522
|
+
}
|
|
523
|
+
if (FRAME) {
|
|
524
|
+
window.addEventListener('beforeunload', (e) => {
|
|
525
|
+
if (![...syncSeen.values()].some((v) => unpushedOf(v.st))) return;
|
|
526
|
+
e.preventDefault();
|
|
527
|
+
e.returnValue = '';
|
|
528
|
+
});
|
|
529
|
+
}
|
|
530
|
+
|
|
516
531
|
let bar = null;
|
|
517
532
|
let dockRail = null;
|
|
518
533
|
let frDetail = null;
|