Recipe Manager Settings
-Settings UI scaffold. Base URL wiring is a follow-up task.
+Configure where import requests should be sent.
+ +diff --git a/TODO.md b/TODO.md index f45a68c..f6d47ce 100644 --- a/TODO.md +++ b/TODO.md @@ -44,7 +44,7 @@ MVP is functionally complete (core app + docs + tests). ### Phase 4: Browser Extension (after URL import stable) - [x] Scaffold browser extension project (Manifest v3) - [x] Add “Send to Recipe Manager” action to call import API -- [ ] Add extension settings for Recipe Manager base URL +- [x] Add extension settings for Recipe Manager base URL --- diff --git a/browser-extension/README.md b/browser-extension/README.md index 896da5d..481addb 100644 --- a/browser-extension/README.md +++ b/browser-extension/README.md @@ -1,13 +1,13 @@ # Browser Extension (Manifest v3) Scaffold -This folder contains the initial Manifest v3 scaffold for the Recipe Manager browser extension. +This folder contains the Manifest v3 browser extension for Recipe Manager URL import. ## Files - `manifest.json` — extension manifest -- `background.js` — service worker and context menu registration +- `background.js` — service worker and context menu import flow - `popup.html` / `popup.js` — basic action popup -- `options.html` — placeholder settings page +- `options.html` / `options.js` — settings UI and persistence for Recipe Manager base URL - `styles.css` — shared minimal styles ## Load locally (Chrome) @@ -17,4 +17,8 @@ This folder contains the initial Manifest v3 scaffold for the Recipe Manager bro 3. Click **Load unpacked** 4. Select this folder: `browser-extension/` -Future tasks will wire the context menu action to the import API and implement settings persistence for base URL. +## Settings + +Open the extension popup and click **Open Settings**. +Set the Recipe Manager base URL (defaults to `http://localhost:3000`). +The value is stored in `chrome.storage.sync` and used by the context menu import request. diff --git a/browser-extension/options.html b/browser-extension/options.html index 869a4af..42fb1ed 100644 --- a/browser-extension/options.html +++ b/browser-extension/options.html @@ -9,7 +9,21 @@
Settings UI scaffold. Base URL wiring is a follow-up task.
+Configure where import requests should be sent.
+ +