fix(ui): replace dead ui.contentstack.com CDN styles with local sources - #1130
Open
umesh-more-cstk wants to merge 1 commit into
Open
fix(ui): replace dead ui.contentstack.com CDN styles with local sources#1130umesh-more-cstk wants to merge 1 commit into
umesh-more-cstk wants to merge 1 commit into
Conversation
https://ui.contentstack.com/contentstack.min.css now returns HTTP 402 (DEPLOYMENT_DISABLED), so the app lost its grid, utility and brand styles at runtime. - drop the three dead CDN tags from index.html - add bootstrap@^5.3.6 and import bootstrap-grid + bootstrap-utilities, covering the grid/utility half of the old stylesheet - add scss/legacy-cdn-shim.scss for the non-utility brand rules that had no other source (link colour, .btn base, .pt-6, .card headings, .body-4/.body-6, .link-basic-icon with its arrow inlined as a data URI) All imports stay above the venus stylesheet, where the CDN <link> used to sit, so venus keeps winning the same conflicts it won before.
vikrantraut-cstk
approved these changes
Jul 31, 2026
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.
🔗 Jira Ticket
CMG-1098
📋 PR Type
📝 Description
What changed?
ui.contentstack.comCDN tags fromui/index.html(contentstack.min.css,bootstrap.min.js,contentstack.min.js).bootstrap@^5.3.6as a local dependency and importbootstrap-grid.min.css+bootstrap-utilities.min.cssinApp.tsx, which covers the grid/utility half of what the CDN stylesheet provided (d-flex,vh-100,row/col-*, spacing).ui/src/scss/legacy-cdn-shim.scssfor the non-utility rules that had no other source — Contentstack's brand layer: anchor/link colour,.btnbase,.pt-6,.cardheading colour,.body-4/.body-6, and.link-basic-icon(its arrow icon inlined as a data URI so nothing external is needed).<link>used to be, so venus keeps winning the same specificity conflicts it won before.Why?
https://ui.contentstack.com/contentstack.min.cssnow returns HTTP 402 (DEPLOYMENT_DISABLED). The app was loading its grid, utility, and brand styles from that host at runtime, so with it down the UI loses layout and Contentstack styling entirely. This restores the same rules from local sources.🧩 Affected Areas
ui— React frontend🧪 How to Test
cd ui && npm ci && npm run devui.contentstack.comand no 402s.Expected result: layout and styling are unchanged from before the CDN went down; no external requests to
ui.contentstack.com.📸 Screenshots / Recordings
✅ Author Checklist
feature/,bugfix/, orhotfix/+ 5–30 lowercase chars.env/example.envupdated if new environment variables were added — n/anpm run buildpasses locally inui👀 Reviewer Notes
.btnis only used by one element (<Link className="btn primary-btn">on Home, wrapping a venus<Button>), where it contributes only padding. It's a reasonable thing to delete separately; it's restored here so this PR stays visual-neutral.