Skip to content

General cleanup and documentation audit#124

Draft
alex-rawlings-yyc wants to merge 2 commits into
mainfrom
cleanup-review-followups
Draft

General cleanup and documentation audit#124
alex-rawlings-yyc wants to merge 2 commits into
mainfrom
cleanup-review-followups

Conversation

@alex-rawlings-yyc

@alex-rawlings-yyc alex-rawlings-yyc commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This change is Reviewable

Summary by CodeRabbit

Release Notes

  • New Features

    • Added improved modal UI architecture with shared components for consistency across dialogs.
    • Enhanced submit handling to prevent accidental double submissions.
  • Bug Fixes

    • Fixed phrase grouping logic for discontiguous phrases.
    • Corrected arc rendering calculations for cross-row routing.
    • Strengthened validation for phrase-analysis link data.
  • Improvements

    • Enhanced error logging and validation messaging.
    • Improved test coverage and assertion specificity across components.
    • Refined documentation and JSDoc clarity throughout the codebase.

@alex-rawlings-yyc alex-rawlings-yyc added the up next Auto adds an issue to the PT Lexical Extensions project label Jun 23, 2026
@alex-rawlings-yyc alex-rawlings-yyc self-assigned this Jun 23, 2026
@coderabbitai

coderabbitai Bot commented Jun 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 9846d637-3cee-49f4-8890-57359cb61303

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

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cleanup-review-followups

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 and others added 2 commits June 23, 2026 12:21
Quality cleanup stacked on the persisted-draft work, deferred out of that PR.

Modal layer:
- Add ModalShell, ConfirmDialog, useSubmitGuard, and parseLanguageTags and use them across the six project modals: shared overlay/dialog/title chrome, WipeConfirm and DiscardDraftConfirm collapsed into ConfirmDialog, and the duplicated comma-separated language parsing and double-submit guards unified.

Dead code:
- Remove the never-dispatched setAnalysis reducer and the unused selectPhraseAnalysisById selector (and their tests); drop needless exports on ProjectMetadataModalProps, ARC_CORNER_RADIUS, and RECENTER_FADE_EASING.

Correctness:
- isPhraseAnalysisLink rejects an empty tokens array (fail-safe at the load gate); resolveApprovedAnalysis uses findLast so it mutates the same approved link the read selectors surface under duplicate-link corruption.

Tailwind:
- Extract modal-actions, modal-form-label, and modal-error-box utilities for the repeated footer-row, form-label, and destructive-box class strings across the modals, and reuse the existing section-label utility in SegmentView instead of re-listing its classes. No unused custom utilities found.

Docs/simplification:
- Correct useGlossDispatch, ActiveProject (updateAnalysis), and firstIndex JSDoc; hoist ScriptureNavControls string keys to a module const; hoist the duplicated verseKey(liveScrRef) in InterlinearNavContext; extract closeCurrentVerse in usjBookExtractor.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alex-rawlings-yyc alex-rawlings-yyc force-pushed the cleanup-review-followups branch from ba4ba3f to bde9625 Compare June 23, 2026 18:43
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