Upgrade to segment-targeted net-benefit model + Retail/DMS view - #1
Merged
Conversation
Replace the dealer-lot prototype with the national-portfolio analysis: - App.tsx: rescale to national OEM pipeline ($2.87B deployed); add segment-specific DSI targets, a net-benefit decision engine (act only when carrying cost avoided > clearance loss), strict typing, and a new Retail & DMS view drilling the thesis to dealer floorplan economics. - README.md: answer-first rewrite with defensible-metrics framing. - METHODOLOGY.md: new — full formulas, assumptions, sensitivity, limits. Verified: tsc --noEmit clean, vite build succeeds. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Dashboard: the per-row Reallocate action now obeys the same net-benefit gate as "Execute all" — when clearing a pool costs more than the carrying cost it avoids (netFirstYear <= 0), the row shows a "Hold · net-negative" state instead of an actionable button, and executeOne guards against acting. Previously a single row could be cleared against the model's own act-only-when-it-pays rule (e.g. at an 8% carrying rate). Matches METHODOLOGY.md §5/§8. - CI: add a `tsc --noEmit` typecheck gate before build. - Deploy: guard the GitHub Pages publish to push-to-main only, so pull_request builds no longer risk publishing un-merged code. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Replaces the dealer-lot prototype with the national-portfolio analysis model.
Changes
src/App.tsx(437 → 1090 lines): rescaled to the national OEM pipeline (~$2.87B deployed). Adds:InventoryItem,ProcessedItem,Portfolio)README.md: answer-first rewrite with the "defensible metrics" framing.METHODOLOGY.md(new): full formula derivation, assumptions, sensitivity analysis, and documented limitations.Verification
tsc --noEmit— clean, no type errorsvite build— succeeds (185 kB JS / 57 kB gzipped)🤖 Generated with Claude Code