instar 1.3.2020 → 1.3.2021
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/dashboard/console/ideas.js +2 -2
- package/dashboard/console/ui.js +3 -1
- package/dist/data/standards-guard-index.json +1 -1
- package/dist/data/standards-guard-index.meta.json +2 -2
- package/dist/data/standards-registry.meta.json +1 -1
- package/dist/native/InstarWedgeCanary.app/Contents/MacOS/InstarWedgeCanary +0 -0
- package/dist/native/instar-desktop-host +0 -0
- package/package.json +1 -1
- package/src/data/builtin-manifest.json +2 -2
- package/src/data/standards-guard-index.json +1 -1
- package/src/data/standards-guard-index.meta.json +2 -2
- package/src/data/standards-registry.meta.json +1 -1
- package/upgrades/1.3.2021.md +20 -0
- package/upgrades/eli16/ideas-dialog-lifecycle.md +9 -0
- package/upgrades/side-effects/ideas-dialog-lifecycle.md +46 -0
|
@@ -21,12 +21,12 @@ async function decide(request, status, refresh) {
|
|
|
21
21
|
status.textContent = 'Working…';
|
|
22
22
|
const planned = await send('/ecosystem-ideas/plan', request);
|
|
23
23
|
if (planned.status !== 200) { status.textContent = planned.data.detail || planned.data.error || 'That could not be prepared.'; return; }
|
|
24
|
-
const pin = await askPin({ title: 'Confirm', explain: planned.data.renderedText });
|
|
24
|
+
const pin = await askPin({ title: 'Confirm', explain: planned.data.renderedText, isCurrent: () => status.isConnected });
|
|
25
25
|
if (!pin) { status.textContent = ''; return; }
|
|
26
26
|
const done = await send('/ecosystem-ideas/commit', { pin: pin.pin, planId: planned.data.planId, nonce: planned.data.nonce });
|
|
27
27
|
pin.pin = '';
|
|
28
28
|
status.textContent = done.status === 200 ? 'Done.' : (done.data.error || 'That did not go through.');
|
|
29
|
-
if (done.status === 200) setTimeout(refresh, 600);
|
|
29
|
+
if (done.status === 200) setTimeout(() => { if (status.isConnected) refresh(); }, 600);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
function ideaCard(idea, refresh) {
|
package/dashboard/console/ui.js
CHANGED
|
@@ -401,10 +401,12 @@ export function refusedUnlock(check) {
|
|
|
401
401
|
);
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
export function askPin({ title, explain, adapter = 'body', fresh = false }) {
|
|
404
|
+
export function askPin({ title, explain, adapter = 'body', fresh = false, isCurrent = () => true }) {
|
|
405
|
+
if (!isCurrent()) return Promise.resolve(null);
|
|
405
406
|
// `fresh`: ask even while an unlock is held, for a long action that would outlive the one it has.
|
|
406
407
|
if (adapter === 'session' && operatorSession() && !fresh) return Promise.resolve({ session: operatorSession() });
|
|
407
408
|
return unlockCheck().then((check) => new Promise((resolve) => {
|
|
409
|
+
if (!isCurrent()) { resolve(null); return; }
|
|
408
410
|
if (!check.accepted) {
|
|
409
411
|
sheet({ title: title || 'Your PIN', onClose: () => resolve(null) }, refusedUnlock(check));
|
|
410
412
|
return;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generatedFrom": "source-tree",
|
|
4
4
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
5
|
-
"packageVersion": "1.3.
|
|
5
|
+
"packageVersion": "1.3.2021",
|
|
6
6
|
"guards": [
|
|
7
7
|
{
|
|
8
8
|
"ref": "docs/audits/phase-b/f10-triage.md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sha256": "
|
|
2
|
+
"sha256": "6b904769f39bb2970b83c7790099f94495ff1b307637df9f7f2b5e4b22d3ecf1",
|
|
3
3
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
4
|
-
"packageVersion": "1.3.
|
|
4
|
+
"packageVersion": "1.3.2021"
|
|
5
5
|
}
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./builtin-manifest.schema.json",
|
|
3
3
|
"schemaVersion": 1,
|
|
4
|
-
"generatedAt": "2026-11-
|
|
5
|
-
"instarVersion": "1.3.
|
|
4
|
+
"generatedAt": "2026-11-25T02:13:06.738Z",
|
|
5
|
+
"instarVersion": "1.3.2021",
|
|
6
6
|
"entryCount": 210,
|
|
7
7
|
"entries": {
|
|
8
8
|
"hook:session-start": {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"generatedFrom": "source-tree",
|
|
4
4
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
5
|
-
"packageVersion": "1.3.
|
|
5
|
+
"packageVersion": "1.3.2021",
|
|
6
6
|
"guards": [
|
|
7
7
|
{
|
|
8
8
|
"ref": "docs/audits/phase-b/f10-triage.md",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sha256": "
|
|
2
|
+
"sha256": "6b904769f39bb2970b83c7790099f94495ff1b307637df9f7f2b5e4b22d3ecf1",
|
|
3
3
|
"registrySha256": "11e2a45ab1345e2ded6499404ee9962e4e48bcfed4677a4d31dac4492565d2fa",
|
|
4
|
-
"packageVersion": "1.3.
|
|
4
|
+
"packageVersion": "1.3.2021"
|
|
5
5
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Upgrade Guide — vNEXT
|
|
2
|
+
|
|
3
|
+
<!-- assembled-by: assemble-next-md -->
|
|
4
|
+
<!-- bump: patch -->
|
|
5
|
+
|
|
6
|
+
## What Changed
|
|
7
|
+
|
|
8
|
+
Ideas decision confirmations follow the lifetime of the card that opened them. Late preparation or address-check responses no longer open a PIN box after that card leaves the screen. A saved decision still completes, while its delayed refresh skips replaced views. Existing callers of the shared PIN helper retain their behavior unless they supply the optional source check.
|
|
9
|
+
|
|
10
|
+
## What to Tell Your User
|
|
11
|
+
|
|
12
|
+
An old Ideas confirmation no longer pops up after you leave the page. Choices you already confirmed still finish normally.
|
|
13
|
+
|
|
14
|
+
## Summary of New Capabilities
|
|
15
|
+
|
|
16
|
+
None — this repairs existing decision dialogs and refresh timing.
|
|
17
|
+
|
|
18
|
+
## Evidence
|
|
19
|
+
|
|
20
|
+
The original renderer and shared PIN helper reproduce the stale dialog with ordinary whole-main replacement and synthetic responses. Eighteen of the25new cases fail on the old source; all25pass with the repair.113focused unit checks,17HTTP integration cases and4production lifecycle cases pass. Four normalChrome390/1280 light/dark sample-data previews verify stale-dialog suppression and the current dialog fitting without overflow. Independent final source review concurs. Complete shared verification and released live checks remain pending.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Keep An Old Ideas Decision From Interrupting A New Page
|
|
2
|
+
|
|
3
|
+
When you choose an action on an idea, the dashboard first asks the server to prepare the exact decision. Then it opens a confirmation box asking for your dashboard PIN. If the server takes a while and you leave Ideas, the old response can still open that box over the new page. It is confusing because the box belongs to a decision you started on a screen you have already left.
|
|
4
|
+
|
|
5
|
+
The repair checks that the original idea card is still on screen before opening the confirmation box. It checks again if the address safety check takes time. Leaving the page quietly drops the unfinished confirmation. It does not cancel a decision you have already confirmed, undo a saved choice, change your PIN, or grant any new permission.
|
|
6
|
+
|
|
7
|
+
A completed decision also refreshes Ideas only if its original card is still on screen. That keeps an old timer from replacing a newer Ideas view. The normal active page still refreshes after a successful decision. Existing confirmation boxes elsewhere keep their current behavior because the new page check is optional.
|
|
8
|
+
|
|
9
|
+
The change is limited to the Ideas screen and its shared confirmation helper. It needs no data migration or new setting. If the repair causes a problem, reverting the code fully restores the earlier behavior. Tests exercise leaving during both server preparation and the address check, along with normal confirmation, cancellation, failures and delayed saved decisions. Browser checks at phone and laptop sizes and full shared verification are required before release. This document describes prepared work, not a live installation.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Side-Effects Review — Ideas Decision Dialog Lifecycle
|
|
2
|
+
|
|
3
|
+
## Summary
|
|
4
|
+
Tier 1 SMALL. Two runtime files, rendered DOM tests, overview and release note. Optional source ownership check prevents a late Ideas PIN prompt from appearing after navigation, and prevents an old saved-decision timer from refreshing a newer view. Built in a fresh managed checkout at canonical ec9401e5b, version1.3.1989. Normal npm ci activated missing hooks.
|
|
5
|
+
|
|
6
|
+
## Decision Points
|
|
7
|
+
Only whether to display an obsolete dialog or repaint an obsolete view. The actual server plan, PIN, nonce and commit authority remain unchanged. No brittle semantic action gate is introduced; source-node connectedness is a structural UI lifetime check. Complies with docs/signal-vs-authority.md.
|
|
8
|
+
|
|
9
|
+
## Over-block
|
|
10
|
+
A confirmation source removed by ordinary page navigation or a newer render no longer opens a dialog. That is deliberate UI cancellation before proof, not denial of a saved action. Other askPin callers omit the optional callback and behave as before. Existing session-token fast path checks current ownership before returning proof.
|
|
11
|
+
|
|
12
|
+
## Under-block
|
|
13
|
+
No new permission or input validation. Already submitted commits complete normally. A current Ideas card can still request confirmation. This change does not claim to repair all unrelated confirmation callers.
|
|
14
|
+
|
|
15
|
+
## Layer Fit
|
|
16
|
+
The Ideas card owns its status node. The shared PIN helper owns the awaited unlock-check and therefore must re-check the supplied callback immediately before building a dialog. Putting a single check in Ideas before calling the helper would miss navigation during unlock-check.
|
|
17
|
+
|
|
18
|
+
## 4b. Judgment-point Check
|
|
19
|
+
No new static heuristic at a competing-signals decision point. The source node is either connected or detached, an enumerable DOM lifecycle invariant, never a semantic permission decision.
|
|
20
|
+
|
|
21
|
+
## Interactions
|
|
22
|
+
Retains the same renderer and setKids flow, preserving saved expansion, focus and scroll handling. Pending Ideas grouping change can retain this independent decide-function change. No read polling or timer is added; the existing 600ms timer now checks the originating card. No old decision is retried or cancelled after submission. No status mutation of detached nodes reaches the new page.
|
|
23
|
+
|
|
24
|
+
## External Surfaces
|
|
25
|
+
The only visible change is absence of a stale prompt and stale repaint. No route, payload, setting, credential, durable store, owner choice or generated URL changes. Users see their current page without an unrelated old dialog.
|
|
26
|
+
|
|
27
|
+
## 6b. Operator-Surface Quality
|
|
28
|
+
1. Existing primary idea actions remain visible; no collapse or extra step is introduced.
|
|
29
|
+
2. No raw identifiers or internals are added to visible copy.
|
|
30
|
+
3. Existing destructive-action styling is unchanged.
|
|
31
|
+
4. Normal Chrome fixed390/1280 frame previews in both themes show contained dialogs without horizontal overflow and48pxContinue buttons. The existing close button measures34x30 and is tracked separately by design-standards in .instar/design-feedback-private/design-findings-queue.json; this patch changes no hit areas. Measurements waited350msfor sheet animation. The fixture uses sample data, not a live account.
|
|
32
|
+
|
|
33
|
+
## Multi-Machine Posture
|
|
34
|
+
Replicated as normal packaged dashboard assets. Existing pooled reads and server plan/commit routing are unchanged. Late peer replies are one reason the boundary matters. No new notification or channel to deduplicate and no state can strand on topic transfer.
|
|
35
|
+
|
|
36
|
+
## Rollback
|
|
37
|
+
Revert code and publish a patch; no state repair or migration. Already committed choices remain valid.
|
|
38
|
+
|
|
39
|
+
## Verification
|
|
40
|
+
Original real renderer/real PIN helper reproduces stale prompt after full main replacement. The final source passes113focused unit cases (25new lifetime cases,6existing Ideas model cases,82shared UI regression cases),17HTTP integration cases and4production lifecycle cases. The25new DOM cases use synthetic HTTP: delayed plan/unlock across three obsolete views and accepted/refused address checks, current submit/cancel/errors, eight delayed-commit/refresh boundaries, and compatibility without a callback. Four normalChrome390/1280 light/dark preview cases passed with sample data and350msanimation wait; source patch matches the preview. The production build passed. Normal commit gates and complete shared verification remain pending. Do not claim this is released or live.
|
|
41
|
+
|
|
42
|
+
## Class Closure
|
|
43
|
+
No agent-authored-artifact or self-triggered-controller defect. This closes both async pre-dialog boundaries for the Ideas confirmation source and the existing post-commit refresh boundary.
|
|
44
|
+
|
|
45
|
+
## Independent Review
|
|
46
|
+
review_ideas_dialog concurred after the actual dialog selector and eight deferred-commit refresh cases were added. Reviewer concurred again with the final source diff and test cleanup; no runtime concerns found.
|