fix: invert shoring ratio logic — higher offshore = better
The shoring indicator logic was backwards. In the business context, higher offshore = more cost-efficient = GOOD. Inverted logic: - Green: offshore >= threshold (target met, e.g. >= 55%) - Yellow: offshore close to threshold (threshold-10 to threshold) - Red: offshore below threshold (too little offshore, too expensive) Updated: - ShoringIndicator: getSeverity() inverted, badge text updated - ProjectModal: "Max Offshore" renamed to "Min Offshore" with new tooltip - AI Tool: status text reflects "target met" vs "below target" - Tool description: "higher offshore is better, threshold is minimum" Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -499,8 +499,8 @@ export function ProjectModal({ project, onClose }: ProjectModalProps) {
|
||||
</div>
|
||||
<div>
|
||||
<label className={labelClass} htmlFor="shoringThreshold">
|
||||
Max Offshore %
|
||||
<InfoTooltip content="Maximum allowed offshore staffing percentage (0-100). Triggers a warning when exceeded. Default: 55%." />
|
||||
Min Offshore %
|
||||
<InfoTooltip content="Minimum offshore staffing target (0-100). Green when met, red when below. Higher offshore = more cost-efficient. Default: 55%." />
|
||||
</label>
|
||||
<input
|
||||
id="shoringThreshold"
|
||||
|
||||
Reference in New Issue
Block a user