LCFS - IDIR Designated Action Comments Component
- Dominant language
- Python
- Stars
- 6
- Forks
- 6
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 87
Description
**Description:**
As an IDIR IA Analyst, IA Manager, or Director, I need to create and review comments on a Designated Action so that I can communicate decisions, request information, and maintain an audit history of discussions related to the Designated Action.
**Wireframe:** [IDIR Designated Action page](https://www.figma.com/proto/K65eN4XSiapyobejHKBwny/LCFS---SIU-IDIR-IA-Dashboard-display?node-id=648-1684&t=r29fpfaWjQ86tHn0-0&scaling=min-zoom&content-scaling=fixed&page-id=648%3A1450)
**Purpose and benefit to user:**
The comments component provides a consistent portal-wide communication mechanism while supporting both applicant-facing and internal-only communications.
**Acceptance Criteria:**
- [ ] Given I am an authorized IDIR user, When I access the comments section, then the standard LCFS commenting component is displayed
- [ ] Given I am an authorized IDIR user, When I create a comment, then Internal Comment is selected by default
- [ ] Given I am an authorized IDIR user, When I select Public Comment, then a warning modal is displayed prior to submission
- [ ] Given I am an authorized IDIR user, When I acknowledge the warning modal, then I may proceed with creating a Public Comment
- [ ] Given I am an authorized IDIR user, When comments exist, then comment history is displayed using the standard portal commenting pattern
- [ ] Given I am an IDIR user, When I create an internal comment, then the comment is not visible to BCeID users
- [ ] Given I am an IDIR user, When I create a public comment, then the comment is visible according to existing portal permissions and visibility rules
**Development Checklist:**
- [ ] Implement the standard LCFS commenting component
- [ ] Configure comment storage and retrieval
- [ ] Implement Internal Comment default selection
- [ ] Implement Public Comment warning modal
- [ ] Support internal-only and applicant-facing comments
- [ ] Configure visibility rules and permissions
- [ ] Apply role-based permissions and security
- [ ] Validate keyboard navigation, responsive behaviour, and WCAG 2.2 accessibility compliance
- [ ] Test across supported browsers and devices
**Notes:**
This story should reuse the existing portal comment component and behaviour.
Internal comments must never be visible to BCeID users.
The component should function consistently with comment functionality elsewhere in the LCFS portal.
Contributor guide
Assessment
This issue has not been assessed yet.