From e5c710c930d00a0bd64cb88f2e8d9ff44d9891f0 Mon Sep 17 00:00:00 2001 From: Parminder Klair Date: Wed, 19 Aug 2026 10:30:36 +0100 Subject: [PATCH] fix(apps): stop mangling long platforms and blob image URLs 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///blob// 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. --- .github/workflows/app-submission.yml | 26 ++++++++++++++++++++++---- scripts/build-catalog.mjs | 8 +++++++- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/app-submission.yml b/.github/workflows/app-submission.yml index 745a9b4..af7e78f 100644 --- a/.github/workflows/app-submission.yml +++ b/.github/workflows/app-submission.yml @@ -56,6 +56,8 @@ jobs: // Mirrors scripts/build-catalog.mjs — keep in lockstep. const APP_TYPES = ['mobile', 'web', 'desktop', 'terminal', 'bot', 'integration']; const APP_IMAGE_HOSTS = ['raw.githubusercontent.com', 'user-images.githubusercontent.com', 'github.com']; + const MAX_PLATFORM_LEN = 32; + const MAX_PLATFORMS = 6; // --- 1. Parse the issue-form body into a { heading: value } map --- // GitHub renders each form field as "###