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
Keep the recording card off the Firefox install page
Claude1158bc70eb7b
diff --git a/src/chrome/src/ui/install-scenes.css b/src/chrome/src/ui/install-scenes.cssindex 555eafdda..858d068dc 100644--- a/src/chrome/src/ui/install-scenes.css+++ b/src/chrome/src/ui/install-scenes.css@@ -88,6 +88,16 @@.fcard--captcha { --fc: #14a8b8; }.fcard--safesocial { --fc: #9b5cf6; }+/* The Firefox page has no recording card (Firefox cannot record tabs), so its+ last three cards share one row instead of leaving a hole in the grid. */+@media (min-width: 901px) {+ .bento--five .fcard--dl,+ .bento--five .fcard--captcha,+ .bento--five .fcard--safesocial {+ grid-column: span 4;+ }+}+.fcard {position: relative;min-width: 0;diff --git a/src/firefox/src/ui/install-scenes.css b/src/firefox/src/ui/install-scenes.cssindex 555eafdda..858d068dc 100644--- a/src/firefox/src/ui/install-scenes.css+++ b/src/firefox/src/ui/install-scenes.css@@ -88,6 +88,16 @@.fcard--captcha { --fc: #14a8b8; }.fcard--safesocial { --fc: #9b5cf6; }+/* The Firefox page has no recording card (Firefox cannot record tabs), so its+ last three cards share one row instead of leaving a hole in the grid. */+@media (min-width: 901px) {+ .bento--five .fcard--dl,+ .bento--five .fcard--captcha,+ .bento--five .fcard--safesocial {+ grid-column: span 4;+ }+}+.fcard {position: relative;min-width: 0;diff --git a/src/firefox/src/ui/install.html b/src/firefox/src/ui/install.htmlindex 772a26d16..1771d5ef0 100644--- a/src/firefox/src/ui/install.html+++ b/src/firefox/src/ui/install.html@@ -76,7 +76,7 @@<p class="more-body" data-i18n="install.more.body">All of it ships with WebBrain. Optional extras stay off until you set them up.</p></div>- <div class="bento">+ <div class="bento bento--five"><!-- Apocalypse Mode --><article class="fcard fcard--apocalypse" data-reveal><div class="scene scene--ap" aria-hidden="true">@@ -205,42 +205,6 @@</div></article>- <!-- Video recording -->- <article class="fcard fcard--record" data-reveal>- <div class="scene scene--record" aria-hidden="true">- <div class="mock rec-card">- <div class="rec-top">- <span class="mock-label" data-i18n="sp.record.banner_label">Recording</span>- <span class="rec-pill"><i class="rec-dot"></i>REC · <b data-rec-timer>12:34</b></span>- </div>- <div class="rec-grid">- <span class="rec-tile rec-tile--a"><i class="rec-av">AL</i></span>- <span class="rec-tile rec-tile--b"><i class="rec-av">JM</i></span>- <span class="rec-tile rec-tile--c"><i class="rec-av">SK</i></span>- <span class="rec-tile rec-tile--d">- <i class="rec-av"><svg viewBox="0 0 24 24"><circle cx="12" cy="9" r="4"/><path d="M4.5 20c.8-4 3.8-6 7.5-6s6.7 2 7.5 6Z"/></svg></i>- </span>- </div>- <div class="rec-bar">- <i class="rec-play"></i>- <span class="rec-track"><i></i></span>- </div>- <div class="composer">- <span class="typed"><span class="typed-text typed-text--record">/record</span></span>- <span class="send"><svg viewBox="0 0 24 24"><path d="M12 19V5M5.5 11.5 12 5l6.5 6.5"/></svg></span>- </div>- <div class="rec-cmds">- <span><b data-i18n="install.mock.tab">Tab</b> /record</span>- <span><b data-i18n="install.mock.screen">Screen</b> /record --full-screen</span>- </div>- </div>- </div>- <div class="fcard-copy">- <h3 data-i18n="install.record.title">Keep the whole call.</h3>- <p data-i18n-html="install.record.body_html">Record Zoom calls, demos, and more. Just type <code>/record</code>.</p>- </div>- </article>-<!-- CAPTCHA assistance --><article class="fcard fcard--captcha" data-reveal><div class="scene scene--captcha" aria-hidden="true">diff --git a/test/run.js b/test/run.jsindex 75e060930..fea01b056 100644--- a/test/run.js+++ b/test/run.js@@ -44123,7 +44123,10 @@ test('first install opens a browser-aware panel launcher without fake toolbar co// "Also built in": six animated feature cards under the hero showcase.const sceneCss = fs.readFileSync(path.join(ROOT, prefix, 'src/ui/install-scenes.css'), 'utf8');const motionJs = fs.readFileSync(path.join(ROOT, prefix, 'src/ui/install-motion.js'), 'utf8');- const featureCards = ['apocalypse', 'shot', 'dl', 'record', 'captcha', 'safesocial'];+ // Firefox cannot record tabs (its sidepanel marks /record unsupported), so only+ // the Chrome page may advertise the recording card.+ const 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`);for (const card of featureCards) {@@ -44132,6 +44135,15 @@ test('first install opens a browser-aware panel launcher without fake toolbar co}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`);assert.doesNotMatch(sceneCss, /\.fcard \{[^}]*--fc:/, `${label}: the shared .fcard rule must not override the per-card accent colours`);+ const installSidepanel = fs.readFileSync(path.join(ROOT, prefix, 'src/ui/sidepanel.js'), 'utf8');+ const recordUnsupported = /value: '\/record',[\s\S]{0,200}?unsupported: true/.test(installSidepanel);+ assert.equal(recordUnsupported, label === 'firefox', `${label}: this test assumes only Firefox lacks /record; revisit the install page's recording card if that changes`);+ if (label === 'firefox') {+ assert.doesNotMatch(html, /fcard--record|install\.record\.|\/record/, 'firefox: the install page must not advertise tab recording, which Firefox does not support');+ assert.match(html, /<div class="bento bento--five">/, 'firefox: five cards should use the five-card grid so the last row has no hole');+ } else {+ assert.match(html, /<div class="bento">/, 'chrome: six cards should use the default grid');+ }assert.match(sceneCss, /@media \(prefers-reduced-motion: reduce\)/, `${label}: feature scenes should respect reduced motion`);assert.match(sceneCss, /\.js-motion \[data-reveal\]/, `${label}: content should only be hidden for reveal once the motion script is running`);assert.match(html, /\/screenshot --full-page|data-i18n-html="install\.shot\.body_html"/, `${label}: the screenshot card should show its command`);