Skip to content

chore: remove 20.7 MiB of duplicate and unused media - #20416

Merged
nwparker merged 3 commits into
mainfrom
nwparker/big-repo
Sep 13, 2026
Merged

nwparker merged 3 commits into
mainfrom
nwparker/big-repo

Conversation

@nwparker

@nwparker nwparker commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​156 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​156
Prod 51 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​175 $\color{#cf222e}{\Huge{\mathbf{−}}}$​68 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​107

ELI5

Remove 20.67 MiB of duplicate and unused images while keeping README animations and public docs working.

What Changed

  • Remove 28 byte-identical media copies (15.16 MiB). Point the main README, six translated READMEs, and the feature-wall vendoring script at existing docs/app assets.
  • Remove 10 unused demo and PR-evidence images (5.52 MiB), plus the obsolete evidence links and the prose that cited them.
  • Preserve the showcase GIF and the independent docs-site and desktop packaging asset trees.
  • Add check:readme-local-links (config/scripts/check-readme-local-links.mjs): every local src/srcset/href in README.md and docs/readme/*.md must resolve to a tracked file. It runs in the ungated root_directory_guard job (not static_analysis, which docs-only diffs skip), so a future edit to docs/site/public/docs/* or resources/onboarding/feature-wall/* that breaks the README fails PR CI.
  • Refresh tile-01.recorded-at.json to what pnpm vendor:feature-wall-assets now emits for the tab-split source path.

Why

Reduce tracked checkout size without introducing asset downloads or new build steps. This shrinks the working tree and GitHub's ZIP/codeload of the commit by 20.68 MiB. It does not shrink git clone or pack size at all: the 28 duplicates were already a single blob each, and the 10 unique blobs stay reachable from history.

Linked Issue

N/A — user-requested repository storage cleanup; no linked issue.

Visual Proof

N/A — referenced replacement images are byte-identical, and removed unused images are not used by the READMEs or public docs website. No rendered UI or interaction change.

Testing

Validated locally on macOS:

  • All 13 docs package tests passed, including public media URL resolution.

  • Desktop feature-wall asset check passed: 10.92 MiB / 11 MiB.

  • Validated local image references in the main README and all translated READMEs.

  • Verified duplicate replacements have identical bytes before removal.

  • Targeted oxlint, formatting check, and git diff whitespace check passed.

  • config/scripts/check-readme-local-links.test.mjs (6 tests) covers the checked-in READMEs, all link shapes, deleted media, on-disk-but-untracked media, repo-escaping links, and the CI/lint wiring; related workflow contract tests still pass.

Full application typecheck/build and Windows/Linux/SSH execution were not run locally; CI covers the applicable checks.

Review

Self-reviewed asset ownership, translated relative paths, public docs deployment isolation, and desktop packaging paths.

Agent skill upstream boundary

  • Not applicable; no agent skill changes.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Full lint, typecheck, test, and build pass (applicable CI checks pending)

@coderabbitai

coderabbitai Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: fd5cdf66-effc-4315-91f8-3516b9409e0c

📥 Commits

Reviewing files that changed from the base of the PR and between 08ac840 and 45a7af0.

📒 Files selected for processing (2)
  • config/scripts/check-readme-local-links.mjs
  • config/scripts/check-readme-local-links.test.mjs
🚧 Files skipped from review as they are similar to previous changes (2)
  • config/scripts/check-readme-local-links.mjs
  • config/scripts/check-readme-local-links.test.mjs

Included review availability: Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The change updates feature GIF and poster paths in the main README and six localized READMEs. It updates the vendor script and tile metadata for tile-01. It adds a CI validation script and tests for local README links. It also revises the review evidence document.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to 45a7a

The documentation asset cleanup and README validation changes have no identified merge-blocking issue.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the change, rationale, testing, visual proof, review, and checklist sections. However, the required Linked Issue section contains “N/A,” although the template requires an issue … Add the relevant issue reference in the Linked Issue section, using the required “Fixes #” format.
Docstring Coverage ⚠️ Warning Docstring coverage is 11.11% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: removing duplicate and unused media totaling approximately 20.7 MiB.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description covers the change, rationale, testing, visual proof, review, and checklist sections. However, the required Linked Issue section contains “N/A,” although the template requires an issue link.

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — one minor provenance nitpick inline.

Reviewed changes

This is a docs/media-only cleanup with no runtime behavior change; I verified the byte-identity and reference-resolution claims against the repo.

  • Duplicate media removed — 12 docs/assets/feature-wall/*.gif|.jpg pairs plus docs/assets/orca-design-mode.gif and docs/assets/annotate-ai-diff.gif are deleted; the root README and six translated READMEs repoint to the byte-identical copies under resources/onboarding/feature-wall/ and docs/site/public/docs/.
  • Unused images removed — agent-statuses.gif, codex-account-switcher.gif, orca-mobile-emulator.gif, caffeinate-agent-menu-{before,after}.png, and docs/review-evidence/pr-19217/{working,closed}.png, with their README links.
  • Vendoring script updated — tile-01 now sources docs/site/public/docs/tab-split.gif instead of the deleted docs/assets/feature-wall/parallel-worktrees.gif.

I confirmed each removed file with a replacement matches it byte-for-byte (blob SHA equality at base vs HEAD), that no tracked file still references a removed path, and that every src/srcset in the root and translated READMEs resolves on disk. The docs-site copies previously serving /docs/annotate-ai-diff.gif and /docs/orca-design-mode.gif are untouched, so the public site is unaffected.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

- Add config/scripts/check-readme-local-links.mjs: every local src/srcset/href
  in README.md and docs/readme/*.md must resolve to a tracked file. Runs in the
  ungated root_directory_guard job so docs-only diffs (which skip static_analysis)
  still catch a deleted docs-site or feature-wall asset the README embeds.
- Refresh tile-01.recorded-at.json to what vendor-feature-wall-assets.mjs now
  emits for the tab-split source path.
- Drop the pr-19217 evidence prose that cited the removed screenshots.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 553ede58-9824-4958-b4a0-fcac983f05d1

📥 Commits

Reviewing files that changed from the base of the PR and between 9351e0e and 08ac840.

📒 Files selected for processing (6)
  • .github/workflows/pr.yml
  • config/scripts/check-readme-local-links.mjs
  • config/scripts/check-readme-local-links.test.mjs
  • docs/review-evidence/pr-19217/README.md
  • package.json
  • resources/onboarding/feature-wall/tile-01.recorded-at.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/review-evidence/pr-19217/README.md

Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Re-review of the commit added since the prior Pullfrog review (9351e0e → 08ac840); the media removals themselves were covered previously.

  • README link guard added — config/scripts/check-readme-local-links.mjs resolves every local src/srcset/href in README.md and docs/readme/*.md against the git index, so a future edit that drops an embedded asset fails CI. Its 6-test suite covers the checked-in READMEs, every supported link shape, deleted/untracked/escaping targets, and the CI wiring.
  • CI and lint wiring — the guard runs as an ungated root_directory_guard step (docs-only diffs skip static_analysis) and is added to pnpm lint via check:readme-local-links.
  • Provenance refreshed — resources/onboarding/feature-wall/tile-01.recorded-at.json now records the docs/site/public/docs/tab-split.{gif,posters/tab-split.jpg} sources, resolving the prior inline nit.
  • Evidence prose trimmed — docs/review-evidence/pr-19217/README.md drops the links to the deleted screenshots and rewords the validation notes to match.

I verified the guard passes against the repo, the six new tests pass, and oxlint is clean on both new files.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

The parser only matched double-quoted src/srcset/href, so <img src='missing.gif'>
was skipped and the guard passed a README that GitHub renders with a broken image.
Regression test fails without the parser change.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

Re-review of the commit added since the prior Pullfrog review (08ac840 → 45a7af0); the media removals and the link-guard introduction were covered previously.

  • Single-quoted attributes now parsed — HTML_ATTRIBUTE in config/scripts/check-readme-local-links.mjs accepts both quote styles ((?:"([^"]*)"|'([^']*)'), reading match[1] ?? match[2]). The old double-quote-only pattern silently ignored a valid single-quoted src/href that GitHub still renders, so a broken image could slip through.
  • Test coverage added — the suite gains a valid single-quoted src fixture plus a dedicated missing-target test with an exact toEqual assertion, which fails under the previous regex. All 7 tests pass at 45a7af0; the prior provenance thread was already resolved.

I verified the regex capture logic (double-quoted branch yields match[1], single-quoted yields match[2], empty values still skipped) and ran vitest run config/scripts/check-readme-local-links.test.mjs → 7/7 pass.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit 7b0701a into main Sep 13, 2026
28 checks passed
Jinwoo-H added a commit that referenced this pull request Sep 25, 2026
…2755)

#22740 bumped the translated Android APK links from a stale base, which also reverted #20416's feature-wall paths, the WeChat group 10 QR, and the Muse agent badge. Restore those from the parent commit and keep only the 0.0.50 APK bump.
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