chore: Modularize impact-analysis scripts and add Zod validation requires changes#2520
chore: Modularize impact-analysis scripts and add Zod validation requires changes#2520google-labs-jules[bot] wants to merge 15 commits into
Conversation
…idation - Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Update package.json: add zod@^3.24.1, move jsdom and @types/jsdom to dependencies. - Update vite.config.ts to include script tests in vitest. - Update knip.ts to include new script entry points.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
🚀 Deployment Details (Last updated: Jun 19, 2026, 11:17 AM PST) 🚀 Pushed to gh-pages; publish in progress
|
|
🚀 Impact Analysis Details (Last updated: Jun 18, 2026, 5:20 PM PST) ✅ Impact Analysis Complete
Deployment ReviewSummaryImpact Level: LOW 📝 Changed Files (12)
Routes ReviewedNo concrete routes required review. |
…idation - Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Implement a separate Vitest configuration for script tests to avoid matcher conflicts. - Update package.json: add zod@^3.24.1, add test:scripts task. - Simplify JSDoc in parser-sanitizer.ts to remove AI slop. - Ensure the deployment report maintains rich HTML formatting for readability.
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
Automated Agent Reviewℹ️ Tooling/Scripts: Please ensure any Python script changes are covered by This is an automated review generated by Jules. |
…idation (final) - Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Implement a separate Vitest configuration for script tests to avoid matcher conflicts. - Update package.json: add zod@^3.24.1, add test:scripts task. - Simplify JSDoc in parser-sanitizer.ts to remove AI slop. - Ensure the deployment report maintains rich HTML formatting for readability. - Move jsdom to devDependencies.
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
…idation - Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Implement a separate Vitest configuration for script tests to avoid matcher conflicts. - Update package.json: add zod@^3.24.1, add test:scripts task. - Simplify JSDoc in parser-sanitizer.ts to remove AI slop. - Ensure the deployment report maintains rich HTML formatting for readability. - Keep jsdom in devDependencies.
🔍 PR #2520 Feedback — Modularize impact-analysis scripts and add Zod validationCI Status✅ All checks passed. Code Audit FindingsNo violations found. Impact Analysis
Next Steps
|
…idation - Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Implement a separate Vitest configuration for script tests to avoid matcher conflicts. - Update package.json: add zod@^3.24.1, add test:scripts task. - Simplify JSDoc in parser-sanitizer.ts to remove AI slop. - Ensure the deployment report maintains rich HTML formatting for readability. - Keep jsdom in devDependencies.
…idation - Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Implement a separate Vitest configuration for script tests to avoid matcher conflicts. - Update package.json: add zod@^3.24.1, add test:scripts task. - Simplify JSDoc in parser-sanitizer.ts to remove AI slop. - Ensure the deployment report maintains rich HTML formatting for readability. - Keep jsdom in devDependencies.
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
- Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Implement a separate Vitest configuration for script tests. - Update knip.ts to ignore 'gh' binary and track new script entry points. - Restore rich HTML formatting in deployment reports. - Ensure jsdom remains in devDependencies.
- Extract preview-server, parser-sanitizer, metric-calculator, and report-generator into scripts/impact/ submodules. - Implement Zod schemas for VisualRouteSummary and DomRouteSummary for runtime validation. - Add unit tests for impact submodules in scripts/__tests__/build.test.ts. - Implement a separate Vitest configuration for script tests. - Update knip.ts to ignore 'gh' binary and track new script entry points. - Restore rich HTML formatting in deployment reports. - Ensure jsdom remains in devDependencies. - Update package.json with test:scripts task.
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
⚠️ BLOCKING CI FAILURE: Approval overridden to COMMENT because the following checks are failing: Build & E2E. Please resolve CI issues before approval.
AUTO-AUDIT
FINAL RECOMMENDATION
Approved
arii
left a comment
There was a problem hiding this comment.
⚠️ BLOCKING CI FAILURE: Approval overridden to COMMENT because the following checks are failing: Build & E2E. Please resolve CI issues before approval.
AUTO-AUDIT
FINAL RECOMMENDATION
Approved
arii
left a comment
There was a problem hiding this comment.
⚠️ BLOCKING CI FAILURE: Approval overridden to COMMENT because the following checks are failing: Build & E2E. Please resolve CI issues before approval.
AUTO-AUDIT
FINAL RECOMMENDATION
Approved
|
Why am I being mentioned here? |
🐙 GitHub Models Code Review
Reviewing: PR #2520 Code Review FeedbackReview of the provided code diff: 1.
|
|
The PR shows significant improvements with modularization and validation. However, to reduce code churn, it is essential to review and potentially remove visual snapshots that are no longer relevant. Please address this issue before we proceed with approval. |
- Modify `package.json` test script to use `run-s -c` (npm-run-all) instead of `&&` to run app tests and script tests sequentially but guaranteeing both run even if the first fails without short-circuiting. - Update `knip.ts` entry paths to exclude `scripts/__tests__/*.ts` and `scripts/impact/*.ts` from the entry array to improve dead code analysis accuracy.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
@jules-fix-ci |
|
🤖 Jules is on it! Initialized autonomous repair session ( |
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
ANTI-AI-SLOP\n\n\n## FINDINGS\n\n\n## FINAL RECOMMENDATION\n<Approved | Approved with Minor Changes | Not Approved>\n\n
Inline Comments (Fallback due to Github line resolution errors)
- :1:
arii
left a comment
There was a problem hiding this comment.
Comprehensive Review for PR #2520
CI Status: Failing checks detected.
Failing Checks:
- Lint & Type Check
- Oxlint Scan
Recommendation: Please review the failing CI logs and apply fixes before requesting another review.
FINAL RECOMMENDATION
Not Approved
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Ariel Anders <anders.ariel@gmail.com>
This PR refactors the impact-analysis tooling, organizing it into a modular structure while also implementing Zod for runtime validation. Includes test suite improvement and updated dependencies.
Scope Minimization Suggestions:
scripts/__tests__/build.test.tssince these could contribute to code churn; consider removing any outdated snapshots that do not affect current tests.Fixes #2492