🍕 fix(manifest): trim description to 121 chars + add build-time guard#6
Merged
Merged
Conversation
The Chrome Web Store rejects uploads where `manifest.description` is
longer than 132 characters. Our description was 142 chars, which got
caught at upload time:
"The description field in manifest is too long: 142.
It exceeds maximum size limit of 132 characters."
Two changes:
1. Trim the description from 142 → 121 chars while preserving meaning:
"Modern devtools for Clay CMS pages: visualize component boundaries,
inspect data, and navigate the page/layout hierarchy."
2. Add a build-time guard in `src/manifest.ts` that throws if
`pkg.description` exceeds the 132-char limit. The check runs as part
of `npm run build` (and therefore CI), so this regression can never
reach an upload again — a future bump will fail loudly with the exact
character count.
No version bump: the previous v2.0.2 upload was rejected by the store and
never recorded, so the same version slot is still available.
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves the Chrome Web Store upload rejection:
The store caps
manifest.descriptionat 132 chars. Ours was 142.Changes
1. Trim the description (142 → 121 chars)
A modern Chrome extension for exploring Clay CMS pages — visualize component boundaries, inspect data, and navigate the page/layout hierarchy.Modern devtools for Clay CMS pages: visualize component boundaries, inspect data, and navigate the page/layout hierarchy.11 chars under the limit; meaning preserved.
2. Build-time guard in
src/manifest.tsVite imports
src/manifest.tsduring build, so this throws atnpm run buildtime (and therefore in CI) the moment anyone bumps the description past 132 chars. We never get into an upload-rejection loop again.3. No version bump
The previous v2.0.2 upload was rejected by the store and never recorded, so 2.0.2 is still an available slot. No need to burn a patch number on this.
Verification
npm run validate(84 tests, lint, format, typecheck) — passesnpm run build— builds, manifest description is 121 charsnpm run zip— produces a 101 KBclay-slip-v2.0.2.zipwith the fixed manifestTest plan
npm run buildfails with the expected error messageMade with Cursor