Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠
JavaScript ai-agentai-agentsai-toolsbrowser-aibrowser-automationbrowser-extensionchrome-aichrome-devtoolschrome-extensionchrome-extensionsfirefox-addonfirefox-addonsfirefox-extensionfirefox-extensionsgemmagemma4minimaxoffline-aioffline-llmqwen
Replace the install page header and scroll cue with a feature pill row
Claude35122352c406
diff --git a/src/chrome/src/ui/install-motion.js b/src/chrome/src/ui/install-motion.jsindex ef05e296b..7e66fef0a 100644--- a/src/chrome/src/ui/install-motion.js+++ b/src/chrome/src/ui/install-motion.js@@ -139,60 +139,3 @@ export function initializeShowcaseAutoplay({}return stop;}--/**- * The hero looks complete in a laptop-sized window, so nothing says the page- * continues. A floating pill points down until the visitor finds the rest on- * their own: it never appears if the next section is already in view, and it- * goes for good once they scroll or click it. Returns a function that retires- * it early.- */-export function initializeScrollCue({- documentLike = globalThis.document,- windowLike = globalThis.window,- delayMs = 1400,- scrolledPx = 120,-} = {}) {- const cue = documentLike?.querySelector?.('[data-scroll-cue]');- const target = documentLike?.querySelector?.('.more-head');- const Observer = windowLike?.IntersectionObserver;- // Without the observer there is no way to tell when the cue stops being useful,- // so leave it hidden rather than let it sit over the content.- if (!cue || !target || typeof Observer !== 'function') return () => {};-- let finished = false;- let revealTimer = null;- const nextFrame = windowLike.requestAnimationFrame?.bind(windowLike) || ((fn) => fn());-- const observer = new Observer((entries) => {- if (entries.some((entry) => entry.isIntersecting)) dismiss();- }, { rootMargin: '0px 0px -12% 0px' });-- function dismiss() {- if (finished) return;- finished = true;- windowLike.clearTimeout?.(revealTimer);- observer.disconnect();- windowLike.removeEventListener?.('scroll', onScroll);- cue.removeEventListener?.('click', dismiss);- cue.classList.remove('is-visible');- // Leave the layout and the tab order once the fade has finished.- windowLike.setTimeout(() => { cue.hidden = true; }, 400);- }- function onScroll() {- if ((windowLike.scrollY || 0) > scrolledPx) dismiss();- }-- windowLike.addEventListener?.('scroll', onScroll, { passive: true });- cue.addEventListener('click', dismiss);- observer.observe(target);- revealTimer = windowLike.setTimeout(() => {- if (finished) return;- // A reload can restore a scroll position that is already past the hero.- if ((windowLike.scrollY || 0) > scrolledPx) { dismiss(); return; }- cue.hidden = false;- // Next frame, so the fade-in transition actually runs.- nextFrame(() => { if (!finished) cue.classList.add('is-visible'); });- }, delayMs);- return dismiss;-}diff --git a/src/chrome/src/ui/install-scenes.css b/src/chrome/src/ui/install-scenes.cssindex d16020511..d09d4030e 100644--- a/src/chrome/src/ui/install-scenes.css+++ b/src/chrome/src/ui/install-scenes.css@@ -1407,11 +1407,17 @@translate: 0 0;}-/* ───────────────────────── scroll cue ───────────────────────── */+/* A pill that jumps to a card that has not been revealed yet measures it while+ it is still 28px low, so leave room for the slide and it settles at the top. */+.fcard {+ scroll-margin-top: 28px;+}++/* ───────────────────────── quick features ───────────────────────── */-/* The hero looks complete on a laptop-sized window, so a floating pill says the- page continues. install-motion.js shows it after a beat and retires it for- good once the visitor scrolls or clicks. */+/* Pills at the bottom of the first screen: they say what is further down and+ jump to it. On wide windows the row sticks to the bottom edge for as long as+ the hero is on screen, so it stays visible however short the window is. */html {scroll-padding-top: 16px;@@ -1423,85 +1429,86 @@ html {}}-.scroll-cue {- position: fixed;- z-index: 30;- bottom: max(20px, env(safe-area-inset-bottom));- left: 50%;+.quick-features {+ grid-column: 1 / -1;+ align-self: end;+ display: flex;+ flex-wrap: wrap;+ justify-content: center;+ gap: 10px;+ margin: 0;+}++.qf-chip {+ --fc: var(--accent);display: inline-flex;align-items: center;- gap: 10px;- padding: 8px 9px 8px 20px;- border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));+ gap: 9px;+ padding: 10px 18px 10px 14px;+ border: 1px solid color-mix(in srgb, var(--fc) 32%, var(--line));border-radius: 999px;- background: color-mix(in srgb, var(--surface-strong) 84%, transparent);- -webkit-backdrop-filter: blur(16px) saturate(1.4);- backdrop-filter: blur(16px) saturate(1.4);- box-shadow:- 0 12px 36px color-mix(in srgb, var(--accent) 32%, transparent),- 0 2px 8px color-mix(in srgb, #0a0d1f 24%, transparent);+ background: color-mix(in srgb, var(--fc) 10%, color-mix(in srgb, var(--surface-strong) 86%, transparent));+ -webkit-backdrop-filter: blur(14px) saturate(1.3);+ backdrop-filter: blur(14px) saturate(1.3);color: var(--text);font-size: 14px;font-weight: 650;letter-spacing: -0.005em;text-decoration: none;white-space: nowrap;- opacity: 0;- translate: -50% 14px;- pointer-events: none;transition:- opacity 360ms ease,- translate 360ms cubic-bezier(0.2, 0.8, 0.2, 1),+ translate 180ms ease,border-color 160ms ease,background-color 160ms ease;+ animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 560ms backwards;}-.scroll-cue[hidden] {- display: none;-}+.qf-chip:nth-child(2) { animation-delay: 630ms; }+.qf-chip:nth-child(3) { animation-delay: 700ms; }+.qf-chip:nth-child(4) { animation-delay: 770ms; }+.qf-chip:nth-child(5) { animation-delay: 840ms; }-.scroll-cue.is-visible {- opacity: 1;- translate: -50% 0;- pointer-events: auto;+.qf-chip svg {+ flex: none;+ width: 17px;+ height: 17px;+ fill: none;+ stroke: var(--fc);+ stroke-width: 2;+ stroke-linecap: round;+ stroke-linejoin: round;}-.scroll-cue:hover {- border-color: var(--accent);- background: color-mix(in srgb, var(--surface-strong) 94%, transparent);+.qf-chip--apocalypse { --fc: #f0a72f; }+.qf-chip--record { --fc: #e5484d; }+.qf-chip--shot { --fc: #5b8def; }+.qf-chip--dl { --fc: #e0457b; }++.qf-chip:hover {+ translate: 0 -2px;+ border-color: var(--fc);+ background: color-mix(in srgb, var(--fc) 18%, color-mix(in srgb, var(--surface-strong) 90%, transparent));}-.scroll-cue:focus-visible {- outline: 2px solid var(--accent);+.qf-chip:focus-visible {+ outline: 2px solid var(--fc);outline-offset: 3px;}-.scroll-cue-arrow {- display: inline-grid;- flex: none;- place-items: center;- width: 28px;- height: 28px;- border-radius: 50%;- background: color-mix(in srgb, var(--accent) 24%, transparent);- color: var(--accent);+/* The last pill is the generic "keep scrolling" one, so it gets the accent and+ a nudging arrow. */+.qf-chip--more {+ border-color: color-mix(in srgb, var(--accent) 55%, var(--line));+ background: color-mix(in srgb, var(--accent) 20%, color-mix(in srgb, var(--surface-strong) 86%, transparent));+ box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 26%, transparent);}-.scroll-cue-arrow svg {- width: 17px;- height: 17px;- fill: none;- stroke: currentColor;+.qf-chip--more svg {stroke-width: 2.4;- stroke-linecap: round;- stroke-linejoin: round;+ animation: qf-bob 1.6s ease-in-out 1.4s infinite;}-.scroll-cue.is-visible .scroll-cue-arrow svg {- animation: cue-bob 1.6s ease-in-out 600ms infinite;-}--@keyframes cue-bob {+@keyframes qf-bob {0%,100% {translate: 0 -2px;@@ -1512,12 +1519,32 @@ html {}}+@media (min-width: 981px) {+ .quick-features {+ position: sticky;+ bottom: 20px;+ z-index: 20;+ }+}++@media (max-width: 620px) {+ .quick-features {+ gap: 8px;+ }++ .qf-chip {+ padding: 9px 15px 9px 12px;+ font-size: 13px;+ }+}+@media (prefers-reduced-motion: reduce) {- .scroll-cue {+ .qf-chip {+ animation: none;transition: none;}- .scroll-cue.is-visible .scroll-cue-arrow svg {+ .qf-chip--more svg {animation: none;}}diff --git a/src/chrome/src/ui/install.css b/src/chrome/src/ui/install.cssindex 7bdcdd6ee..70795eb34 100644--- a/src/chrome/src/ui/install.css+++ b/src/chrome/src/ui/install.css@@ -90,60 +90,17 @@ kbd {flex-direction: column;}-.install-header {- min-height: 88px;- display: flex;- align-items: center;- justify-content: space-between;- gap: 20px;- border-bottom: 1px solid var(--line);-}--.brand {- display: flex;- align-items: center;- gap: 12px;- font-family: var(--display);- font-size: 16px;- font-weight: 760;- letter-spacing: -0.02em;-}--.brand img {- border-radius: 11px;-}--.status-chip {- display: inline-flex;- align-items: center;- gap: 8px;- padding: 7px 11px;- border: 1px solid var(--line);- border-radius: 999px;- color: var(--muted);- font-family: var(--mono);- font-size: 10px;- font-weight: 650;- letter-spacing: 0.08em;- text-transform: uppercase;-}--.status-dot {- width: 7px;- height: 7px;- border-radius: 50%;- background: var(--success);- box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);-}-.install-hero {flex: 1;- min-height: calc(100svh - 89px);- padding: clamp(54px, 8vh, 92px) 0 70px;+ /* Fill the first screen: the next section starts at the fold and the feature+ pills (last grid row) sit at the bottom of it. */+ min-height: 100svh;+ padding: clamp(40px, 7vh, 80px) 0 clamp(24px, 4vh, 40px);display: grid;grid-template-columns: minmax(280px, 0.72fr) minmax(540px, 1.45fr);+ grid-template-rows: 1fr auto;align-items: center;- gap: clamp(42px, 6vw, 78px);+ gap: clamp(24px, 4vh, 40px) clamp(42px, 6vw, 78px);}.install-copy {@@ -572,8 +529,9 @@ body::after {.install-hero {grid-template-columns: 1fr;+ grid-template-rows: auto auto 1fr;gap: 44px;- padding-top: 54px;+ padding-top: 40px;}.install-copy {@@ -594,12 +552,8 @@ body::after {width: min(100% - 24px, 560px);}- .install-header {- min-height: 76px;- }-.install-hero {- padding: 44px 0 46px;+ padding: 32px 0 28px;gap: 36px;}@@ -631,10 +585,6 @@ body::after {}@media (max-width: 420px) {- .status-chip {- display: none;- }-.open-panel-button {width: 100%;}diff --git a/src/chrome/src/ui/install.html b/src/chrome/src/ui/install.htmlindex ec910d624..2dc693565 100644--- a/src/chrome/src/ui/install.html+++ b/src/chrome/src/ui/install.html@@ -10,17 +10,6 @@</head><body><main class="install-page">- <header class="install-header">- <div class="brand">- <img src="../../icons/icon128.png" width="42" height="42" alt="">- <span>WebBrain</span>- </div>- <span class="status-chip">- <span class="status-dot" aria-hidden="true"></span>- <span data-i18n="install.ready">Ready</span>- </span>- </header>-<section class="install-hero" aria-labelledby="install-title"><div class="install-copy"><p id="browser-label" class="eyebrow" aria-live="polite" data-i18n="install.checking">Checking your browser…</p>@@ -68,6 +57,29 @@</figure></div></aside>++ <nav class="quick-features" aria-label="Also built in" data-i18n-aria-label="install.more.eyebrow">+ <a class="qf-chip qf-chip--apocalypse" href="#feature-apocalypse">+ <svg viewBox="0 0 24 24" aria-hidden="true"><g fill="currentColor" stroke="none"><path d="M10.5 9.402 7.5 4.206A9 9 0 0 1 16.5 4.206L13.5 9.402A3 3 0 0 0 10.5 9.402Z"/><path d="M10.5 9.402 7.5 4.206A9 9 0 0 1 16.5 4.206L13.5 9.402A3 3 0 0 0 10.5 9.402Z" transform="rotate(120 12 12)"/><path d="M10.5 9.402 7.5 4.206A9 9 0 0 1 16.5 4.206L13.5 9.402A3 3 0 0 0 10.5 9.402Z" transform="rotate(240 12 12)"/><circle cx="12" cy="12" r="1.7"/></g></svg>+ <span data-i18n="ap.title">Apocalypse Mode</span>+ </a>+ <a class="qf-chip qf-chip--record" href="#feature-record">+ <svg viewBox="0 0 24 24" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><circle cx="12" cy="12" r="3.4" fill="currentColor" stroke="none"/></svg>+ <span data-i18n="install.chip.record">Record screen</span>+ </a>+ <a class="qf-chip qf-chip--shot" href="#feature-shot">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8V5.5A1.5 1.5 0 0 1 5.5 4H8M16 4h2.5A1.5 1.5 0 0 1 20 5.5V8M20 16v2.5a1.5 1.5 0 0 1-1.5 1.5H16M8 20H5.5A1.5 1.5 0 0 1 4 18.5V16"/><rect x="8" y="8" width="8" height="8" rx="1.5"/></svg>+ <span data-i18n="install.chip.shot">Full-page screenshots</span>+ </a>+ <a class="qf-chip qf-chip--dl" href="#feature-dl">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19.5h14"/></svg>+ <span data-i18n="install.chip.dl">Bulk downloads</span>+ </a>+ <a class="qf-chip qf-chip--more" href="#more">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9.5l6 6 6-6"/></svg>+ <span data-i18n="install.scroll_hint">More features below</span>+ </a>+ </nav></section><section class="more" id="more" aria-labelledby="more-title">@@ -79,7 +91,7 @@<div class="bento"><!-- Apocalypse Mode -->- <article class="fcard fcard--apocalypse" data-reveal>+ <article class="fcard fcard--apocalypse" id="feature-apocalypse" data-reveal><div class="scene scene--ap" aria-hidden="true"><div class="mock ap-card"><div class="ap-head">@@ -133,7 +145,7 @@</article><!-- Full-page screenshots -->- <article class="fcard fcard--shot" data-reveal>+ <article class="fcard fcard--shot" id="feature-shot" data-reveal><div class="scene scene--shot" aria-hidden="true"><div class="mock shot-card"><span class="mock-label" data-i18n="sp.screenshot.full_page_alt">Full-page screenshot</span>@@ -168,7 +180,7 @@</article><!-- Bulk file downloads -->- <article class="fcard fcard--dl" data-reveal>+ <article class="fcard fcard--dl" id="feature-dl" data-reveal><div class="scene scene--dl" aria-hidden="true"><div class="mock dl-card"><span class="mock-label" data-i18n="install.mock.files">4 files · one task</span>@@ -207,7 +219,7 @@</article><!-- Video recording -->- <article class="fcard fcard--record" data-reveal>+ <article class="fcard fcard--record" id="feature-record" data-reveal><div class="scene scene--record" aria-hidden="true"><div class="mock rec-card"><div class="rec-top">@@ -243,7 +255,7 @@</article><!-- CAPTCHA assistance -->- <article class="fcard fcard--captcha" data-reveal>+ <article class="fcard fcard--captcha" id="feature-captcha" data-reveal><div class="scene scene--captcha" aria-hidden="true"><div class="mock cap-card"><span class="mock-label" data-i18n="st.tab.captcha">CAPTCHA</span>@@ -276,7 +288,7 @@</article><!-- SafeSocial -->- <article class="fcard fcard--safesocial" data-reveal>+ <article class="fcard fcard--safesocial" id="feature-safesocial" data-reveal><div class="scene scene--safe" aria-hidden="true"><div class="mock safe-card"><span class="mock-label">SafeSocial</span>@@ -318,13 +330,6 @@</section></main>- <a class="scroll-cue" href="#more" data-scroll-cue hidden>- <span data-i18n="install.scroll_hint">More features below</span>- <span class="scroll-cue-arrow" aria-hidden="true">- <svg viewBox="0 0 24 24"><path d="M6 9.5l6 6 6-6"/></svg>- </span>- </a>-<script type="module" src="install.js"></script></body></html>diff --git a/src/chrome/src/ui/install.js b/src/chrome/src/ui/install.jsindex 46660ca4a..a782be531 100644--- a/src/chrome/src/ui/install.js+++ b/src/chrome/src/ui/install.js@@ -2,7 +2,6 @@ import { applyDOMTranslations, t } from './i18n.js';import {initializeCardSpotlight,initializeScenePlayback,- initializeScrollCue,initializeShowcaseAutoplay,startRecordingClock,} from './install-motion.js';@@ -144,7 +143,6 @@ function initializeMotion() {try {initializeShowcaseAutoplay({ select: (feature) => selectInstallFeature(feature) });initializeScenePlayback();- initializeScrollCue();initializeCardSpotlight();startRecordingClock();} catch (error) {diff --git a/src/chrome/src/ui/locales/ar.js b/src/chrome/src/ui/locales/ar.jsindex d40d9be76..083860a6a 100644--- a/src/chrome/src/ui/locales/ar.js+++ b/src/chrome/src/ui/locales/ar.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'الشاشة','install.cta.title': 'جاهز متى كنت جاهزًا.','install.scroll_hint': 'المزيد من الميزات أدناه',+ 'install.chip.record': 'تسجيل الشاشة',+ 'install.chip.shot': 'لقطات شاشة كاملة للصفحة',+ 'install.chip.dl': 'تنزيلات جماعية',// --- Onboarding --------------------------------------------------------'ob.step': '{current} من {total}',diff --git a/src/chrome/src/ui/locales/bn.js b/src/chrome/src/ui/locales/bn.jsindex 2909edf9a..9f9f2172a 100644--- a/src/chrome/src/ui/locales/bn.js+++ b/src/chrome/src/ui/locales/bn.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'স্ক্রিন','install.cta.title': 'আপনি তৈরি হলেই শুরু করুন।','install.scroll_hint': 'নিচে আরও ফিচার',+ 'install.chip.record': 'স্ক্রিন রেকর্ড',+ 'install.chip.shot': 'ফুল-পেজ স্ক্রিনশট',+ 'install.chip.dl': 'বাল্ক ডাউনলোড',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "সংযোগ বিচ্ছিন্ন",diff --git a/src/chrome/src/ui/locales/de.js b/src/chrome/src/ui/locales/de.jsindex 0f67fccfc..48d11e381 100644--- a/src/chrome/src/ui/locales/de.js+++ b/src/chrome/src/ui/locales/de.js@@ -111,6 +111,9 @@ export default {'install.mock.screen': 'Bildschirm','install.cta.title': 'Bereit, wenn Sie es sind.','install.scroll_hint': 'Weitere Funktionen unten',+ 'install.chip.record': 'Bildschirmaufnahme',+ 'install.chip.shot': 'Ganzseiten-Screenshots',+ 'install.chip.dl': 'Massen-Downloads','sp.status.disconnected': 'Getrennt','sp.status.connected': 'Verbunden ({model})','sp.status.error': 'Fehler: {msg}',diff --git a/src/chrome/src/ui/locales/en.js b/src/chrome/src/ui/locales/en.jsindex 3a3995b41..2bf64efbb 100644--- a/src/chrome/src/ui/locales/en.js+++ b/src/chrome/src/ui/locales/en.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'Screen','install.cta.title': 'Ready when you are.','install.scroll_hint': 'More features below',+ 'install.chip.record': 'Record screen',+ 'install.chip.shot': 'Full-page screenshots',+ 'install.chip.dl': 'Bulk downloads',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': 'Disconnected',diff --git a/src/chrome/src/ui/locales/es.js b/src/chrome/src/ui/locales/es.jsindex 53fb1b54e..b7efbb23b 100644--- a/src/chrome/src/ui/locales/es.js+++ b/src/chrome/src/ui/locales/es.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Pantalla','install.cta.title': 'Cuando quieras.','install.scroll_hint': 'Más funciones abajo',+ 'install.chip.record': 'Grabar pantalla',+ 'install.chip.shot': 'Capturas de página completa',+ 'install.chip.dl': 'Descargas masivas',// --- Onboarding --------------------------------------------------------'ob.step': '{current} de {total}',diff --git a/src/chrome/src/ui/locales/fa.js b/src/chrome/src/ui/locales/fa.jsindex 1b62b9bbc..70dfa29a1 100644--- a/src/chrome/src/ui/locales/fa.js+++ b/src/chrome/src/ui/locales/fa.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'صفحهنمایش','install.cta.title': 'هر وقت آماده بودید.','install.scroll_hint': 'امکانات بیشتر در پایین',+ 'install.chip.record': 'ضبط صفحه',+ 'install.chip.shot': 'اسکرینشات تمامصفحه',+ 'install.chip.dl': 'دانلود گروهی',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "قطع شد",diff --git a/src/chrome/src/ui/locales/fr.js b/src/chrome/src/ui/locales/fr.jsindex 991d5b6df..0cf8c496f 100644--- a/src/chrome/src/ui/locales/fr.js+++ b/src/chrome/src/ui/locales/fr.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Écran','install.cta.title': 'Prêt quand vous l’êtes.','install.scroll_hint': 'Plus de fonctionnalités ci-dessous',+ 'install.chip.record': 'Enregistrer l’écran',+ 'install.chip.shot': 'Captures de page entière',+ 'install.chip.dl': 'Téléchargements groupés',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sur {total}',diff --git a/src/chrome/src/ui/locales/he.js b/src/chrome/src/ui/locales/he.jsindex 6561fc19c..fb33462a9 100644--- a/src/chrome/src/ui/locales/he.js+++ b/src/chrome/src/ui/locales/he.js@@ -125,6 +125,9 @@ export default {'install.mock.screen': 'מסך','install.cta.title': 'מוכנים כשתהיו מוכנים.','install.scroll_hint': 'עוד תכונות למטה',+ 'install.chip.record': 'הקלטת מסך',+ 'install.chip.shot': 'צילומי מסך של דף מלא',+ 'install.chip.dl': 'הורדות בכמות גדולה',"sp.status.disconnected": "לא מחובר","sp.status.connected": "מחובר ({model})","sp.status.error": "שגיאה: {msg}",diff --git a/src/chrome/src/ui/locales/hi.js b/src/chrome/src/ui/locales/hi.jsindex f87d55599..6920b786b 100644--- a/src/chrome/src/ui/locales/hi.js+++ b/src/chrome/src/ui/locales/hi.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'स्क्रीन','install.cta.title': 'जब आप तैयार हों।','install.scroll_hint': 'नीचे और सुविधाएँ',+ 'install.chip.record': 'स्क्रीन रिकॉर्ड',+ 'install.chip.shot': 'फ़ुल-पेज स्क्रीनशॉट',+ 'install.chip.dl': 'बल्क डाउनलोड',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "विच्छेदित",diff --git a/src/chrome/src/ui/locales/id.js b/src/chrome/src/ui/locales/id.jsindex 932dcc113..77bc5af65 100644--- a/src/chrome/src/ui/locales/id.js+++ b/src/chrome/src/ui/locales/id.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Layar','install.cta.title': 'Siap saat Anda siap.','install.scroll_hint': 'Fitur lainnya di bawah',+ 'install.chip.record': 'Rekam layar',+ 'install.chip.shot': 'Screenshot halaman penuh',+ 'install.chip.dl': 'Unduhan massal',// --- Onboarding --------------------------------------------------------'ob.step': '{current} dari {total}',diff --git a/src/chrome/src/ui/locales/ja.js b/src/chrome/src/ui/locales/ja.jsindex 7cd1bc1ae..28da20343 100644--- a/src/chrome/src/ui/locales/ja.js+++ b/src/chrome/src/ui/locales/ja.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': '画面','install.cta.title': '準備ができたら、どうぞ。','install.scroll_hint': '下にさらに機能があります',+ 'install.chip.record': '画面録画',+ 'install.chip.shot': 'ページ全体のスクリーンショット',+ 'install.chip.dl': '一括ダウンロード',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/chrome/src/ui/locales/ko.js b/src/chrome/src/ui/locales/ko.jsindex 8672a0e4c..e3071036b 100644--- a/src/chrome/src/ui/locales/ko.js+++ b/src/chrome/src/ui/locales/ko.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': '화면','install.cta.title': '준비되면 시작하세요.','install.scroll_hint': '아래에 더 많은 기능',+ 'install.chip.record': '화면 녹화',+ 'install.chip.shot': '전체 페이지 스크린샷',+ 'install.chip.dl': '일괄 다운로드',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/chrome/src/ui/locales/ms.js b/src/chrome/src/ui/locales/ms.jsindex e3fab22f9..63a0ed335 100644--- a/src/chrome/src/ui/locales/ms.js+++ b/src/chrome/src/ui/locales/ms.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Skrin','install.cta.title': 'Sedia apabila anda sedia.','install.scroll_hint': 'Lebih banyak ciri di bawah',+ 'install.chip.record': 'Rakam skrin',+ 'install.chip.shot': 'Tangkapan skrin halaman penuh',+ 'install.chip.dl': 'Muat turun pukal',// --- Onboarding --------------------------------------------------------'ob.step': '{current} daripada {total}',diff --git a/src/chrome/src/ui/locales/nl.js b/src/chrome/src/ui/locales/nl.jsindex 9e1442a57..b963d4133 100644--- a/src/chrome/src/ui/locales/nl.js+++ b/src/chrome/src/ui/locales/nl.js@@ -111,6 +111,9 @@ export default {'install.mock.screen': 'Scherm','install.cta.title': 'Klaar wanneer jij dat bent.','install.scroll_hint': 'Meer functies hieronder',+ 'install.chip.record': 'Scherm opnemen',+ 'install.chip.shot': 'Screenshots van hele pagina’s',+ 'install.chip.dl': 'Bulkdownloads','sp.status.disconnected': 'Niet verbonden','sp.status.connected': 'Verbonden ({model})','sp.status.error': 'Fout: {msg}',diff --git a/src/chrome/src/ui/locales/pl.js b/src/chrome/src/ui/locales/pl.jsindex 63477cd3b..2b0b4b29d 100644--- a/src/chrome/src/ui/locales/pl.js+++ b/src/chrome/src/ui/locales/pl.js@@ -111,6 +111,9 @@ export default {'install.mock.screen': 'Ekran','install.cta.title': 'Gotowe, kiedy ty.','install.scroll_hint': 'Więcej funkcji poniżej',+ 'install.chip.record': 'Nagrywanie ekranu',+ 'install.chip.shot': 'Zrzuty całej strony',+ 'install.chip.dl': 'Pobieranie zbiorcze','sp.status.disconnected': 'Rozłączono','sp.status.connected': 'Połączono ({model})','sp.status.error': 'Błąd: {msg}',diff --git a/src/chrome/src/ui/locales/pt.js b/src/chrome/src/ui/locales/pt.jsindex e5983f839..7d7d4dc64 100644--- a/src/chrome/src/ui/locales/pt.js+++ b/src/chrome/src/ui/locales/pt.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'Tela','install.cta.title': 'Pronto quando você estiver.','install.scroll_hint': 'Mais recursos abaixo',+ 'install.chip.record': 'Gravar a tela',+ 'install.chip.shot': 'Capturas de página inteira',+ 'install.chip.dl': 'Downloads em massa',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Desconectado",diff --git a/src/chrome/src/ui/locales/ru.js b/src/chrome/src/ui/locales/ru.jsindex 61b225d48..ef13f7499 100644--- a/src/chrome/src/ui/locales/ru.js+++ b/src/chrome/src/ui/locales/ru.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Экран','install.cta.title': 'Начнём, когда будете готовы.','install.scroll_hint': 'Больше возможностей ниже',+ 'install.chip.record': 'Запись экрана',+ 'install.chip.shot': 'Скриншоты всей страницы',+ 'install.chip.dl': 'Массовая загрузка',// --- Onboarding --------------------------------------------------------'ob.step': '{current} из {total}',diff --git a/src/chrome/src/ui/locales/th.js b/src/chrome/src/ui/locales/th.jsindex d7c7773c8..a24bb574e 100644--- a/src/chrome/src/ui/locales/th.js+++ b/src/chrome/src/ui/locales/th.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'หน้าจอ','install.cta.title': 'พร้อมเมื่อคุณพร้อม','install.scroll_hint': 'ฟีเจอร์เพิ่มเติมด้านล่าง',+ 'install.chip.record': 'บันทึกหน้าจอ',+ 'install.chip.shot': 'แคปหน้าเว็บทั้งหน้า',+ 'install.chip.dl': 'ดาวน์โหลดจำนวนมาก',// --- Onboarding --------------------------------------------------------'ob.step': '{current} จาก {total}',diff --git a/src/chrome/src/ui/locales/tl.js b/src/chrome/src/ui/locales/tl.jsindex 93c8ca6ff..dc0591513 100644--- a/src/chrome/src/ui/locales/tl.js+++ b/src/chrome/src/ui/locales/tl.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Screen','install.cta.title': 'Handa kapag handa ka na.','install.scroll_hint': 'Mas maraming feature sa ibaba',+ 'install.chip.record': 'I-record ang screen',+ 'install.chip.shot': 'Full-page na screenshot',+ 'install.chip.dl': 'Maramihang pag-download',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sa {total}',diff --git a/src/chrome/src/ui/locales/tr.js b/src/chrome/src/ui/locales/tr.jsindex 8ca0c360c..0e7977f1e 100644--- a/src/chrome/src/ui/locales/tr.js+++ b/src/chrome/src/ui/locales/tr.js@@ -201,6 +201,9 @@ export default {'install.mock.screen': 'Ekran','install.cta.title': 'Hazır olduğunda başla.','install.scroll_hint': 'Aşağıda daha fazla özellik',+ 'install.chip.record': 'Ekran kaydı',+ 'install.chip.shot': 'Tam sayfa ekran görüntüleri',+ 'install.chip.dl': 'Toplu indirme',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/chrome/src/ui/locales/uk.js b/src/chrome/src/ui/locales/uk.jsindex e49a02c99..8b11f7846 100644--- a/src/chrome/src/ui/locales/uk.js+++ b/src/chrome/src/ui/locales/uk.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Екран','install.cta.title': 'Починаймо, коли будете готові.','install.scroll_hint': 'Більше можливостей нижче',+ 'install.chip.record': 'Запис екрана',+ 'install.chip.shot': 'Знімки всієї сторінки',+ 'install.chip.dl': 'Масове завантаження',// --- Onboarding --------------------------------------------------------'ob.step': '{current} з {total}',diff --git a/src/chrome/src/ui/locales/vi.js b/src/chrome/src/ui/locales/vi.jsindex 60a7a0fa5..68541d179 100644--- a/src/chrome/src/ui/locales/vi.js+++ b/src/chrome/src/ui/locales/vi.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'Màn hình','install.cta.title': 'Sẵn sàng khi bạn sẵn sàng.','install.scroll_hint': 'Thêm tính năng bên dưới',+ 'install.chip.record': 'Quay màn hình',+ 'install.chip.shot': 'Chụp toàn trang',+ 'install.chip.dl': 'Tải xuống hàng loạt',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Đã ngắt kết nối",diff --git a/src/chrome/src/ui/locales/zh.js b/src/chrome/src/ui/locales/zh.jsindex ff8c70693..d5293e9c5 100644--- a/src/chrome/src/ui/locales/zh.js+++ b/src/chrome/src/ui/locales/zh.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': '屏幕','install.cta.title': '准备好就开始。','install.scroll_hint': '下方还有更多功能',+ 'install.chip.record': '录制屏幕',+ 'install.chip.shot': '整页截图',+ 'install.chip.dl': '批量下载',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/install-motion.js b/src/firefox/src/ui/install-motion.jsindex ef05e296b..7e66fef0a 100644--- a/src/firefox/src/ui/install-motion.js+++ b/src/firefox/src/ui/install-motion.js@@ -139,60 +139,3 @@ export function initializeShowcaseAutoplay({}return stop;}--/**- * The hero looks complete in a laptop-sized window, so nothing says the page- * continues. A floating pill points down until the visitor finds the rest on- * their own: it never appears if the next section is already in view, and it- * goes for good once they scroll or click it. Returns a function that retires- * it early.- */-export function initializeScrollCue({- documentLike = globalThis.document,- windowLike = globalThis.window,- delayMs = 1400,- scrolledPx = 120,-} = {}) {- const cue = documentLike?.querySelector?.('[data-scroll-cue]');- const target = documentLike?.querySelector?.('.more-head');- const Observer = windowLike?.IntersectionObserver;- // Without the observer there is no way to tell when the cue stops being useful,- // so leave it hidden rather than let it sit over the content.- if (!cue || !target || typeof Observer !== 'function') return () => {};-- let finished = false;- let revealTimer = null;- const nextFrame = windowLike.requestAnimationFrame?.bind(windowLike) || ((fn) => fn());-- const observer = new Observer((entries) => {- if (entries.some((entry) => entry.isIntersecting)) dismiss();- }, { rootMargin: '0px 0px -12% 0px' });-- function dismiss() {- if (finished) return;- finished = true;- windowLike.clearTimeout?.(revealTimer);- observer.disconnect();- windowLike.removeEventListener?.('scroll', onScroll);- cue.removeEventListener?.('click', dismiss);- cue.classList.remove('is-visible');- // Leave the layout and the tab order once the fade has finished.- windowLike.setTimeout(() => { cue.hidden = true; }, 400);- }- function onScroll() {- if ((windowLike.scrollY || 0) > scrolledPx) dismiss();- }-- windowLike.addEventListener?.('scroll', onScroll, { passive: true });- cue.addEventListener('click', dismiss);- observer.observe(target);- revealTimer = windowLike.setTimeout(() => {- if (finished) return;- // A reload can restore a scroll position that is already past the hero.- if ((windowLike.scrollY || 0) > scrolledPx) { dismiss(); return; }- cue.hidden = false;- // Next frame, so the fade-in transition actually runs.- nextFrame(() => { if (!finished) cue.classList.add('is-visible'); });- }, delayMs);- return dismiss;-}diff --git a/src/firefox/src/ui/install-scenes.css b/src/firefox/src/ui/install-scenes.cssindex d16020511..d09d4030e 100644--- a/src/firefox/src/ui/install-scenes.css+++ b/src/firefox/src/ui/install-scenes.css@@ -1407,11 +1407,17 @@translate: 0 0;}-/* ───────────────────────── scroll cue ───────────────────────── */+/* A pill that jumps to a card that has not been revealed yet measures it while+ it is still 28px low, so leave room for the slide and it settles at the top. */+.fcard {+ scroll-margin-top: 28px;+}++/* ───────────────────────── quick features ───────────────────────── */-/* The hero looks complete on a laptop-sized window, so a floating pill says the- page continues. install-motion.js shows it after a beat and retires it for- good once the visitor scrolls or clicks. */+/* Pills at the bottom of the first screen: they say what is further down and+ jump to it. On wide windows the row sticks to the bottom edge for as long as+ the hero is on screen, so it stays visible however short the window is. */html {scroll-padding-top: 16px;@@ -1423,85 +1429,86 @@ html {}}-.scroll-cue {- position: fixed;- z-index: 30;- bottom: max(20px, env(safe-area-inset-bottom));- left: 50%;+.quick-features {+ grid-column: 1 / -1;+ align-self: end;+ display: flex;+ flex-wrap: wrap;+ justify-content: center;+ gap: 10px;+ margin: 0;+}++.qf-chip {+ --fc: var(--accent);display: inline-flex;align-items: center;- gap: 10px;- padding: 8px 9px 8px 20px;- border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));+ gap: 9px;+ padding: 10px 18px 10px 14px;+ border: 1px solid color-mix(in srgb, var(--fc) 32%, var(--line));border-radius: 999px;- background: color-mix(in srgb, var(--surface-strong) 84%, transparent);- -webkit-backdrop-filter: blur(16px) saturate(1.4);- backdrop-filter: blur(16px) saturate(1.4);- box-shadow:- 0 12px 36px color-mix(in srgb, var(--accent) 32%, transparent),- 0 2px 8px color-mix(in srgb, #0a0d1f 24%, transparent);+ background: color-mix(in srgb, var(--fc) 10%, color-mix(in srgb, var(--surface-strong) 86%, transparent));+ -webkit-backdrop-filter: blur(14px) saturate(1.3);+ backdrop-filter: blur(14px) saturate(1.3);color: var(--text);font-size: 14px;font-weight: 650;letter-spacing: -0.005em;text-decoration: none;white-space: nowrap;- opacity: 0;- translate: -50% 14px;- pointer-events: none;transition:- opacity 360ms ease,- translate 360ms cubic-bezier(0.2, 0.8, 0.2, 1),+ translate 180ms ease,border-color 160ms ease,background-color 160ms ease;+ animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) 560ms backwards;}-.scroll-cue[hidden] {- display: none;-}+.qf-chip:nth-child(2) { animation-delay: 630ms; }+.qf-chip:nth-child(3) { animation-delay: 700ms; }+.qf-chip:nth-child(4) { animation-delay: 770ms; }+.qf-chip:nth-child(5) { animation-delay: 840ms; }-.scroll-cue.is-visible {- opacity: 1;- translate: -50% 0;- pointer-events: auto;+.qf-chip svg {+ flex: none;+ width: 17px;+ height: 17px;+ fill: none;+ stroke: var(--fc);+ stroke-width: 2;+ stroke-linecap: round;+ stroke-linejoin: round;}-.scroll-cue:hover {- border-color: var(--accent);- background: color-mix(in srgb, var(--surface-strong) 94%, transparent);+.qf-chip--apocalypse { --fc: #f0a72f; }+.qf-chip--record { --fc: #e5484d; }+.qf-chip--shot { --fc: #5b8def; }+.qf-chip--dl { --fc: #e0457b; }++.qf-chip:hover {+ translate: 0 -2px;+ border-color: var(--fc);+ background: color-mix(in srgb, var(--fc) 18%, color-mix(in srgb, var(--surface-strong) 90%, transparent));}-.scroll-cue:focus-visible {- outline: 2px solid var(--accent);+.qf-chip:focus-visible {+ outline: 2px solid var(--fc);outline-offset: 3px;}-.scroll-cue-arrow {- display: inline-grid;- flex: none;- place-items: center;- width: 28px;- height: 28px;- border-radius: 50%;- background: color-mix(in srgb, var(--accent) 24%, transparent);- color: var(--accent);+/* The last pill is the generic "keep scrolling" one, so it gets the accent and+ a nudging arrow. */+.qf-chip--more {+ border-color: color-mix(in srgb, var(--accent) 55%, var(--line));+ background: color-mix(in srgb, var(--accent) 20%, color-mix(in srgb, var(--surface-strong) 86%, transparent));+ box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 26%, transparent);}-.scroll-cue-arrow svg {- width: 17px;- height: 17px;- fill: none;- stroke: currentColor;+.qf-chip--more svg {stroke-width: 2.4;- stroke-linecap: round;- stroke-linejoin: round;+ animation: qf-bob 1.6s ease-in-out 1.4s infinite;}-.scroll-cue.is-visible .scroll-cue-arrow svg {- animation: cue-bob 1.6s ease-in-out 600ms infinite;-}--@keyframes cue-bob {+@keyframes qf-bob {0%,100% {translate: 0 -2px;@@ -1512,12 +1519,32 @@ html {}}+@media (min-width: 981px) {+ .quick-features {+ position: sticky;+ bottom: 20px;+ z-index: 20;+ }+}++@media (max-width: 620px) {+ .quick-features {+ gap: 8px;+ }++ .qf-chip {+ padding: 9px 15px 9px 12px;+ font-size: 13px;+ }+}+@media (prefers-reduced-motion: reduce) {- .scroll-cue {+ .qf-chip {+ animation: none;transition: none;}- .scroll-cue.is-visible .scroll-cue-arrow svg {+ .qf-chip--more svg {animation: none;}}diff --git a/src/firefox/src/ui/install.css b/src/firefox/src/ui/install.cssindex 7bdcdd6ee..70795eb34 100644--- a/src/firefox/src/ui/install.css+++ b/src/firefox/src/ui/install.css@@ -90,60 +90,17 @@ kbd {flex-direction: column;}-.install-header {- min-height: 88px;- display: flex;- align-items: center;- justify-content: space-between;- gap: 20px;- border-bottom: 1px solid var(--line);-}--.brand {- display: flex;- align-items: center;- gap: 12px;- font-family: var(--display);- font-size: 16px;- font-weight: 760;- letter-spacing: -0.02em;-}--.brand img {- border-radius: 11px;-}--.status-chip {- display: inline-flex;- align-items: center;- gap: 8px;- padding: 7px 11px;- border: 1px solid var(--line);- border-radius: 999px;- color: var(--muted);- font-family: var(--mono);- font-size: 10px;- font-weight: 650;- letter-spacing: 0.08em;- text-transform: uppercase;-}--.status-dot {- width: 7px;- height: 7px;- border-radius: 50%;- background: var(--success);- box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);-}-.install-hero {flex: 1;- min-height: calc(100svh - 89px);- padding: clamp(54px, 8vh, 92px) 0 70px;+ /* Fill the first screen: the next section starts at the fold and the feature+ pills (last grid row) sit at the bottom of it. */+ min-height: 100svh;+ padding: clamp(40px, 7vh, 80px) 0 clamp(24px, 4vh, 40px);display: grid;grid-template-columns: minmax(280px, 0.72fr) minmax(540px, 1.45fr);+ grid-template-rows: 1fr auto;align-items: center;- gap: clamp(42px, 6vw, 78px);+ gap: clamp(24px, 4vh, 40px) clamp(42px, 6vw, 78px);}.install-copy {@@ -572,8 +529,9 @@ body::after {.install-hero {grid-template-columns: 1fr;+ grid-template-rows: auto auto 1fr;gap: 44px;- padding-top: 54px;+ padding-top: 40px;}.install-copy {@@ -594,12 +552,8 @@ body::after {width: min(100% - 24px, 560px);}- .install-header {- min-height: 76px;- }-.install-hero {- padding: 44px 0 46px;+ padding: 32px 0 28px;gap: 36px;}@@ -631,10 +585,6 @@ body::after {}@media (max-width: 420px) {- .status-chip {- display: none;- }-.open-panel-button {width: 100%;}diff --git a/src/firefox/src/ui/install.html b/src/firefox/src/ui/install.htmlindex ac3f589ef..c63231dce 100644--- a/src/firefox/src/ui/install.html+++ b/src/firefox/src/ui/install.html@@ -10,17 +10,6 @@</head><body><main class="install-page">- <header class="install-header">- <div class="brand">- <img src="../../icons/icon128.png" width="42" height="42" alt="">- <span>WebBrain</span>- </div>- <span class="status-chip">- <span class="status-dot" aria-hidden="true"></span>- <span data-i18n="install.ready">Ready</span>- </span>- </header>-<section class="install-hero" aria-labelledby="install-title"><div class="install-copy"><p id="browser-label" class="eyebrow" aria-live="polite" data-i18n="install.checking">Checking your browser…</p>@@ -67,6 +56,25 @@</figure></div></aside>++ <nav class="quick-features" aria-label="Also built in" data-i18n-aria-label="install.more.eyebrow">+ <a class="qf-chip qf-chip--apocalypse" href="#feature-apocalypse">+ <svg viewBox="0 0 24 24" aria-hidden="true"><g fill="currentColor" stroke="none"><path d="M10.5 9.402 7.5 4.206A9 9 0 0 1 16.5 4.206L13.5 9.402A3 3 0 0 0 10.5 9.402Z"/><path d="M10.5 9.402 7.5 4.206A9 9 0 0 1 16.5 4.206L13.5 9.402A3 3 0 0 0 10.5 9.402Z" transform="rotate(120 12 12)"/><path d="M10.5 9.402 7.5 4.206A9 9 0 0 1 16.5 4.206L13.5 9.402A3 3 0 0 0 10.5 9.402Z" transform="rotate(240 12 12)"/><circle cx="12" cy="12" r="1.7"/></g></svg>+ <span data-i18n="ap.title">Apocalypse Mode</span>+ </a>+ <a class="qf-chip qf-chip--shot" href="#feature-shot">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 8V5.5A1.5 1.5 0 0 1 5.5 4H8M16 4h2.5A1.5 1.5 0 0 1 20 5.5V8M20 16v2.5a1.5 1.5 0 0 1-1.5 1.5H16M8 20H5.5A1.5 1.5 0 0 1 4 18.5V16"/><rect x="8" y="8" width="8" height="8" rx="1.5"/></svg>+ <span data-i18n="install.chip.shot">Full-page screenshots</span>+ </a>+ <a class="qf-chip qf-chip--dl" href="#feature-dl">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 4v11M7.5 10.5 12 15l4.5-4.5M5 19.5h14"/></svg>+ <span data-i18n="install.chip.dl">Bulk downloads</span>+ </a>+ <a class="qf-chip qf-chip--more" href="#more">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 9.5l6 6 6-6"/></svg>+ <span data-i18n="install.scroll_hint">More features below</span>+ </a>+ </nav></section><section class="more" id="more" aria-labelledby="more-title">@@ -78,7 +86,7 @@<div class="bento bento--five"><!-- Apocalypse Mode -->- <article class="fcard fcard--apocalypse" data-reveal>+ <article class="fcard fcard--apocalypse" id="feature-apocalypse" data-reveal><div class="scene scene--ap" aria-hidden="true"><div class="mock ap-card"><div class="ap-head">@@ -132,7 +140,7 @@</article><!-- Full-page screenshots -->- <article class="fcard fcard--shot" data-reveal>+ <article class="fcard fcard--shot" id="feature-shot" data-reveal><div class="scene scene--shot" aria-hidden="true"><div class="mock shot-card"><span class="mock-label" data-i18n="sp.screenshot.full_page_alt">Full-page screenshot</span>@@ -167,7 +175,7 @@</article><!-- Bulk file downloads -->- <article class="fcard fcard--dl" data-reveal>+ <article class="fcard fcard--dl" id="feature-dl" data-reveal><div class="scene scene--dl" aria-hidden="true"><div class="mock dl-card"><span class="mock-label" data-i18n="install.mock.files">4 files · one task</span>@@ -206,7 +214,7 @@</article><!-- CAPTCHA assistance -->- <article class="fcard fcard--captcha" data-reveal>+ <article class="fcard fcard--captcha" id="feature-captcha" data-reveal><div class="scene scene--captcha" aria-hidden="true"><div class="mock cap-card"><span class="mock-label" data-i18n="st.tab.captcha">CAPTCHA</span>@@ -239,7 +247,7 @@</article><!-- SafeSocial -->- <article class="fcard fcard--safesocial" data-reveal>+ <article class="fcard fcard--safesocial" id="feature-safesocial" data-reveal><div class="scene scene--safe" aria-hidden="true"><div class="mock safe-card"><span class="mock-label">SafeSocial</span>@@ -281,13 +289,6 @@</section></main>- <a class="scroll-cue" href="#more" data-scroll-cue hidden>- <span data-i18n="install.scroll_hint">More features below</span>- <span class="scroll-cue-arrow" aria-hidden="true">- <svg viewBox="0 0 24 24"><path d="M6 9.5l6 6 6-6"/></svg>- </span>- </a>-<script type="module" src="install.js"></script></body></html>diff --git a/src/firefox/src/ui/install.js b/src/firefox/src/ui/install.jsindex 46660ca4a..a782be531 100644--- a/src/firefox/src/ui/install.js+++ b/src/firefox/src/ui/install.js@@ -2,7 +2,6 @@ import { applyDOMTranslations, t } from './i18n.js';import {initializeCardSpotlight,initializeScenePlayback,- initializeScrollCue,initializeShowcaseAutoplay,startRecordingClock,} from './install-motion.js';@@ -144,7 +143,6 @@ function initializeMotion() {try {initializeShowcaseAutoplay({ select: (feature) => selectInstallFeature(feature) });initializeScenePlayback();- initializeScrollCue();initializeCardSpotlight();startRecordingClock();} catch (error) {diff --git a/src/firefox/src/ui/locales/ar.js b/src/firefox/src/ui/locales/ar.jsindex 9cda8e595..2016f8265 100644--- a/src/firefox/src/ui/locales/ar.js+++ b/src/firefox/src/ui/locales/ar.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'الشاشة','install.cta.title': 'جاهز متى كنت جاهزًا.','install.scroll_hint': 'المزيد من الميزات أدناه',+ 'install.chip.record': 'تسجيل الشاشة',+ 'install.chip.shot': 'لقطات شاشة كاملة للصفحة',+ 'install.chip.dl': 'تنزيلات جماعية',// --- Onboarding --------------------------------------------------------'ob.step': '{current} من {total}',diff --git a/src/firefox/src/ui/locales/bn.js b/src/firefox/src/ui/locales/bn.jsindex f0cce196e..ab1f9b8a9 100644--- a/src/firefox/src/ui/locales/bn.js+++ b/src/firefox/src/ui/locales/bn.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'স্ক্রিন','install.cta.title': 'আপনি তৈরি হলেই শুরু করুন।','install.scroll_hint': 'নিচে আরও ফিচার',+ 'install.chip.record': 'স্ক্রিন রেকর্ড',+ 'install.chip.shot': 'ফুল-পেজ স্ক্রিনশট',+ 'install.chip.dl': 'বাল্ক ডাউনলোড',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "সংযোগ বিচ্ছিন্ন",diff --git a/src/firefox/src/ui/locales/de.js b/src/firefox/src/ui/locales/de.jsindex e98adca6a..6fa8bbf0d 100644--- a/src/firefox/src/ui/locales/de.js+++ b/src/firefox/src/ui/locales/de.js@@ -111,6 +111,9 @@ export default {'install.mock.screen': 'Bildschirm','install.cta.title': 'Bereit, wenn Sie es sind.','install.scroll_hint': 'Weitere Funktionen unten',+ 'install.chip.record': 'Bildschirmaufnahme',+ 'install.chip.shot': 'Ganzseiten-Screenshots',+ 'install.chip.dl': 'Massen-Downloads','sp.status.disconnected': 'Getrennt','sp.status.connected': 'Verbunden ({model})','sp.status.error': 'Fehler: {msg}',diff --git a/src/firefox/src/ui/locales/en.js b/src/firefox/src/ui/locales/en.jsindex f06190f9c..6fef36eca 100644--- a/src/firefox/src/ui/locales/en.js+++ b/src/firefox/src/ui/locales/en.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'Screen','install.cta.title': 'Ready when you are.','install.scroll_hint': 'More features below',+ 'install.chip.record': 'Record screen',+ 'install.chip.shot': 'Full-page screenshots',+ 'install.chip.dl': 'Bulk downloads',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': 'Disconnected',diff --git a/src/firefox/src/ui/locales/es.js b/src/firefox/src/ui/locales/es.jsindex 1a4b71883..bb2c1980f 100644--- a/src/firefox/src/ui/locales/es.js+++ b/src/firefox/src/ui/locales/es.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Pantalla','install.cta.title': 'Cuando quieras.','install.scroll_hint': 'Más funciones abajo',+ 'install.chip.record': 'Grabar pantalla',+ 'install.chip.shot': 'Capturas de página completa',+ 'install.chip.dl': 'Descargas masivas',// --- Onboarding --------------------------------------------------------'ob.step': '{current} de {total}',diff --git a/src/firefox/src/ui/locales/fa.js b/src/firefox/src/ui/locales/fa.jsindex 57ef4b3c4..0b0625822 100644--- a/src/firefox/src/ui/locales/fa.js+++ b/src/firefox/src/ui/locales/fa.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'صفحهنمایش','install.cta.title': 'هر وقت آماده بودید.','install.scroll_hint': 'امکانات بیشتر در پایین',+ 'install.chip.record': 'ضبط صفحه',+ 'install.chip.shot': 'اسکرینشات تمامصفحه',+ 'install.chip.dl': 'دانلود گروهی',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "قطع شد",diff --git a/src/firefox/src/ui/locales/fr.js b/src/firefox/src/ui/locales/fr.jsindex 94d74517c..f3abc90fa 100644--- a/src/firefox/src/ui/locales/fr.js+++ b/src/firefox/src/ui/locales/fr.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Écran','install.cta.title': 'Prêt quand vous l’êtes.','install.scroll_hint': 'Plus de fonctionnalités ci-dessous',+ 'install.chip.record': 'Enregistrer l’écran',+ 'install.chip.shot': 'Captures de page entière',+ 'install.chip.dl': 'Téléchargements groupés',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sur {total}',diff --git a/src/firefox/src/ui/locales/he.js b/src/firefox/src/ui/locales/he.jsindex d8ee784c4..73cc2af64 100644--- a/src/firefox/src/ui/locales/he.js+++ b/src/firefox/src/ui/locales/he.js@@ -125,6 +125,9 @@ export default {'install.mock.screen': 'מסך','install.cta.title': 'מוכנים כשתהיו מוכנים.','install.scroll_hint': 'עוד תכונות למטה',+ 'install.chip.record': 'הקלטת מסך',+ 'install.chip.shot': 'צילומי מסך של דף מלא',+ 'install.chip.dl': 'הורדות בכמות גדולה',"sp.status.disconnected": "לא מחובר","sp.status.connected": "מחובר ({model})","sp.status.error": "שגיאה: {msg}",diff --git a/src/firefox/src/ui/locales/hi.js b/src/firefox/src/ui/locales/hi.jsindex a15e717e6..56a3ec171 100644--- a/src/firefox/src/ui/locales/hi.js+++ b/src/firefox/src/ui/locales/hi.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'स्क्रीन','install.cta.title': 'जब आप तैयार हों।','install.scroll_hint': 'नीचे और सुविधाएँ',+ 'install.chip.record': 'स्क्रीन रिकॉर्ड',+ 'install.chip.shot': 'फ़ुल-पेज स्क्रीनशॉट',+ 'install.chip.dl': 'बल्क डाउनलोड',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "विच्छेदित",diff --git a/src/firefox/src/ui/locales/id.js b/src/firefox/src/ui/locales/id.jsindex 03eeaf6d0..a508bc636 100644--- a/src/firefox/src/ui/locales/id.js+++ b/src/firefox/src/ui/locales/id.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Layar','install.cta.title': 'Siap saat Anda siap.','install.scroll_hint': 'Fitur lainnya di bawah',+ 'install.chip.record': 'Rekam layar',+ 'install.chip.shot': 'Screenshot halaman penuh',+ 'install.chip.dl': 'Unduhan massal',// --- Onboarding --------------------------------------------------------'ob.step': '{current} dari {total}',diff --git a/src/firefox/src/ui/locales/ja.js b/src/firefox/src/ui/locales/ja.jsindex 43e12b42d..ff9912b4d 100644--- a/src/firefox/src/ui/locales/ja.js+++ b/src/firefox/src/ui/locales/ja.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': '画面','install.cta.title': '準備ができたら、どうぞ。','install.scroll_hint': '下にさらに機能があります',+ 'install.chip.record': '画面録画',+ 'install.chip.shot': 'ページ全体のスクリーンショット',+ 'install.chip.dl': '一括ダウンロード',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/locales/ko.js b/src/firefox/src/ui/locales/ko.jsindex 117e08399..50b4977d7 100644--- a/src/firefox/src/ui/locales/ko.js+++ b/src/firefox/src/ui/locales/ko.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': '화면','install.cta.title': '준비되면 시작하세요.','install.scroll_hint': '아래에 더 많은 기능',+ 'install.chip.record': '화면 녹화',+ 'install.chip.shot': '전체 페이지 스크린샷',+ 'install.chip.dl': '일괄 다운로드',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/locales/ms.js b/src/firefox/src/ui/locales/ms.jsindex 6db658b49..38370fc6a 100644--- a/src/firefox/src/ui/locales/ms.js+++ b/src/firefox/src/ui/locales/ms.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Skrin','install.cta.title': 'Sedia apabila anda sedia.','install.scroll_hint': 'Lebih banyak ciri di bawah',+ 'install.chip.record': 'Rakam skrin',+ 'install.chip.shot': 'Tangkapan skrin halaman penuh',+ 'install.chip.dl': 'Muat turun pukal',// --- Onboarding --------------------------------------------------------'ob.step': '{current} daripada {total}',diff --git a/src/firefox/src/ui/locales/nl.js b/src/firefox/src/ui/locales/nl.jsindex 619577923..85e01ff97 100644--- a/src/firefox/src/ui/locales/nl.js+++ b/src/firefox/src/ui/locales/nl.js@@ -111,6 +111,9 @@ export default {'install.mock.screen': 'Scherm','install.cta.title': 'Klaar wanneer jij dat bent.','install.scroll_hint': 'Meer functies hieronder',+ 'install.chip.record': 'Scherm opnemen',+ 'install.chip.shot': 'Screenshots van hele pagina’s',+ 'install.chip.dl': 'Bulkdownloads','sp.status.disconnected': 'Niet verbonden','sp.status.connected': 'Verbonden ({model})','sp.status.error': 'Fout: {msg}',diff --git a/src/firefox/src/ui/locales/pl.js b/src/firefox/src/ui/locales/pl.jsindex cbde46dae..2059a1a28 100644--- a/src/firefox/src/ui/locales/pl.js+++ b/src/firefox/src/ui/locales/pl.js@@ -111,6 +111,9 @@ export default {'install.mock.screen': 'Ekran','install.cta.title': 'Gotowe, kiedy ty.','install.scroll_hint': 'Więcej funkcji poniżej',+ 'install.chip.record': 'Nagrywanie ekranu',+ 'install.chip.shot': 'Zrzuty całej strony',+ 'install.chip.dl': 'Pobieranie zbiorcze','sp.status.disconnected': 'Rozłączono','sp.status.connected': 'Połączono ({model})','sp.status.error': 'Błąd: {msg}',diff --git a/src/firefox/src/ui/locales/pt.js b/src/firefox/src/ui/locales/pt.jsindex 71f517c75..54fe72235 100644--- a/src/firefox/src/ui/locales/pt.js+++ b/src/firefox/src/ui/locales/pt.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'Tela','install.cta.title': 'Pronto quando você estiver.','install.scroll_hint': 'Mais recursos abaixo',+ 'install.chip.record': 'Gravar a tela',+ 'install.chip.shot': 'Capturas de página inteira',+ 'install.chip.dl': 'Downloads em massa',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Desconectado",diff --git a/src/firefox/src/ui/locales/ru.js b/src/firefox/src/ui/locales/ru.jsindex 731d90a41..a3c2e6993 100644--- a/src/firefox/src/ui/locales/ru.js+++ b/src/firefox/src/ui/locales/ru.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Экран','install.cta.title': 'Начнём, когда будете готовы.','install.scroll_hint': 'Больше возможностей ниже',+ 'install.chip.record': 'Запись экрана',+ 'install.chip.shot': 'Скриншоты всей страницы',+ 'install.chip.dl': 'Массовая загрузка',// --- Onboarding --------------------------------------------------------'ob.step': '{current} из {total}',diff --git a/src/firefox/src/ui/locales/th.js b/src/firefox/src/ui/locales/th.jsindex 33864405e..85713a5d0 100644--- a/src/firefox/src/ui/locales/th.js+++ b/src/firefox/src/ui/locales/th.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'หน้าจอ','install.cta.title': 'พร้อมเมื่อคุณพร้อม','install.scroll_hint': 'ฟีเจอร์เพิ่มเติมด้านล่าง',+ 'install.chip.record': 'บันทึกหน้าจอ',+ 'install.chip.shot': 'แคปหน้าเว็บทั้งหน้า',+ 'install.chip.dl': 'ดาวน์โหลดจำนวนมาก',// --- Onboarding --------------------------------------------------------'ob.step': '{current} จาก {total}',diff --git a/src/firefox/src/ui/locales/tl.js b/src/firefox/src/ui/locales/tl.jsindex 984e8f802..295faf87e 100644--- a/src/firefox/src/ui/locales/tl.js+++ b/src/firefox/src/ui/locales/tl.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Screen','install.cta.title': 'Handa kapag handa ka na.','install.scroll_hint': 'Mas maraming feature sa ibaba',+ 'install.chip.record': 'I-record ang screen',+ 'install.chip.shot': 'Full-page na screenshot',+ 'install.chip.dl': 'Maramihang pag-download',// --- Onboarding --------------------------------------------------------'ob.step': '{current} sa {total}',diff --git a/src/firefox/src/ui/locales/tr.js b/src/firefox/src/ui/locales/tr.jsindex e465bbc9b..ad6d5dd54 100644--- a/src/firefox/src/ui/locales/tr.js+++ b/src/firefox/src/ui/locales/tr.js@@ -201,6 +201,9 @@ export default {'install.mock.screen': 'Ekran','install.cta.title': 'Hazır olduğunda başla.','install.scroll_hint': 'Aşağıda daha fazla özellik',+ 'install.chip.record': 'Ekran kaydı',+ 'install.chip.shot': 'Tam sayfa ekran görüntüleri',+ 'install.chip.dl': 'Toplu indirme',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/src/firefox/src/ui/locales/uk.js b/src/firefox/src/ui/locales/uk.jsindex 54af501a0..fd0bab185 100644--- a/src/firefox/src/ui/locales/uk.js+++ b/src/firefox/src/ui/locales/uk.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': 'Екран','install.cta.title': 'Починаймо, коли будете готові.','install.scroll_hint': 'Більше можливостей нижче',+ 'install.chip.record': 'Запис екрана',+ 'install.chip.shot': 'Знімки всієї сторінки',+ 'install.chip.dl': 'Масове завантаження',// --- Onboarding --------------------------------------------------------'ob.step': '{current} з {total}',diff --git a/src/firefox/src/ui/locales/vi.js b/src/firefox/src/ui/locales/vi.jsindex ffbd369f0..8d5442fdb 100644--- a/src/firefox/src/ui/locales/vi.js+++ b/src/firefox/src/ui/locales/vi.js@@ -109,6 +109,9 @@ export default {'install.mock.screen': 'Màn hình','install.cta.title': 'Sẵn sàng khi bạn sẵn sàng.','install.scroll_hint': 'Thêm tính năng bên dưới',+ 'install.chip.record': 'Quay màn hình',+ 'install.chip.shot': 'Chụp toàn trang',+ 'install.chip.dl': 'Tải xuống hàng loạt',// --- Sidepanel ---------------------------------------------------------'sp.status.disconnected': "Đã ngắt kết nối",diff --git a/src/firefox/src/ui/locales/zh.js b/src/firefox/src/ui/locales/zh.jsindex 6330b8924..2cbb2843a 100644--- a/src/firefox/src/ui/locales/zh.js+++ b/src/firefox/src/ui/locales/zh.js@@ -165,6 +165,9 @@ export default {'install.mock.screen': '屏幕','install.cta.title': '准备好就开始。','install.scroll_hint': '下方还有更多功能',+ 'install.chip.record': '录制屏幕',+ 'install.chip.shot': '整页截图',+ 'install.chip.dl': '批量下载',// --- Onboarding --------------------------------------------------------'ob.step': '{current} / {total}',diff --git a/test/run.js b/test/run.jsindex 3eb86bc03..ea6014783 100644--- a/test/run.js+++ b/test/run.js@@ -44128,9 +44128,9 @@ test('first install opens a browser-aware panel launcher without fake toolbar coconst featureCards = ['apocalypse', 'shot', 'dl', 'record', 'captcha', 'safesocial'].filter((card) => label === 'chrome' || card !== 'record');assert.match(html, /<link rel="stylesheet" href="install-scenes\.css">/, `${label}: install page should load its feature-scene styles`);- assert.equal((html.match(/<article class="fcard fcard--\w+" data-reveal>/g) || []).length, featureCards.length, `${label}: install page should advertise every extra feature once`);+ assert.equal((html.match(/<article class="fcard fcard--\w+" id="feature-\w+" data-reveal>/g) || []).length, featureCards.length, `${label}: install page should advertise every extra feature once`);for (const card of featureCards) {- assert.match(html, new RegExp(`<article class="fcard fcard--${card}" data-reveal>`), `${label}: ${card} feature card missing`);+ assert.match(html, new RegExp(`<article class="fcard fcard--${card}" id="feature-${card}" data-reveal>`), `${label}: ${card} feature card missing`);assert.match(sceneCss, new RegExp(`\\.fcard--${card} \\{ --fc: #[0-9a-f]{6}; \\}`), `${label}: ${card} card should carry its own accent colour`);}assert.equal((html.match(/class="scene scene--\w+" aria-hidden="true"/g) || []).length, featureCards.length, `${label}: decorative feature mock-ups should be hidden from assistive tech`);@@ -44149,13 +44149,39 @@ test('first install opens a browser-aware panel launcher without fake toolbar coassert.match(html, /\/screenshot --full-page|data-i18n-html="install\.shot\.body_html"/, `${label}: the screenshot card should show its command`);assert.match(html, /<button class="open-panel-button" type="button" data-open-panel-mirror disabled>/, `${label}: closing call-to-action should start disabled like the primary one`);assert.equal((html.match(/id="open-panel-button"/g) || []).length, 1, `${label}: only one primary panel-open button should exist`);- // The hero looks complete in a laptop-sized window, so a floating cue says the page continues.- assert.match(html, /<section class="more" id="more"/, `${label}: the cue needs a section to scroll to`);- assert.match(html, /<a class="scroll-cue" href="#more" data-scroll-cue hidden>[\s\S]*?data-i18n="install\.scroll_hint"[\s\S]*?<\/a>/, `${label}: scroll cue should start hidden, link to the next section and be localized`);- assert.match(css, /\.install-hero \{[^}]*min-height: calc\(100svh - 89px\);/, `${label}: the hero should fill the first screen so the next section starts at the fold`);- assert.match(sceneCss, /\.scroll-cue \{[\s\S]*?position: fixed;/, `${label}: scroll cue should float above the page`);+ // The hero looks complete in a laptop-sized window, so a permanent row of pills says what is+ // further down and jumps to it. The page has no header: people know which product they installed.+ assert.match(html, /<section class="more" id="more"/, `${label}: the last pill needs a section to scroll to`);+ assert.doesNotMatch(html, /install-header|class="brand"|status-chip|scroll-cue|data-scroll-cue/, `${label}: the install page should start with the hero, without a branded header or a floating cue`);+ assert.doesNotMatch(css + sceneCss, /\.install-header|\.status-chip|\.brand\b|\.scroll-cue|cue-bob/, `${label}: styles for the removed header and floating cue should be gone`);+ assert.match(html, /<nav class="quick-features" aria-label="Also built in" data-i18n-aria-label="install\.more\.eyebrow">/, `${label}: the pill row should be a labelled, localized navigation`);+ const pillRow = html.match(/<nav class="quick-features"[\s\S]*?<\/nav>/)[0];+ const pills = [...pillRow.matchAll(/<a class="qf-chip qf-chip--(\w+)" href="([^"]+)">([\s\S]*?)<\/a>/g)];+ const expectedPills = [+ ['apocalypse', '#feature-apocalypse', 'ap.title'],+ ['record', '#feature-record', 'install.chip.record'],+ ['shot', '#feature-shot', 'install.chip.shot'],+ ['dl', '#feature-dl', 'install.chip.dl'],+ ['more', '#more', 'install.scroll_hint'],+ ].filter(([kind]) => label === 'chrome' || kind !== 'record');+ assert.deepEqual(+ pills.map((pill) => [pill[1], pill[2], pill[3].match(/data-i18n="([^"]+)"/)?.[1]]),+ expectedPills,+ `${label}: the pill row should list the headline features in order and end with "More features below"`,+ );+ for (const pill of pills) {+ assert.match(html, new RegExp(`id="${pill[2].slice(1)}"`), `${label}: pill target ${pill[2]} must exist on the page`);+ }+ for (const kind of ['apocalypse', 'record', 'shot', 'dl']) {+ assert.match(sceneCss, new RegExp(`\\.qf-chip--${kind} \\{ --fc: #[0-9a-f]{6}; \\}`), `${label}: ${kind} pill should be tinted like its card`);+ }+ assert.ok(pills.every((pill) => /<svg[^>]*aria-hidden="true"/.test(pill[3])), `${label}: pill icons are decorative`);+ assert.match(css, /\.install-hero \{[^}]*min-height: 100svh;[^}]*grid-template-rows: 1fr auto;/, `${label}: the hero should fill the first screen with the pills on its last row`);+ assert.match(sceneCss, /@media \(min-width: 981px\) \{\s*\.quick-features \{\s*position: sticky;\s*bottom: 20px;/, `${label}: on wide windows the pills should stay in view for as long as the hero is on screen`);assert.match(sceneCss, /@media \(prefers-reduced-motion: no-preference\) \{\s*html \{\s*scroll-behavior: smooth;/, `${label}: smooth scrolling should only apply when motion is allowed`);- assert.match(sceneCss, /@media \(prefers-reduced-motion: reduce\) \{\s*\.scroll-cue \{\s*transition: none;/, `${label}: scroll cue should not animate for reduced-motion visitors`);+ assert.match(sceneCss, /@media \(prefers-reduced-motion: reduce\) \{\s*\.qf-chip \{\s*animation: none;/, `${label}: pills should not animate for reduced-motion visitors`);+ assert.match(sceneCss, /\.fcard \{\s*scroll-margin-top: 28px;/, `${label}: pills that jump to an unrevealed card should leave room for its 28px reveal slide`);+ assert.doesNotMatch(motionJs + installJs, /initializeScrollCue|data-scroll-cue/, `${label}: the floating scroll cue helper should be gone`);assert.match(installJs, /mirror\.addEventListener\('click', \(\) => openButton\.click\(\)\)/, `${label}: closing call-to-action should forward to the primary open action`);assert.doesNotMatch(motionJs, /\b(?:fetch|XMLHttpRequest|chrome\.|browser\.)/, `${label}: install motion helpers should stay purely presentational`);const installEnglish = (await import(pathToFileURL(path.join(ROOT, prefix, 'src/ui/locales/en.js')).href)).default;@@ -44213,71 +44239,6 @@ test('first install opens a browser-aware panel launcher without fake toolbar co});assert.equal(reducedClasses.size, 0, `${label}: reduced-motion visitors should not get auto-rotating tabs`);- const cueHarness = ({ scrollY = 0, observer = true } = {}) => {- const timers = [];- const windowListeners = new Map();- const cueListeners = new Map();- const cueClasses = new Set();- let intersect = null;- const cue = {- hidden: true,- classList: { add: (name) => cueClasses.add(name), remove: (name) => cueClasses.delete(name) },- addEventListener: (type, fn) => cueListeners.set(type, fn),- removeEventListener: (type) => cueListeners.delete(type),- };- const win = {- scrollY,- IntersectionObserver: observer ? class { constructor(callback) { intersect = callback; } observe() {} disconnect() {} } : undefined,- setTimeout: (fn, ms) => { timers.push({ fn, ms }); return timers.length; },- clearTimeout: (id) => { if (timers[id - 1]) timers[id - 1].fn = () => {}; },- requestAnimationFrame: (fn) => fn(),- addEventListener: (type, fn) => windowListeners.set(type, fn),- removeEventListener: (type) => windowListeners.delete(type),- };- const doc = { querySelector: (selector) => (selector === '[data-scroll-cue]' ? cue : {}) };- return { cue, cueClasses, cueListeners, win, doc, timers, windowListeners, inView: (value) => intersect([{ isIntersecting: value }]) };- };- {- const h = cueHarness();- motion.initializeScrollCue({ documentLike: h.doc, windowLike: h.win, delayMs: 1400 });- assert.equal(h.timers[0].ms, 1400, `${label}: the cue should wait a beat so the hero entrance finishes first`);- assert.equal(h.cue.hidden, true, `${label}: the cue should stay hidden until its delay has passed`);- h.timers[0].fn();- assert.equal(h.cue.hidden, false, `${label}: the cue should appear after the delay`);- assert.ok(h.cueClasses.has('is-visible'), `${label}: the cue should fade in`);- h.win.scrollY = 300;- h.windowListeners.get('scroll')();- assert.equal(h.cueClasses.has('is-visible'), false, `${label}: scrolling should retire the cue`);- h.timers.at(-1).fn();- assert.equal(h.cue.hidden, true, `${label}: a retired cue should leave the layout and the tab order`);- assert.equal(h.windowListeners.has('scroll'), false, `${label}: a retired cue should release its scroll listener`);- }- {- const h = cueHarness();- motion.initializeScrollCue({ documentLike: h.doc, windowLike: h.win });- h.inView(true);- h.timers[0].fn();- assert.equal(h.cueClasses.has('is-visible'), false, `${label}: the cue should never show when the next section is already on screen`);- }- {- const h = cueHarness({ scrollY: 900 });- motion.initializeScrollCue({ documentLike: h.doc, windowLike: h.win });- h.timers[0].fn();- assert.equal(h.cueClasses.has('is-visible'), false, `${label}: a restored scroll position past the hero should not summon the cue`);- }- {- const h = cueHarness();- motion.initializeScrollCue({ documentLike: h.doc, windowLike: h.win });- h.timers[0].fn();- h.cueListeners.get('click')();- assert.equal(h.cueClasses.has('is-visible'), false, `${label}: clicking the cue should retire it`);- }- {- const h = cueHarness({ observer: false });- motion.initializeScrollCue({ documentLike: h.doc, windowLike: h.win });- assert.equal(h.timers.length, 0, `${label}: without IntersectionObserver the cue should stay out of the way`);- assert.equal(h.cue.hidden, true, `${label}: without IntersectionObserver the cue should stay hidden`);- }for (const asset of ['02-tell-the-browser.png','03-ask-any-page.png',@@ -44507,7 +44468,7 @@ test('first install opens a browser-aware panel launcher without fake toolbar coconst chromeLocale = (await import(pathToFileURL(path.join(ROOT, 'src/chrome/src/ui/locales', filename)).href)).default;const firefoxLocale = (await import(pathToFileURL(path.join(ROOT, 'src/firefox/src/ui/locales', filename)).href)).default;const installKeys = Object.keys(chromeLocale).filter((key) => key.startsWith('install.'));- assert.equal(installKeys.length, 61, `${filename}: install guide should translate every user-facing string`);+ assert.equal(installKeys.length, 64, `${filename}: install guide should translate every user-facing string`);assert.ok(chromeLocale['install.showcase.ask.title'], `${filename}: Ask showcase headline should be translated`);assert.ok(chromeLocale['install.showcase.apocalypse.body'], `${filename}: Apocalypse showcase body should be translated`);for (const key of [@@ -44515,6 +44476,7 @@ test('first install opens a browser-aware panel launcher without fake toolbar co'install.shot.title', 'install.shot.body_html', 'install.dl.title', 'install.dl.body','install.captcha.title', 'install.captcha.body', 'install.safesocial.title', 'install.safesocial.body','install.record.title', 'install.record.body_html', 'install.cta.title', 'install.scroll_hint',+ 'install.chip.record', 'install.chip.shot', 'install.chip.dl','install.mock.files', 'install.mock.offline', 'install.mock.not_robot', 'install.mock.captcha_blocked','install.mock.captcha_sent', 'install.mock.captcha_waiting', 'install.mock.captcha_note','install.mock.show_image', 'install.mock.safesocial_note', 'install.mock.tab', 'install.mock.screen',