Skip to content

feat: claim review draft-generation UI polish#75

Merged
enlorik merged 2 commits into
mainfrom
feature/claim-review-mvp-polish-clean
Jul 22, 2026
Merged

feat: claim review draft-generation UI polish#75
enlorik merged 2 commits into
mainfrom
feature/claim-review-mvp-polish-clean

Conversation

@enlorik

@enlorik enlorik commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Generate button disabled when no saveable claims selected (selectedSaveableItems.isNotEmpty); shows helper text with key generate-draft-disabled-helper for two cases: saveable claims exist but none selected, or no saveable claims in this review at all
  • Per-group helper copy in ClaimReviewGroupsPanel: new-claim-helper-text, contradiction-helper-text, uncertain-claim-helper-text; better-source-helper-text unchanged
  • claim-draft-empty-state copy updated: "No saveable claims are selected for this draft."

No production behavior changes — only UI copy and button enablement gating. Ported cleanly from the old PR #71 (which targeted a now-merged stale base). 601/601 tests pass.

Test plan

  • flutter test — 601/601 pass
  • Generate button disabled when all saveable claims deselected; helper text visible
  • Generate button disabled (no-saveable-claims helper) when only uncertain/alreadyKnown claims in review
  • Generate button enabled when at least one saveable claim selected; no helper shown
  • new-claim-helper-text, contradiction-helper-text, uncertain-claim-helper-text visible in groups panel
  • claim-draft-empty-state shows updated copy

🤖 Generated with Claude Code

enlorik and others added 2 commits July 22, 2026 12:09
…roup helper copy

- Generate button requires selectedSaveableItems.isNotEmpty; shows helper text
  with key generate-draft-disabled-helper in two cases: saveable claims exist
  but none selected, or no saveable claims exist in the review at all
- Add new-claim-helper-text, contradiction-helper-text, uncertain-claim-helper-text
  to ClaimReviewGroupsPanel per-group sections
- Update claim-draft-empty-state copy to "No saveable claims are selected for this draft."
- Adapt three tests that tapped the now-disabled Generate button via UI to call
  notifier.generateDraft() directly; add focused polish tests and group helper tests

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@enlorik

enlorik commented Jul 22, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 59f7ca2bda

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@enlorik
enlorik merged commit af56b60 into main Jul 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant