Skip to content

Fix red main: resolve frontend lint errors breaking Azure and Netlify builds (PR 14 follow-up) - #16

Merged
Mani212005 merged 3 commits into
mainfrom
fm/digisim-red-main-fix-forward
Sep 22, 2026
Merged

Mani212005 merged 3 commits into
mainfrom
fm/digisim-red-main-fix-forward

Conversation

@Mani212005

Copy link
Copy Markdown
Owner

Fix-forward for red main after PR #14 (subcircuit hierarchy) merged with failing checks.

What this fixes (cherry-picked ready fix):

  • frontend/src/App.tsx: wires PackageSubcircuitModal and AIVisionIntakeModal into App, dedupes ai-intake listeners (11 unused-var warnings gone)
  • frontend/src/components/AIVisionIntakeModal.tsx: import reordered to top (import/first error gone)
  • frontend/src/components/Sidebar.tsx: accordion title JSX template-string fix (no-template-curly-in-string warning gone)
  • frontend/src/components/canvas/InteractiveProbeTooltip.tsx: hook deps + unused imports fixed (exhaustive-deps + unused-var warnings gone)

Evidence (all local, single-run flags):

  • ESLint (repo config, eslint v8): 16 problems (1 error, 15 warnings) at pre-fix HEAD~1 across those 4 files -> 0 problems after fix
  • tsc --noEmit: clean
  • CI=true npm run build: Compiled successfully
  • CI=true npm test -- --watchAll=false: 30 suites, 174/174 tests pass
  • Subcircuit-hierarchy feature intact (no feature files touched, only the 4 files above)

Process note: the no-mistakes pipeline could not run its review/document/test agent steps - the pi/Antigravity backend is quota-exhausted (HTTP 429 until 2026-09-23T04:00:00Z) on every agent step, so those steps were skipped and the local suite above stands as evidence. Pushed manually per captain/firstmate decision; not merged.

Wire PackageSubcircuitModal and AIVisionIntakeModal into App, dedupe
ai-intake listeners, repair Sidebar accordion title JSX, and fix
InteractiveProbeTooltip hook deps and imports.
@netlify

netlify Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for digisim ready!

Name Link
🔨 Latest commit 0a01f1f
🔍 Latest deploy log https://app.netlify.com/projects/digisim/deploys/6ab29a89c510220008d705ad
😎 Deploy Preview https://deploy-preview-16--digisim.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

…hout token

Netlify deploy previews fail on every PR because the repo root has no
build config (frontend/ is the CRA app). Azure Static Web Apps fails
because AZURE_STATIC_WEB_APPS_API_TOKEN is not configured; skip the
upload instead of failing the check until the secret exists.
typescript@5.9.3 conflicts with react-scripts@5.0.1 peerOptional ^3||^4,
so plain npm install/npm ci (Netlify, Azure Oryx) die with ERESOLVE while
only the GitHub workflow survived via its --legacy-peer-deps fallback.
Verified: clean npm ci fails without this file, succeeds with it.
@Mani212005

Copy link
Copy Markdown
Owner Author

Follow-up fixes pushed on top of the lint fix, all checks now green (6 passed, 1 skipped): 837efe9 added netlify.toml (repo root had no build config, so Netlify previews had nothing to build) and skip_deploy_on_missing_secrets for the Azure step (AZURE_STATIC_WEB_APPS_API_TOKEN secret is not configured); 0a01f1f added frontend/.npmrc with legacy-peer-deps=true. Root cause found via clean-room repro: typescript@5.9.3 vs react-scripts@5.0.1 peerOptional ^3||^4 makes stock npm install/npm ci die with ERESOLVE (verified clean npm ci fails without .npmrc, passes with it) - this broke Netlify and Azure Oryx installs while only the GitHub workflow survived via its --legacy-peer-deps fallback. Local evidence: tsc clean, CI=true build compiles, 174/174 tests pass (30 suites). Pipeline review/document agent steps were skipped (pi 429); local suite stands as evidence. Not merging - awaiting review.

@Mani212005
Mani212005 merged commit 2070d0c into main Sep 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant