15 Commits
Author SHA1 Message Date
raucao 4f3c4334bd Use only normal API keys for OpenRouter spend
OpenRouter now rejects management keys from the browser on both
/api/v1/keys and /api/v1/analytics/query, so the management-key flow can
no longer work in the extension. Read the configured key's own usage from
GET /api/v1/key instead, which returns UTC daily, weekly, and monthly
buckets and works from the browser.

Drop the key-type selection, key listing/selection, pagination, and the
management/analytics endpoints. Validate the key against /key before
persisting, and write a fresh record so legacy keyType/keyIds fields are
dropped. Keep the browser-block hint for anyone still storing a
management key.
2026-11-16 22:16:35 +04:00
raucao b057e3edca Add custom site links with icon discovery and upload
Users can add any website as a dashboard quick link from Settings → Site
Links. The link is stored in the integrations namespace as a `custom`
type so it flows through the existing sites/integrations/settings
pipeline, and appears in a new "Links" group.

Its icon is discovered with the existing favicon pipeline; an uploaded
icon overrides it and stays pinned until the user chooses "Use site's
icon" again. resolveIcons and refreshIcon skip pinned sites (and
re-check the live list before writing back) so an in-flight discovery
can never clobber a freshly uploaded icon.

URLs are normalized to http(s) only, with embedded credentials stripped,
so a value can never reach an anchor's href as javascript:/data:.
Uploads are validated, size-capped and downscaled to 192px (SVGs kept
as-is), and only ever rendered through an <img>.

Adds app/utils/site-url.js and app/utils/image-file.js, a custom-link
form, a `custom` registry entry/group and adapter, and tests.
2026-11-13 15:57:57 +04:00
raucao be81555265 Rename OpenRouter Stats to OpenRouter Spend
Use a clearer title and a description that explains the granularity
options shown in the settings form.
2026-11-13 15:51:02 +04:00
raucao 73b34a3ead Add OpenRouter usage stats widget
Add a per-user OpenRouter usage integration that reads the management key
and displays a single spend total next to the Bitcoin ticker.

The total is configurable to Today, This week or This month, defaulting to
Today. Analytics queries are widened to the previous UTC hour boundary and
then filtered locally so buckets in non-whole-hour timezones are not
clipped.
2026-11-13 14:51:38 +04:00
raucao 6578c2d3f3 WIP: Add a Market Ticker settings section and drop the dashboard integration buttons
Add a Market Ticker section (Lucide chart-no-axes-combined icon) under Integrations that manages market ticker integrations. Bitcoin shows in the shared grid with settings/remove when enabled, and an 'Add Bitcoin Price Ticker' button otherwise.

Remove the dashboard Add/Manage Integrations buttons and the Manage Integrations dialog now that every integration is managed from Settings.

Shorten the Bitcoin description to 'Live BTC price'.
2026-11-06 17:22:15 +04:00
raucao 59d5b65e1a Use the official Discourse icon as a fallback
Show the bundled square icon for Discourse in the Add and Manage lists, and seed dashboard tiles with it until a forum's own favicon is resolved.
2026-10-30 10:20:40 +04:00
raucao a465fba333 Update integration row tests for host bylines 2026-10-27 20:56:58 +04:00
raucao e68d5cf23c Add tests for the calendar integrations 2026-10-27 18:20:15 +04:00
raucao 75a2a65e20 Add Home Assistant integration 2026-10-08 19:24:02 +02:00
raucao 1a3bc001a2 Strip scheme from integration bylines 2026-10-05 14:01:23 +02:00
raucao 11be348a37 Add Gitea integration 2026-10-05 13:17:03 +02:00
raucao 41bfb7ebbb Add GitHub integration 2026-10-05 12:15:15 +02:00
raucao c28f2d066d Add Feedbin integration with configurable instance URL 2026-10-04 18:43:11 +02:00
raucao ccb2162bca Refactor integration lists into uniform rows with shared avatars 2026-10-04 18:42:56 +02:00
raucao abfbabb416 Add integration management with editable settings
Rework the integration UI so Add and Manage are separate surfaces, only
active integrations appear in Manage, and integrations with settings
(e.g. Bitcoin) can be edited via the same form used to add them.

Replace the ModalDialog/initialComponent flow with a modal service and a
single ModalHost that lazily mounts each dialog body, so forms and custom
elements start fresh per open. Move integration components to
settings/integrations, add an integrations service that unifies registry
capabilities with live instances, and fix the select value refresh and
bitcoin config reset.
2026-10-04 15:41:33 +02:00