(In progress) LCFS - Informational modal when a credit transfer would reduce balance to zero
- Dominant language
- Python
- Stars
- 6
- Forks
- 6
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 87
Description
**Purpose:**
Create an informational modal pop-up when an initiating organization proposes to transfer/sell credits that would result in their organizational credit balance being zero after the transfer is recorded. The modal is intended to support informed decision-making before the user confirms the transfer.
**Background / Context:**
Under the BC LCFS, organizations remain responsible for addressing any future debit obligations that may arise, including those resulting from supplemental compliance reports for past periods. If an organization transfers all available credits, this risk may not be obvious at the point of transfer.
This task is focused on improving transparency and user awareness, rather than restricting transfers.
**Task Description:**
Implement a conditional modal pop-up in the credit transfer workflow that appears when:
- The initiating organization proposes to transfer its full available credit balance; and
- The organization’s credit balance would be zero after the transaction is recorded.
The modal should clearly explain the potential compliance implication and require acknowledgement before proceeding.
**User-Facing Behaviour:**
- Modal appears before final submission of the transfer.
- User must explicitly acknowledge the message to proceed.
- User may cancel and revise the transfer amount.
**Suggested Modal Content (draft text):**
> *Before you continue*
>
> Completing this transfer will leave your organization with a zero credit balance.
>
> Please note that if a supplemental compliance report is submitted for a past period and results in a debit obligation, your organization is responsible for having enough credits available to address that obligation.
>
> Consider whether proceeding with this transfer aligns with your organization’s compliance planning.
**Acceptance Criteria:**
- Modal triggers only when the post-transfer balance equals zero.
- Modal does not appear when a positive balance remains.
- Transfer cannot be completed without acknowledgement.
- Language is plain, non-alarmist, and consistent with BC government style guidance.
- Behaviour is consistent across IDIR-facing transfer workflows.
**Out of Scope:**
- Preventing transfers that result in a zero balance.
- Changes to credit calculation or compliance rules.
**Implications if Not Implemented:**
- Organizations may unintentionally reduce their ability to respond to future debit obligations.
- Reduced transparency around compliance risk at the point of transfer.
**Additional Notes:**
- Messaging should remain informational and supportive, not directive.
- Avoid legal interpretation or enforcement framing.
Contributor guide
Assessment
This issue has not been assessed yet.