Commit Graph
677 Commits
Author SHA1 Message Date
Matthew Meszaros a2e1bf58f0 feat: merge main into the Partnership branch, keeping both the OAuth app import checks and the integration reconnect marking in the org transfer repository 2026-11-09 18:11:57 +01:00
Matthew Meszaros 878a962357 feat: page form submissions by an opaque (created_at, id) cursor that keeps microseconds while still accepting the legacy before timestamp, and keep every loaded submissions page in the dashboard live by re-reading the loaded window on realtime refreshes, appending older pages into it and removing deleted rows optimistically 2026-11-09 17:08:11 +01:00
Matthew Meszaros 3e5d7b6e47 feat: address review of the Partnership changes by allowing provider redirects in the sign-in link page CSP, refusing limit=0 on connect links, keeping saved OAuth apps maintainable after a workspace leaves Partnership, enforcing the key mailbox allowlist on grant renewal, dropping stale worker token updates for workspace-app mailboxes, keeping Partnership placement tests off the balance, refusing OAuth hand-backs and mixed credentials on Cloud, keeping ambiguous hand-overs retryable, excluding instance-run mailboxes from action admission, restoring the frozen reporter-trust placement filter, showing pending removal first and refusing workspace imports whose OAuth app collides 2026-11-09 17:05:07 +01:00
Matthew Meszaros 8575bce7ca feat: make the Partnership plan Cloud-only by removing instance self-execution, and add the Partnership mailbox connect API (SMTP/IMAP with warmup, one-sign-in OAuth grant handoff, sign-in links), workspace-owned Google and Microsoft OAuth apps refreshed on the backend, Partnership access to placement tests and API keys, and the Partnership guide 2026-11-09 15:58:47 +01:00
Matthew Meszaros 90e4d48228 feat: work out each contact's timezone and country from its imported location fields, phone and email domain, add world region, country and timezone segment fields with Split by region, let a campaign read its sending windows in each lead's local time with a lead timezone breakdown on the Schedule tab, and auto-map location columns on import 2026-11-08 12:06:03 +01:00
Matthew Meszaros 6280c67d3b feat: give an AI draft retargeted at a newer inbound message a new id, so an approval of the version a reviewer saw (from any client, including one loaded before the deploy) sends nothing, in place of the optional source_message_id approval guard, with live Postgres regressions and the by-thread upsert docs 2026-11-07 12:55:42 +01:00
Matthew Meszaros 3c8512a7de feat: let AI draft approval name the source message the reviewer saw and refuse a draft retargeted since with 409 draft_retargeted, sent by the dashboard draft card, with handler, live Postgres and card regressions and the endpoint and error-code docs 2026-11-07 12:36:57 +01:00
Matthew Meszaros 5c01c0c7d6 feat: approve inbox-agent drafts with one tenant- and mailbox-scoped UPDATE ... RETURNING claim that sends exactly the claimed snapshot, scope the by-thread upsert's pending UPDATEs to the organization, match resolved drafts by source message with the creation-time fallback only for rows without one, and add live Postgres regressions for approval/upsert races and late-arriving inbound mail 2026-11-07 12:14:58 +01:00
Matthew Meszaros 1921814a87 Merge branch 'main' of https://github.com/warmbly/warmbly into feat/ai-draft-upsert-api 2026-11-07 11:58:35 +01:00
Matthew Meszaros 29eedfaef3 Merge pull request #1184 from warmbly/feat/gmail-signin-follows-backend
feat: show Google mailbox sign-in whenever the backend allows it and remove the dashboard flag
2026-11-07 10:34:55 +00:00
Matthew Meszaros bc85154d2d feat: show Google mailbox sign-in in the dashboard whenever the backend reports gmail_oauth_connect, removing the WARMBLY_GMAIL_OAUTH_CONNECT and VITE_GMAIL_OAUTH_CONNECT dashboard flag and the assessment-dashboard setup from config, compose files, docs and tests 2026-11-07 11:10:37 +01:00
Matthew Meszaros de4f880277 feat: hold a restricted member's campaign edits, step changes and starts to campaigns sending only from granted mailboxes in an explicit list with no mailbox tags, refuse their cc and bcc edits, match client role presets on permissions and acts_in_scope rather than name, and document the client reply and campaign edit rules 2026-11-07 11:02:20 +01:00
Matthew Meszaros 19eebd39c9 feat: compute GET /unibox/overview in one materialized scan with hash aggregates (21s to 5.6s on a 400-mailbox, 400k-message org, identical output), list every mailbox and tag in the overview, add a tag_ids filter to GET /unibox resolved in SQL, add POST /emails/bulk/delete, /bulk/warmup and /bulk/status, and make the dashboard share one mailbox directory cache, refresh the overview on its own slower coalescer, refetch only the head page of long thread lists, virtualize the mailboxes table and conversation list, and page the scope rail and filter popover 2026-11-07 11:02:20 +01:00
Matthew Meszaros 747b788e10 feat: classify provider sending refusals into typed mailbox pauses (rate_limited, daily_limit, sender_blocked, domain_auth) with escalating cooldowns that charge the lead no attempt, re-probe and owner Resume sending for SMTP holds, short pauses keeping bound leads waiting, auto-resume of paused_no_accounts campaigns, and a mailbox drawer pause notice with list badge (migration 000366) 2026-11-07 11:01:55 +01:00
Matthew Meszaros 1076722d97 feat: add client roles for restricted members: organization_roles.acts_in_scope (migration 000365 widens the access trigger to manage_campaigns and send_campaigns from such roles), a ResourceScopeGate action allowlist for unibox replies, labels, read state, filing, snoozes and scheduled cancels and for granted campaign edits, steps and start/stop, handler checks holding replies to conversations in granted mailboxes and campaign edits off senders, folders, tracking domain, status and workspace step actions, three client role presets in the member access dialog, invite flow and Roles page, scope-aware dashboard controls, tests and docs 2026-11-07 11:01:55 +01:00
Matthew Meszaros 94940f8cb3 feat: balance charges an automatic reload only while reload is on and the balance under its threshold and cancels a pending one when reload is turned off, answers a top-up still going through with 202 and honors Idempotency-Key on it, keeps user_id off checkout session metadata, gives the new reload its own auto_reload_enabled switch, sets plan monthly_credits to match the dollar allowances, closes stale legacy pack charges and fails a charge after eight unanswered attempts, and refreshes annual allowances oldest reset first 2026-11-07 10:36:20 +01:00
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 229316ce6e feat: lead finder refunds a page charge when saving the search fails, refuses an unknown provider and a half-given point, reads robots.txt for the http fallback, keeps a stored phone, rechecks addresses no longer suppressed, counts secondary categories in the facet, keeps queued leads another run still holds, and on the page shows a retryable load error, keeps notes being typed, searches the current view after a past search, ignores a closed import's result and leaves the hidden people column out of person exports 2026-11-07 09:21:41 +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 0989440f0d Merge remote-tracking branch 'origin/main' into feat/google-trusted-app-signin 2026-11-07 08:15:19 +01:00
Matthew Meszaros 568df446b6 Merge remote-tracking branch 'origin/main' into feat/google-trusted-app-signin 2026-11-07 07:30:50 +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 57c60d4969 feat: add a Sign-in section to the mailbox drawer that shows how each Google mailbox signs in and offers only the switches that can succeed (reconnect through InboxKit or Zapmail with live progress, reconnect with Google behind the trusted-app step, move onto an existing domain grant, switch to a verified app password), point the Overview tab at it, add Reconnect all Google mailboxes to vendor accounts and per-vendor reconnects to the sign-in banner via email_account_ids on POST /emails/vendors/:id/reconnect, refresh it all through the email_account and mailbox_vendor audit spine, add the Mailbox sign-in toggle for mailbox_signin.auto_vendor_reconnect to the admin settings, and document switching, the automatic vendor reconnect and the new routes and fields 2026-11-07 05:20:34 +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 1db1ea0835 feat: request https://mail.google.com/ for new Google sign-in mailboxes (reauth still accepts gmail.modify) and run Gmail warmup engagement (spam rescue, mark read, star, mark important) over imap.gmail.com with the mailbox's own token, including delegated mailboxes through an optional mail.google.com delegation scope minted via ?purpose=imap on the internal token route, falling back per mailbox to the Gmail API when the scope or IMAP access is missing, with docs for scopes, warmup and existing delegation entries 2026-11-07 05:20:23 +01:00
Matthew Meszaros a22d15efd6 Merge remote-tracking branch 'origin/main' into devin/template-warmup 2026-11-07 05:18:49 +01:00
Matthew Meszaros 6acd093e5f feat: give every new hosted workspace a 14-day no-card free trial with 2 mailboxes warming in the free pool and 20 sends a day, claimed atomically once per owner (later workspaces start unpaid), pause instead of wiping warmup when it ends, and show the countdown, trial-ended states, billing, docs and site pricing to match 2026-11-06 18:37:46 +01:00
Matthew Meszaros 6ab8fa8c28 feat: make campaign copy warmup automatic with no settings or page (a quarter of a mature sender's new threads open with a running campaign's step, never sent twice to one recipient in 30 days), continue each such thread with a prospect-style reply from a hand-written set and the sender's answer, show each step arm's warmup placement under the step on the campaign, and drop warmup templates, their settings table, permission and dashboard page 2026-11-06 06:41:44 +01:00
Matthew Meszaros d7535b2d25 feat: send a workspace's own warmup copy only to pool mailboxes that file warmup mail out of the inbox so it meets a provider's filter rather than a reader, and add GET /warmup/templates/:id so the template drawer shows the body 2026-11-05 20:12:53 +01:00
Matthew Meszaros 042b4ede09 feat: report a reported count on warmup copy placement so landing rates are read over receipts that arrived, and make POST /warmup/templates/check return the same refusal a create would (wording, send gate, merge fields, length) in blocked_reason, with docs and openapi 2026-11-05 19:12:30 +01:00
Matthew Meszaros 2315e0f120 feat: document campaign copy warmup in the warmup guide, the deliverability-ops API reference, the endpoint scope map and openapi.json (GET /warmup/templates/campaign-copy, campaign_copy setting, 25 percent default share, big-three headline placement, 7-day maturity gate), and refuse merge fields and AI blocks in verbatim warmup templates 2026-11-05 18:47:38 +01:00
Matthew Meszaros 9bbf149548 feat: warm up running campaign copy: each mailbox's warmup draws the opening steps and active A/B arms of the campaigns it sends for, rendered per pool recipient through the campaign renderer (merge fields, spintax, HTML, signature, opt-out, UTM) and refused when a step needs lead-only data, with per-step placement at GET /warmup/templates/campaign-copy, a campaign_copy setting, a 7-day mailbox maturity gate, big-three headline placement, a sender-only template resend check, lock_timeout and a concurrent org index 2026-11-05 18:24:43 +01:00
Matthew Meszaros 26c7433be4 Merge remote-tracking branch 'origin/main' into devin/template-warmup 2026-11-05 17:50:51 +01:00
Matthew Meszaros 9441ad3b50 feat: bound new campaign CSV and TSV uploads to 4096 fields per logical record with a pinned Go reader while preserving import and attachment transport profiles 2026-11-04 21:47:14 +01:00
Matthew Meszaros 7806d57da2 feat: require listed presentation slides and matching Office member types and enforce classic PDF revision object ranges while preserving attachment transport 2026-11-04 21:35:36 +01:00
Matthew Meszaros 78e42be41f feat: validate bounded campaign attachment formats and UTF-8 imports while preserving portable existing files 2026-11-04 20:22:57 +01: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
bruce 9081f93bd4 feat: add org-scoped warmup templates: template rows in the shared warmup_conversations bank sent verbatim from the owning workspace as a configurable share of its warmup (template_share, templates_only) with a once-per-sender-per-day cap, /warmup/templates API with a /check analyzer, settings and per-template placement by provider group, WARMUP_TEMPLATES permission bit 24, orgtransfer registration, docs, and tests 2026-11-04 16:13:34 +00: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 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 718985d574 Merge pull request #1127 from warmbly/fix/mailbox-warmup-errors
feat: preserve mailbox sync coverage and accurate notification and authenticator status
2026-11-03 15:46:37 +00: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 074018cf00 Merge remote-tracking branch 'origin/main' into fix/mailbox-warmup-errors 2026-11-03 16:01:12 +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 b0cb19c0e7 Merge pull request #1133 from warmbly/feat/warmup-stop-lifts-cold-ceiling
feat: lift the reply-gated cold ceiling once warmup is stopped (not paused) by reading warmup_stopped_at in ColdRampStateForAccounts through one ColdRampState.CeilingApplies gate shared by the scheduler, send plan, projection and mailbox status notice, correct the Stop comments, let an explicit batch warmup Off win over per-row warmup columns in mailbox import with a three-way warmup choice in the import dialog, and document both in the campaigns, warmup and mailbox import guides
2026-11-03 12:41:36 +00: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 2da3e7d299 feat: fence identified mailbox sync reports against current worker assignments and verify password-only reauthentication recovery 2026-11-03 08:17:16 +01:00