Skip to content

feat(cms): add Sveltia CMS admin with tests and CMS workflow - #17

Merged
comdotlinux merged 2 commits into
mainfrom
feat/cms-app
Nov 15, 2026
Merged

comdotlinux merged 2 commits into
mainfrom
feat/cms-app

Conversation

@comdotlinux

Copy link
Copy Markdown
Owner

Adds the owner-only CMS: Sveltia CMS 0.266.0 as static files in cms/public/admin/, to be served by a separate Cloudflare Pages project blog-cms at cms.blog.kulkarni.cloud behind Zero Trust Access (Access app already created). Sveltia won the local bake-off against Keystatic on content fidelity (Keystatic wrote {% table %}, dropped file= fence labels and rewrote existing bodies); evidence in the plan research notes.

  • cms/public/admin/index.html (unpkg pin + SRI), config.yml (GitHub backend, editorial workflow, date-only pubDatetime, omit_empty_optional_fields: true).
  • Tests: 17 unit (config vs src/content.config.ts keys, golden frontmatter), integration (admin and config served), e2e smoke (sign-in renders), scripts/compat-check.sh (blog renders table, file= label, callout, image, no {%), scripts/content-guard.sh.
  • .github/workflows/cms.yml: cms-changes filter (fail-safe), cms-test, cms-compat, content-guard.
  • cms/README.md: never use Sveltia Publish or Discard (they delete branches); merge or close post PRs on GitHub.

Local: root gate green (lint 0, build 27 pages, unit 75, e2e 96, Lighthouse 99.7%); CMS checks green; negative checks fail as expected.

https://claude.ai/code/session_01426xQEC2VhQSZVe7cBXuz5

Static Sveltia CMS 0.266.0 admin in cms/public/admin (unpkg, SRI pinned),
GitHub backend on comdotlinux/blog main with the editorial workflow
(branch cms/posts/<slug> plus a PR per post), date-only pubDatetime and
modDatetime, and omit_empty_optional_fields so modDatetime is never ''.

Tests: unit (config.yml against the blog posts schema keys, golden
outputs from Spike 1, admin page pins), integration and e2e smoke
(Playwright against a static server), and compat-check.sh building the
blog with the fixture. content-guard.sh rejects Markdoc tags, dropped
file= fence labels and empty frontmatter values on post changes.

.github/workflows/cms.yml adds cms-changes, cms-test, cms-compat and
content-guard with fail-safe !cancelled() conditions.

Claude-Session: https://claude.ai/code/session_01426xQEC2VhQSZVe7cBXuz5
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Deploying blog with  Cloudflare Pages  Cloudflare Pages

Latest commit: bbe9bc1
Status: ✅  Deploy successful!
Preview URL: https://459e562e.blog-7qk.pages.dev
Branch Preview URL: https://feat-cms-app.blog-7qk.pages.dev

View logs

…stro preset

The cms-test job installs only cms dependencies; Vite picked up the root
tsconfig.json, which extends astro/tsconfigs/strict, and failed to load it.

Claude-Session: https://claude.ai/code/session_01426xQEC2VhQSZVe7cBXuz5
@comdotlinux
comdotlinux merged commit fcd56ea into main Nov 15, 2026
7 checks passed
@comdotlinux
comdotlinux deleted the feat/cms-app branch November 15, 2026 09:48
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.

2 participants