Changelog
Every released version of Kandan, newest first.
0.14.0
New
- API v2 gives counts as
metainstead of thenotification-countsandstat-overviewstypes:meta.countsonGET /notifications, rolled-up counts in each group'smeta, unread in each team plugin'smeta.unread, andmeta.totalswithmeta.rangeonGET /daily-stats; a notification'smatchedRulesis a to-many relationship torules;POST /forward-teststests a forward destination andPOST /forwardsonly forwards;group-sourcesisgroup-plugins(groupPluginsas a relationship),forwards.destinationTypeiskind, andisAuto,isTestandisCurrentareauto,testandcurrent;connection.lastFailureReason, the stat rows'date,priority, slugs and names are gone. v1 is unchanged. A v2 client reads the counts frommeta, includesmatchedRulesfor the rule ids, posts destination tests to/forward-tests, and uses the new names. - Kandan is free for every signed-in account and the API has no billing left:
POST /api/v1/billing/checkout,GET /api/v1/billing/portaland thePOST /api/v1/hooks/billing/{provider}webhook are gone, and the signed-in user (GET /api/v1/me,GET /api/v2/users/{id}) no longer hassubscribed,billing_exempt(billingExempt),plan,subscription_status(subscriptionStatus) orcurrent_period_end(currentPeriodEnd). GET /api/v1/notificationstakesfilter[snoozed], as v2 does:falseleaves out notifications snoozed until a time still ahead,truekeeps only those, and any other value is refused with the reasonfilter_not_boolean.kandan notification listhas it as--filter[snoozed].- The tray no longer has the "No active subscription" menu with its Subscribe item; every signed-in account gets the full tray menu.
- Every signed-in account gets the whole app: the subscribe screen at
/subscribeand the Billing page under Account are gone.
Fixes
- The API v2 reference describes every operation, parameter, attribute and relationship in short, plain sentences with one term for each thing, and the internal reference gives every operation a summary and a description.
- The API v2 reference documents every request body, the bearer scheme,
X-Team-ID, the token ability each operation needs and the includes it takes, types every attribute, and leaves the types only the Kandan apps use to an internal reference on the admin listener; a v2 write answersincludewith a 400 (validation_failed, reasoninclude_on_write) instead of including resources the token may not read. - Renaming a v1 group to a slug another group of the team already has now answers the same problem details as creating one does:
codevalidation_failed,reasongroup_slug_taken, adetail, and the sameerrors.slug, instead of a bare{message, errors}body. - Traces no longer carry credentials from query strings: outbound requests mask
token,key,secret,api_key,apikey,access_token,signature,sigandpassword, and inbound requests maskcode,state,invite_code,validationTokenandsignature, each recorded asREDACTEDwhile host and path stay inurl.full. - A validation error whose text is the API's own, not one of Laravel's rule messages, now names its exact situation as the
reason:meta.reasonon each v2 error (auto_group_not_movable,unknown_query_parameter,slug_format, ...), and on v1 the top-levelreasonwhen every field error in the response shares it. Status,detail, field names andsourceare unchanged, and errors from Laravel's own rules keep the reasonvalidation_failed. - The tray fills all ten unread rows when some unread notifications are snoozed, instead of showing fewer while more unread ones wait. The API now leaves the snoozed ones out, so this desktop version needs the API from the same release or newer; an older API refuses the request. The API deploys from main before any desktop release, so production already runs it.
- The inbox sidebar shows each source install's own unread count, where two installs of one plugin showed the plugin's total on both.
0.13.0
New
- The API reference at
/docsshows v1 and the JSON:API v2 API on one page, with a version switcher;/docs/v2opens it on v2. - The API gives every error a user can see a stable key next to its text: a source's
problemgainsparams, itsconnectiongainslast_failure_codeandlast_failure_message(lastFailureCodeandlastFailureMessageon v2), theconnection_disabledstream event gainsfailure_code, an action run gainsmessagebesidereason, and every API error carries acodeand areasonnaming the exact situation (forbidden/personal_team_transfer): a top-levelreasonon v1,codeandmeta.reasonon each v2 error, the same as v1 for validation, authentication, not-found and server errors too. POST /api/v1/notifications/{id}/actions/{index}/run(kandan notification run-action) andPOST /api/v2/action-runsrun a notification's action that has a method, for any team member and for agent tokens with the newactions:runability, at most 30 runs a minute per user. Each run makes one request, never retried, only to an https URL whose host resolves to public addresses, pinned to the checked address, with no redirects, a 10 second timeout and anX-Kandan-Signaturewhen the source has a signing secret; a 2xx marks the notification read unless the newmark_read_on_actionpreference, default on and overridable per source, is off.- A generic webhook or notify request (
kandan plugin notify --actions) can carry up to fiveactions, links or https requests with a method, and notifications in v1, v2 and the stream list them as{index, label, method, url}, with the url of a request never shown. - A source takes up to five actions in
config.actions, set through v1's configure or v2's team-plugin update and checked as a notification'sactionswithoutbody, and every new notification from that source gets them after any the sender sent. A link's url may hold{{id}},{{title}},{{actor}},{{external_thread_id}},{{url}}and{{payload.<path>}}after its host, filled in and URL-encoded from each notification as it arrives; an entry the notification cannot fill is left off it. Running a source'sPOST,PUTorPATCHsends the notification as JSON, with the fields a forward webhook sends plusactionandtriggered_at, andGETandDELETEsend no body; the request is signed with the source'sactions_signing_secretwhen one is set. A caller who may not configure the source gets theurlof each configured action with a method asnull. - Each notification under Recent in the tray is a submenu with Open, Mark read, Snooze and the notification's own actions, and a banner lists those actions after its Mark read or Snooze; a link opens in the browser, any other action runs through the API, and a failed run posts a banner saying so.
- The tray menu opens on your inbox: up to ten unread notifications sit at the top level, newest first, each labelled with its source and title and keeping its Open, Mark read, Snooze and action items, followed by "Show all in browser" with the unread count. Below that come Mark all read, then Settings…, Logout and Quit as plain items, and at the bottom your email and the version; the Groups submenu and Refresh are gone.
- The browser tab icon gets an orange dot while any source needs attention, and goes back to the plain mark when the last problem clears.
- Each source's page has an Actions card: up to five links or requests that Kandan adds to every new notification from that source, saved together, with an Actions signing secret beside them. Someone who may not configure the source sees the list read-only, without the targets of its requests.
- The agent-token form on Account → Sessions gains a "May run actions" box, off by default, that mints the token with
actions:runso the agent can run a notification's server-side actions. - A notification's actions show under its row: a link opens in a new tab, any other action runs from its button (a DELETE asks first) with succeeded or failed shown beside it, and
/account/preferencesand each source's page gain a "Mark read after an action" setting.
Fixes
- Connecting Cirrux no longer shows Cirrux's raw response when it refuses to start the device flow, issue a token or accept the token it issued; the error says which of the three happened.
- A source whose connection Kandan disabled keeps its "needs attention" problem until it is reconnected: a delivery no longer clears it, a disabled connection without one (an older one, or one whose event was lost) gets it within 15 minutes, and reconnecting now re-enables the connection instead of leaving it disabled.
- Switch off PHP's session upload progress in the API image; the API never used it.
- A disabled connection says why in plain words, such as "the sign-in was revoked or has expired", instead of quoting the provider's raw error response: in the "needs attention" banner, the disconnect email, the
connection_disabledstream event, the connection'slast_failure_reasonand the error of a failed revalidate. - A failed notification action says why in words, such as "The target did not answer in time", instead of a raw key like
timeout, and a source's reconnect badge explains its failure in plain words instead of the provider's raw error. - Release builds of the desktop app always talk to the production API: the URL now comes from a committed
.env.productioninstead of whatever the builder's local.envholds. - The inbox loads every unread and every pinned notification, page by page, instead of only the newest 100, so older unread, snoozed, denied and pinned ones no longer drop out in a team with more than 100.
- Web dependencies upgraded to latest: TanStack DB 1.0 release candidate (react-db 1.0.0-rc.1.3, query-db-collection 1.5.1), Sentry 11.10, TanStack Query 5.105, Router 1.170.46, Start 1.169.4 and Vitest 5.1. The inbox behaves as before.
- Pinning or unpinning a notification in the inbox now shows straight away, in the row's button and in the Pinned section, instead of only after a reload; marking read, snoozing and undenying no longer briefly put the row back while the change is saved.
0.12.0
New
- Add the sources and account resources to the JSON:API v2 API at
/api/v2: install, configure and uninstall team plugins (a single fetch shows the connection test), webhook token rotations, sync-back actions, preferences and the overrides per install, profile and password changes onusers, teams (with the transfer asPATCH teams/{id}/relationships/owner), team memberships, and tokens (agent tokens with a chosen set of abilities). Notifications can include their forwards, groups their snoozes, and rules and forward destinations who created them; another user shows only name, email and avatar. v1 and its reference are unchanged. - Add the analytics resources to the JSON:API v2 API at
/api/v2: the team's overview (stat-overviews), daily, per-plugin, per-group and per-priority stats, over a range set withfilter[from]andfilter[to]. They answer what v1's analytics routes answer; a date that does not parse is a 400 instead of an error. Every v2 route now has a Hurl test, and the reference documents v2. v1 and its reference are unchanged. - Add the configuration resources to the JSON:API v2 API at
/api/v2: create, update and delete groups (apositionPATCH moves one group among its siblings, aparentPATCH moves it to another branch, never under itself), group sources as resources of their own, rules (apriorityPATCH moves one rule), rule tests, forward destinations, forwards (queue a notification forward, or run a test delivery and get its log), snoozes (a POST for a scope that is already snoozed updates it), and the locale and timezone lists. Groups can include their parent and their sources with each source's plugin and install; an include of an include needs the ability of every type it reads. v1 and its reference are unchanged. - Add the foundation of a JSON:API 1.1 API at
/api/v2, with no resources yet. Every request and error there is JSON:API: wrong media type parameters get 415 or 406, unknown query parameters 400, and errors come back as JSON:API error documents with asource.pointerorsource.parameter, while/api/v1keeps its RFC 9457 problem details. Its reference is a separate OpenAPI document at/docs/v2, visible in local environments only for now, so the v1 reference at/docsdoes not change. - Add the inbox to the JSON:API v2 API at
/api/v2: list, show, triage, send and delete notifications (readAt,snoozedUntil,pinnedanddenied: falsein onePATCH), notification counts, read marks for marking everything or a group read or unread, and read-only plugins, installed plugins, groups and the signed-in user. Each needs the agent ability from the CLI plan, and an include needs the ability of the type it includes. A request document that sends an attribute or relationship the endpoint does not take is answered with a 422 pointing at that member. Every v2 route is in the local-only reference at/docs/v2; v1 and its reference are unchanged. - Run the desktop tray app on Linux: native notifications with click and action support, a tray icon that follows the system theme,
kandan://deep links, and AppImage,.deband.rpmbundles. - The sources and account screens now use the v2 API: installing, configuring, rotating the webhook token of and uninstalling a source, its notification overrides, your preferences, profile and password, sessions and agent tokens, and team ownership transfer. Sign-in, billing, connecting OAuth sources, the live stream and deleting the account stay on v1.
- Groups, rules and forward destinations now run on the JSON:API v2 API. Dragging a group or one of its sources moves just that one and the server shifts the rest, a group can be snoozed and unsnoozed from the Groups screen, the edit form loads the group it edits at any depth, and a rule test or a destination test is one request each (a failed destination test still shows its error inline). Nothing else changes for the user.
- The inbox now runs on the JSON:API v2 API. Read, unread, snooze, unsnooze and undeny are each one request with just what changed, notifications can be pinned and show in a new Pinned list, Mark All Read marks everything unread in one request (snoozed ones included, not only the rows on screen), and grouping by group shows group names instead of ids. The inbox and the read archive get a sidebar with the unread counts per group and per source. Dragging notifications to reorder them is gone; the inbox was never sorted by that order. Sign-in and the other screens are unchanged.
Fixes
- Average time to read in analytics is now a positive number of seconds, rounded rather than cut off. It was stored negative, and an average under a second came back from the overview as null instead of 0.
- A malformed id in a v1 URL, such as
/api/v1/groups/not-a-uuidor a non-numeric token id, is now a 404 like an unknown id. On Postgres it was a 500. A malformed id in a request body is now rejected instead of failing with a 500: reorder items,parent_idanddestination_idget a 422 validation error, andteam_plugin_idgets the same answer as an unknown plugin instance. A malformedfilter[plugin_id]on the notifications list now matches nothing, as a malformedfilter[group_id]already did, instead of a 500 on Postgres. A malformedLast-Event-IDon/api/v1/streamis now ignored, so the stream starts from now as a fresh connection does, instead of failing on Postgres. A group can no longer be created under, or moved under, a group of another team: such aparent_idis a 422 validation error. A rule whose forward action names something that is not a destination id no longer makes ingestion of a matching notification fail on Postgres; the bad id is skipped. - Team memberships and a group's sources each get their own id, so the coming v2 API can address them as resources. Existing rows get one when the migration runs; v1 responses do not change.
- Publish the JSON:API v2 reference at
/docs/v2, like the v1 reference at/docs. Fix four v1 problems found while building v2: moving a group under itself or one of its own groups is refused instead of hiding both; changing only part of a rule's conditions keeps the rest instead of dropping the condition list; a member added to a team gets the member role there (existing members without a role get one, and the old owner stays a member after a transfer), and a removed member loses their roles in that team; and an analytics date that is not one is a validation error instead of a server error. sort=priorityon the notifications list, v1 and v2, now sorts by rank instead of alphabetically: ascending is low, normal, high, urgent, and-priorityputs urgent first. A priority outside those four ranks as normal. Rule actions are now validated by type when a rule is created or updated:set_priorityis one oflow,normal,highorurgent,add_to_groupandforward_toare ids,denyandforward_onlyare booleans, null leaves an action unset, and an unknown action is a 422. The admin rule form no longer offerscritical, and a migration moves existingcriticalnotifications andset_priorityrule actions tourgent. The API spec now describesactionsas an object with those fields, sokandan rule create --helpsays the flag takes an object. Snoozing a notification now reaches your other devices: the stream sends it as anotification_updatedframe, as it does a read. A snooze no longer clearsdelivered_at, so unsnoozing a delivered notification is a state change too, with no new banner; when a snooze runs out the notification is delivered again, as before. A notification held back by a snooze since it arrived is still delivered when you unsnooze it, and a reconnecting stream no longer replays a notification snoozed since its delivery. Snoozing a notification withoutuntil, or withuntilin the past, is now a 422 instead of a snooze until now that the next sweep delivered again;kandan notification snoozeloses its--mutedflag, which that route never used. Snoozing everything, a plugin or a group likewise needsuntilunlessmutedis true. Marking a group read or unread now logs areadorunreadevent for each notification it changes, as marking one notification or everything read already did, so analytics count them.
0.11.0
New
- Add
POST /api/v1/team/plugins/{teamPlugin}/notifications, which sends a notification through a Generic Webhook source with a bearer token instead of the webhook URL and signature, behind the newnotifications:sendability that agent tokens now get. Tokens minted before this keep their old reach, so mint a new one to send.
Fixes
- Deleting a group from the admin panel (the group tree, its edit page or a parent's children list) now clears that group's snoozes, as deleting it through the API already did. The cleanup moved into a
deletingevent on theGroupmodel, so every delete path runs it. - Dragging a group in the admin panel's group tree now renumbers only the groups of that group's own team. Before, moving a group among the root groups renumbered the root groups of every team.
- Fix
GET /api/v1/analytics/by-priorityreportingdeniedas 0 or 1: the count's alias collided with the notification's booleandeniedcast, so it now reports the real number of denied notifications. - Move the analytics aggregate queries out of
AnalyticsControllerinto a newAnalyticsService; the five/api/v1/analyticsresponses are unchanged. - Routine dependency patch round within the existing constraints: Laravel 13.39, Filament 5.11, Livewire 4.4.8, Sentry PHP SDK 4.35, Pest 5.3.4 with PHPUnit 13.4.5 (security fix), Laravel Boost 2.10.4 and the Symfony 8.1.10 components. The Laravel Boost MCP server is now registered at the repo root as well as in
apps/api. The API docs now type the analytics group and plugin names, the integration testemail, a plugin'sproblem(withcountas an integer) and itscapabilities,secretsandconfig_fields, where Scramble 0.13.52 stopped inferring them. - The Pest suite now always runs with
APP_ENV=testing, even when anAPP_ENVfrom.envis already in the process environment. Running it throughdotenvx run(the documented command andnpm run test) no longer fails 16 admin listener and MFA tests.BCRYPT_ROUNDS=4is forced the same way, so that run is as fast as CI. - Move the forward destination update logic (config merge that keeps the stored secret, failure reset on re-enable) from
ForwardDestinationControllerintoForwardService::update. No API change. - Deleting a group now also clears the snoozes of its child groups, all the way down. The child groups were already deleted with their parent, but their snoozes were left behind.
- Move a notification's groups from the
notifications.group_idsJSON column to agroup_notificationpivot table, so they are a real relation the coming v2 API can include. The migration backfills the pivot in the original order, skips groups that no longer exist, and drops the column; rolling it back restores the column from the pivot. The v1 API still returnsgroup_idsand filters onfilter[group_id]as before, except that a deleted group now drops out of a notification'sgroup_idsinstead of lingering there. - Move pinning, unpinning and undenying a notification out of the v1 controller into
NotificationService, so the coming v2 API can share them. No change to the v1 API. - Move the v1 reorder writes for notifications, groups, group sources and rules into a new
PositionService, which runs each batch in one transaction, and add the single-item move with sibling shift that v2'spositionPATCH will use. A group move leaves auto groups out of the order and rejects moving one with a 422. The fourreorderendpoints and adding a source to a group respond and store positions as before. - The team context no longer merges the current team into the request input, so it cannot leak into anything built from that input, such as pagination links. The team is still available as
app('current_team'). - Add
POST /api/v1/team/plugins/{teamPlugin}/notifications, which sends a notification through a Generic Webhook source with a bearer token instead of the webhook URL and signature, behind the newnotifications:sendability that agent tokens now get. Tokens minted before this keep their old reach, so mint a new one to send.
0.10.0
New
- Agent tokens can list, show and count notifications and follow
GET /api/v1/stream, through the newnotifications:readability; triage still needs a sign-in token. Tokens minted before this keep their old reach, so mint a new one to read.
Fixes
- Production now has the Microsoft OAuth client id and secret, so connecting an Outlook account can complete its sign-in.
- Drop four npm packages nothing imported; the apps behave the same.
- Agent tokens can list, show and count notifications and follow
GET /api/v1/stream, through the newnotifications:readability; triage still needs a sign-in token. Tokens minted before this keep their old reach, so mint a new one to read.
0.9.0
New
- The admin panel requires an authenticator app code at login, with recovery codes; admins without one are sent to set it up.
- Mark operations for the
kandanCLI with a#[Cli]attribute on the controller method, exported in the API spec asx-cli:auth.tokenis hidden from the CLI's help andstream.streamgets no generated command. - Add the
kandan-cliOAuth client, whosehttp://127.0.0.1/callbackredirect URI matches on any port as RFC 8252 requires for native apps; the web and desktop clients keep exact matching.
Fixes
- Answer 404 on
/admin, its Livewire and Filament endpoints and/horizonunless the request arrives on the loopback admin listener, so the admin panel is no longer reachable from the public internet. - Stop the developer notes on the
#[Cli]attributes ofauth.tokenandstream.streamfrom appearing as operation summaries in the public API reference. - All dependencies upgraded to latest: Composer packages (including spatie/laravel-activitylog 5, whose migration moves tracked model changes into a new
attribute_changescolumn), npm packages (including Sentry 11, pragmatic-drag-and-drop 4, TanStack DB 0.5 and Ultracite 8) and the desktop app's Rust crates. The API now requires PHP 8.4.1 or newer. - Run the API on PHP 8.5: container image, CI and the composer floor now target 8.5.
- Password reset token calls now satisfy PHPStan; CI runs PHPStan on every API change.
- Type the group_plugins pivot on Plugin so PHPStan passes on the Group resource.
- Deleting a rule, group or destination and uninstalling a source now ask in an in-app dialog instead of the browser's confirm prompt.
- After checkout, the subscribe page waits for your payment to confirm again, and signing in after deleting your account shows the deletion notice again.
0.8.0
New
- Serve a public API reference for the
/v1API: Scalar UI at/docs, OpenAPI JSON at/docs/api.json.
0.7.1
Fixes
- The API container now lets FrankenPHP grow to 64 PHP threads on demand, so open notification streams no longer make every other request wait 10-25 seconds.
- Lists now say they are loading until their data arrives, instead of briefly showing "All caught up!" or another empty message. When a load fails they say so and offer Retry. The events panel reads "Connecting…" until the live feed connects.
- A notification's title now links to its source (the action URL) and opens it in a new tab. Only http and https links are followed; anything else stays plain text.
0.7.0
New
- Every source page now opens with a setup checklist: Connect, the webhook URL and each required secret, worked out from the plugin's manifest, with each step's action inline and the next one highlighted. It collapses to "Set up ✓" once everything is done, and the existing sections sit below it under Settings. The webhook step ticks once the first delivery arrives; resetting the token unticks it.
Fixes
- Cirrux: remove the "Workspace API key" field from the source page. Cirrux rejects workspace keys on its email endpoints, so Connect is now the only way Kandan fetches mail.
0.6.1
Fixes
- Desktop: fix the tray app freezing when a notification arrived while the tray window was talking to the app. The stream now hands each event to the main thread instead of waiting on it.
0.6.0
New
- Sources now have icons. Each plugin ships a default (GitHub, Gmail, Outlook, Cirrux, Kandan) and every install, generic webhooks included, can set its own https icon URL on its source page. The icon shows next to the source on the web and as the thumbnail on desktop banners once the desktop has cached it; a banner never waits for its icon, so a broken or unreachable one simply shows no thumbnail.
0.5.1
Fixes
- Desktop: tray links to the web app (Settings…, a source that needs attention, Subscribe) now open the browser already signed in. The desktop hands the browser a single-use, 60-second code, never its token; a browser that is already signed in keeps its own session.
- Desktop: recent notifications now sit in a "Recent" submenu in the tray instead of filling the top-level menu.
- Desktop: add a "Settings…" item to the tray menu that opens your account page in the browser.
- Desktop: keep running when the hidden window closes, start at login, and write a log to ~/Library/Logs/com.kandan.desktop/ so an unexpected quit leaves a trace.
0.5.0
New
- An agent can get its own API token.
POST /v1/me/tokensmints a named token stored asagent:<name>that may only install sources and manage groups; every other authenticated route now requires a full-access token, which is what login, PKCE and register have always issued. Installing, uninstalling and configuring a plugin also check the team permission, so a viewer can no longer install one. Installs and groups record which token made them, and every activity row the token writes carries its id and name. The recipe is indocs/reference.md. - Attach a group to one install of a source instead of every install:
POST /groups/{id}/plugins/{pluginId}takes an optionalteam_plugin_id, and notifications from that install file under the narrowed group rather than the plugin-wide one. - Snooze duration and which buttons a desktop banner carries are now stored preferences instead of fixed choices. Three new endpoints under
/v1/preferencesread and write them: a value for you, and an override for a single installed source, so a deploy webhook and a digest webhook of the same kind can behave differently. Sending a key asnullclears that one override; anything outside the allowed values, or under a key that does not exist, is rejected rather than stored. The SSE notification frame also carriesteam_plugin_idnow, so a client can tell which install raised an item without a second lookup. - Notification banners carry actions. Clicking the banner body still opens the linked page; the buttons mark the item read or snooze it, and the tray count follows either way. Which buttons appear and how long a snooze lasts come from the web app, per source, defaulting to Snooze for an hour. Banners are now Alerts, so they stay on screen with their actions reachable instead of sliding away after a few seconds.
- Sources that need attention are hard to miss. The web app shows a banner above every page while any source has an open problem, naming it and linking to its page; several collapse into "N sources need attention". The tray icon turns orange while a source has a problem, with a "Needs attention" menu item per source, and red while the app cannot reach the API. A disconnected source now raises a native banner that opens its page when clicked, instead of opening the browser on its own.
- The sessions page mints agent tokens. Name one, hit Create, and the plaintext is shown once with a copy button; tokens named
agent:*carry an Agent badge in the list and are revoked like any other session. - Account → Preferences gains two settings for desktop banners: "Snooze for", choosing how long the Snooze button puts a notification away — 15 minutes through 8 hours — and "Banner button", choosing whether a banner offers Snooze, Mark read, or both. Each source page carries the same pair, starting on "Use my default", so one noisy source can differ from everything else and go back to the default by picking it again. The inbox follows the setting as well: a snooze button now says how long it will snooze for — "snooze 15m" — and uses that source's own duration instead of a fixed hour, and "Snooze All 1h" is now "Snooze all", each item taking its own.
Fixes
- Signed-in requests no longer fail on Postgres. The subscription relation used
latestOfMany(), which breaks ties withMAX(id)— and the id is a UUID, so Postgres answeredfunction max(uuid) does not existand every authenticated request returned 500. It now orders bycreated_atinstead. SQLite acceptsMAXon a text column, which is why the tests never caught it. - The tray now follows read, snooze and undeny changes made elsewhere, such as marking an item read in the web app, instead of staying stale until the next new notification.
- Email and password sign-in works again.
ApiClient.login()was typed and read as{ data: { token } }, but/v1/auth/loginanswers{ access_token, token_type, user }at the top level — the same shape as/v1/auth/tokenand/v1/auth/register— so the web app threw "Cannot read properties of undefined (reading 'token')" and never stored a token. Google and GitHub sign-in go throughloginWithToken, which is why only password sign-in broke.resetWebhookToken()had the mirror-image mistake: it read the payload unwrapped while the API wraps it indata, so resetting a webhook token blanked the displayed URL instead of showing the new one. Both now match the API.
0.4.0
New
- The admin panel can see and change who pays. A user's edit form carries a billing exempt toggle, the list and detail views show the subscription status as a badge alongside the plan and renewal date, and the list query eager loads the subscription so the column costs no extra query per row.
- Billing gets its endpoints.
POST /api/v1/billing/checkoutreturns a hosted checkout URL for themonthlyoryearlyplan,GET /api/v1/billing/portalreturns a customer portal URL, andPOST /api/v1/hooks/billing/{provider}takes subscription events — verified against the Standard Webhooks signature before anything is written, logged like every other webhook, and answered with 202 whether it was applied, ignored or aimed at a customer we do not know. - Kandan now keeps subscription state of its own. A
subscriptionstable records the plan, status and current period end per user, an admin can mark a userbilling_exempt, and/api/v1/mereturnssubscribed,billing_exempt,plan,subscription_statusandcurrent_period_endalongside the existing fields. Payment processors sit behind a two-method seam — make a checkout URL, turn a webhook into a status change — with Polar as the one implementation. php artisan billing:setupcreates the two personal plan products in Polar and registers the webhook endpoint, then prints the product ids to paste into the environment. Prices are command options —--monthly,--yearlyand--currency, in the currency's minor unit — defaulting to EUR 10 a month and EUR 96 a year. It followsPOLAR_SANDBOXunless--sandboxforces it, and asks before it creates anything in a production organization.- Forwarded webhooks now send a normalized envelope —
id,source,title,body,actor,priority,url,created_at,forwarded_at,destinationand the untouched provider data underraw— signed asX-Kandan-Signature: sha256=<hex HMAC-SHA256>over the exact bytes sent, the same format incoming generic webhooks use. Breaking for existing webhook receivers: the old flat keys (notification_id,plugin_id,action_url,payload) and the old bare-hexSignatureheader are gone.PUT /api/v1/forward-destinations/{id}now merges the submittedconfiginto the stored one, so an update that omits the write-onlysecretkeeps it rather than dropping it. - The tray asks for a subscription. An account with neither a subscription nor an admin exemption gets a menu offering the web subscribe page and a sign out, instead of the inbox — and the tray now refreshes the signed-in user along with the counts, so a plan bought in the browser reaches the menu bar without signing out and back in.
- The front page says what Kandan costs: one personal plan at EUR 10 a month or EUR 96 a year, with the invite-only status note kept where it was.
- Manage forward destinations in the app: a Destinations page next to Rules and Groups lists every webhook, Slack and Discord destination with its failure count and auto-disabled state, and can create, edit, enable, disable, test and delete one — a failed test shows the delivery error inline. A rule's Forward action now picks its destination from a dropdown instead of asking for a raw ID, and the rules list names the destination it forwards to.
- Nothing in the app mentions teams while Kandan sells one personal plan. The Team Ownership blocks on Profile and Delete Account, and the Teams and Members panels on the debug dashboard, sit behind a single
teamsUiflag, and the delete-account warning no longer lists teams among what goes. The components, routes and API are untouched — flipping the flag brings all of it back. - The web app asks for a subscription. A new
/subscribepage offers the monthly and yearly personal plan and sends the customer to the processor's checkout, returning to/subscribe?done=1, which keeps asking for the session until the webhook lands rather than claiming the payment failed. Signed-in accounts with neither a subscription nor an admin exemption are redirected there from the app, and Account gains a Billing tab showing the plan, its status and renewal date, with a link into the processor's portal.
Fixes
User::hasAccess()is gone. The subscribe wall lives in the clients, which ask@repo/api-client's ownhasAccess(), and the API never called the method — it keeps ingesting regardless. Admin and/api/v1/mereadbilling_exemptand the subscription relation directly, as they already did.billing:setupno longer sendsorganization_id. Polar rejects the field when the request carries an organization access token, which is the only kind Kandan uses, so the product and webhook-endpoint calls now let the token name the organization andPOLAR_ORGANIZATION_IDis gone from the config and the env template.billing:setupsurvives Polar's webhook endpoint rules. A secret shorter than the 32 characters Polar demands — or none at all — is replaced with a generated one and printed as thePOLAR_WEBHOOK_SECRETline to set, anAPP_URLthat is not https skips registration with thepolar listencommand to use locally instead of failing, and the two product ids are printed as soon as the products exist, so a webhook step that goes wrong no longer costs them.- Only delivery frames on the notification stream carry an
id. State changes and connection events used to carry their own, so a client resuming after the five-minute reconnect could pick an older id as its resume point and get every newer delivery replayed as a fresh notification, which the desktop showed as duplicate banners. - Kandan gets its mark: a source dot and two arcs on the diagonal. The desktop app icon and menu-bar template use it, and the web app and site carry it as a favicon that follows light and dark mode.
- Desktop REST calls go through Rust. WebKit suspends networking for the hidden tray window, so the tray count and Recent list never refreshed after a notification arrived; the app now fetches via the Tauri HTTP plugin. The queries themselves also stalled: TanStack Query pauses retries for a window it thinks is backgrounded, which the tray window always is, and the first request went out before the stored token had loaded.
- The menu-bar glyph draws again and sits at the size of the system glyphs beside it. The count reads 0 instead of disappearing when the inbox is clear, and the stream starts before the tray is built so a tray failure can no longer take the banners down with it.
- The subscribe page stops asking eventually. After a checkout it polls for the payment confirmation every two seconds for a minute, then says so in one line and offers a Refresh that restarts the poll once, instead of leaving the tab refetching the session forever when a webhook never arrives.
- The authed layout asks
wallDecision()whether to wait for the session, send the visitor to/subscribe, or render the app, instead of spelling the rule out inline. Same behaviour, now a pure function the tests can hold to account.
0.3.1
Fixes
- Attach a notification's auto group to an existing group of the same slug instead of failing the webhook with a unique-constraint violation.
- The tray menu shows the app version, and the Tauri bundle version now follows
package.json, so it moves with every release instead of staying at 0.1.0.
0.3.0
New
- Native macOS banners for every notification the stream delivers, with the notification's action URL opening in the browser when the banner is clicked. Getting there also fixed four things that stopped the tray app working at all: a stale
plugins.storeconfig that panicked on start, an SSE URL missing its/apiprefix, a 401 on an anonymous request wiping the stored session, and no reconnect after the API's five-minute stream window closed.
Fixes
- Stream state changes that land in the same second as the SSE poll's checkpoint, so a "Mark all read" reaches open clients live instead of waiting for a reload.
- Widen
users.avatarto text: Google now returns avatar URLs longer than 255 characters, which made the first login of every new Google account fail with a 500 on the callback. - Read the notification stream in Rust instead of the webview. WebKit suspends the page whenever the tray window is off screen, so the stream stopped after its first frame and neither the tray counts nor the banners updated on their own. The frame handling in the webview is unchanged.
0.2.0
New
- Add a
/changelogpage, built at build time from the four apps' CHANGELOG files and grouped by version.