Skip to content

Commit 0b314f6

Browse files
committed
chore(site): refresh featured devices to the latest generation
The hero terminal and featured cards still showed last-gen flagships. Update to the current generation present in the dataset: Galaxy S26 Ultra, iPhone 17 Pro Max, Pixel 10 Pro, OnePlus 14, Galaxy Z Fold7 (Xiaomi 15 Ultra kept — no 16 yet), and the hero demo to Galaxy S26 Ultra / Snapdragon 8 Elite Gen 5 / RTX 5090. Also updates the endpoint examples and the playground placeholder. All slugs verified to resolve. Refs #1
1 parent 877e49a commit 0b314f6

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

site/src/pages/index.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ const ghUrl = "https://github.com/GetTechAPI/TechAPI";
77
88
const endpoints = [
99
{ label: "/v1/smartphones", desc: "List all phones", href: `${base}v1/smartphones/index.json` },
10-
{ label: "/v1/smartphones/{slug}", desc: "Phone detail + scores", href: `${base}v1/smartphones/galaxy-s25-ultra/index.json` },
11-
{ label: "/v1/smartphones/{slug}/score", desc: "Computed scores", href: `${base}v1/smartphones/galaxy-s25-ultra/score/index.json` },
10+
{ label: "/v1/smartphones/{slug}", desc: "Phone detail + scores", href: `${base}v1/smartphones/galaxy-s26-ultra/index.json` },
11+
{ label: "/v1/smartphones/{slug}/score", desc: "Computed scores", href: `${base}v1/smartphones/galaxy-s26-ultra/score/index.json` },
1212
{ label: "/v1/tablets", desc: "List all tablets", href: `${base}v1/tablets/index.json` },
1313
{ label: "/v1/watches", desc: "List all watches", href: `${base}v1/watches/index.json` },
1414
{ label: "/v1/pdas", desc: "List all PDAs", href: `${base}v1/pdas/index.json` },
15-
{ label: "/v1/socs/{slug}", desc: "System-on-chip detail", href: `${base}v1/socs/snapdragon-8-elite/index.json` },
15+
{ label: "/v1/socs/{slug}", desc: "System-on-chip detail", href: `${base}v1/socs/snapdragon-8-elite-gen-5/index.json` },
1616
{ label: "/v1/gpus/{slug}", desc: "Discrete GPU detail", href: `${base}v1/gpus/geforce-rtx-5090/index.json` },
1717
{ label: "/v1/cpus/{slug}", desc: "Desktop / laptop CPU", href: `${base}v1/cpus/core-i9-14900k/index.json` },
1818
{ label: "/v1/brands", desc: "All brands", href: `${base}v1/brands/index.json` },
@@ -170,7 +170,7 @@ const endpoints = [
170170
</div>
171171
<div class="field grow">
172172
<label for="pg-slug">Slug</label>
173-
<input id="pg-slug" list="pg-slugs" autocomplete="off" spellcheck="false" placeholder="galaxy-s25-ultra" />
173+
<input id="pg-slug" list="pg-slugs" autocomplete="off" spellcheck="false" placeholder="galaxy-s26-ultra" />
174174
<datalist id="pg-slugs"></datalist>
175175
</div>
176176
<div class="field btns">
@@ -180,7 +180,7 @@ const endpoints = [
180180
</div>
181181
<div class="pg-reqline">
182182
<span class="method">GET</span>
183-
<code id="pg-url">/v1/smartphones/galaxy-s25-ultra</code>
183+
<code id="pg-url">/v1/smartphones/galaxy-s26-ultra</code>
184184
<span class="spacer"></span>
185185
<span id="pg-status" class="status"></span>
186186
<button id="pg-copy" class="copy">Copy curl</button>

site/src/scripts/techapi.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ async function loadList(resource) {
7070
if (!cmdEl) return;
7171

7272
const DEMOS = [
73-
{ resource: "smartphones", slug: "galaxy-s25-ultra" },
74-
{ resource: "socs", slug: "snapdragon-8-elite" },
73+
{ resource: "smartphones", slug: "galaxy-s26-ultra" },
74+
{ resource: "socs", slug: "snapdragon-8-elite-gen-5" },
7575
{ resource: "gpus", slug: "geforce-rtx-5090" },
7676
];
7777
const reduce = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
@@ -556,15 +556,15 @@ document.getElementById("pg-copy")?.addEventListener("click", (e) => {
556556
const b = e.currentTarget, p = b.textContent; b.textContent = "Copied ✓"; setTimeout(() => (b.textContent = p), 1200);
557557
});
558558
if (resSel) populateSlugs("smartphones").then((items) => {
559-
slugIn.value = (items[0] && items[0].slug) || "galaxy-s25-ultra";
559+
slugIn.value = (items[0] && items[0].slug) || "galaxy-s26-ultra";
560560
run("smartphones", slugIn.value);
561561
});
562562

563563
/* ============================================================
564564
FEATURED DEVICES
565565
============================================================ */
566-
const PREFERRED = ["galaxy-s25-ultra", "iphone-16-pro-max", "pixel-9-pro",
567-
"oneplus-13", "xiaomi-15-ultra", "galaxy-z-fold-6"];
566+
const PREFERRED = ["galaxy-s26-ultra", "iphone-17-pro-max", "pixel-10-pro",
567+
"oneplus-14", "xiaomi-15-ultra", "galaxy-z-fold-7"];
568568

569569
function bar(label, v) {
570570
const w = v == null ? 0 : Math.round(v);

0 commit comments

Comments
 (0)