Skip to content

docs(comments): complete the STE comment sweep (the 350 files #196 did not reach) - #197

Merged
Ardnived merged 1 commit into
mainfrom
claude/prose-reset-comments
Sep 5, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/prose-reset-comments

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rewrites every remaining non-compliant source-code comment into strict Simplified Technical English, across the 341 files PR docs: prose reset — STE register, legacy debris removed #196's partial sweep had not yet reached: src/components/{atoms,molecules,organisms,ladle,preview}, src/lib/**, src/views/**, src/loader/**, src/hooks/**, src/config/**, src/types/** (excluding generated src/types/payload/**), src/mocks/**, src/styles/**, tests/**, and scripts/**.
  • Deleted a small number of commented-out code lines and comments that only restated the adjacent code.
  • Fixed several stale-claim comments found during the sweep:
    • tests/smoke/spa-fallback.smoke.test.ts claimed the widget "uses HashRouter" — it moved to query-based routing in feat(widget): route through a query parameter and remove hash routing #154.
    • src/components/organisms/Mapbox/Map.tsx and MapSearch.tsx had a TOOD typo, corrected to TODO.
    • src/config/theme/palette.ts's buildScale() doc referenced a contrast field that was actually renamed on.
    • src/types/region.ts still called the venue level "a center (venue)" after SahajCloud#605 renamed it to venue.
    • src/views/story-harness.tsx said the harness gives previewers "three things" above a list of four.
    • src/loader/literals.ts said a parameter was needed "for mount" after the widget moved to query-based routing and dropped that parameter — corrected to route.
    • src/components/molecules/EventMetadata/EventMetadata.tsx: a comment describing the pre-feat(widget): de-brand the widget and keep host CSS out of it #156 bug had been reflowed onto one line during the sweep, accidentally producing a literal "We Meditate" string that tripped src/lib/brand.test.ts's de-branding check. Reworded to describe the bug without the literal brand string.

Scope

Comments only. No executable code, imports, strings, or types were changed, and every functional directive (JSDoc @param/@default tags, eslint-disable, @ts-expect-error, @vitest-environment pragmas, license headers) was preserved verbatim. Verified with git diff that only comment text changed in every touched file. Excluded per the sweep's scope: src/types/payload/** (generated), locale bundles, CHANGELOG.md, LICENSE, and docs/*.md (already done in #196).

Gates run

  • pnpm lint — clean, 0 warnings
  • pnpm typecheck — clean
  • pnpm test:run — 1518/1518 passing (114 test files)
  • pnpm build — clean, including the CSS-scoping assertion (1165 rules confined to .sy-atlas) and the no-sourcemaps assertion (38 emitted files, no maps)

Test plan

  • CI: lint, typecheck, test:run, build, ladle:build
  • Manual git diff spot-check across the partition (components, lib, views/loader, hooks/config, types/mocks/styles) confirming only comment lines changed
  • Confirmed src/types/payload/**, locale bundles, and docs/*.md are absent from the diff

🤖 Generated with Claude Code

…scripts

Rewrites every remaining non-compliant source-code comment into strict
Simplified Technical English across the 341 files PR #196's partial sweep
had not yet reached: src/components (atoms, molecules, organisms, ladle,
preview), src/lib, src/views, src/loader, src/hooks, src/config, src/types
(excluding generated src/types/payload/**), src/mocks, src/styles, tests,
and scripts. This completes #196's disclosed partial coverage.

Deleted a handful of commented-out code lines and comments that only
restated adjacent code. Fixed several stale-claim comments found during
the sweep, including tests/smoke/spa-fallback.smoke.test.ts's outdated
HashRouter claim (the widget moved to query-based routing in #154), a
"TOOD" typo, a stale field-name reference in palette.ts, and a brand-name
regression in EventMetadata.tsx's comment that had been accidentally
reflowed onto one line, tripping brand.test.ts's de-branding check.

Scope was comments only: no executable code, imports, strings, or types
were changed, and all functional directives (JSDoc @PARAM tags,
eslint-disable, @ts-expect-error, license headers) were preserved
verbatim. Verified with git diff that only comment text changed.

Gates run clean: pnpm lint, pnpm typecheck, pnpm test:run (1518/1518),
and pnpm build (including CSS-scoping and no-sourcemaps assertions).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5924db0
Status: ✅  Deploy successful!
Preview URL: https://cdfd251f.sahajatlas.pages.dev
Branch Preview URL: https://claude-prose-reset-comments.sahajatlas.pages.dev

View logs

@Ardnived
Ardnived merged commit 53d0d13 into main Sep 5, 2026
6 checks passed
@Ardnived
Ardnived deleted the claude/prose-reset-comments branch September 5, 2026 08:56
@github-project-automation github-project-automation Bot moved this from In progress to Done in SYDevelopers Technical Roadmap Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant