You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: GEMINI.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,10 @@ Income Driver Calculator (IDC) is a web application designed to help companies t
158
158
- Refined surplus verification logic to compare total calculated income (primary + others) against the benchmark target.
159
159
- Decoupled surplus detection from adjusted targets to ensure baseline feasibility checks remain consistent with the original segment benchmark.
160
160
- Fixed decimal input issue in `AdvancedModellingTool.js` by replacing standard `Input` with `InputNumber` and integrating `InputNumberThousandFormatter`.
161
+
- Refined Advanced Modelling Tool: implemented "current value" clamping for surplus scenarios to avoid confusing negative results.
162
+
- Fixed feasibility signal bug by implementing 2-decimal rounding for precision-safe comparisons.
163
+
- Replaced Price Breakdown chart with a "physically impossible" warning alert for scenarios with negative required values.
164
+
- Refined guidance UI by removing icons from modelling tool alerts for a cleaner appearance.
161
165
-**Visualization & Step 3/4 Fixes (Issue #719)**:
162
166
- Resolved graph loading issues in "Understand Income Gap" and "Assess Impact Mitigation Strategies" by refining aggregator question identification for primary, secondary, and tertiary commodities.
163
167
- Implemented absolute-wedge rendering in the shared `Pie.js` component to visualize surpluses (negative gaps) while maintaining signed labels and tooltips.
message={`Farmers would need a negative ${driverLabel} in order to hit the income target. This is not physically possible and the price breakdown is unavailable.`}
1354
+
type="warning"
1355
+
className="impossible-alert"
1356
+
/>
1357
+
</div>
1358
+
);
1359
+
}
1360
+
1332
1361
// Use raw values for calculation but ensure breakdown logic
1333
1362
// If target is met, we might want to show the scenario breakdown instead of theoretical
1334
1363
// because theoretical breakdown for negative prices doesn't make sense visually.
0 commit comments