CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Fix all build-breaking ESLint errors, type errors, and lint warnings #4682

Open⚡ AI-generatedMccantynz wants to mergecopilot/fix-image-optimization-issuesmain↑4 ↓9opened Mar 19, 20263/4 tasksLive: 0 editing
ccantynzcommented Mar 19, 2026

Originally written by @Copilot on GitHub.
Imported from https://github.com/ccantynz-alt/Dominat8.com/pull/20


What changed?

  • Small fix

next build failed with 3 ESLint errors, 4 ESLint warnings, and several downstream type errors uncovered once linting passed.

ESLint errors (build-breaking):

  • D8TV.tsx — stray type annotations in function body (tone?: string; etc.)
  • route.tstry: any {try {
  • kv.tseslint-disable referencing nonexistent @typescript-eslint/no-var-requires rule

ESLint warnings:

  • gallery/page.jsx<img><Image /> from next/image
  • marketing-queue/page.tsx — suppressed intentional useEffect dep omission
  • projects/page.tsx — removed "use client" from async component (no hooks used)
  • ProjectTerminal.tsx — wrapped steps in useMemo to stabilize dep array

Type errors (surfaced after lint fix):

  • (marketing)/_d8/D8Bits.tsxD8Card props missing title/body/kicker (all 4 callers pass them)
  • d8kv.ts — added missing projectVideoKey export
  • VideoStudioClient.tsx — canvas ctx null-narrowing lost in closure; assigned to const context post-guard
  • page.tsx — removed intentional AutoRepairDemoWidget demo breakage import
  • marketing-queue/page.tsx — typed headers useMemo return as Record<string, string>
  • tsconfig.json — excluded _archive/** (stale backup files with broken imports)

Quality gates (must be green)

  • CI build is green
  • No unexpected UI/design changes on Dominat8.com
  • If protected paths changed: override label OR ALLOW_PROTECTED_PATHS file added with reason

Notes / risks

  • The _archive directory contained stale .ts files with broken imports; previously masked by ESLint failing first. Excluded via tsconfig.json rather than deleting content.
  • projectVideoKey key format (projectVideo:${projectId}) inferred from naming convention of sibling key helpers—verify against any existing KV data.
  • D8Card in (marketing)/_d8/D8Bits.tsx was updated to match the full implementation already in src/app/_d8/D8Bits.tsx.

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

ccantynzcommented Mar 19, 2026

Originally written by @vercel[bot] on GitHub.


The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dominat8com Canceled Canceled Mar 19, 2026 9:24pm

Request Review

gluecron[bot]🤖 botcommented 25d ago

This PR has gone quiet

No activity for 7+ days. Is this still in progress?

  • Author: keep working / mark draft / close.
  • Reviewers: review or unassign yourself.
  • Maintainers: close if no longer relevant.
gluecron[bot]🤖 botcommented 18d ago

This PR has gone quiet

No activity for 7+ days. Is this still in progress?

  • Author: keep working / mark draft / close.
  • Reviewers: review or unassign yourself.
  • Maintainers: close if no longer relevant.
gluecron[bot]🤖 botcommented 11d ago

This PR has gone quiet

No activity for 7+ days. Is this still in progress?

  • Author: keep working / mark draft / close.
  • Reviewers: review or unassign yourself.
  • Maintainers: close if no longer relevant.
gluecron[bot]🤖 botcommented 4d ago

This PR has gone quiet

No activity for 7+ days. Is this still in progress?

  • Author: keep working / mark draft / close.
  • Reviewers: review or unassign yourself.
  • Maintainers: close if no longer relevant.

Files changed

Side-by-side diff for copilot/fix-image-optimization-issues → main.

View diff →

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
Risk score: LOW (2/10)8fe0ee0
Touches 1 file(s) with 1 added and 0 removed across 0 owner(s). Includes a new dependency. No tests were added for the new code.
See full signal breakdown
  • files changed: 1
  • lines added/removed: 1 / 0
  • distinct owners touched: 0
  • schema migration touched: no
  • locked / sensitive path touched: no
  • adds new dependency: yes
  • bumps major dependency: no
  • tests added for new code: no
  • diff-minus-test ratio: 1.00
How is this calculated? The score is a transparent sum of weighted signals — see src/lib/pr-risk.ts computePrRiskScore.

Gate checks

1 of 6 failing
GateTestDisabled in settingsSkipped
Secret scanNo secrets detectedPassed
Security scanStatic rules ran (8 checks, no AI required) — no static findings. AI review unavailable: The platform's AI balance is exhausted, so AI generation is temporarily unavailable. Nothing was lost. You can queue this as a repair for the internal agent from the repository's Health page, or try again once the balance is restored.Skipped
Merge checkMerge conflicts detected — AI auto-resolution will be attempted on mergeFailing
CINo CI workflows are configured for this repositorySkipped
AI ReviewAIAI review approvedPassed

Resolve conflicts manually

GlueCron AI will attempt auto-resolution when you press Merge. If it cannot, or you would rather not wait on it, the manual path below always works.
13 conflicting files between copilot/fix-image-optimization-issues and main:
  • .gitignore
  • src/app/(marketing)/_d8/D8Bits.tsx
  • src/app/(marketing)/gallery/page.jsx
  • src/app/_client/D8TV.tsx
  • src/app/admin/marketing-queue/page.tsx
  • src/app/admin/projects/page.tsx
  • src/app/api/__probe__/route.ts
  • src/app/page.tsx
  • src/app/video/_client/VideoStudioClient.tsx
  • src/components/terminal/ProjectTerminal.tsx
  • src/lib/d8kv.ts
  • src/lib/kv.ts
  • tsconfig.json
git fetch origin
git checkout copilot/fix-image-optimization-issues
git merge origin/main      # fix the files listed above, then:
git add -A && git commit
git push origin copilot/fix-image-optimization-issues
After you push, the merge check re-runs automatically on the next page load and the Merge button unblocks once it passes.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts