bcgov / bcgov/lcfs

LCFS - IDIR Initiative Agreement Comments Component

Open
#4,897 0 comments 0 reactions 1 assignee Claimed by @AlexZorkin View on GitHub
Initiative Agreements Medium Story
Dominant language
Python
Stars
6
Forks
6
Avg merge
2d 4h
Merged PRs (30d)
87

Description

**Description:**

As an IDIR IA Analyst, IA Manager, or Director, I need to add and review comments on an Initiative Agreement so that I can maintain a record of discussions, decisions, and collaboration activities related to the agreement.

**Wireframe:**[IDIR Initiative agreement page](https://www.figma.com/proto/K65eN4XSiapyobejHKBwny/LCFS---SIU-IDIR-IA-Dashboard-display?node-id=648-2648&t=LQq5hSu2n62zyX7L-1&scaling=min-zoom&content-scaling=fixed&page-id=648%3A1450)

**Purpose and benefit to user:**

The comments component provides internal Ministry staff with a standardized communication and audit history mechanism within the Initiative Agreement record while ensuring users can clearly distinguish between internal and public 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 new 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 before the comment can be submitted
- [ ] Given I am an authorized IDIR user, When I acknowledge the warning modal, then I may proceed with submitting 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 authorized IDIR user, When a comment is created, then the comment is associated with the Initiative Agreement record
- [ ] Given I am an authorized IDIR user, When I access comments, then comment visibility follows role-based permissions

**Development Checklist:**
- [ ] Implement the standard LCFS commenting component
- [ ] Configure comment storage and retrieval for Initiative Agreements
- [ ] Implement Internal Comment as the default comment type
- [ ] Implement Public Comment warning modal
- [ ] Configure comment history display
- [ ] Apply role-based security and permissions
- [ ] Test comment creation, retrieval, and visibility rules
- [ ] Validate keyboard navigation, responsive behaviour, and WCAG 2.2 accessibility compliance
- [ ] Test across supported browsers and devices

**Notes:**

This story contains the comments functionality for the IDIR Initiative Agreement page.

The component should reuse the existing LCFS portal commenting pattern.

Internal Comment must be the default selection.

Public Comment submission requires acknowledgement of a warning modal before the comment can be submitted.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.