Commit Graph
686 Commits
Author SHA1 Message Date
Matthew Meszaros f8e909e96e feat: add an agency portal theme with a whole-dashboard accent palette, font, corner and default appearance choices, a designed sign-in page with three layouts, four backgrounds, an uploaded image and its own heading and message, a tab icon, and the agency's support and legal links, honoured by the dashboard, the connect and report pages and a live preview in Agency branding, and show monthly volume on regular plans with a two-client minimum on the agency cost calculator 2026-11-10 09:49:16 +01:00
Matthew Meszaros a79a196912 feat: add Warmbly for Agencies with a separate agency view, agency accounts, a shared monthly send pool, a shared agency AI balance with per-client caps and transfers, agency billing and top-ups, agency API keys across clients, client mailbox connect links and shareable and scheduled client reports served by a separate portal service on portal domains, white-label branding with a branded client dashboard on agency portal domains and website embeds, copy campaigns and templates across workspaces, and a cross-client inbox 2026-11-10 08:31:31 +01:00
Matthew Meszaros f4c7e73176 feat: read lead finder sites that answer 401/403/406/429/503 through configurable reader services (WEB_READER: Crawl4AI, Jina Reader, DDGS, custom) and a workspace Jina AI integration, search the web for missing websites and blocked sites' addresses through a picked MCP search tool, the workspace Jina key or SEARCH_PROVIDER (now also ddgs, jina, brave and tavily, comma-separated to fall back), add web_search to enrichment runs and search_tool to MCP servers in migration 000373, show unread sites as no info available with their reason, and document it all 2026-11-10 05:01:14 +01:00
Matthew Meszaros ebf918aa74 Merge remote-tracking branch 'origin/main' into fix/hide-warmup-inbox 2026-11-09 20:46:53 +01:00
Matthew Meszaros a6e09c46ec Merge remote-tracking branch 'origin/main' into fix/hide-warmup-inbox 2026-11-09 20:19:20 +01:00
Matthew Meszaros e3b5253cbe feat: hide other services' warmup from the inbox with a Settings > Sending switch for unverified Warmbly warmup markers plus warmup tags (applied on arrival and swept from stored mail), add an opt-in per-mailbox warmup filter tag appended to warmup a mailbox receives (migration 000373, GET/PUT/DELETE /emails/:id/warmup-filter-tag, drawer row), and show provider send throttles as a calm Warmup tab note instead of a red failure 2026-11-09 20:19:19 +01:00
Matthew Meszaros 97b626ead8 feat: never reopen a claimed sign-in link so one link connects at most one mailbox, lock every matching OAuth app row while an import preserves secrets, and keep workspace OAuth apps Partnership-only on self-hosted instances too 2026-11-09 20:01:22 +01:00
Matthew Meszaros 9e3c8a6f33 feat: address the third Partnership review by masking internal errors in warmup notes, returning the fallback lookup error on a lost grant race, reporting refused warmup settings apart from a failed start on links, locking destination OAuth apps while an import preserves their secrets, guarding pool-link token updates by the issuing client, refusing to revoke a link whose sign-in is completing and treating unsealed archived OAuth secrets as absent 2026-11-09 19:46:11 +01:00
Matthew Meszaros 8cc09f7b67 feat: address the second Partnership review by keeping the sign-in link cookie for other open sign-ins, answering a Cloud 408 as an unknown hand-over outcome, guarding backend token refreshes by the issuing client, returning the mailbox as stored after warmup, renewing on a lost grant create race, rechecking Partnership when a link completes, recording and showing links whose warmup did not start, retrying the link completion write, keeping destination OAuth app secrets on credential-free import overwrites, guarding unsaved OAuth app drafts and fixing the setup guide anchors 2026-11-09 19:05:42 +01:00
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