feat: replace ENABLE_SMART_LANDS env var with per-build checkbox in New Deck modal (#64)

This commit is contained in:
mwisnowski 2026-03-25 22:08:25 -07:00 committed by GitHub
parent 94765622ba
commit b808f411ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 1209 additions and 5046 deletions

View file

@ -195,13 +195,13 @@ Enable cost-aware deck building with `ENABLE_BUDGET_MODE=1` (default). A per-car
## Smart Land Bases
Enable automatic land count and profile selection with `ENABLE_SMART_LANDS=1` (default). Each build analyses the commander's speed and the card pool's color-pip intensity to pick a land base profile.
Enable or disable smart land analysis per-build via the **Smart Land Bases** checkbox in the Preferences section of the New Deck modal (checked by default). Each build analyses the commander's speed and the card pool's color-pip intensity to pick a land base profile.
- **Basics-heavy**: 12 color decks or low-pip pools. ~60% basics, reduced ETB-tapped tolerance.
- **Balanced**: 23 color decks with moderate pip density. Standard ratios and ETB thresholds.
- **Fixing-heavy**: 3+ colors or high pip density (≥15 double-pip or ≥3 triple-or-more-pip cards). Minimal basics, raised ETB-tapped tolerance.
- Land targets: fast decks (commander CMC < 3) get 33 lands; slow decks (CMC > 4) get 3739.
- Override with `LAND_PROFILE=basics|mid|fixing` or `LAND_COUNT=<n>` to bypass auto-detection.
- Override with `LAND_PROFILE=basics|mid|fixing` or `LAND_COUNT=<n>` to bypass auto-detection (useful for headless/CLI builds).
- The **Land Summary** section of each deck result shows a "Smart Lands" notice explaining the chosen profile.
- See [`docs/user_guides/land_bases.md`](docs/user_guides/land_bases.md) for the full guide.
@ -290,7 +290,6 @@ See `.env.example` for the full catalog. Common knobs:
| `WEB_VIRTUALIZE` | `1` | Opt-in to virtualized lists/grids for large result sets. |
| `ALLOW_MUST_HAVES` | `1` | Enable include/exclude enforcement in Step 5. |
| `SHOW_MUST_HAVE_BUTTONS` | `0` | Surface the must include/exclude buttons and quick-add UI (requires `ALLOW_MUST_HAVES=1`). |
| `ENABLE_SMART_LANDS` | `1` | Enable automatic land count and profile selection based on commander speed and pip density. |
| `LAND_PROFILE` | _(auto)_ | Force a land profile: `basics`, `mid`, or `fixing`. Skips auto-detection. |
| `LAND_COUNT` | _(auto)_ | Force total land count (e.g. `36`). Skips curve calculation. |
| `ENABLE_BUDGET_MODE` | `1` | Enable budget mode controls (per-card ceiling, soft enforcement) and price display throughout the builder. |