TTAHUB-4779 - Updating CR ActSum Act Desc to use WYSIWYG#3263
Merged
TTAHUB-4779 - Updating CR ActSum Act Desc to use WYSIWYG#3263
Conversation
Collaborator
frontend/src/pages/CollaborationReportForm/Pages/activitySummary.js
Outdated
Show resolved
Hide resolved
frontend/src/pages/CollaborationReportForm/Pages/activitySummary.js
Outdated
Show resolved
Hide resolved
frontend/src/pages/CollaborationReportForm/Pages/activitySummary.js
Outdated
Show resolved
Hide resolved
thewatermethod
approved these changes
Jan 27, 2026
AdamAdHocTeam
approved these changes
Jan 28, 2026
…sers don't get kicked out of it
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Collaboration Report's Activity Summary page to use a WYSIWYG rich text editor for the activity description field, replacing the previous plain textarea implementation.
Changes:
- Replaced textarea with HookFormRichEditor component for the activity description field
- Added validation logic to HookFormRichEditor to support required fields with custom error messages
- Updated the review section to properly display rich text content
- Extended DOMPurify's allowed HTML tags to include 'del' and 'ins' for strikethrough and insertion formatting
- Updated tests to interact with the new rich text editor structure
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| frontend/src/components/HookFormRichEditor.js | Added id and errorMessage props, implemented validation for required fields, and added onBlur handling |
| frontend/src/pages/CollaborationReportForm/Pages/activitySummary.js | Replaced textarea with HookFormRichEditor, removed manual validation function, and marked description as rich text in review section |
| frontend/src/components/renderReadOnlyContentData.js | Added 'del' and 'ins' to allowed HTML tags for displaying strikethrough and insertion formatting |
| frontend/src/pages/CollaborationReportForm/index.js | Added conditional form update logic using shouldUpdateFormData helper |
| frontend/src/pages/CollaborationReportForm/tests/index.js | Updated test to query for rich text editor element using CSS class selector |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description of change
Updating CR ActSum Act Desc to use a WYSIWYG editor.
How to test
Issue(s)
Checklists
Every PR
Before merge to main
Production Deploy
After merge/deploy