Repository navigation
chore(claude): add Claude Code config + harmonize lint/format/typecheck - #3
Merged
Merged
Conversation
Adds a full .claude/ setup adapted from the sy-devs-cms and WeMeditateWeb repos, tailored to this Vite/React/NextUI/Mapbox widget: - CLAUDE.md project guide; architecture/environment/mcp-setup docs - 7 hooks (block-wrong-bash, block-generated-files, prettier-format, eslint-fix, typecheck, security-scan, status-line) - settings.json (scoped permissions, hook wiring, status line) - 5 path-scoped rules, 2 output styles, 2 subagents - 4 skills (implement-issue, pr-prep, reflect-session, draft-ticket) - .mcp.json with GitHub + Playwright MCP Harmonizes tooling across all three SY projects: - shared .prettierrc (no-semi, single-quote, width 100) - migrate legacy .eslintrc.json -> flat eslint.config.js - add typecheck script; lint is now `eslint .` - CI workflow gating PRs on lint + typecheck + build Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Deploying atlas-legacy with
|
| Latest commit: |
5aadb97
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8e3a75d6.syatlas.pages.dev |
| Branch Preview URL: | https://chore-claude-config.syatlas.pages.dev |
Mechanical reformat to the shared .prettierrc (no semicolons, single quotes, trailing commas, width 100). No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Ardnived
force-pushed
the
chore/claude-config
branch
from
June 17, 2026 16:37
afa8dc7 to
6a26e07
Compare
The initial config wrongly assumed Vercel. Cloudflare Pages (project atlas-legacy) is the primary deploy target. - Replace vercel.json with public/_redirects (/* /index.html 200) — the Cloudflare Pages SPA-fallback equivalent for the standalone BrowserRouter build. Cloudflare ignores vercel.json, so the fallback was unmet. - Add the cloudflare-docs MCP server (.mcp.json) + its permission and the developers.cloudflare.com WebFetch domain (settings.json) - Guard CLOUDFLARE_API_TOKEN in the security-scan hook - Fix deploy references in CLAUDE.md, architecture.md, mcp-setup.md Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Replicates the reference repos' smoke-test pattern, scoped to a single "is the deploy alive" check for now: - vitest (v2, vite-5 compatible) with a dedicated vitest.smoke.config.ts so smoke specs never run in the fast local lane - tests/smoke/root.smoke.test.ts — fetches the preview root, asserts 200 + the SPA shell (id="syatlas", <title>Sahaj Atlas). Skips when PREVIEW_URL is unset - scripts/get-cloudflare-preview-url.mjs — discovers the Cloudflare Pages preview URL (commit status / deployment / PR comment), waits for it to be reachable, skips gracefully if absent - ci.yml: new `smoke` job that discovers the preview and runs test:smoke against it Verified locally: passes against `pnpm dev`, skips with no PREVIEW_URL. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The CF preview domain is syatlas.pages.dev (the dashboard project is named atlas-legacy). Use the actual subdomain for the URL-preference match. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
7 tasks
This was referenced Aug 7, 2026
56 tasks
sydevs-bot
pushed a commit
that referenced
this pull request
Nov 17, 2026
The block above `BUDGET_KIB` was 117 lines and gained a paragraph per bump, while `git log -p` on the constant holds the same history, dated. Seven budget steps and three loader steps are now one row each: the figure, the ticket, and the one line of why that does not survive in a diff. 117 lines to 48. Every `#NNN` breadcrumb, every ⚠ and the live rules are kept — the ratchet, the loader's tighter budget, zod's ratchet-back trigger, and #3's lesson that a swap adding a package can still win space. The one thing dropped is `5c85fda`, the commit #246 measured against, which the log holds. The derived figures this block carried are what drifted in the parent commit. Ten rows of measurements drift less than ten paragraphs of prose. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjVwQh5urM6FuEM4YX7
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
.claude/, adapted from thesy-devs-cmsandWeMeditateWebrepos but tailored to this Vite/React/NextUI/Mapbox widget (Payload/Cloudflare-specific pieces dropped as N/A).Changes
.claude/configurationCLAUDE.mdproject guide +docs/(architecture, environment, mcp-setup)block-wrong-bash,block-generated-files,prettier-format,eslint-fix,typecheck(PostToolUse),security-scan(blockssk.Mapbox secrets — the bundle is public),status-linesettings.json(scoped permissions, hook wiring, status line).mcp.json— GitHub + Playwright MCPTooling harmonization
.prettierrc— shared standard (no semicolons, single quotes, trailing commas, width 100).eslintrc.json→ flateslint.config.jstypecheckscript;lintis noweslint ..github/workflows/ci.yml— lint + typecheck + buildThe second commit is a mechanical Prettier reformat applying the shared config (no behavior change).
Verification
pnpm lint)pnpm typecheck)pnpm build)Notes for reviewer
.claude/settings.local.jsonis intentionally conservative and not committed (local-only).🤖 Generated with Claude Code