Skip to content

fix(apps): stop mangling long platforms and blob image URLs - #55

Merged
perminder-klair merged 1 commit into
mainfrom
fix/app-submission-platform-and-blob-urls
Aug 19, 2026
Merged

fix(apps): stop mangling long platforms and blob image URLs#55
perminder-klair merged 1 commit into
mainfrom
fix/app-submission-platform-and-blob-urls

Conversation

@perminder-klair

Copy link
Copy Markdown
Contributor

Two bugs the Talk-Wave submission (#54) ran into once its description was under the limit.

Platform truncation. .map(p => p.slice(0, 24)) cut Progressive Web-App (PWA) (25 chars) to Progressive Web-App (PWA — a mangled value written straight into apps/<slug>.json. The bound is now 32 in both the workflow and the builder, and the workflow reports an over-length entry as a normal validation problem so the submitter can shorten it themselves instead of getting a silently broken listing.

/blob/ image URLs. github.com/<owner>/<repo>/blob/<ref>/<path> is on the image host allowlist and serves an HTML page, not the image, so icons and screenshots submitted that way render broken. Both the workflow and scripts/build-catalog.mjs now rewrite that shape to raw.githubusercontent.com. github.com/user-attachments/... URLs are untouched.

No catalog change — no listing currently uses a blob URL or an over-length platform.

Two bugs surfaced by the Talk-Wave submission (#54):

- Platforms were truncated to 24 chars, turning "Progressive Web-App
  (PWA)" into "Progressive Web-App (PWA". Raise the bound to 32 and have
  the submission workflow report an over-length entry so the submitter
  can fix it, rather than silently writing a mangled value.
- github.com/<owner>/<repo>/blob/<ref>/<path> image links passed the host
  allowlist but serve an HTML page, so they render as a broken image.
  Normalise them to raw.githubusercontent.com in both the workflow and
  the catalog builder.
@perminder-klair
perminder-klair merged commit 452aafe into main Aug 19, 2026
1 check passed
@perminder-klair
perminder-klair deleted the fix/app-submission-platform-and-blob-urls branch August 19, 2026 09:32
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