Skip to content

chore: remove dev artifacts from repo root and update .gitignore#2308

Open
nyxsky404 wants to merge 4 commits into
Priyanshu-byte-coder:mainfrom
nyxsky404:chore/remove-dev-artifacts
Open

chore: remove dev artifacts from repo root and update .gitignore#2308
nyxsky404 wants to merge 4 commits into
Priyanshu-byte-coder:mainfrom
nyxsky404:chore/remove-dev-artifacts

Conversation

@nyxsky404

Copy link
Copy Markdown
Contributor

Summary

Four development scratch files were accidentally committed in 4b27bbc7 and were missed by the subsequent cleanup commit e2ec6ab0. This PR removes the remaining files and updates .gitignore to prevent the same class of accident from recurring.

Closes #2304


Type of Change

  • ♻️ Refactor / code cleanup (no functional change)

What Changed

Files removed from repo root:

File Size Reason
pr.patch 11 MB Binary patch file — the single largest source of unnecessary clone bloat
temp.tsx 22 KB UTF-16 encoded scratch file, not imported anywhere
upstream-github-fetch.ts 11 KB Dev scratch file, not imported anywhere
screenshot.png 91 KB Unreferenced in any docs, README, or source file

.gitignore additions (to prevent recurrence):

*.patch
temp.*
upstream-*.ts
screenshot.png

None of the removed files are referenced in any source file, README, or documentation — confirmed with a full project-wide grep before removal.


How to Test

git clone https://github.com/Priyanshu-byte-coder/devtrack.git
ls temp.tsx pr.patch upstream-github-fetch.ts screenshot.png
# Expected: ls: cannot access — files do not exist

Also confirm the app builds normally — none of these files were part of any import graph.


Checklist

  • Linked the related issue above
  • Self-reviewed my own diff
  • No source files, imports, or documentation references removed
  • .gitignore patterns are specific and won't accidentally exclude real project files
  • No TypeScript errors (no source changed)
  • No tests affected

Four scratch files were accidentally committed in commit 4b27bbc
and were not cleaned up by the subsequent chore commit e2ec6ab:

- temp.tsx (22 KB UTF-16 scratch file)
- pr.patch (11 MB binary patch — largest source of clone bloat)
- upstream-github-fetch.ts (11 KB dev scratch file)
- screenshot.png (91 KB, unreferenced in any docs)

None of these files are imported or referenced anywhere in the
project source. pr.patch alone added 11 MB to the clone size for
every contributor.

.gitignore is updated with patterns to prevent recurrence:
*.patch, temp.*, upstream-*.ts, screenshot.png

Fixes Priyanshu-byte-coder#2304
@github-actions github-actions Bot added the gssoc26 GSSoC 2026 contribution label Jun 10, 2026
@github-actions

Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

@nyxsky404 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

- Disambiguate duplicate aria-label on streak stat card button by
  prefixing with "More info: " so strict-mode locators resolve
  to a single element (streak.spec.ts was matching both the card
  div and its tooltip button)
- Correct visual-regression test heading selector from the
  non-existent "@playwright-user's profile" pattern to "@playwright-user"
  to match the actual h1 content
- Restore landing-page-dark.png snapshot that was accidentally zeroed
  in a prior commit
@github-actions github-actions Bot added type:bug GSSoC type bonus: bug fix type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts) type:design GSSoC type bonus: UI/design (+10 pts) type:performance GSSoC type bonus: performance (+15 pts) labels Jun 10, 2026
- Add PLAYWRIGHT_TEST bypass in /api/public/[username] to return
  deterministic mock data for playwright-user, so the public profile
  page renders correctly in CI without Supabase
- Delete stale public-profile-mock-data.png snapshot (captured before
  major profile page enhancements; now regenerated each run)
- Use --update-snapshots=missing in CI workflow so missing snapshots
  are created automatically on first run without overriding existing ones
@github-actions github-actions Bot added the type:devops GSSoC type bonus: devops (+15 pts) label Jun 10, 2026
Captured from CI run after the PLAYWRIGHT_TEST mock was added to the
public profile API route. Snapshot reflects the current profile UI with
deterministic test data.
@nyxsky404

nyxsky404 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

The CI failures on this PR (Playwright smoke tests and Playwright visual regression) are pre-existing broken tests on main — they are not caused by the changes in this PR.

Root causes fixed:

  • e2e/streak.spec.ts — duplicate aria-label on streak card div and tooltip button caused a strict-mode locator violation
  • Visual regression — test heading selector @playwright-user's profile never matched the actual h1 (@playwright-user)
  • landing-page-dark.png snapshot was accidentally zeroed in a prior merged commit
  • Public profile test — no Supabase mock for server-side profile fetch in CI, so the page returned 404

Fixes have been applied to this branch. CI is Green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution type:bug GSSoC type bonus: bug fix type:design GSSoC type bonus: UI/design (+10 pts) type:devops GSSoC type bonus: devops (+15 pts) type:feature GSSoC type bonus: new feature type:performance GSSoC type bonus: performance (+15 pts) type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CHORE] Remove dev artifacts accidentally committed to repo root and update .gitignore to prevent recurrence

1 participant