diff --git a/TEST.md b/TEST.md index eb37321..a0b2274 100644 --- a/TEST.md +++ b/TEST.md @@ -42,6 +42,8 @@ Open http://localhost:8999. ### A2. Software tiers and sizing +- [ ] **A2.0** On first load the dropdown shows **Base**, and no latency focus cities are selected + (the RTT columns show "-" until you pick cities). - [ ] **A2.1** The **Federated tier** dropdown lists: Custom selection, Base · 2 apps · $19/mo, Good · 11 apps · $70/mo, Better · 18 apps · $145/mo, Best · 22 apps · $290/mo. - [ ] **A2.2** "Always included" shows **Traefik, Authelia, PowerDNS**. diff --git a/app/static/app.js b/app/static/app.js index bbc9da4..31a4e3f 100644 --- a/app/static/app.js +++ b/app/static/app.js @@ -6,7 +6,7 @@ const usd = (n) => (n == null ? "-" : "$" + Number(n).toFixed(2)); const S = { cat: null, apps: new Set(), cont: new Set(), comp: new Set(), prov: new Set(), - cities: new Set(["nyc", "chi", "lax", "dfw"]), data: null, sort: { key: "total", dir: 1 }, + cities: new Set(), data: null, sort: { key: "total", dir: 1 }, override: {}, preset: null, }; const COMP = [["hipaa", "HIPAA"], ["soc2", "SOC2"], ["pci", "PCI DSS"], ["gdpr", "GDPR"]]; @@ -79,7 +79,7 @@ async function init() { $("#refreshBtn").onclick = refreshLive; $("#editContaboBtn").onclick = () => openEditor("contabo"); - S.apps = new Set(S.cat.presets.good.apps); setPreset("good"); + S.apps = new Set(S.cat.presets.base.apps); setPreset("base"); renderApps(); renderNotes(); requote(); diff --git a/app/static/style.css b/app/static/style.css index f3eeb16..f0d478d 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -40,7 +40,7 @@ details.cat summary { cursor: pointer; font-weight: 600; } .spec div { flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; } .spec b { display: block; font-size: 1.5rem; } .spec .ovr { width: 4.5em; text-align: center; margin-top: .2rem; } -.breakdown { max-height: 240px; overflow: auto; } +.breakdown { max-height: min(70vh, 560px); overflow: auto; } .filters { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-bottom: .6rem; } .filters .wide { flex: 1 1 600px; } .chips { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }