Skip to content

Comment rules deep clean - #182

Open
alex-rawlings-yyc wants to merge 12 commits into
mainfrom
comment-rules-deep-clean
Open

Comment rules deep clean#182
alex-rawlings-yyc wants to merge 12 commits into
mainfrom
comment-rules-deep-clean

Conversation

@alex-rawlings-yyc

@alex-rawlings-yyc alex-rawlings-yyc commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This change is Reviewable

Drop @file banners, @param/@returns that restate the signature, and prose
references to other code by name. Correct the ASSIGNMENT_STATUSES note, which
claimed O(1) membership for an array .includes lookup.
Normalize @param tags to TSDoc dash form, drop a @returns that only restated
Promise<void>, and remove @returns text duplicated verbatim from the summary
above it.
Fold @file banner rationale into the symbols it describes, drop @param/@returns
that restate the signature, and trim how-narration while keeping the domain
rules (punctuation travel, verse-label grammar, chapter qualification).
Drop the repeated @param verseBook/@param delta/@returns boilerplate across the
segmentation transforms, and condense how-narration in the identity helpers
while keeping the normalization and dedupe rationale.
Drop @param/@returns that restate the signature, keeping only the tags that
carry real constraints (pre-sort order, axis-aligned waypoints, radius
clamping), and trim how-narration from the arc-routing docs.
Drop @param/@returns that restate the signature, including the args-destructuring
blocks that duplicated the args interfaces' own field docs. Keep the tags whose
values carry semantics the types don't (force/isVerify, deps, edge).
Fold @file banner rationale into the exported symbols, drop the repeated
'@param state - Shared traversal state updated in place' boilerplate across the
USJ walker, and trim @returns that restated each parser's field mapping. Keep
every @throws.
Remove the @param state/@param action boilerplate repeated across every reducer
and selector, and the @returns that restated the summary directly above them.
Fold the few real details (stable empty array, blank-clears-gloss, per-morpheme
writing system) into the prose. Keep every @throws and the storage tags carrying
ENOENT, ordering, and null-to-clear semantics.
Drop the '@param props - Component props' umbrella repeated across 47 component
docs and the @returns that only restated the rendered markup, keeping the ones
that express conditional absence or real semantics. Delete the single-line @file
banners and fold the substantive multi-line ones (Alt-context isolation, the
strip context's deliberate exclusions, the dropdown's portaling, editor-vs-display
for morphemes) into the symbols they describe.
Drop @param/@returns that restate stub signatures and the 'Unit tests for X.ts'
@file banners that only name the file under test. Keep the mock @file blocks
that explain why each mock exists (ESM-in-Jest, types-only modules), since those
files have no single symbol to carry the rationale.
Drop the '@param page The Playwright Page' boilerplate repeated across 19
helpers and the '@returns Nothing.' tags, and normalize the remaining @param
tags to TSDoc dash form to match the rest of the repo. Keep the @returns that
define each helper's postcondition, since 'resolved' is not obvious from
Promise<void>.
@coderabbitai

coderabbitai Bot commented Jul 28, 2026

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 144 files, which is 44 over the limit of 100.

To get a review, narrow the scope:
• coderabbit review --committed # exclude uncommitted changes
• coderabbit review --dir # limit to a subdirectory
• coderabbit review --base # compare against a closer base

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: dcd293c2-f392-4a97-a0b9-d6951f95e68b

📥 Commits

Reviewing files that changed from the base of the PR and between 54346dd and e5e54ca.

