Skip to content

Commit c93d674

Browse files
authored
Merge pull request #282 from ToolboxAid/PR_26180_OWNER_004-shared-validation-guard-fix
PR_26180_OWNER_004-shared-validation-guard-fix
2 parents b3a2b30 + 9e693b8 commit c93d674

4 files changed

Lines changed: 114 additions & 743 deletions

File tree

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# PR_26180_OWNER_004-shared-validation-guard-fix
2+
3+
Team: OWNER
4+
5+
Branch: PR_26180_OWNER_004-shared-validation-guard-fix
6+
7+
## Scope
8+
9+
Fix the shared extraction guard regression in `toolbox/messages/messages.js` only.
10+
11+
## Changes
12+
13+
- Imported `isFiniteNumber` from `src/shared/number/numbers.js`.
14+
- Replaced two direct `Number.isFinite(...)` checks in Messages typewriter-speed handling with `isFiniteNumber(...)`.
15+
- Preserved the existing numeric conversion, fallback, and validation behavior.
16+
17+
## Validation Results
18+
19+
| Command | Result | Notes |
20+
| --- | --- | --- |
21+
| `node --check toolbox/messages/messages.js` | PASS | Syntax check passed |
22+
| `node dev/tools/toolbox-dev/checkSharedExtractionGuard.mjs` | PASS | Shared extraction guard passed against baseline |
23+
| `git diff --check` | PASS | No whitespace errors |
24+
| `npm test` | FAIL | Guard passed, then node test runner failed on unrelated missing module `src/engine/combat/Combat.js` imported by `dev/tests/combat/Combat.test.mjs` |
25+
26+
## Shared Guard Result
27+
28+
The original failure is fixed:
29+
30+
- File: `toolbox/messages/messages.js`
31+
- Rule: `inline-helper-clone`
32+
- Match: `rule:number-is-finite-usage`
33+
- Previous unexpected count: 2
34+
- Current guard status: PASS
35+
36+
## NPM Test Blocker
37+
38+
`npm test` passed the `pretest` shared extraction guard, then failed in the node test runner:
39+
40+
```text
41+
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'src/engine/combat/Combat.js' imported from dev/tests/combat/Combat.test.mjs
42+
```
43+
44+
This PR does not change combat tests or engine combat files.
45+
46+
## Merge / Baseline Status
47+
48+
- PR merge: BLOCKED by `npm test` failure.
49+
- Baseline commit: NOT CREATED because the requested condition was `If PASS`.
50+
51+
## ZIP
52+
53+
- `dev/workspace/zips/PR_26180_OWNER_004-shared-validation-guard-fix_delta.zip`
Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,4 @@
1-
dev/reports/PR_26179_CHARLIE_022-sprites-tool-shell.md
2-
dev/reports/PR_26179_CHARLIE_023-sprites-toolbar-placeholders.md
3-
dev/reports/PR_26179_CHARLIE_024-sprites-canvas-grid.md
4-
dev/reports/PR_26179_CHARLIE_025-sprites-basic-drawing.md
5-
dev/reports/PR_26179_CHARLIE_026-sprites-palette-panel.md
6-
dev/reports/PR_26179_CHARLIE_027-sprites-preview-export.md
7-
dev/reports/PR_26179_CHARLIE_028-sprites-editor-polish.md
8-
dev/reports/PR_26179_CHARLIE_029-sprites-clear-reset-controls.md
9-
dev/reports/PR_26179_CHARLIE_030-sprites-undo-redo.md
10-
dev/reports/PR_26179_CHARLIE_031-sprites-picker-zoom.md
11-
dev/reports/PR_26179_CHARLIE_032-sprites-shape-tools.md
12-
dev/reports/PR_26179_CHARLIE_033-sprites-canvas-preview-sync.md
13-
dev/reports/PR_26179_CHARLIE_034-sprites-frame-strip.md
14-
dev/reports/PR_26179_CHARLIE_035-sprites-frame-editing.md
15-
dev/reports/PR_26179_CHARLIE_036-sprites-animation-preview.md
16-
dev/reports/PR_26179_CHARLIE_037-sprites-animation-export.md
17-
dev/reports/PR_26179_CHARLIE_038-sprites-grid-dimension-fix.md
18-
dev/reports/PR_26179_CHARLIE_039-sprites-color-and-zoom-fix.md
19-
dev/reports/PR_26179_CHARLIE_040-dev-artifact-location-cleanup.md
1+
dev/reports/PR_26180_OWNER_004-shared-validation-guard-fix.md
202
dev/reports/codex_changed_files.txt
213
dev/reports/codex_review.diff
22-
docs_build/dev/reports/codex_changed_files.txt
23-
docs_build/dev/reports/codex_review.diff
4+
toolbox/messages/messages.js

0 commit comments

Comments
 (0)