LCFS - CI of fuel
- Dominant language
- Python
- Stars
- 6
- Forks
- 6
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 87
Description
**Description:**
Ensure that the "CI of fuel" field on both the "Fuel Supply" and "Export Fuel" forms accurately displays the sum of the RCI and UCI values. Currently, it appears to only include the RCI value. This task involves verifying that UCI is included in the calculation and adding it if it is not.
**Wireframe:**

**Purpose and benefit to user:**
This correction provides users with accurate carbon intensity information by ensuring the "CI of fuel" reflects the combined carbon intensity from both RCI and UCI, improving the reliability of data for decision-making.
**Acceptance Criteria:**
- [ ] The "CI of fuel" field on the "Fuel Supply" form displays the sum of RCI and UCI values.
- [ ] The "CI of fuel" field on the "Export Fuel" form displays the sum of RCI and UCI values.
- [ ] Verify that UCI tables are in place and that their data is accessible for the calculation.
- [ ] The combined CI of fuel is correctly calculated and displayed upon entry or update of RCI and/or UCI values.
**Development Checklist:**
- [ ] Confirm the presence of UCI data tables and their accessibility in both "Fuel Supply" and "Export Fuel" forms.
- [ ] Adjust the calculation for the "CI of fuel" field in both forms to sum RCI and UCI values.
- [ ] Test the field to ensure it updates accurately with changes in either RCI or UCI.
- [ ] Conduct QA to confirm that both forms consistently show the combined CI of fuel.
- [ ] Update any relevant documentation or user guides with this corrected calculation.
**Notes:**
This adjustment is expected to be a minor change, as UCI tables already exist. Ensure that no performance issues arise from including UCI in the calculation.
Contributor guide
Research direction
Start by locating the Fuel Supply and Export Fuel form implementations and the existing RCI/UCI data tables or entry points. Trace how the “CI of fuel” field is recalculated when either value is entered or updated, then verify both forms display RCI + UCI with focused tests or QA.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100