133 Commits
Author SHA1 Message Date
raucao b0cfd635ce Merge pull request 'Use only normal API keys for OpenRouter spend' (#8) from bugfix/openrouter_key into master
Reviewed-on: #8
2026-11-16 18:30:57 +00:00
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 865402938a Merge pull request 'Stop sending target cookies from the HTTP service' (#7) from bugfix/openrouter into master
Reviewed-on: #7
2026-11-16 08:25:55 +00:00
raucao fc417b20e7 Stop sending target cookies from the HTTP service
Extension pages with host permissions are treated as same-origin, so the
target origin's cookies rode along on every request. OpenRouter's
Clerk-protected analytics endpoint then tried to read the management key in
the Authorization header as a session JWT and answered 403, breaking the
spend total on the dashboard.

Default the shared fetch to credentials "omit" (still overridable per call),
and surface OpenRouter's own error message for failed requests instead of a
generic status summary.
2026-11-16 12:22:55 +04:00
raucao 39f22bf062 Add Open WebUI icon 2026-11-15 14:36:27 +04:00
raucao c2e5d694f0 Merge pull request 'Treat uploaded custom link icons as maskable' (#6) from chore/custom_site_icons into master
Reviewed-on: #6
2026-11-15 10:35:40 +00:00
raucao 8ab486dee8 Treat uploaded custom link icons as maskable
Custom icons uploaded for a custom site link were always stored as
non-maskable, so they rendered inset with a rounded border instead of
filling the tile. Mark every readIconFile result as maskable so uploads
are drawn edge-to-edge like a site's own maskable icon, and update the
image-file tests accordingly.
2026-11-15 14:34:40 +04:00
raucao 88b25d620c Merge pull request 'Add custom site links with icon discovery and upload' (#5) from feature/2-custom_site_links into master
Reviewed-on: #5
2026-11-13 17:20:08 +00:00
raucao 303b26793f Reorder the custom link option and its icon controls
Sort the generic "Custom Link" entry last in the add-integration dialog so
it reads as an "add anything" action after the concrete integrations, and
move the icon controls below the URL and name fields in the custom link
form so the form flows from link details to its optional icon.
2026-11-13 21:09:21 +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 afb226ee5d Merge pull request 'Add OpenRouter spend stats and unify ticker settings' (#4) from feature/openrouter-stats into master
Reviewed-on: #4
2026-11-13 11:54:09 +00: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 7cad948c17 Unify market tickers and usage stats into one settings panel
Replace the separate Market Ticker and OpenRouter Stats settings sections
with a single Tickers & Stats section. It lists every active ticker/stat
with its settings and remove actions, and offers one Add integration button
that opens the generic integration list filtered to tickers and stats.

The add button is hidden once every single-instance integration is
connected, matching the old sections' behavior.
2026-11-13 15:40:03 +04:00
raucao 47906a0386 Add the bitcoin icon badge to the ticker
Match the OpenRouter widget's icon style: a small circular badge with the
bitcoin glyph in white before the price. Export the bitcoin glyph path and
transform from the integrations registry so the ticker and the avatar use
the same source.
2026-11-13 15:01:46 +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 1cdd62100e Make the welcome photo the default Nature wallpaper
Move manu-schwendener-DSwBHyWKiVw-unsplash.jpg to the front of the
Nature feed order so it is the default (first) photo — the same image
the welcome screen already shows. The Nature feed event must be
republished for it to take effect.
2026-11-10 19:59:54 +04:00
raucao ca92b35c2e Add the welcome photo to the Nature feed
Add manu-schwendener-DSwBHyWKiVw-unsplash.jpg (the bundled welcome and
fallback image) as a photo in the Nature feed with its Unsplash
attribution, and append it to the feed order.

The original still needs to be uploaded to Blossom and the photo and feed
events republished before the app sees it (see scripts/nostr/README.md).
2026-11-10 19:35:17 +04:00
raucao d846735b1e Crossfade the wallpaper only on intentional changes
Use a new bundled image for both the welcome screen and the dashboard
fallback, and crossfade into the first feed photo only when arriving from
the welcome screen or when the wallpaper changes after the first paint (a
live rotation or a manual pick). A plain open shows the resolved photo
outright, with no transition.

- wallpaper.gjs: three layers (bundled base, last settled photo, current
  photo). The current photo fades in on load and the previous one stays
  beneath for a crossfade; the photo layer renders only from the cached
  displayUrl, so a change fades instead of flashing the bundled base.
  Reduced motion settles instantly.
- photos.js: keep the last-known-good wallpaper on a cache miss or fetch
  error; add a one-shot timer that rotates at the day/week boundary while
  the dashboard stays open; expose animateEntry for the welcome entry.
- routes/index.js: set photos.animateEntry from the transition origin. A
  strict-mode route template's `this` is not the controller, so a
  controller property never reached the component.
- config/nostr.js: alias the welcome and fallback URLs to one image.

Tests and docs updated.
2026-11-10 15:18:13 +04:00
raucao 66e58c49da Cut and publish extension releases from the version lifecycle
Releases were built and signed in CI, which meant AMO credentials had to
live on the runner. Move the whole flow local: builds and Firefox signing
happen on the maintainer's machine and only the finished artifacts are
published.

Add `ext:pack:firefox` and `ext:pack:chrome` (production builds; the
Firefox one is signed via `web-ext sign` unlisted with credentials read
from the GNOME Keyring through `secret-tool`, the Chrome one is zipped)
and wire them to the `version` lifecycle:

- `preversion` runs lint and tests.
- `version` builds and signs into `web-ext-artifacts/`.
- `postversion` pushes the bump commit and tag, then uploads both
  artifacts to the Gitea release and publishes it if still a draft.

Switch the plain `ext:build:*` scripts to production and add
`ext:build:dev:*` for development builds; `ext:dev` is unchanged. The
build manifest now takes its version from package.json and drops the
"(dev)" name suffix when `DASHTAB_RELEASE=1`.

Because packaging needs a production build, relax the AGENTS.md
production-build restriction to allow it for packaging and releasing.
2026-11-10 12:14:14 +04:00
raucao 6744c8ffc6 Load app styles via index.html link instead of a JS import
The Tailwind setup commit imported app/styles/app.css from app.js but
left the blueprint's /@embroider/virtual/app.css stylesheet link in
index.html. That link points at an Embroider-synthesized public asset
that is copied verbatim, so its `@import 'tailwindcss'` resolved to
@embroider/virtual/tailwindcss and 404'd in every build (Firefox, Chrome
and the plain web build alike), while the real compiled CSS loaded from
the JS import.

Follow the Tailwind Ember guide: link /app/styles/app.css directly so
Vite processes it, and drop the redundant JS import. This removes the
duplicate stylesheet and the 404. Apply the same change to tests/index.html.
2026-11-09 20:17:45 +04:00
raucao 4a0590b556 Build extension targets into separate output directories
Chrome and Firefox shared extension/build and each build set
emptyOutDir, so building one target clobbered the other's output and
left the wrong manifest behind.

Emit each target into extension/build/<target> and write the copied
manifest into Vite's resolved output directory (via configResolved) so
the two cannot drift apart. Point the Firefox web-ext scripts
(ext:serve, ext:lint, ext:dev) at extension/build/firefox.
2026-11-09 20:13:53 +04:00
raucao e3967ca441 Improve readability of calendar events 2026-11-09 12:39:15 +04:00
raucao ec3a9acbf2 Update doc 2026-11-08 22:29:18 +04:00
raucao 2cb54813b9 Add weekly and daily wallpaper rotation
Rotate through photos from enabled feeds with a persisted shuffle-bag queue. Weekly changes at local Monday midnight and daily at local midnight; Off keeps the selected photo. Legacy configs migrate to the weekly default, and Rotation now sits above Feeds in the Photos settings.
2026-11-08 22:25:59 +04:00
raucao 5fd916886e Add Nostr and nak agent skills 2026-11-08 21:52:00 +04:00
raucao 6750c61d87 Add Nostr photo feeds and wallpaper selection
Read the curated photo feeds from wss://nostr.kosmos.org, verify events, cache originals and thumbnails, and let users pick a wallpaper from the Photos section. Nature is the default feed; City Nights is opt-in. Adds the manual publishing scripts, real event fixtures, protocol documentation, and tests with stubbed network connections.
2026-11-08 21:51:23 +04:00
raucao 098761a272 Add photo settings menu item and page 2026-11-08 13:36:46 +04:00
raucao 49ead3c481 WIP Photos 2026-11-08 13:27:39 +04:00
raucao 1ee6e23c0f Improve text-shadow usage 2026-11-07 18:31:45 +04:00
raucao 4c9d6093c0 Skip the Sockethub server step in calendar setup when already configured
Track whether a Sockethub URL has been stored and start the ICS and CalDAV add flows past the server step for returning users, while keeping it for first-timers. Back navigation stops before the removed step, and the step's helper text now links Sockethub to its website.
2026-11-07 13:38:33 +04:00
raucao 13e02168c9 Add name onboarding and inline name editing
Ask for the user's name on first launch through a /welcome route, store it in the preferences namespace via a user service, and redirect between welcome and the dashboard based on whether a name exists. Replace the hardcoded greeting name and make it editable in place, with save/cancel handling and a first-run prompt matching the dashboard style.
2026-11-07 13:14:23 +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 f485093ab0 WIP: Add site links from the Site Links settings section
Add an 'Add site link' button at the bottom of the Site Links pane that opens the Add Integration menu scoped to the still-available site integrations.

The menu accepts an optional type filter and now lists its items alphabetically by integration name.
2026-11-06 17:01:33 +04:00
raucao b2ae4f090f Wording 2026-11-06 16:49:46 +04:00
raucao 55b5bfeedb WIP: Move site links into a Site Links settings section
Remove Clock, Connected Apps and Notifications from the settings menu and move Site Links under Integrations.

Extract a shared integration grid (two-column cards with settings/reconnect/remove icon buttons) used by both Calendar and Site Links, and add a Site Links section that lists the dashboard quick-link integrations alphabetically.

Manage Integrations now excludes calendars and site links, which are managed from their settings sections.
2026-11-06 16:21:29 +04:00
raucao 11f8d3f049 WIP: Add calendar settings and a nested modal stack
Add a 'days with events' preference (default 3, range 1-7) that drives the upcoming events widget, and extend the fetch window to 8 days so the largest window can populate.

Add a Calendar settings pane (moved under Integrations) that lists the connected CalDAV/ICS sources in a two-column grid with add/edit/remove, and remove calendars from Manage Integrations.

Turn the modal service into a stack so add/edit forms open on top of the settings dialog, with one dialog per level, per-entry title ids, and a softened stacked backdrop.

Move CALENDAR_ACTOR into its own config module to break the calendar/caldav/ics import cycle.
2026-11-06 15:48:08 +04:00
raucao 23e5aeb6ca Wording 2026-11-06 14:38:45 +04:00
raucao fd0d29760c WIP: Add Protocol Gateway settings section and tighten the dialog
Introduce a per-section content registry (contentFor) mirroring the integration form registry, and use it for a new Advanced > Protocol Gateway section that explains Sockethub and edits the server URL, with a live connection status.

The URL field loads the stored value via sockethub.loadUrl() so it never prefills the default over a saved URL, and save failures surface inline.

Also narrow the settings dialog (sm:max-w-4xl) and sidebar (sm:w-52) and shorten it (min(80vh,40rem)).
2026-11-06 14:31:40 +04:00
raucao 4f8011647d WIP: Use Feather icons for the settings dialog
Swap the settings nav and button icons to Feather equivalents (settings, clock, link, bell, calendar, info, x). The paint brush and puzzle piece stay Heroicons because Feather has no match. The settings button now uses Feather's sliders glyph.

Icons are stored as arrays of SVG paths so multi-element Feather shapes can render, and the nav renders one path per entry.
2026-11-06 13:51:59 +04:00
raucao 17e6cbaf89 WIP: Add global settings dialog with nav and placeholder sections
Introduce a data-driven global settings modal opened from a gear button in the bottom-left of the dashboard, with a grouped left menu and a right content pane. Sections are placeholders for now.

- Add a settings size (sm:max-w-6xl) to the modal host
- Add app/config/settings.js describing the section groups
- Add the global settings container, nav, nav item, and section components
- Add the bottom-left settings button and wire it to the dashboard
- Make nav items full-width blocks and give buttons the hand cursor app-wide
- Cover the container and the button with integration tests
2026-11-06 13:34:53 +04:00
raucao 6ba30ef2e8 Update AGENTS.md 2026-11-06 11:43:25 +04:00
raucao 8af7185aa9 Fix empty favicon responses poisoning site tile icons
A 204/empty response to `/favicon.ico` was stamped with the candidate's
declared type, producing `data:image/x-icon;base64,`. Because that MIME is
an image, the empty record was treated as usable and cached for the 7-day
TTL, so discovery never ran again and the declared apple-touch-icon was
never picked up.

Skip zero-length candidate bodies during resolution, and treat cached data
URLs with no payload as unusable so existing poisoned records heal on the
next load.
2026-11-06 11:43:09 +04:00
raucao bf38fc2be1 Use B-only Bitcoin glyph with brand orange and larger scale 2026-11-05 15:51:05 +04:00
raucao c383ae91f7 Add minimum width for upcoming events widget 2026-11-05 10:48:09 +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 f341c228b8 Fix site icons cached from non-image responses
A response with no Content-Type reached FileReader as application/octet-stream, which the browser refuses to render, and a mismatched mime field previously marked such records as usable. Judge cached icons by their data URL MIME, sniff image bytes when the content type is missing or generic, reject markup, and fall back to the initial when an image fails to load.
2026-10-30 10:20:37 +04:00
raucao 14b43ebfa6 Ignore navigation-cancelled requests and recover on restore 2026-10-29 23:50:10 +04:00
raucao c94fc9070b Repeat multi-day all-day events across the visible days
An all-day event was only listed on the day it started, so a holiday spanning several days disappeared after the first one. groupEvents now fans an all-day event out to every day it covers (its end is exclusive, per RFC 5545), clamped to the visible window so a long event cannot spread without bound.

The widget also now shows three day groups in total: today plus the next two days that have events when today has events, or the next three days that have events when today is empty.

Drop the duplicated inline day stepping in favor of a small addDays helper, and cover the new grouping with unit tests.
2026-10-29 20:00:07 +04:00
raucao a6542f1419 Fix extra top whitespace in upcoming events widget 2026-10-29 10:22:59 +04:00
raucao b63d849817 Prune cached events when a CalDAV calendar is deselected
Saving the wizard with fewer selected calendars removes their cache entries, and the events view only shows calendars still selected on their instance.
2026-10-28 00:28:00 +04:00