Commit Graph
525 Commits
Author SHA1 Message Date
Matthew Meszaros 4716ab963f feat: replace AI credits with a dollar balance charged on actual usage (provider price per model and unit plus an admin-set markup), with dollar plan allowances, one-click top-ups on the saved card billed as Stripe invoices, Checkout that saves the card, automatic reload with soft-decline retries and a monthly limit, low and empty balance notices, dollar spend limits, an invoices list, the Balance tab, header meter, banner and out-of-balance dialog, an admin pricing editor, the iOS billing screen and the balance guide, keeping the credit columns in step by trigger for mixed versions and rollback 2026-11-07 09:47:50 +01:00
Matthew Meszaros d448cdb20d feat: add map-based lead finder under /app/leads with pluggable OpenStreetMap, Google Places, Foursquare and Outscraper sources, website reads that find emails, socials and the people who run each business with pattern-built verified addresses, filters, saved searches, per-business or per-person CSV/XLSX/JSON export and add-to-contacts 2026-11-07 09:21:41 +01:00
Matthew Meszaros 18b5e0c7b6 Merge remote-tracking branch 'origin/main' into feat/google-trusted-app-signin 2026-11-07 08:52:27 +01:00
Matthew Meszaros 527b982111 feat: register every verified tracking host and redirect domain (root and www) as a Cloudflare for SaaS custom hostname when CLOUDFLARE_SAAS_* is set, show a root CNAME and its activation TXT behind that edge, point the www record at the root, and let the AWS tracking listener forward unmatched hosts to tracking behind tracking_serves_unmatched_hosts 2026-11-07 08:17:45 +01:00
Matthew Meszaros 0989440f0d Merge remote-tracking branch 'origin/main' into feat/google-trusted-app-signin 2026-11-07 08:15:19 +01:00
Matthew Meszaros 4a9c4374d4 feat: report google_mailbox_client_id on GET /emails/grants/config only when the Google mailbox client has both its ID and secret, so the dashboard offers no Google reconnect that cannot complete 2026-11-07 07:38:52 +01:00
Matthew Meszaros 7325715c80 feat: remove the referral program from settings, the iOS billing page, the marketing site and the docs, stop attributing new signups to referral links, keep rewarding and clawing back referrals already attributed, and let a referral-backed discount code apply only to the workspace that signed up through it 2026-11-07 06:55:33 +01:00
Matthew Meszaros dea6692dde feat: record the scopes Google granted each mailbox token (email_accounts_oauth.granted_scopes, migration 000357) at connect, reauth and vendor convert, list only Google sign-ins without full mail access as retiring with the vendor that can reconnect them, tell workers through ADD_EMAIL full_mail_access to skip Gmail IMAP for a token known to lack it, let an app password take over a delegated Google mailbox after the worker check, add GET /emails/:id/signin with only the switches that can succeed, record vendor reconnect progress per mailbox on the audit spine, and reconnect vendor-linked Google mailboxes automatically behind mailbox_signin.auto_vendor_reconnect with one attempt in flight and a week between attempts 2026-11-07 05:20:33 +01:00
Matthew Meszaros c10ef21908 feat: connect vendor Google mailboxes by having InboxKit or Zapmail trust the BOX_GOOGLE client on the domain and complete each mailbox's consent at a single-use server-side vc. state finished in the Google callback, retire new domain-wide delegation requests, and add POST/GET /emails/vendors/:id/reconnect to renew or convert linked Google mailboxes in place 2026-11-07 05:20:33 +01:00
Matthew Meszaros bfe198986c feat: report the per-mailbox Google sign-in client as google_mailbox_client_id on GET /emails/grants/config for the Workspace trusted-app step, and refuse a Google OAuth start hinting a gmail.com or googlemail.com address with google_personal_app_password 2026-11-07 05:20:23 +01:00
Matthew Meszaros 87c3759f95 Merge pull request #1175 from warmbly/feat/free-trial-plan
feat: 14-day free trial with 2 mailboxes, once per owner
2026-11-06 19:12:22 +00:00
Matthew Meszaros 75cc1811ed feat: claim the owner's free trial and write its subscription in one statement, retry a trial expiry whose warmup pause failed, and re-render trial gates and both countdowns from the clock at the trial end and each day boundary 2026-11-06 19:49:59 +01:00
Matthew Meszaros 6d937eb112 feat: confirm with Stripe, while the owned workspaces are locked, that no owned subscription will renew before an account deletion removes them, so a resume whose webhook has not landed still holds the deletion 2026-11-06 17:27:25 +01:00
Matthew Meszaros b6c31852c2 feat: scale the AWS consumer service between one and six tasks on a WorkerEventBacklog CloudWatch metric the consumer publishes when CONSUMER_METRICS_CLOUDWATCH is set, and let backend, tracking and forms opt into CPU target tracking through the runtime root's autoscaling map 2026-11-06 13:11:13 +01:00
Matthew Meszaros 19fbb96fc9 Merge pull request #1162 from warmbly/fix/consumer-mailbox-queues
feat: per-mailbox consumer queues sized from the database pool
2026-11-05 17:21:06 +00:00
Matthew Meszaros a027135bc5 Merge pull request #1159 from warmbly/feat/attachment-preflight-inventory
feat: add offline archive attachment preflight with resumable SHA-256-bound pages
2026-11-05 13:59:06 +00:00
Matthew Meszaros f5d974bfd2 feat: run consumer worker events on per-mailbox queues that share a lane limit so a slow mailbox holds only its own lane, and size that limit from the consumer's database pool unless CONSUMER_EVENT_CONCURRENCY is set 2026-11-05 13:30:39 +01:00
Matthew Meszaros 419b3ca231 feat: verify attachment inventory member checksums and cancellation while admitting only regular archive files 2026-11-05 09:51:20 +01:00
Matthew Meszaros 67d61f24ba feat: handle worker events on ordered per-mailbox consumer lanes (CONSUMER_EVENT_CONCURRENCY, default 8) and hold warmup receipt locks on direct sessions behind a transaction pooler so a held lock never occupies a pooled server connection that receipt acceptance needs 2026-11-05 09:50:32 +01:00
Matthew Meszaros 4188a90b45 feat: add offline private attachment preflight to warmblyctl with archive-bound resumable pages and unchanged portability 2026-11-05 09:32:09 +01:00
Matthew Meszaros 377e42a58c feat: keep free warmup only for workspaces that exist today through subscriptions.keeps_free_warmup (migration 000352), give new unpaid workspaces a zero mailbox allowance with warmup off, send inbox review notices only to workspaces whose plan opens the inbox, and update the locked screen, allowance dialog, billing, site pricing and docs to drop the hosted free plan and recommend Warmbly Cloud over self-hosting for deliverability 2026-11-04 20:27:44 +01:00
Matthew Meszaros c166c915a3 Merge pull request #1132 from warmbly/feat/template-field-aliases-and-validation
feat: accept snake_case, camelCase and lowercase aliases of built-in template fields through one shared tmplvars normalisation, refuse unrenderable step, variant and campaign-create copy with invalid_template, and fix the documented merge-field syntax in docs, CLI and seeds
2026-11-04 18:15:23 +00:00
Matthew Meszaros 6642f339ea feat: merge main after the Postgres load work landed, number the mailbox push channels migration 000351 after it, and share one arrival batch size between the claim and the delivery loop 2026-11-04 18:03:46 +01:00
Matthew Meszaros 5a6fbef1b4 feat: count only client connections against max_connections in warmblyctl db load and report unsaved tracking-domain verdicts when the sweep is cut short 2026-11-04 17:28:38 +01:00
Matthew Meszaros eebfaf43d8 feat: label hidden and background sessions apart in warmblyctl db load, read pg_stat_statements from whatever schema holds it, give orphaned run-request handbacks their own deadline, report unsaved tracking-domain verdicts, treat missing retention fields as zero when checking the admin form for edits, and test the webhook delivery listener against a notification from another connection 2026-11-04 17:12:14 +01:00
Matthew Meszaros 6b83ad3306 feat: tie each task dispatch claim to its lease so a lapsed replica cannot release a newer claim, wake webhook delivery from any process through a throttled Postgres NOTIFY on enqueue, keep delivered send-result effects whose task can still re-apply, floor warmup thread-turn pruning at the mail and recovery windows, retry transient unibox backfill failures, hand back run requests for stopped loops, report failed prunes and pool moves, and scope db load to the whole server without non-query text 2026-11-04 16:41:20 +01:00
Matthew Meszaros fc1c59a51b feat: prune campaign feeds, notifications, webhook delivery logs, tracking dedupe marks, worker health samples, delivered send-result effects and warmup thread turns in batched ctid deletes from one jobrun table_retention job with three new retention settings, index every prune and the capacity view window, drive warmup mail retirement from the mailboxes that can act, and persist the unibox body backfill place 2026-11-04 12:56:35 +01:00
Matthew Meszaros a16774e048 feat: have each local task dispatcher claim due tasks with a two-minute lease in tasks.dispatch_claimed_until so backend replicas stop running the same task, claim send result effects 25 per statement, drain webhook and HubSpot and Pipedrive outboxes back to back while busy and slow their idle polls, and serve the CRM lapsed-lease claim from a partial index 2026-11-04 12:49:20 +01:00
Matthew Meszaros 686a916d42 feat: run the warmup, campaign, segment and tracking-domain reconcilers as claimed jobrun jobs, keep the worker reconciler, unibox body backfill and signing-secret migration on one backend behind a sticky Postgres session advisory lock (internal/leader), read warmup pool membership in one query with per-organization entitlement and risk lookups every 10 minutes, and take every jobrun run-now request for a process in one query 2026-11-04 12:43:39 +01:00
Matthew Meszaros 67bb118866 feat: label every Go service's Postgres connections with application_name warmbly-<binary> and add a read-only warmblyctl db load report of connections by service, longest sessions, costliest pg_stat_statements queries and largest tables 2026-11-04 11:52:08 +01:00
Matthew Meszaros 095d842aa9 feat: merge main into the mailbox push branch and renumber its migration to 000341_mailbox_push_channels after main took 000339 and 000340 2026-11-04 11:40:14 +01:00
Matthew Meszaros 93d8a73cbb feat: check Sender references through declared variables, with blocks and nested selectors, resolve form links in chosen A/B variant copy, check active variant copy at campaign start, keep line numbers when skipping form-link markers, and match first-name usage only inside template actions 2026-11-04 11:40:01 +01:00
Matthew Meszaros dc0c7b1eaa feat: accept snake_case, camelCase and lowercase aliases of built-in template fields through one shared tmplvars normalisation, refuse unrenderable step, variant and campaign-create copy with invalid_template, and fix the documented merge-field syntax in docs, CLI and seeds 2026-11-04 11:40:01 +01:00
Matthew Meszaros f9b8fa2255 feat: scale the AWS worker fleet on worker memory and CPU instead of mailbox count, publish WorkerMemoryPercent and WorkerMemoryMaxPercent from heartbeats, and let WARMBLY_WORKER_CAPACITY=auto size each worker's mailbox target from its measured memory 2026-11-03 18:11:18 +01:00
Matthew Meszaros 54342085df Merge pull request #1140 from warmbly/feat/cloud-subscription-gating
feat: close new self-hosted links to Warmbly Cloud, retire the Warmup plan checkout, keep existing links and paid subscribers unchanged
2026-11-03 15:43:07 +00:00
Matthew Meszaros d8c63c4232 feat: accept Gmail watch notifications as Pub/Sub HTTPS push at /api/v1/mailbox-push/gmail, verified by a Google-signed token for GMAIL_PUSH_SERVICE_ACCOUNT, keeping the consumer pull subscription for instances Pub/Sub cannot reach 2026-11-03 16:31:15 +01:00
Matthew Meszaros 458ae0a03b feat: close new self-hosted links to Warmbly Cloud, retire the Warmup plan checkout, keep existing links and paid subscribers unchanged, and hide Cloud surfaces on unlinked instances 2026-11-03 16:21:53 +01:00
Matthew Meszaros d241a836f8 feat: sync mailboxes in realtime through Graph change notifications, Gmail Pub/Sub watches and IMAP IDLE that wake the owning worker with SYNC_WAKE, drain stored arrivals continuously, and add an opt-in autoscaling AWS worker fleet without public IPv4 scaled on a published fleet utilization metric 2026-11-03 15:11:24 +01:00
Matthew Meszaros fb7546e141 Merge pull request #1131 from warmbly/feat/bounce-cause-keeps-valid-addresses
feat: decide bounce suppression from the DSN status code and server reply through a shared dsn.Blame rule so mailbox-full, policy, reputation and system bounces keep the address and lead while address-invalid ones suppress, carry the per-recipient status and diagnostic in inbound bounce reasons, reuse the rule in emailverify, and add an optional TYPESAFE_ENDPOINT
2026-11-03 13:15:28 +00:00
Matthew Meszaros d91ce11df1 feat: let sender-scoped refusal wording decide before any recipient marker in dsn.Blame so Postfix sender verification never suppresses the recipient, and validate TYPESAFE_ENDPOINT in warmblyctl inbox-tag only when a TypeSafe key is set 2026-11-03 13:53:44 +01:00
Matthew Meszaros 36b77487e3 feat: read the per-recipient DSN group with its Status field as the deciding code, keep policy-tailed and sender-scoped refusals off recipient suppression, reopen completed campaigns when a refused lead is kept, and require https for TYPESAFE_ENDPOINT outside loopback and private hosts 2026-11-03 13:27:07 +01:00
Matthew Meszaros 2a46e0771a Merge pull request #1136 from warmbly/feat/unibox-campaign-contact-filters
feat: scope GET /v1/unibox to a campaign_id or contact_id (org-verified, 404 outside the workspace) traced through campaign sends by Message-ID, In-Reply-To, thread root and Gmail thread handle, return each row's campaign_id, accept since/until as YYYY-MM-DD (until keeps the whole UTC day) or RFC 3339 and refuse anything else with 400 invalid_filter, and document address, direction, the new filters and dates in the unibox reference, openapi.json, error codes and both CLIs
2026-11-03 12:01:18 +00:00
Matthew Meszaros dd6a17ab6f Merge pull request #1135 from warmbly/feat/webhook-catalog-emitted-or-deprecated
feat: emit campaign.completed, inbox.reply_received, email_account.disconnected/error/synced, automation.run and bulk_operation.* webhooks from their control-plane sources, deprecate the five catalog events nothing can deliver, hide them from pickers, and add a source-scan test that every catalog event is emitted or deprecated
2026-11-03 12:01:15 +00:00
Matthew Meszaros 6afc5844b4 feat: emit campaign.completed, inbox.reply_received, email_account.disconnected/error/synced, automation.run and bulk_operation.* webhooks from their control-plane sources, deprecate the five catalog events nothing can deliver, hide them from pickers, and add a source-scan test that every catalog event is emitted or deprecated 2026-11-03 09:47:34 +01:00
Matthew Meszaros c455dc9306 feat: scope GET /v1/unibox to a campaign_id or contact_id (org-verified, 404 outside the workspace) traced through campaign sends by Message-ID, In-Reply-To, thread root and Gmail thread handle, return each row's campaign_id, accept since/until as YYYY-MM-DD (until keeps the whole UTC day) or RFC 3339 and refuse anything else with 400 invalid_filter, and document address, direction, the new filters and dates in the unibox reference, openapi.json, error codes and both CLIs 2026-11-03 09:35:47 +01:00
Matthew Meszaros 7a9645123b feat: record the step A/B arm each contact was sent on campaign_contact_progress (migration 000338), report contact-based per-step arm stats with last-step attribution and a Bonferroni-corrected two-proportion z-test winner in GET /campaigns/:id/ab-analysis, implement ab_testing.auto_promote_winner as an audited consumer loop, and show per-arm results, winner and promotion in the step editor and Settings > Sending 2026-11-03 09:12:56 +01:00
Matthew Meszaros d1ae1e2e32 feat: decide bounce suppression from the DSN status code and server reply through a shared dsn.Blame rule so mailbox-full, policy, reputation and system bounces keep the address and lead while address-invalid ones suppress, carry the per-recipient status and diagnostic in inbound bounce reasons, reuse the rule in emailverify, and add an optional TYPESAFE_ENDPOINT 2026-11-03 08:31:36 +01:00
Matthew Meszaros 9c5a6c3387 Merge pull request #1125 from warmbly/chore/review-kafka-costs
feat: add private AWS NATS operations and a compatible Kafka migration
2026-11-03 06:03:01 +00:00
Matthew Meszaros 999597508c feat: provision private three-zone NATS JetStream and add gated Kafka migration readers with compatible codecs 2026-11-02 15:25:15 +01:00
Matthew Meszaros 9b0b319ee7 feat: enforce issued password format and add scoped private attachment downloads with restricted runtime TLS ciphers 2026-11-02 13:05:45 +01:00