Skip to content

Commit db85244

Browse files
committed
Remove right-column Assets upload diagnostics and keep inline upload status - PR_26163_083-assets-upload-cleanup-fixes
1 parent 9019482 commit db85244

8 files changed

Lines changed: 2807 additions & 1462 deletions

File tree

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# PR_26163_083-assets-upload-cleanup-fixes
2+
3+
## Branch Validation
4+
5+
- PASS: Current branch is `main`.
6+
- PASS: Expected branch is `main`.
7+
- PASS: Local branches found: `main`.
8+
- PASS: Worktree was clean before implementation.
9+
10+
## Requirement Checklist
11+
12+
- PASS: Read `docs_build/dev/PROJECT_INSTRUCTIONS.md` before changes.
13+
- PASS: Continued `PR_26163_083-assets-upload-cleanup-fixes` from the user-provided BUILD input. No existing `083` PR/report file was present before this run; prior assets reports through `082` were used only as continuity context.
14+
- PASS: Removed the right-column Upload Diagnostics accordion from `toolbox/assets/index.html`.
15+
- PASS: Removed the right-column upload diagnostics DOM selectors and close handler from `toolbox/assets/assets.js`.
16+
- PASS: Upload progress and diagnostics now render only in the inline upload progress section under the active asset type table.
17+
- PASS: Successful all-OK uploads leave only compact inline success status in the relevant asset type area.
18+
- PASS: Upload FAIL/WARN/SKIP diagnostics remain visible inline for actionable failures and are not duplicated in the Inspector column.
19+
- PASS: Right Inspector column remains available for Output, Selected Asset, Validation, Repository Tables, and Status Log.
20+
- PASS: Status Log remains in the right Inspector column.
21+
- PASS: Clear Status Log clears only the Status Log text/batch-log area and preserves asset rows plus inline upload compact status.
22+
- PASS: Filename normalization, Trash confirmation/delete-file behavior, lazy project id behavior, `/projects/` safety, duplicate blocking, and delete-file behavior remain covered by targeted Assets Playwright.
23+
- PASS: `codex_review.diff` is UTF-8 readable.
24+
- PASS: Full samples smoke test was not run.
25+
26+
## Right-Column Removal Evidence
27+
28+
- PASS: `toolbox/assets/index.html` no longer contains `data-asset-tool-upload-diagnostics-accordion`.
29+
- PASS: `toolbox/assets/index.html` no longer contains `data-asset-tool-upload-dialog`.
30+
- PASS: `toolbox/assets/assets.js` no longer queries or updates right-column upload dialog fields.
31+
- PASS: Playwright asserts `data-asset-tool-upload-diagnostics-accordion` count is `0`.
32+
- PASS: Playwright asserts `data-asset-tool-upload-dialog` count is `0`.
33+
- PASS: Playwright asserts `data-asset-tool-status-log-accordion` remains visible inside the Inspector column.
34+
35+
## Inline Upload Evidence
36+
37+
- PASS: `toolbox/assets/assets.js` creates per-type inline upload sections with `data-asset-tool-inline-upload-progress`.
38+
- PASS: Inline progress includes active details under the asset type table: phase, current file, file count, bytes, speed, ETA, elapsed, worker status, summary counts, issue rows, and file/status rows.
39+
- PASS: Playwright verifies the Images inline progress panel appears under the Images table while upload is active.
40+
- PASS: Playwright verifies the active inline panel shows `Uploading`, current file, total bytes, bytes received, BPS, speed, ETA, elapsed, and file/status table headers.
41+
- PASS: Playwright verifies a successful upload keeps `Upload summary: 2 written, 0 failed, 0 skipped, 0 warnings.` in the Images inline area.
42+
- PASS: Playwright verifies successful-upload details are hidden after completion, leaving compact inline status only.
43+
- PASS: Playwright verifies duplicate, unsafe target path, and unsupported write failures render concise inline issue/status rows without `projects/` debug paths in user-facing rows.
44+
45+
## Scope Preservation Evidence
46+
47+
- PASS: Lazy project id behavior remains covered by `Assets authenticated upload lazily creates one project id when no current project exists`.
48+
- PASS: Guest upload remains blocked without project creation by `Assets guest upload action shows account prompt and creates no record`.
49+
- PASS: Duplicate blocking remains covered by `Assets duplicate project-path uploads fail before write and do not create duplicate records`.
50+
- PASS: `/projects/` path safety remains covered by `Assets upload fails visibly when the resolved target directory would escape the project asset folder`.
51+
- PASS: Delete-file behavior remains covered by `Assets Trash deletes uploaded records and physical files with scoped failure handling`.
52+
- PASS: Delete path escape handling remains covered by `Assets Trash rejects uploaded delete paths outside projects`.
53+
- PASS: Filename/source behavior remains covered by `Assets source controls require real upload filenames and valid references`.
54+
55+
## Impacted Lanes
56+
57+
- Toolbox Assets runtime/UI.
58+
- Assets targeted Playwright recovery/UAT lane.
59+
- Project Workspace contract lane, because `npm run test:workspace-v2` was explicitly required. The script name is legacy; user-facing product language remains Project Workspace.
60+
61+
## Skipped Lanes
62+
63+
- Full samples smoke: SKIP by request. No sample JSON or sample runtime behavior changed.
64+
- Engine runtime: SKIP. No engine files were modified.
65+
- Broad toolbox smoke: SKIP. This PR is scoped to `toolbox/assets` upload diagnostics cleanup and targeted Assets coverage.
66+
67+
## Validation Performed
68+
69+
- PASS: `git branch --show-current` -> `main`.
70+
- PASS: `git branch --list` -> `* main`.
71+
- PASS: `git status --short` before changes -> no output.
72+
- PASS: `node --check toolbox/assets/assets.js`.
73+
- PASS: `node --check tests/playwright/tools/AssetToolMockRepository.spec.mjs`.
74+
- PASS: `Select-String -Path toolbox/assets/index.html -Pattern '<style\\b'` -> no output.
75+
- PASS: `Select-String -Path toolbox/assets/index.html -Pattern '<script(?![^>]*\\bsrc=)'` -> no output.
76+
- PASS: `git diff --check -- toolbox/assets/index.html toolbox/assets/assets.js tests/playwright/tools/AssetToolMockRepository.spec.mjs docs_build/dev/reports/playwright_v8_coverage_report.txt docs_build/dev/reports/coverage_changed_js_guardrail.txt docs_build/dev/reports/codex_changed_files.txt`.
77+
- PASS: `node -e "...read codex_review.diff as utf8..."` -> UTF-8 OK.
78+
- PASS: `npx.cmd playwright test tests/playwright/tools/AssetToolMockRepository.spec.mjs --workers=1 --reporter=list` -> 15 passed.
79+
- PASS: `npm.cmd run test:workspace-v2` -> workspace-contract lane passed, 5 Playwright tests passed.
80+
81+
## Playwright Result
82+
83+
- PASS: Targeted Assets Playwright: 15/15 passed.
84+
- PASS: Required Project Workspace validation command: 5/5 passed.
85+
- NOTE: Initial Playwright execution was blocked by a missing Chromium cache; Chromium was installed after approval using Node system CA. A later full targeted rerun passed.
86+
87+
## V8 Coverage
88+
89+
- Report: `docs_build/dev/reports/playwright_v8_coverage_report.txt`.
90+
- PASS: `toolbox/assets/assets.js` collected browser V8 coverage at 93%.
91+
- WARN: The coverage helper also lists `src/dev-runtime/persistence/tool-repositories/assets-mock-repository.js` from the last committed HEAD change set. That file is not modified in the current working tree; the warning is advisory per project instructions.
92+
93+
## Review Artifacts
94+
95+
- `docs_build/dev/reports/PR_26163_083-assets-upload-cleanup-fixes.md`
96+
- `docs_build/dev/reports/codex_review.diff`
97+
- `docs_build/dev/reports/codex_changed_files.txt`
98+
- `docs_build/dev/reports/playwright_v8_coverage_report.txt`
99+
- `docs_build/dev/reports/coverage_changed_js_guardrail.txt`
100+
101+
## Manual Validation Notes
102+
103+
1. Open `/toolbox/assets/index.html` in local DB mode.
104+
2. Confirm the right Inspector column has no Upload Diagnostics accordion.
105+
3. Upload Images and confirm progress appears under the Images table while active.
106+
4. Confirm a successful upload leaves only compact success status in the Images area.
107+
5. Confirm Status Log remains in the right column and Clear does not remove asset rows or inline upload status.
108+
109+
## Samples Decision
110+
111+
- SKIP: Full samples smoke test was not run because the request explicitly says not to run it and this PR does not change samples.
Lines changed: 13 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,22 @@
11
# git status --short
2-
M docs_build/dev/reports/coverage_changed_js_guardrail.txt
3-
M docs_build/dev/reports/dependency_gating_report.md
4-
M docs_build/dev/reports/dependency_hydration_reuse_report.md
5-
M docs_build/dev/reports/execution_graph_reuse_report.md
6-
M docs_build/dev/reports/failure_fingerprint_report.md
7-
M docs_build/dev/reports/filesystem_scan_reduction_report.md
8-
M docs_build/dev/reports/incremental_validation_report.md
9-
M docs_build/dev/reports/lane_compilation_report.md
10-
M docs_build/dev/reports/lane_deduplication_report.md
11-
M docs_build/dev/reports/lane_input_validation_report.md
12-
M docs_build/dev/reports/lane_runtime_optimization_report.md
13-
M docs_build/dev/reports/lane_snapshot_report.md
14-
M docs_build/dev/reports/lane_warm_start_report.md
15-
M docs_build/dev/reports/monolith_trigger_removal_report.md
16-
M docs_build/dev/reports/persistent_lane_manifest_report.md
17-
M docs_build/dev/reports/playwright_discovery_ownership_report.md
18-
M docs_build/dev/reports/playwright_discovery_scope_report.md
19-
M docs_build/dev/reports/playwright_structure_audit.md
2+
M docs_build/dev/reports/codex_changed_files.txt
3+
M docs_build/dev/reports/codex_review.diff
4+
M docs_build/dev/reports/coverage_changed_js_guardrail.txt
205
M docs_build/dev/reports/playwright_v8_coverage_report.txt
21-
M docs_build/dev/reports/retry_suppression_report.md
22-
M docs_build/dev/reports/slow_path_pruning_report.md
23-
M docs_build/dev/reports/static_validation_report.md
24-
M docs_build/dev/reports/targeted_file_manifest_report.md
25-
M docs_build/dev/reports/test_cleanup_performance_report.md
26-
M docs_build/dev/reports/test_cleanup_routing_report.md
27-
M docs_build/dev/reports/testing_lane_execution_report.md
28-
M docs_build/dev/reports/validation_cache_report.md
29-
M docs_build/dev/reports/zero_browser_preflight_report.md
30-
M src/dev-runtime/persistence/tool-repositories/assets-mock-repository.js
316
M tests/playwright/tools/AssetToolMockRepository.spec.mjs
327
M toolbox/assets/assets.js
338
M toolbox/assets/index.html
34-
?? docs_build/dev/reports/PR_26163_082-lazy-project-id-creation.md
9+
?? docs_build/dev/reports/PR_26163_083-assets-upload-cleanup-fixes.md
3510

