You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs_build/dev/admin-notes/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,6 @@ Owned paths:
11
11
12
12
Runtime boundary:
13
13
- Admin Notes viewer implementation, when needed for local/dev inspection, belongs under `src/dev-runtime/admin/`.
14
-
-Only the admin/dev menu may link directly to `docs_build/dev/admin-notes/` content.
15
-
- Public user navigation, toolbox pages, root pages, and production runtime bundles must not link to or fetch Admin Notes content.
14
+
-Local/dev viewer access belongs under `src/dev-runtime/admin/`.
15
+
- Public user navigation, Admin/public route pages, toolbox pages, root pages, and production runtime bundles must not link to or fetch Admin Notes content.
16
16
- UAT/PROD bundles must not import `src/dev-runtime/admin/`.
# PR_26158_043 Admin Notes Local Viewer Restore Report
2
+
3
+
## Summary
4
+
5
+
Restored a dev-runtime-only Admin Notes viewer at `src/dev-runtime/admin/admin-notes.html`. The viewer loads `docs_build/dev/admin-notes/index.txt` by default, lists live folders/files from `docs_build/dev/admin-notes/`, and opens selected `.txt` notes without exposing Admin Notes from public or production navigation.
| Restore prior Admin Notes local viewer behavior with default `index.txt`. |`src/dev-runtime/admin/admin-notes.html`; `src/dev-runtime/admin/admin-notes-viewer.js`; Playwright default-load assertion. | PASS |
13
+
| Show folders and file names from `docs_build/dev/admin-notes/`. |`src/dev-runtime/admin/admin-notes-directory.mjs` safely lists live root folder entries; Playwright validates folder/file links. | PASS |
14
+
| Read and display selected `.txt` note content. | Playwright opens `quick-reference.txt` and `other/index.txt`. | PASS |
15
+
| Keep implementation dev-only under `src/dev-runtime/admin/`. | Viewer page, viewer JS, and directory handler live under `src/dev-runtime/admin/`. | PASS |
16
+
| Remove Admin Notes hardcoded link from `assets/theme-v2/partials/header-nav.html`. | Header link removed; static audit returns no Admin Notes matches in public/header paths. | PASS |
17
+
| Do not expose Admin Notes from production/public navigation. | Boundary test and static audit over `account admin assets toolbox src/engine src/shared`. | PASS |
18
+
| Add local/dev-only access through the dev/admin local entrypoint only. | Local entrypoint is `/src/dev-runtime/admin/admin-notes.html`; no public nav or Admin menu link was added. | PASS |
19
+
| Do not add fallbacks. | Viewer uses explicit fetches and shows existing visible diagnostics when files/listing are unavailable; no alternate source or hidden default was added. | PASS |
20
+
| Do not modify `start_of_day` folders. | `git diff --name-only \| rg "(^|/)start_of_day(/|$)"` returned no matches. | PASS |
21
+
| Run changed-file syntax checks. |`node --check` lane passed for changed JS/MJS files. | PASS |
22
+
| Run targeted Admin Notes local viewer validation. |`npx playwright test tests/playwright/tools/AdminNotesLocalViewer.spec.mjs` passed. | PASS |
|`npx playwright test tests/playwright/tools/AdminNotesLocalViewer.spec.mjs`| PASS |
52
+
|`npx playwright test tests/playwright/tools/LoginSessionMode.spec.mjs --grep "Local users unlock their allowed Account and Admin pages"`| PASS |
53
+
|`npx playwright test tests/playwright/tools/RootToolsFutureState.spec.mjs --grep "common header renders primary navigation order across active pages"`| PASS |
54
+
| Public navigation exposure audit | PASS, no matches |
|`git diff --check`| PASS, line-ending warnings only |
57
+
58
+
## Playwright Impact
59
+
60
+
Playwright impacted: Yes. This PR restores a local viewer page, file selection behavior, and live directory-listing behavior. Expected pass behavior is that the viewer loads `index.txt`, lists current folder entries, and opens selected note content. Expected fail behavior is missing default content, missing folder/file links, or selected note clicks failing to update the content/status.
61
+
62
+
## Manual Test Notes
63
+
64
+
1. Start the API-backed local server.
65
+
2. Open `/src/dev-runtime/admin/admin-notes.html`.
66
+
3. Confirm `index.txt` content loads by default.
67
+
4. Click `quick-reference.txt` and `other/`; each should display that selected note content.
68
+
5. Confirm the public/Admin header menus do not contain an Admin Notes link.
69
+
70
+
## Skipped Lanes
71
+
72
+
- Full samples smoke: skipped because samples and game runtime were not touched.
73
+
- Full Playwright suite: skipped because targeted Admin Notes, header, and auth/menu lanes cover the changed behavior.
Copy file name to clipboardExpand all lines: docs_build/dev/reports/coverage_changed_js_guardrail.txt
+5-19Lines changed: 5 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,10 @@ Missing changed runtime JS files are WARN, not FAIL.
6
6
Source: Playwright/Chromium built-in V8 coverage from the active Playwright run.
7
7
8
8
Changed runtime JS files considered:
9
-
(0%) src/dev-runtime/guest-seeds/palette-source-mock-db.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
10
-
(0%) src/dev-runtime/guest-seeds/tool-state-samples.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
11
-
(0%) src/dev-runtime/persistence/tool-repositories/assets-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
12
-
(0%) src/dev-runtime/persistence/tool-repositories/game-configuration-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
13
-
(0%) src/dev-runtime/persistence/tool-repositories/game-design-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
14
-
(0%) src/dev-runtime/persistence/tool-repositories/palette-workspace-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
15
-
(0%) src/dev-runtime/persistence/tool-repositories/project-journey-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
16
-
(0%) src/dev-runtime/persistence/tool-repositories/project-workspace-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
17
-
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
(0%) Theme V2 Shared JS - not exercised by this Playwright run
18
18
19
19
Changed runtime JS files covered:
20
-
(0%) src/dev-runtime/guest-seeds/palette-source-mock-db.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
21
-
(0%) src/dev-runtime/guest-seeds/tool-state-samples.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
22
-
(0%) src/dev-runtime/persistence/tool-repositories/assets-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
23
-
(0%) src/dev-runtime/persistence/tool-repositories/game-configuration-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
24
-
(0%) src/dev-runtime/persistence/tool-repositories/game-design-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
25
-
(0%) src/dev-runtime/persistence/tool-repositories/palette-workspace-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
26
-
(0%) src/dev-runtime/persistence/tool-repositories/project-journey-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
27
-
(0%) src/dev-runtime/persistence/tool-repositories/project-workspace-mock-repository.js - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
28
-
(0%) src/dev-runtime/server/mock-api-router.mjs - WARNING: changed runtime JS file was not collected by Playwright V8 coverage; advisory only
0 commit comments