📒 Files selected for processing (144)
  • __mocks__/lucide-react.tsx
  • __mocks__/papi-frontend-react.ts
  • __mocks__/platform-bible-react.tsx
  • __mocks__/platform-bible-utils.ts
  • e2e-tests/fixtures/app.fixture.ts
  • e2e-tests/fixtures/helpers.ts
  • e2e-tests/global-setup-cdp.ts
  • e2e-tests/global-setup.ts
  • e2e-tests/global-teardown-cdp.ts
  • e2e-tests/global-teardown.ts
  • e2e-tests/process-utils.ts
  • e2e-tests/tests/_example/example-interlinearizer-feature.spec.ts
  • src/__tests__/components/AltHeldContext.test.tsx
  • src/__tests__/components/AnalysisStore.test.tsx
  • src/__tests__/components/ArcOverlay.test.tsx
  • src/__tests__/components/ContinuousView.test.tsx
  • src/__tests__/components/InterlinearNavContext.test.tsx
  • src/__tests__/components/Interlinearizer.test.tsx
  • src/__tests__/components/InterlinearizerLoader.test.tsx
  • src/__tests__/components/MorphemeBox.test.tsx
  • src/__tests__/components/MorphemeEditor.test.tsx
  • src/__tests__/components/PhraseBox.test.tsx
  • src/__tests__/components/PhraseStripContext.test.tsx
  • src/__tests__/components/PhraseStripParts.test.tsx
  • src/__tests__/components/SegmentView.test.tsx
  • src/__tests__/components/SegmentationStore.test.tsx
  • src/__tests__/components/TokenChip.suggestions.test.tsx
  • src/__tests__/components/TokenChip.test.tsx
  • src/__tests__/components/TokenLinkIcon.test.tsx
  • src/__tests__/components/controls/EditPhraseControls.test.tsx
  • src/__tests__/components/controls/ScriptureNavControls.test.tsx
  • src/__tests__/components/controls/ViewOptionsDropdown.test.tsx
  • src/__tests__/components/modals/CreateProjectModal.test.tsx
  • src/__tests__/components/modals/DiscardDraftConfirm.test.tsx
  • src/__tests__/components/modals/ProjectMetadataModal.test.tsx
  • src/__tests__/components/modals/ProjectModals.test.tsx
  • src/__tests__/components/modals/ProjectSummaryDetails.test.tsx
  • src/__tests__/components/modals/SaveAsProjectModal.test.tsx
  • src/__tests__/components/modals/SelectInterlinearProjectModal.test.tsx
  • src/__tests__/components/modals/UnlinkPhraseConfirm.test.tsx
  • src/__tests__/components/modals/WipeModal.test.tsx
  • src/__tests__/components/test-helpers.tsx
  • src/__tests__/hooks/useAltHeld.test.ts
  • src/__tests__/hooks/useArcPaths.test.ts
  • src/__tests__/hooks/useDraftProject.test.ts
  • src/__tests__/hooks/useInterlinearizerBookData.test.ts
  • src/__tests__/hooks/useOptimisticBooleanSetting.test.ts
  • src/__tests__/hooks/usePhraseHoverState.test.ts
  • src/__tests__/hooks/useSegmentWindow.test.ts
  • src/__tests__/interlinearizer.web-view.test.tsx
  • src/__tests__/main.test.ts
  • src/__tests__/parsers/papi/bookTokenizer.test.ts
  • src/__tests__/parsers/papi/resegmentBook.test.ts
  • src/__tests__/parsers/papi/usjBookExtractor.test.ts
  • src/__tests__/parsers/pt9/interlinearXmlParser.test.ts
  • src/__tests__/services/projectStorage.test.ts
  • src/__tests__/store/analysisSlice.test.ts
  • src/__tests__/test-helpers.ts
  • src/__tests__/utils/analysis-book.test.ts
  • src/__tests__/utils/analysis-identity.test.ts
  • src/__tests__/utils/localized-strings.test.ts
  • src/__tests__/utils/multi-string.test.ts
  • src/__tests__/utils/phrase-arc.test.ts
  • src/__tests__/utils/project-summary-format.test.ts
  • src/__tests__/utils/segment-labels.test.ts
  • src/__tests__/utils/segmentation.test.ts
  • src/__tests__/utils/split-anchor.test.ts
  • src/__tests__/utils/suggestion-engine.test.ts
  • src/__tests__/utils/token-layout.test.ts
  • src/__tests__/utils/verse-ref.test.ts
  • src/__tests__/utils/verse-superscripts.test.ts
  • src/components/AltHeldContext.tsx
  • src/components/AnalysisStore.tsx
  • src/components/ArcOverlay.tsx
  • src/components/ContinuousView.tsx
  • src/components/InterlinearNavContext.tsx
  • src/components/Interlinearizer.tsx
  • src/components/InterlinearizerLoader.tsx
  • src/components/MorphemeBox.tsx
  • src/components/MorphemeEditor.tsx
  • src/components/PhraseBox.tsx
  • src/components/PhraseStripContext.tsx
  • src/components/PhraseStripParts.tsx
  • src/components/SegmentFreeTranslationInput.tsx
  • src/components/SegmentListView.tsx
  • src/components/SegmentView.tsx
  • src/components/SegmentationStore.tsx
  • src/components/SuggestionDropdown.tsx
  • src/components/TokenChip.tsx
  • src/components/TokenLinkIcon.tsx
  • src/components/__mocks__/AnalysisStore.tsx
  • src/components/__mocks__/TokenChip.tsx
  • src/components/controls/EditPhraseControls.tsx
  • src/components/controls/ScriptureNavControls.tsx
  • src/components/controls/ViewOptionsDropdown.tsx
  • src/components/modals/ModalShell.tsx
  • src/components/modals/ProjectMetadataModal.tsx
  • src/components/modals/ProjectModals.tsx
  • src/components/modals/ProjectSummaryDetails.tsx
  • src/components/modals/UnlinkPhraseConfirm.tsx
  • src/components/recenter-fade.ts
  • src/hooks/useAltHeld.ts
  • src/hooks/useArcPaths.ts
  • src/hooks/useBookIndexes.ts
  • src/hooks/useDraftProject.ts
  • src/hooks/useInterlinearizerBookData.ts
  • src/hooks/useLatestRef.ts
  • src/hooks/useOptimisticBooleanSetting.ts
  • src/hooks/usePhraseHoverState.ts
  • src/hooks/usePhraseStripSetup.ts
  • src/hooks/useRecenterSnap.ts
  • src/hooks/useSegmentWindow.ts
  • src/hooks/useSubmitGuard.ts
  • src/interlinearizer.web-view.tsx
  • src/main.ts
  • src/parsers/papi/bookTokenizer.ts
  • src/parsers/papi/resegmentBook.ts
  • src/parsers/papi/usjBookExtractor.ts
  • src/parsers/pt9/interlinearXmlParser.ts
  • src/services/projectStorage.ts
  • src/store/analysisSlice.ts
  • src/store/index.ts
  • src/types/empty-factories.ts
  • src/types/interlinear-project-summary.ts
  • src/types/interlinearizer.d.ts
  • src/types/phrase-mode.ts
  • src/types/status-colors.ts
  • src/types/token-layout.ts
  • src/types/type-guards.ts
  • src/types/view-options.ts
  • src/utils/analysis-book.ts
  • src/utils/analysis-identity.ts
  • src/utils/language-tags.ts
  • src/utils/localized-strings.ts
  • src/utils/multi-string.ts
  • src/utils/phrase-arc.ts
  • src/utils/project-summary-format.ts
  • src/utils/segment-labels.ts
  • src/utils/segmentation.ts
  • src/utils/split-anchor.ts
  • src/utils/suggestion-engine.ts
  • src/utils/token-layout.ts
  • src/utils/verse-ref.ts
  • src/utils/verse-superscripts.ts

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@alex-rawlings-yyc alex-rawlings-yyc added the up next Auto adds an issue to the PT Lexical Extensions project label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

up next Auto adds an issue to the PT Lexical Extensions project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant