From e4f9df7abe9b88fa8908ca2ef7d7cbd35b51fc18 Mon Sep 17 00:00:00 2001 From: Prateek Sharma Date: Tue, 24 Nov 2026 22:37:53 +0530 Subject: [PATCH] docs: link the Firefox Add-ons listing in the READMEs and dashboard The add-on is public on addons.mozilla.org. The READMEs get a badge and install links, and the dashboard sidebar gets a "Get the extension" group with both stores; it had no store links before. The AMO listing is desktop only, so the README and the lint allowlist no longer say that Android support is undecided. Closes #53 Co-Authored-By: Claude Opus 5.5 --- .github/scripts/extension-lint-allowlist.json | 2 +- README.md | 5 +++-- extension/README.md | 12 ++++++----- frontend/src/components/app-sidebar.tsx | 21 ++++++++++++++++++- frontend/src/lib/stores.ts | 9 ++++++++ frontend/src/pages/dashboard.test.tsx | 11 ++++++++++ 6 files changed, 51 insertions(+), 9 deletions(-) create mode 100644 frontend/src/lib/stores.ts diff --git a/.github/scripts/extension-lint-allowlist.json b/.github/scripts/extension-lint-allowlist.json index c15a338..7e11d58 100644 --- a/.github/scripts/extension-lint-allowlist.json +++ b/.github/scripts/extension-lint-allowlist.json @@ -14,6 +14,6 @@ "code": "KEY_FIREFOX_ANDROID_UNSUPPORTED_BY_MIN_VERSION", "file": "manifest.json", "contains": "data_collection_permissions", - "reason": "data_collection_permissions needs Firefox for Android 142, while the desktop minimum is 140 (#43). Android support is decided with the AMO submission (#52); remove this entry then, by adding gecko_android.strict_min_version 142.0 or dropping Android." + "reason": "data_collection_permissions needs Firefox for Android 142, while the desktop minimum is 140 (#43). The AMO listing is desktop only (#52), so this has no effect; to support Android, add gecko_android.strict_min_version 142.0 and remove this entry." } ] diff --git a/README.md b/README.md index 4df4fff..115d24e 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,9 @@ A productivity tool for saving, organizing, and listening to notes from any website: a browser extension for Chrome and Firefox for quick capture and playback, a web dashboard, and a Go API. [![Chrome Web Store version](https://img.shields.io/chrome-web-store/v/lpnchhblldgnnjgmkbmanggilffhbnnp?label=Chrome%20Web%20Store)](https://chromewebstore.google.com/detail/tts-study-assistant/lpnchhblldgnnjgmkbmanggilffhbnnp) +[![Firefox Add-ons version](https://img.shields.io/amo/v/tts-study-assistant?label=Firefox%20Add-ons)](https://addons.mozilla.org/firefox/addon/tts-study-assistant/) -**[Install the extension from the Chrome Web Store](https://chromewebstore.google.com/detail/tts-study-assistant/lpnchhblldgnnjgmkbmanggilffhbnnp)** · [Open the web dashboard](https://tts-study-assistant.vercel.app) +**[Install for Chrome](https://chromewebstore.google.com/detail/tts-study-assistant/lpnchhblldgnnjgmkbmanggilffhbnnp)** · **[Install for Firefox](https://addons.mozilla.org/firefox/addon/tts-study-assistant/)** · [Open the web dashboard](https://tts-study-assistant.vercel.app) ## Screenshots @@ -22,7 +23,7 @@ A productivity tool for saving, organizing, and listening to notes from any webs - `backend/` — Go/Fiber REST API: JWT auth, notes, AI summaries, user management - `frontend/` — React + Vite + shadcn/ui web dashboard - `extension/` — browser extension (Chrome and Firefox) for saving and listening to notes from any site -- `docs/screenshots/` — README and Chrome Web Store screenshots (1280×800) +- `docs/screenshots/` — README and store listing screenshots (1280×800) ## Quick start diff --git a/extension/README.md b/extension/README.md index 6f51417..af42f72 100644 --- a/extension/README.md +++ b/extension/README.md @@ -6,15 +6,17 @@ Save text from any page as a note, listen to it, and get AI summaries. Plain Man **[TTS Study Assistant on the Chrome Web Store](https://chromewebstore.google.com/detail/tts-study-assistant/lpnchhblldgnnjgmkbmanggilffhbnnp)**: click *Add to Chrome*. Installed copies update automatically when a new version is published. +## Install from Firefox Add-ons + +**[TTS Study Assistant on Firefox Add-ons](https://addons.mozilla.org/firefox/addon/tts-study-assistant/)**: click *Add to Firefox* (desktop, Firefox 140 or later). Installed copies update automatically when a new version is approved. + ## Install unpacked (development) 1. Open `chrome://extensions`, enable **Developer mode**. 2. **Load unpacked** → select this `extension/` folder. 3. After changing files, press the reload icon on the extension card (and reopen the popup). -### Firefox (in progress) - -Firefox support is tracked in the [Firefox release (AMO) milestone](https://github.com/pratts/tts-study-assistant/milestone/1). +### Firefox ```sh cd extension @@ -28,7 +30,7 @@ One `manifest.json` serves both browsers: - **Background:** Chrome uses `background.service_worker`; Firefox doesn't support extension service workers and uses `background.scripts` (an event page) with the same file. Chrome 121+ ignores `scripts`, hence `minimum_chrome_version: 121`. - **`browser_specific_settings.gecko`:** the add-on ID (permanent once uploaded to addons.mozilla.org), the minimum Firefox version (140, the first with `data_collection_permissions`) and the data the extension sends to the backend. Chrome ignores this key. -- **Expected lint warnings:** Firefox doesn't know the `tts` permission and ignores `background.service_worker`; `data_collection_permissions` needs Firefox for Android 142 (Android support is decided in #52). They're listed, with reasons, in [`.github/scripts/extension-lint-allowlist.json`](../.github/scripts/extension-lint-allowlist.json). +- **Expected lint warnings:** Firefox doesn't know the `tts` permission and ignores `background.service_worker`; `data_collection_permissions` needs Firefox for Android 142 (the AMO listing is desktop only, #52). They're listed, with reasons, in [`.github/scripts/extension-lint-allowlist.json`](../.github/scripts/extension-lint-allowlist.json). - **Expected Chrome warning:** `chrome://extensions` shows "'background.scripts' requires manifest version of 2 or lower". Chrome ignores the key and runs the service worker; it's the price of one manifest for both browsers. If the Chrome Web Store ever rejects it, the release can write a manifest per browser instead (#50). ## Configuration @@ -124,7 +126,7 @@ One zip serves both stores (one `manifest.json`; each browser ignores the other' ### addons.mozilla.org -**First version (by hand, once):** the listing needs details only the web form takes. +**First version (by hand, once; done with v0.3.5):** the listing needs details only the web form takes. 1. Sign in at the [AMO Developer Hub](https://addons.mozilla.org/developers/) → *Submit a New Add-on* → *On this site* (listed). 2. Upload the release zip. The add-on ID comes from `browser_specific_settings.gecko.id` and can't change afterwards. 3. Fill in the listing: name, summary, description, categories, the privacy policy URL (`https://tts-study-assistant.vercel.app/privacy-policy`), screenshots and support email. diff --git a/frontend/src/components/app-sidebar.tsx b/frontend/src/components/app-sidebar.tsx index 293c812..784b439 100644 --- a/frontend/src/components/app-sidebar.tsx +++ b/frontend/src/components/app-sidebar.tsx @@ -1,4 +1,4 @@ -import { BookOpenIcon, ExternalLinkIcon, LayoutDashboardIcon, NotebookTextIcon, ShieldIcon, UserIcon } from 'lucide-react' +import { BookOpenIcon, ExternalLinkIcon, LayoutDashboardIcon, NotebookTextIcon, PuzzleIcon, ShieldIcon, UserIcon } from 'lucide-react' import type { ComponentProps } from 'react' import { Link, NavLink, useLocation } from 'react-router' import { NavUser } from '@/components/nav-user' @@ -7,12 +7,14 @@ import { SidebarContent, SidebarFooter, SidebarGroup, + SidebarGroupLabel, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarRail, } from '@/components/ui/sidebar' +import { EXTENSION_STORES } from '@/lib/stores' const NAV = [ { title: 'Dashboard', to: '/dashboard', icon: LayoutDashboardIcon }, @@ -63,6 +65,23 @@ export function AppSidebar(props: ComponentProps) { + + Get the extension + + {EXTENSION_STORES.map(({ title, href }) => ( + + + + + {title} + + (opens in a new tab) + + + + ))} + + diff --git a/frontend/src/lib/stores.ts b/frontend/src/lib/stores.ts new file mode 100644 index 0000000..85ad409 --- /dev/null +++ b/frontend/src/lib/stores.ts @@ -0,0 +1,9 @@ +// Where to install the browser extension. The Firefox link has no locale, so +// addons.mozilla.org picks the visitor's language. +export const EXTENSION_STORES = [ + { + title: 'Chrome Web Store', + href: 'https://chromewebstore.google.com/detail/tts-study-assistant/lpnchhblldgnnjgmkbmanggilffhbnnp', + }, + { title: 'Firefox Add-ons', href: 'https://addons.mozilla.org/firefox/addon/tts-study-assistant/' }, +] as const diff --git a/frontend/src/pages/dashboard.test.tsx b/frontend/src/pages/dashboard.test.tsx index c0a2a7a..2a663d4 100644 --- a/frontend/src/pages/dashboard.test.tsx +++ b/frontend/src/pages/dashboard.test.tsx @@ -21,6 +21,17 @@ describe('dashboard page', () => { expect(screen.getByText('alice@example.com')).toBeInTheDocument() // sidebar user }) + it.each([ + [/Chrome Web Store/, 'https://chromewebstore.google.com/detail/tts-study-assistant/lpnchhblldgnnjgmkbmanggilffhbnnp'], + [/Firefox Add-ons/, 'https://addons.mozilla.org/firefox/addon/tts-study-assistant/'], + ])('links to the extension store %s in a new tab', async (name, href) => { + renderApp('/dashboard') + const link = await screen.findByRole('link', { name }) + expect(link).toHaveAttribute('href', href) + expect(link).toHaveAttribute('target', '_blank') + expect(link).toHaveAttribute('rel', 'noopener noreferrer') + }) + it('shows empty states without notes', async () => { renderApp('/dashboard') expect(await screen.findByText('No notes yet')).toBeInTheDocument()