Skip to content

Reveal complete summaries when proposal cards expand - #76

Merged
Cyber-preacher merged 1 commit into
masterfrom
fix/proposal-card-expand-summary
Sep 4, 2026
Merged

Reveal complete summaries when proposal cards expand#76
Cyber-preacher merged 1 commit into
masterfrom
fix/proposal-card-expand-summary

Conversation

@Cyber-preacher

Copy link
Copy Markdown
Contributor

Why

Proposal cards should remain compact in the list while still making the complete summary available. The previous preview helper removed text before rendering, and the one-line CSS crop did not reliably display an ellipsis.

What changed

  • Preserve the complete normalized summary in shared record cards
  • Keep the original collapsed card dimensions
  • Show a CSS ellipsis whenever the collapsed summary exceeds its available width
  • Let expanded summaries wrap across the full card width
  • Add regression coverage for retained content and collapsed/expanded presentation

Validation

  • yarn test: 54 files, 241 tests passed
  • yarn typecheck
  • yarn prettier:check
  • yarn build
  • Browser-verified five summary lengths, including an extreme case
  • Collapsed cards measured at the original compact height and displayed ellipsis
  • Expanded stress summary had no overflow and retained its final sentence

Data safety

Web-only presentation change. No API, schema, migration, runtime fixture, or user-data changes. Temporary preview fixtures were kept outside the repository and removed before commit.

@Cyber-preacher
Cyber-preacher merged commit 7ec6d60 into master Sep 4, 2026
6 checks passed
@Cyber-preacher
Cyber-preacher deleted the fix/proposal-card-expand-summary branch September 4, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant