Description
Update the buttons and validation in the Comment section of the new Edit Contentlet.
- The Send button is styled as a primary button.
- The Clear button is styled as a tertiary button.
- Both buttons are enabled at all times (never disabled).
- If the user clicks Send with an empty message, show inline validation:
- A red border on the comment input.
- An error message below the input: "A message is required."
Acceptance Criteria
Button styling
Validation — empty message
Clear button
Suggested Tests
Frontend styling + client-side validation only (no backend/endpoint change), so coverage is Unit-first with a single E2E smoke. Integration/Postman are not applicable.
Unit (Jest/Spectator) — primary coverage
E2E (Playwright) — one focused smoke only
Integration / Postman
Priority
Medium
Additional Context
Part of the new Edit Contentlet work (dotCMS: New Edit Contentlet), Comments section. Buttons stay enabled so the validation is driven by the Send action rather than a disabled state. Error copy is "A message is required." (final wording).
Description
Update the buttons and validation in the Comment section of the new Edit Contentlet.
Acceptance Criteria
Button styling
Validation — empty message
Clear button
Suggested Tests
Frontend styling + client-side validation only (no backend/endpoint change), so coverage is Unit-first with a single E2E smoke. Integration/Postman are not applicable.
Unit (Jest/Spectator) — primary coverage
E2E (Playwright) — one focused smoke only
Integration / Postman
Priority
Medium
Additional Context
Part of the new Edit Contentlet work (
dotCMS: New Edit Contentlet), Comments section. Buttons stay enabled so the validation is driven by the Send action rather than a disabled state. Error copy is "A message is required." (final wording).