From 7d52aee3e4371ebb4a5e5581eba2127d8e809927 Mon Sep 17 00:00:00 2001 From: Seungpyo1007 Date: Wed, 24 Jun 2026 11:53:40 +0900 Subject: [PATCH] chore(site): refresh featured devices to the latest generation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- site/src/pages/index.astro | 10 +++++----- site/src/scripts/techapi.js | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro index d8499d8b878..c71950e610f 100644 --- a/site/src/pages/index.astro +++ b/site/src/pages/index.astro @@ -7,12 +7,12 @@ const ghUrl = "https://github.com/GetTechAPI/TechAPI"; const endpoints = [ { label: "/v1/smartphones", desc: "List all phones", href: `${base}v1/smartphones/index.json` }, - { label: "/v1/smartphones/{slug}", desc: "Phone detail + scores", href: `${base}v1/smartphones/galaxy-s25-ultra/index.json` }, - { label: "/v1/smartphones/{slug}/score", desc: "Computed scores", href: `${base}v1/smartphones/galaxy-s25-ultra/score/index.json` }, + { label: "/v1/smartphones/{slug}", desc: "Phone detail + scores", href: `${base}v1/smartphones/galaxy-s26-ultra/index.json` }, + { label: "/v1/smartphones/{slug}/score", desc: "Computed scores", href: `${base}v1/smartphones/galaxy-s26-ultra/score/index.json` }, { label: "/v1/tablets", desc: "List all tablets", href: `${base}v1/tablets/index.json` }, { label: "/v1/watches", desc: "List all watches", href: `${base}v1/watches/index.json` }, { label: "/v1/pdas", desc: "List all PDAs", href: `${base}v1/pdas/index.json` }, - { label: "/v1/socs/{slug}", desc: "System-on-chip detail", href: `${base}v1/socs/snapdragon-8-elite/index.json` }, + { label: "/v1/socs/{slug}", desc: "System-on-chip detail", href: `${base}v1/socs/snapdragon-8-elite-gen-5/index.json` }, { label: "/v1/gpus/{slug}", desc: "Discrete GPU detail", href: `${base}v1/gpus/geforce-rtx-5090/index.json` }, { label: "/v1/cpus/{slug}", desc: "Desktop / laptop CPU", href: `${base}v1/cpus/core-i9-14900k/index.json` }, { label: "/v1/brands", desc: "All brands", href: `${base}v1/brands/index.json` }, @@ -170,7 +170,7 @@ const endpoints = [
- +
@@ -180,7 +180,7 @@ const endpoints = [
GET - /v1/smartphones/galaxy-s25-ultra + /v1/smartphones/galaxy-s26-ultra diff --git a/site/src/scripts/techapi.js b/site/src/scripts/techapi.js index 258a167db23..bc7ea846360 100644 --- a/site/src/scripts/techapi.js +++ b/site/src/scripts/techapi.js @@ -70,8 +70,8 @@ async function loadList(resource) { if (!cmdEl) return; const DEMOS = [ - { resource: "smartphones", slug: "galaxy-s25-ultra" }, - { resource: "socs", slug: "snapdragon-8-elite" }, + { resource: "smartphones", slug: "galaxy-s26-ultra" }, + { resource: "socs", slug: "snapdragon-8-elite-gen-5" }, { resource: "gpus", slug: "geforce-rtx-5090" }, ]; const reduce = window.matchMedia && window.matchMedia("(prefers-reduced-motion: reduce)").matches; @@ -556,15 +556,15 @@ document.getElementById("pg-copy")?.addEventListener("click", (e) => { const b = e.currentTarget, p = b.textContent; b.textContent = "Copied ✓"; setTimeout(() => (b.textContent = p), 1200); }); if (resSel) populateSlugs("smartphones").then((items) => { - slugIn.value = (items[0] && items[0].slug) || "galaxy-s25-ultra"; + slugIn.value = (items[0] && items[0].slug) || "galaxy-s26-ultra"; run("smartphones", slugIn.value); }); /* ============================================================ FEATURED DEVICES ============================================================ */ -const PREFERRED = ["galaxy-s25-ultra", "iphone-16-pro-max", "pixel-9-pro", - "oneplus-13", "xiaomi-15-ultra", "galaxy-z-fold-6"]; +const PREFERRED = ["galaxy-s26-ultra", "iphone-17-pro-max", "pixel-10-pro", + "oneplus-14", "xiaomi-15-ultra", "galaxy-z-fold-7"]; function bar(label, v) { const w = v == null ? 0 : Math.round(v);