Skip to content

chore(claude): finish the accent removal and stale-doc sweep #116

Closed

Description

@Ardnived

Summary

#99 removed the two Accent translation-sync workflows
(.github/workflows/{push,sync}-accent.yml) and updated CLAUDE.md + .claude/docs/environment.md
to match. Three references were left behind, including a config file for workflows that no longer
exist. Separately, #100's implementation report catalogued seven further stale references in
files that ticket did not own
— verified individually and still present on main @3c03fbc.

Both halves are the same job: a documentation-accuracy sweep with no runtime surface. Batched into
one ticket so a reviewer sees one diff rather than two, and so the six doc files are claimed by a
single implementer.

Current behavior

Accent leftovers (from #99):

Where What it says Why it's wrong
accent.json (repo root, 224 B) apiUrl: https://miregoaccent-production.up.railway.app, project config Orphaned — it configured only the two deleted workflows. .github/workflows/ now holds audit.yml + ci.yml.
.claude/docs/architecture.md:101-102 "Theming ("accent"): accent.json + .github/workflows/{push,sync}-accent.yml sync a shared accent theme. Out of scope unless the task is about theming." Wrong twice: the workflows are deleted, and Accent was translation sync, not theming — CLAUDE.md:202 says so. The bullet actively misdirects anyone doing theming work.
.claude/skills/draft-ticket/conventions.md:31 - `ui` — Radix/Tailwind components, theming, accent "accent" is no longer an area of this repo.

.claude/docs/environment.md:32 is already correct (it records the removal in #99 and that
the secret can be revoked) — leave that paragraph alone.

Stale references from .claude/reports/100-refresh-internal-docs.md §4 — all seven re-verified
present on main, spanning six files:

  1. .claude/rules/tests.md:42 — "the api interceptor (src/config/api/fetch.ts)". No interceptor
    exists; applyRequestContext / interceptFetch live in src/config/api/client.ts.
  2. .claude/rules/tests.md:91 — "mock axios / @/config/i18n". The spec it cites
    (src/config/api/fetch.test.ts) mocks @payloadcms/sdk; axios was removed in refactor(api): migrate data layer from axios+qs to @payloadcms/sdk #41.
  3. .claude/rules/i18n-and-state.md:38 — src/components/mapbox/map.tsx; actual path is
    src/components/organisms/Mapbox/Map.tsx.
  4. .claude/rules/i18n-and-state.md:49 — "Five stores"; there are six
    (useViewState, useRegistrationDraft, useCameraHistory, useCalendarPosition,
    useReportModal, useResultsReveal — the file itself then documents six).
  5. .claude/rules/code-style.md:53 — cites EventShare/ as the folder-family example; that
    folder is gone (ShareContent/ succeeded it).
  6. .claude/docs/environment.md:55 — "shared axios client, whose interceptor would attach the
    SahajCloud…".
  7. .claude/skills/finalize-pr/pr-template.md:20 and
    .claude/skills/draft-ticket/templates/feature.md:24 — src/components/mapbox/ example paths
    (the same drift conventions.md was corrected for in docs(claude): refresh stale internal docs and small hygiene batch #100).

Proposed changes

  • Delete accent.json. Confirm first that nothing reads it: grep -rn accent over the repo
    (excluding node_modules, dist, .claude/worktrees/) should leave only the CLAUDE.md and
    environment.md paragraphs that describe the removal, which are correct and stay.
  • Rewrite .claude/docs/architecture.md:101-102. Either drop the bullet or replace it with a
    one-liner that matches CLAUDE.md:202-206: Accent was translation sync, it was removed in chore(build): add audit gate, size budget, and embed smoke tests #99,
    and locale JSON under public/locales/ is hand-maintained. Do not leave a "theming" framing.
  • Drop "accent" from the ui scope in .claude/skills/draft-ticket/conventions.md:31.
  • Fix all seven items above. Each is a factual correction — verify the replacement against
    source before writing it, don't copy the text from this ticket blind (verify-scope-claims).
    For item 4, count the stores in src/config/store.ts rather than trusting "six".
  • Then re-grep for the two systemic patterns to catch anything this list missed:
    grep -rn 'components/mapbox' CLAUDE.md .claude/ and grep -rni 'axios\|interceptor' CLAUDE.md .claude/.

Non-code action for the repo owner (not part of this diff): the ACCENT_API_KEY repository
secret is now read by nothing and can be revoked in GitHub → Settings → Secrets and variables →
Actions. .claude/docs/environment.md:32 already says so; this is a GitHub-settings action, not a
code change, and the ticket should not be held open waiting for it.

Acceptance criteria

  • accent.json deleted; grep -rn -i accent over the tracked repo returns only the
    CLAUDE.md / environment.md paragraphs that describe the removal
  • .claude/docs/architecture.md no longer describes Accent as a theming sync, and no longer
    references the deleted workflows
  • .claude/skills/draft-ticket/conventions.md:31 no longer lists "accent" under ui
  • All seven items from the report's §4 corrected, each verified against the source it
    describes (not against this ticket's text)
  • grep -rn 'components/mapbox' CLAUDE.md .claude/ returns nothing
  • grep -rni 'axios' CLAUDE.md .claude/ returns nothing except deliberate historical
    references to the refactor(api): migrate data layer from axios+qs to @payloadcms/sdk #41 migration
  • The store count in .claude/rules/i18n-and-state.md matches src/config/store.ts
  • Lint + typecheck + pnpm test:run pass (no source change expected — if any of these turn
    red, something outside the ticket's scope was touched)
  • Implementation report written to
    .claude/reports/<this-issue-number>-accent-and-doc-sweep.md in the main checkout at
    /Users/devindra/Documents/Projects/SahajAtlasWeb (.claude/reports/.gitignore is *, so a
    worktree copy would be discarded)

Parallel implementation

This ticket owns these files; no other ticket in this batch touches them:

  • accent.json (deleted)
  • .claude/docs/architecture.md
  • .claude/docs/environment.md
  • .claude/rules/tests.md
  • .claude/rules/i18n-and-state.md
  • .claude/rules/code-style.md
  • .claude/skills/draft-ticket/conventions.md
  • .claude/skills/draft-ticket/templates/feature.md
  • .claude/skills/finalize-pr/pr-template.md

Do not edit .claude/skills/finalize-pr/SKILL.md or .claude/docs/workflow-parity.md (owned
by the security-review-paths ticket in this batch), .claude/rules/data-layer.md (owned by the
anchor-predicate ticket), .claude/rules/components.md (owned by the memory-mode ticket), or any
file under src/.

Files affected

  • accent.json — delete
  • .claude/docs/architecture.md (:101-102), .claude/docs/environment.md (:55)
  • .claude/rules/tests.md (:42, :91), .claude/rules/i18n-and-state.md (:38, :49),
    .claude/rules/code-style.md (:53)
  • .claude/skills/draft-ticket/conventions.md (:31),
    .claude/skills/draft-ticket/templates/feature.md (:24),
    .claude/skills/finalize-pr/pr-template.md (:20)

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Hold Until

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions