CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

Fix all build errors and remove accumulated repo clutter #4678

Open⚡ AI-generatedXLccantynz wants to mergecopilot/full-code-and-github-cleanupmain↑4 ↓9opened Mar 19, 20264/7 tasksLive: 0 editing
ccantynzcommented Mar 19, 2026

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


What changed?

  • Small fix
  • Feature
  • Refactor
  • Infra / CI

Build was broken by 7 errors across syntax bugs, missing exports, and type mismatches. Repo had ~50 stale files (build logs, dump files, PS1 scripts, duplicate configs) committed to root.

Build fixes

  • src/app/_client/D8TV.tsx — Stray type annotations (tone?: string;) inside function body
  • src/app/api/__probe__/route.tstry: any {try {
  • src/lib/kv.ts — eslint-disable referencing non-existent @typescript-eslint/no-var-requires rule
  • src/app/page.tsx — Import of non-existent AutoRepairDemoWidget module
  • src/app/(marketing)/_d8/D8Bits.tsxD8Card only accepted children; callers pass title/body/kicker
  • src/app/admin/marketing-queue/page.tsxuseMemo return type not assignable to HeadersInit
  • src/lib/d8kv.ts — Missing projectVideoKey export used by video pages
  • src/app/video/_client/VideoStudioClient.tsxctx narrowed to non-null outside closure but not inside

Cleanup

  • Removed 5 duplicate page.jsx files shadowed by existing page.tsx in same route
  • Removed root middleware.ts (duplicate of src/middleware.ts)
  • Removed tailwind.config.js (duplicate of .ts), .bak/.OFF config files, render.yaml
  • Removed 30+ root-level build logs, dump files, -H/-Uri artifacts, PS1 scripts
  • Updated tsconfig.json excludes for 16 stale/archive directories
  • Fixed .gitignore (broken formatting, env var placeholders instead of patterns, duplicate entries)

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

  • Remaining ESLint warnings (react-hooks/exhaustive-deps, no-img-element, no-async-client-component) are pre-existing and non-blocking. Left untouched to keep diff minimal.
  • package-lock.json was regenerated by npm install — peer dependency flags changed as expected.
  • The page.jsx removals only affect routes where a page.tsx already existed and took precedence in Next.js resolution. No route behavior changes.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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 10:09pm

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/full-code-and-github-cleanup → main.

View diff →

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
Risk score: LOW (2/10)2a70984
Touches 1 file(s) with 0 added and 2 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: 0 / 2
  • 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.
11 conflicting files between copilot/full-code-and-github-cleanup and main:
  • .gitignore
  • package-lock.json
  • src/app/(marketing)/_d8/D8Bits.tsx
  • src/app/_client/D8TV.tsx
  • src/app/admin/marketing-queue/page.tsx
  • src/app/api/__probe__/route.ts
  • src/app/page.tsx
  • src/app/video/_client/VideoStudioClient.tsx
  • src/lib/d8kv.ts
  • src/lib/kv.ts
  • tsconfig.json
git fetch origin
git checkout copilot/full-code-and-github-cleanup
git merge origin/main      # fix the files listed above, then:
git add -A && git commit
git push origin copilot/full-code-and-github-cleanup
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