3611
# git ls-files --others --exclude-standard
37-
docs_build/dev/reports/PR_26163_082-lazy-project-id-creation.md
12+
docs_build/dev/reports/PR_26163_083-assets-upload-cleanup-fixes.md
3813

3914
# git diff --stat
40-
.../dev/reports/coverage_changed_js_guardrail.txt | 2 +-
41-
docs_build/dev/reports/dependency_gating_report.md | 2 +-
42-
.../reports/dependency_hydration_reuse_report.md | 2 +-
43-
.../dev/reports/execution_graph_reuse_report.md | 2 +-
44-
.../dev/reports/failure_fingerprint_report.md | 2 +-
45-
.../reports/filesystem_scan_reduction_report.md | 2 +-
46-
.../dev/reports/incremental_validation_report.md | 2 +-
47-
docs_build/dev/reports/lane_compilation_report.md | 2 +-
48-
.../dev/reports/lane_deduplication_report.md | 2 +-
49-
.../dev/reports/lane_input_validation_report.md | 2 +-
50-
.../reports/lane_runtime_optimization_report.md | 2 +-
51-
docs_build/dev/reports/lane_snapshot_report.md | 2 +-
52-
docs_build/dev/reports/lane_warm_start_report.md | 2 +-
53-
.../dev/reports/monolith_trigger_removal_report.md | 2 +-
54-
.../dev/reports/persistent_lane_manifest_report.md | 2 +-
55-
.../playwright_discovery_ownership_report.md | 2 +-
56-
.../reports/playwright_discovery_scope_report.md | 2 +-
57-
.../dev/reports/playwright_structure_audit.md | 2 +-
58-
.../dev/reports/playwright_v8_coverage_report.txt | 8 +-
59-
docs_build/dev/reports/retry_suppression_report.md | 2 +-
60-
docs_build/dev/reports/slow_path_pruning_report.md | 12 +-
61-
docs_build/dev/reports/static_validation_report.md | 2 +-
62-
.../dev/reports/targeted_file_manifest_report.md | 2 +-
63-
.../dev/reports/test_cleanup_performance_report.md | 14 +-
64-
.../dev/reports/test_cleanup_routing_report.md | 2 +-
65-
.../dev/reports/testing_lane_execution_report.md | 16 +-
66-
docs_build/dev/reports/validation_cache_report.md | 2 +-
67-
.../dev/reports/zero_browser_preflight_report.md | 2 +-
68-
.../tool-repositories/assets-mock-repository.js | 118 +++++++++++---
69-
.../tools/AssetToolMockRepository.spec.mjs | 177 ++++++++++++++-------
70-
toolbox/assets/assets.js | 12 +-
71-
toolbox/assets/index.html | 2 +-
72-
32 files changed, 274 insertions(+), 133 deletions(-)
15+
docs_build/dev/reports/codex_changed_files.txt | 65 +-
16+
docs_build/dev/reports/codex_review.diff | 1786 ++++++--------------
17+
.../dev/reports/coverage_changed_js_guardrail.txt | 2 +-
18+
.../dev/reports/playwright_v8_coverage_report.txt | 8 +-
19+
.../tools/AssetToolMockRepository.spec.mjs | 127 +-
20+
toolbox/assets/assets.js | 134 +-
21+
toolbox/assets/index.html | 48 -
22+
7 files changed, 669 insertions(+), 1501 deletions(-)

0 commit comments

Comments
 (0)