Matthew Meszaros
|
a5982808fd
|
feat: stop the inbox flashing on scope and route switches by keeping previous unibox search pages as placeholder data while the new key loads (no more full-pane skeleton flash) and holding overview counts in cache for 30 minutes so the header stats stop rolling up from zero, and flatten the compose header to a quiet single-line bar that shows just the recipient (or New email) with the icon chip and subtitle removed
|
2026-07-19 08:25:06 +02:00 |
|
Matthew Meszaros
|
112f75a23d
|
feat: fix the in-composer AI layers rendering behind the docked compose window by raising the portaled sparkle/pill/menu z-indexes above window chrome (still under the confirm layer), give the compose header a proper identity (sky pen chip plus two-line title with the recipient or draft state), add the Template picker and booking-link tools to the compose action bar by extracting TemplatePickerContent and InsertBookingLink out of ReplyComposer into shared unibox components, and make Compose the house primary sky button in the rail and mobile header
|
2026-07-19 08:22:26 +02:00 |
|
Matthew Meszaros
|
26bb5a1746
|
feat: soften the compose chrome from black-on-white to grayish: the window header becomes a slate-50 bar with a hairline and muted controls, the rail and mobile Compose buttons become white bordered buttons with a sky pen icon, and the History panel's active tab uses a slate-200 fill instead of the inverted slate-900 pill
|
2026-07-19 08:17:33 +02:00 |
|
Matthew Meszaros
|
8260094d46
|
feat: redesign the compose window chrome: dark slate header bar with icon-only history/close, Gmail-style header rows (quiet inline labels and hairlines instead of the uppercase label lane and vertical divider), unlabelled heavier subject line, Cc/Bcc toggles on the To row, calmer AI presence (neutral auto chip on the From picker with the reason kept in the dropdown, contextual Suggest ghost that only appears when the subject is empty and a body exists, plain body placeholder), plus a proper Compose button at the top of the unibox scope rail with the header button kept as the mobile-only entry
|
2026-07-19 07:56:04 +02:00 |
|
Matthew Meszaros
|
3f85803cfa
|
feat: document the compose feature: unibox guide gains a Composing a new email section (docked window, contact search, suppression blocking, Auto mailbox selection with scoring rationale, History panel, in-composer AI and subject suggestion), and the API endpoints scope map adds /unibox/compose + /unibox/compose/candidates plus the new address and direction filters on GET /unibox
|
2026-07-19 07:40:05 +02:00 |
|
Matthew Meszaros
|
6790eabd74
|
feat: wire compose entry points: mount the window globally in the app layout, add the Compose button with an n shortcut tooltip to the unibox header, register the global n key (and update the shortcuts modal entry), and add an Email action to the contact drawer that opens compose prefilled with the contact's address
|
2026-07-19 07:38:48 +02:00 |
|
Matthew Meszaros
|
5e2d4ae832
|
feat: build the compose window: a docked bottom-right popup with an Auto mailbox picker that shows the backend's pick and reason plus per-mailbox budget bars, history badges, and auth dots, a contact-autocomplete recipient field, AI subject suggestion, the full in-composer AI experience (caret menu, selection edit, sheen + typewriter draft bar grounded in the recipient's contact record), suppression blocking before send, schedule presets, signature status, and a slide-out History panel with Conversations/Sent tabs, subject search, and mailbox-affinity line that opens real threads in the unibox
|
2026-07-19 07:38:48 +02:00 |
|
Matthew Meszaros
|
44bfe7840f
|
feat: add the compose web API layer (candidates + send clients, hooks with unibox invalidation, address/direction params on unibox search), a global useComposeStore zustand store so any surface can open the composer, and configurable draft row label/cost on TextareaAICaret so compose can say Draft this email with AI instead of the reply wording
|
2026-07-19 07:38:48 +02:00 |
|
Matthew Meszaros
|
097664b673
|
feat: add a direction filter to unibox search (?direction=sent|received) resolved against the org's own mailbox addresses so the dashboard can show a real Sent view and the compose history panel can split sent mail from replies
|
2026-07-19 07:28:38 +02:00 |
|
Matthew Meszaros
|
cf58c6d1d2
|
feat: add the compose backend: POST /unibox/compose sends a brand-new outbound email with org-wide recipient suppression enforced and optional auto mailbox selection, GET /unibox/compose/candidates scores every active mailbox for a recipient (conversation affinity from unibox history plus queued email tasks, remaining daily budget from daily_email_counts, domain-auth health) with human-readable reasons, a recommended pick, contact resolution, and suppression state
|
2026-07-19 07:27:23 +02:00 |
|
Matthew Meszaros
|
666a137cd8
|
feat: add an address filter to unibox search that matches either side of the exchange (from_addr OR to_addr) so the compose history panel can show every conversation with a contact, exposed as ?address= on GET /unibox, with a GIN index on to_addr (migration 000071) mirroring the existing from_addr index
|
2026-07-19 07:27:23 +02:00 |
|
Matthew Meszaros
|
4a9ae5514b
|
Merge pull request #73 from warmbly/feature/ai-automation-steps
AI writing experience, usage-based credits, switch steps, and richer seeds
|
2026-07-18 17:08:54 +02:00 |
|
Matthew Meszaros
|
527f1f95a1
|
feat: upgrade the iOS unibox AI writing and label experience to web parity: thread-grounded Draft reply with staged shimmer status, typewriter reveal, and a Keep/Adjust/Retry/Discard review bar, selection and whole-draft rewrites through the fenced generation/edit endpoint with parity quick actions and a custom Editing selection mode, insert-at-cursor prompt generation, usage chips and 402/429 handling, plus a search-or-create label picker sheet with instant optimistic saves, removable chips, row context-menu labeling, and a bulk Label action with progress and toast
|
2026-07-18 17:00:56 +02:00 |
|
Matthew Meszaros
|
47232aef3c
|
feat: fix the draft review card to a fixed width so the Adjust input spans it fully with the send button flush right, make the header credits meter foresight-first (ring plus plan left/allowance, or spent/limit today|wk|mo when a spend limit is configured, plus a +N for purchased credits, all without opening the panel), and surface keybindings across the AI flow: the selection pill shows an inline mod+J kbd chip and mod+J with a selection actually opens the editor, the caret companion keeps mod+J for the collapsed caret, and both popovers show enter/esc hints including esc-to-cancel while generating
|
2026-07-18 16:40:07 +02:00 |
|
Matthew Meszaros
|
ea85dbc1cf
|
feat: seed labels into the sandbox org (folders/tags/categories for sandbox@warmbly.test bound to mailboxes, campaigns, contacts, and four inbox threads, idempotent with a dedicated UUID namespace) and restyle the thread label dropdown to the house picker language: assigned labels show as colored chips right in the trigger with a +N overflow, the panel gets a search-or-create header, a removable assigned-chips row, color-dotted checkbox rows with an assigned marker, a friendly empty state, and a footer noting the shared category registry and the c shortcut
|
2026-07-18 16:35:36 +02:00 |
|
Matthew Meszaros
|
1823f03a80
|
feat: live usage-based credit feedback — every fresh debit publishes BILLING_CREDITS_CHANGED through the creditwatch monitor so the header meter counts down in real time (AnimatedNumber tween, plus client-side invalidation on write/edit/draft success), generation responses now return the real credits_charged and tokens_used from the usage settle and every AI surface shows the true cost instead of flat labels, and the composer AI became overlay-based: the draft bar floats over the body instead of pushing layout, a sky sheen sweeps the input while the model writes, and the selection being rewritten is painted with pulsing highlight rects that grow as the rewrite types in
|
2026-07-18 16:30:05 +02:00 |
|
Matthew Meszaros
|
cb6b58d462
|
feat: add a reusable ShortcutTooltip (themed tooltip with a platform-aware kbd chip, mod renders as cmd on Apple and Ctrl elsewhere) and use it on the caret AI sparkle (mod+J) and the header assistant button (mod+I) so fast keys are discoverable instead of hiding in native title attributes
|
2026-07-18 15:31:59 +02:00 |
|
Matthew Meszaros
|
09bb526a6c
|
feat: move the inbox composer's AI to the cursor — remove the Draft reply and Write with AI buttons from the action bar and replace them with a caret companion: a faint sparkle rides the line you're typing on (or press cmd+J) and opens a menu at the caret to ask AI to write and insert there, draft a full reply from the thread, or continue writing, with typewriter insertion plus Undo/Again/Done and the unibox guide updated to match
|
2026-07-18 12:11:14 +02:00 |
|
Matthew Meszaros
|
c03cf37716
|
feat: seed the dev org as a mid-flight workspace: new internal/seed dev_org.go + dev_history.go give dev@warmbly.com 4 warmed premium-pool mailboxes, folders/tags/categories with real bindings (email_tags, campaign_folders, contact_categories, unibox thread labels), ~30 contacts with suppression states, an active 3-step campaign with 24 leads on a deterministic funnel and NOW()-relative sends including today, 14d campaign/warmup/daily stats rollups, a 13-message unified inbox that always resolves a dev-org sending mailbox, CRM pipeline with deals/tasks/notes/activity, reply templates, notifications, AI credit ledger history, and idempotent campaign logs
|
2026-07-18 12:00:24 +02:00 |
|
Matthew Meszaros
|
ec53089232
|
feat: document the in-composer AI editing — selection-edit cost row in the AI credits guide, the unibox guide now covers the draft review bar (Keep/Adjust/Retry/Discard) and the Edit with AI selection pill, and the billing usage/transaction views label the new writing_edit reason
|
2026-07-18 11:59:18 +02:00 |
|
Matthew Meszaros
|
c075a74ad5
|
feat: agent panel motion polish — streaming assistant text ends in a blinking caret, the Working indicator becomes a pulsing agent mark with shimmer text, user bubbles and tool-step chips spring in, done checkmarks pop, and the minimized dock's response-ready dot pings
|
2026-07-18 11:57:37 +02:00 |
|
Matthew Meszaros
|
5178acd874
|
feat: in-composer AI writing experience — select text in the unibox reply textarea or the campaign TipTap editor and a floating Edit-with-AI pill opens quick actions (improve, shorten, expand, fix grammar, friendlier, more formal) plus free instructions backed by a new fenced /generation/edit endpoint (1 credit, idempotent, refund on failure, prompt-injection fencing around the passage), rewrites type themselves in with undo/again/done review, and Draft reply now runs through an inline draft bar with staged shimmer status and Keep/Adjust/Retry/Discard instead of a toast
|
2026-07-18 11:55:37 +02:00 |
|
Matthew Meszaros
|
ac3a904d8c
|
feat: restyle the header CreditsMeter to blend with the chrome — no pill background or blue tint, just a neutral slate ring gauge and count that matches the search/bell controls, coloring amber/red only when low or empty, with a number-forward panel (big balance, slate progress bars, status dot, quieter auto top-up note) instead of the sky-tinted card look
|
2026-07-18 11:30:07 +02:00 |
|
Matthew Meszaros
|
79029ad2d9
|
feat: upgrade the top-bar credits pill into a full CreditsMeter — a ring-gauge trigger showing remaining vs monthly allowance plus a click-open panel with plan pool fill and next reset, purchased credits, today/week/month spend against configured limits with warning bars, auto top-up status, and a link to usage & spend controls
|
2026-07-18 09:35:43 +02:00 |
|
Matthew Meszaros
|
d832453b2d
|
feat: show the remaining AI credit balance in the top bar — a CreditsPill beside the plan badge (sky normally, amber under the org's low-balance threshold, red at zero, compact 12.4k formatting) linking to Settings/Billing, rendered only for members with manage_billing and refreshed by the realtime spine
|
2026-07-18 09:20:24 +02:00 |
|
Matthew Meszaros
|
4f9e6e6282
|
feat: full attribution on every AI credit charge — new actor_user_id + context jsonb columns on the transaction log (migration 000070), a typed models.CreditContext carried via request context (models.WithCreditMeta) so base charges, usage settles, web-search fees, and refunds all inherit it without signature churn, wired at every spend site (campaign switches record campaign/step/contact, automation nodes and Ask AI record automation/node/run and the question asked, reply drafts and inbox agent record the thread, the dashboard agent records the session, research records contact/run, and manual features record the triggering user), rendered as a detail line with token counts in the billing transaction log with corrected reason labels, and documented in the AI credits guide
|
2026-07-18 08:52:16 +02:00 |
|
Matthew Meszaros
|
163d3057de
|
feat: add web-search and extended-thinking capabilities to the campaign switch AI decider — a per-step web lookup about the contact's company (query derived from contact fields only, results fenced as untrusted, +1 credit charged only when results land, wired through a new tasks SetAISearch) and a thinking toggle that routes to the stronger model tier with a 2048-token budget priced through usage metering, with editor toggles under Capabilities and sequences/ai-credits docs
|
2026-07-18 08:42:08 +02:00 |
|
Matthew Meszaros
|
053ca6a71d
|
feat: usage-based AI credit system — every AI call reserves its flat minimum then settles the real token cost per model (light 1500/standard 400 tokens per credit, drain-to-zero overage settle wired into writing assistant, reply drafts, dashboard agent, inbox agent, research, automation nodes, and campaign switches), org spend controls in a new org_ai_settings table (day/week/month hard limits enforced in Consume, low-balance alert threshold, auto top-up config), a credit-watch monitor hook that fires BILLING_CREDITS_LOW realtime alerts once per day and buys the configured pack off-session via a new Stripe AutoTopUpCredits (idempotent on the PaymentIntent, bounded per month, Redis-locked), GET /subscription/credits/usage + GET/PATCH settings endpoints, and an AI usage & spend controls billing card (spend vs limits, 30-day chart, per-feature and per-model breakdowns, limits/reminder/auto-top-up form) with a realtime low-credit toast
|
2026-07-18 08:39:41 +02:00 |
|
Matthew Meszaros
|
d0aeee95fa
|
feat: use purple for the Switch's selection and active states — selected node ring, decider card active state, context-toggle on-state, and the instruction textarea focus ring all take the step's purple identity instead of the global sky accent
|
2026-07-18 08:12:05 +02:00 |
|
Matthew Meszaros
|
a3f8284ef2
|
feat: give the Switch a restrained purple identity like Condition owns amber — purple border, tinted header, icon chip, wired case dots, and purple case edges on the node, while editor controls (decider cards, context toggles, hint boxes) stay on the standard sky/slate theme and the sparkles-vs-split icon swap is dropped for a constant SplitIcon
|
2026-07-18 08:09:44 +02:00 |
|
Matthew Meszaros
|
30d4277bba
|
feat: harden switch value matching and restyle the decider picker — normalized comparison ignores casing and collapses whitespace, /pattern/ case names become case-insensitive regexes (validated at write time, plain cases checked before regex cases, first match wins, no substring fuzziness so 'not interested' never lands on 'interested'), and the Decided by control becomes two icon cards with descriptions matching the step-type switcher
|
2026-07-18 08:06:26 +02:00 |
|
Matthew Meszaros
|
0f2006f00c
|
feat: list the campaign Switch in the routing group of the canvas menus — beside Condition (branch) in the drag-create menu and right after Send email in the Add-step menu and node-type switcher, out of the Actions list, since it routes rather than performs a side effect
|
2026-07-18 07:24:56 +02:00 |
|
Matthew Meszaros
|
f36c1a5001
|
feat: replace the campaign AI step with a Switch step — a multi-way router whose cases are rows on the canvas node, each with its own draggable source dot (per-case ai_label branches wired by handle, retarget on re-drag, purple case edges with no IF boxes, bottom dot as the otherwise fallback), decided per contact by an AI prompt (1 credit, fenced context, same credit lifecycle) or a free deterministic template-value match, with a mode toggle + case list editor (stale case paths healed on save), drag-to-empty-canvas creating the target and wiring the case, and sequences/ai-credits/automation docs rewritten for the switch
|
2026-07-18 05:42:50 +02:00 |
|
Matthew Meszaros
|
8019ce00fe
|
feat: make every line dragged out of a campaign AI step a new choice path — onConnect routes AI-step sources to addAIPathTo, which saves the branch as an ai_label condition under a unique placeholder name (write-time validation needs one) and opens the connection editor to name the outcome, so you drag as many outcome lines from the step as you need instead of stacking dead always branches
|
2026-07-18 05:22:19 +02:00 |
|
Matthew Meszaros
|
4399bb8e82
|
feat: collapse the campaign AI step to a prompt plus draggable named outcome paths — the connections drawn out of the step are the choice set (outcome names live on the ai_label branch conditions, deduped per step and read at run time), drop the ai_labels/ai_output_fields/ai_actions config and the whole AI action palette (side effects are ordinary action steps placed on the chosen path), and fence the contact's email, profile fields, and automation event data as untrusted content in every campaign and automation AI prompt so injected instructions inside replies are ignored
|
2026-07-18 05:18:24 +02:00 |
|
Matthew Meszaros
|
6b05ca8e48
|
feat: renumber the sequence AI step migration from 000067 to 000068 after merging main, whose email-auth-state migration takes the 000067 slot in the renumbered sequence
|
2026-07-17 18:29:41 +02:00 |
|
Matthew Meszaros
|
273dd7ce33
|
feat: merge main (deliverability auth-state sweep, watch-band cold throttle, research roadmap) plus the 000067 email-auth-state migration renumber into the campaign AI step branch
|
2026-07-17 18:29:06 +02:00 |
|
Matthew Meszaros
|
ad794bb184
|
feat: document the AI step and AI branching — sequences guide (AI steps, AI-picked tag choices, context controls, AI-label paths with inline label creation), automations guides (Ask AI branch, per-label classify routing), and the AI credits cost table entries for campaign AI steps and Ask AI branches
|
2026-07-17 16:26:58 +00:00 |
|
Matthew Meszaros
|
2945974ca7
|
feat: build the campaign AI step editor and canvas routing — instruction with contact variables, label/output-field lists, an AI action palette reusing the extracted ActionConfigFields with per-action when-hints and AI-picked tag/label choice sets with max-pick caps, what-AI-can-see context toggles, and AI-label connection paths with inline new-label creation that writes the label back to the step
|
2026-07-17 16:26:50 +00:00 |
|
Matthew Meszaros
|
fd2994bdd8
|
feat: build the automations builder UI for AI branching — an Ask AI (yes/no) condition field with prompt textarea, event-variable chips and credit note, per-label connection routing on AI classify nodes via a node-editor "Route connections by label" section with purple label edges, and stale label-edge healing on save
|
2026-07-17 16:26:42 +00:00 |
|
Matthew Meszaros
|
b564b227c0
|
feat: add automations Ask AI branch condition and ai_classify per-label edges — a prompt-driven yes/no condition evaluated via the metered provider (fail-safe to the no path, run-history errors, dry-run charged without auto-pause), label:<x> edges validated against the classify node's label set and followed only on the matching verdict, and no credit minting on local-provider refunds
|
2026-07-17 16:26:30 +00:00 |
|
Matthew Meszaros
|
d18c5ebe4a
|
feat: execute campaign AI steps in the scheduler path — one metered completion per contact (SetAI-wired provider + credits with per-step idempotency and refund-on-failure) that labels progress, fills contact custom fields which feed the chosen actions' templates, runs AI-picked pre-configured actions with per-decision campaign logging and tag/label choice resolution, grounds decisions in campaign history and the newest inbound reply via LatestInboundFromContact, and hands instant chains back to the scheduler at AI nodes
|
2026-07-17 16:26:23 +00:00 |
|
Matthew Meszaros
|
27381aa127
|
feat: branch campaign sequences on the AI step verdict — ai_label/"is" conditions validated as a strict pair and evaluated deterministically at schedule time off the stored label, threaded through FindNextRoutedPair, GetContactProgress, and a new RecordAILabel upsert (no model call in the scheduler polling path)
|
2026-07-17 16:26:14 +00:00 |
|
Matthew Meszaros
|
1bf517678a
|
feat: add the campaign sequence AI step data layer — "ai" action config with instruction, label set, output fields, AI-decided action palette (tag/label choice sets, when-hints) and context opt-outs, write-time validation caps, and migration 000067 adding campaign_contact_progress.ai_label
|
2026-07-17 16:26:08 +00:00 |
|
Matthew Meszaros
|
f2a56448fd
|
feat: renumber the email auth state migration from 000051 to 000067 to resolve the duplicate-version collision with 000051_referrals that broke cmd/migrate after merging the deliverability auth-sweep into the ai-platform migration range
|
2026-07-17 18:18:29 +02:00 |
|
Matthew Meszaros
|
cd5e1e9cf7
|
Merge pull request #72 from warmbly/research/warmup-abuse-cold-effectiveness
feat: deliverability research + observe-only SPF/DKIM/DMARC auth state and watch-band cold throttle
|
2026-07-17 05:29:58 +02:00 |
|
Matthew Meszaros
|
3ea2831040
|
feat: annotate the research roadmap with the observe-only auth-state and watch-band cold-throttle work already shipped on this branch
|
2026-07-17 03:24:18 +00:00 |
|
Matthew Meszaros
|
8af92417bd
|
feat: add authDomainOf unit test covering casing, whitespace, subdomains, and malformed addresses for the auth-check sweep domain extraction
|
2026-07-17 03:23:46 +00:00 |
|
Matthew Meszaros
|
7176bbce3c
|
feat: add dnsauth unit tests covering Result.State() classification (unknown on empty/transient-error, passing on SPF+DMARC, DKIM advisory) and DMARC policy parsing
|
2026-07-17 03:22:48 +00:00 |
|
Matthew Meszaros
|
e5a6643e2f
|
feat: apply the warmup watch-band volume multiplier (0.7x) to cold campaign sends via the shared adjustmentFor helper so a watch-state mailbox slows cold volume before it hard-quarantines
|
2026-07-17 03:21:29 +00:00 |
|