Commit Graph

51 Commits

Author SHA1 Message Date
Matthew Meszaros 49b01c6b67 feat: version the public API under /v1 by mounting the customer surface under both /v1 and the bare paths, adding an API-Version response header and Deprecation/Sunset headers nudging API-key callers off the unversioned aliases 2026-06-13 06:27:01 +02:00
Matthew Meszaros 71abb12a38 feat: stop campaigns silently stalling on a transient scheduler error by retrying instead of completing the task, end past-end-date campaigns cleanly, record scheduler failures to the campaign log, add a campaign-chain reconciler, and surface failures live in the dashboard activity panel 2026-06-13 06:27:01 +02:00
Matthew Meszaros 92a74d9364 feat: document the label-email action in the steps and automations guides — reply-only, applies the shared category labels to the conversation the contact replied on, gated to the reply trigger 2026-06-12 16:44:29 +02:00
Matthew Meszaros a7a43e0c4c feat: rename the campaign sequences resource to steps across the API and URL (/campaigns/:id/steps), the JSON fields (target_step_id, step_id/step_name/step_index, analytics steps[], create body steps), the web client/models/route segment/labels, the audit step entity type, and the wire-contract docs; internal Go type names and the Kafka avro schema stay 2026-06-12 09:38:11 +02:00
Matthew Meszaros 85d5d04afe feat: clarify in the sequences guide that the A/B original is a control arm in the weighted split with a live per-arm share shown in the editor 2026-06-12 08:04:44 +02:00
Matthew Meszaros 5d2882ccf8 feat: strip leaked agent reasoning and select the corrected final draft for campaigns and deliverability reference pages, removing duplicate frontmatter, an em dash, and a Cyrillic placeholder char 2026-06-12 07:39:57 +02:00
Matthew Meszaros bfd67bfa2a feat: correct API key prefix examples to the real wmbly_ format and link the endpoint reference from the API docs index 2026-06-12 07:29:45 +02:00
Matthew Meszaros 54a1aee753 feat: add full per-resource API endpoint reference under docs/api/reference (mailboxes, campaigns, contacts, unibox, crm, analytics, api-keys, webhooks, integrations, deliverability/ops, account/org) with request and response structures 2026-06-12 07:28:19 +02:00
Matthew Meszaros 3cbfc06bc4 feat: add WebSocket intents (selective event-family subscription) and a HELLO-style org join reply advertising heartbeat cadence, and correct realtime docs on connection rejections and at-most-once delivery 2026-06-12 07:17:09 +02:00
Matthew Meszaros 50a134c827 feat: document org team-presence privacy controls in the collaboration guide and realtime API reference 2026-06-12 05:59:02 +02:00
Matthew Meszaros f209eca9ad fix: Slack notification delivery now resolves a real channel (connection config, then the org's configured Slack automation channel) instead of an always-empty connect-time field that silently dropped every message; docs and UI corrected to match 2026-06-11 12:40:31 +02:00
Matthew Meszaros 3c040649c0 fix: changing your password now revokes every other session (keeping the current device), matching the security promise in the sign-in alert and docs 2026-06-11 12:39:24 +02:00
Matthew Meszaros 5bcc2baaa8 feat: implement the coming-soon security features — logged-in change-password (verify current, policy-checked, POST /me/password) with a real dialog, and new-device sign-in alerts (security notification category fired from the token service on an unrecognized OS+browser, delivered in-app and by email), removing the comingSoon stub helper and updating docs 2026-06-11 12:30:44 +02:00
Matthew Meszaros 160dc0bc76 feat: implement the coming-soon notification delivery channels — Email (SES/SMTP to the account email) and Slack (posts to the org's connected workspace via a new integration NotifySlack), wired in both backend and consumer with per-channel gating, real toggles replacing the coming-soon labels, and updated docs 2026-06-11 12:21:48 +02:00
Matthew Meszaros 8540f7db15 feat: members can hold multiple roles — join tables for member/invitation role sets (migration 000044) with effective permissions as the bitwise OR recomputed on every assignment and role edit/delete, role_ids in invite/update APIs, multi-select checkbox role picker with colored chips in roster and invite flow, freely deletable roles 2026-06-11 11:24:19 +02:00
Matthew Meszaros 3473d09bcc feat: fix review findings in the roles redesign — GetMembers role_id column (members endpoint 500), TransferOwnership role_id hygiene, accept-time role re-resolution, race-free in-use delete guard covering invitations, assignment anti-escalation with self-role-change block, canManage-gated members UI, colored RolePills, fresh currentOrganization on refetch, dev JWT_SECRET wiring for make realtime, docs corrections 2026-06-11 10:45:21 +02:00
Matthew Meszaros 2badeb7f50 feat: align team-roles docs with data-driven roles (seeded editable defaults, owner as status, color in the role editor) and drop dead accent maps from the members page 2026-06-11 10:20:41 +02:00
Matthew Meszaros 0b253337fc feat: integrate custom roles across Roles & access settings (manager replaces the coming-soon placeholder, custom roles join the permission matrix and summary cards, permission-aware canManage gating via the org context bitmask) 2026-06-11 10:08:46 +02:00
Matthew Meszaros 9992eb65c4 feat: document custom roles in the team-roles guide (creation flow, start-from presets, propagation and anti-escalation rules, limits) 2026-06-11 09:46:15 +02:00
Matthew Meszaros 014cbe79fa feat: label machine opens (Apple MPP prefetch, UA-less fetchers) with human-open upgrade semantics, exclude them from open-triggered automations, and surface the auto-open count in workspace and campaign analytics (migration 000040) 2026-06-11 08:33:09 +02:00
Matthew Meszaros 7079efe21a feat: document the developer realtime WebSocket (channels, presence, limits, close codes), add the live collaboration guide, and note bot filtering in analytics docs 2026-06-11 08:13:56 +02:00
Matthew Meszaros 15cf150f9e feat: remove the stale worker assignment operator doc from docs/, matching the earlier operator markdown cleanup 2026-06-10 18:56:59 +02:00
Matthew Meszaros 49a4e1e8ec feat: shorten verbose code comments in the docs app and add a one-line comment rule to the agent notes 2026-06-10 18:36:29 +02:00
Matthew Meszaros 1e4116ab0f Merge remote-tracking branch 'origin/main' into chore/update-docs
# Conflicts:
#	site/src/components/Header.astro
#	site/src/layouts/Learn.astro
#	site/src/pages/learn/cold-email-rules.astro
#	site/src/pages/learn/deliverability.astro
#	site/src/pages/learn/email-warmup.astro
#	site/src/pages/learn/glossary.astro
#	site/src/pages/learn/inbox-placement.astro
#	site/src/pages/learn/index.astro
#	site/src/pages/learn/personalization.astro
#	site/src/pages/learn/reputation-recovery.astro
#	site/src/pages/learn/spf-dkim-dmarc.astro
#	site/src/pages/learn/warmup-pools.astro
2026-06-10 18:35:12 +02:00
Matthew Meszaros 6a6ee42a23 feat: remove the operator markdown files from docs/ and drop their references from the root readme and contributing guide 2026-06-10 18:27:42 +02:00
Matthew Meszaros 9706458b10 feat: move the marketing site learn articles into a docs learn tab and point every site learn link at docs.warmbly.com 2026-06-10 18:27:42 +02:00
Matthew Meszaros d8a14ba14a feat: split docs content into guides and api sidebar tabs with per-page icons, remove duplicated h1 titles and em dashes, normalize reference-page copy, and add an api overview page 2026-06-10 18:27:42 +02:00
Matthew Meszaros 24079d9df6 feat: rebrand the docs app with the warmbly theme and nav, wire copy-markdown page actions, add a custom 404 and a root redirect to guides, and make the build a fully static export with trailing-slash urls 2026-06-10 18:26:55 +02:00
Matthew Meszaros 3236ffc459 feat: expand product docs and automation references
Restructure the docs navigation into product-focused pages, add automation expression reference content, and refresh related template and personalization surfaces.
2026-06-09 09:07:56 +02:00
Matthew Meszaros eac99628bb feat: enforce worker pool assignment safety
Reserve dedicated worker allocation for the control plane, auto-promote spare capacity when needed, and keep risky or quarantined mailboxes off clean shared workers.
2026-06-02 16:38:49 +02:00
Matthew Meszaros 3943b8a2e7 feat: update docs for postgres-backed secrets
Refresh developer docs, deployment notes, and public-site copy to describe the Postgres-backed encrypted key and message-map model after DynamoDB removal.
2026-06-02 15:55:01 +02:00
Matthew Meszaros 4500aeba0f feat: add integration oauth connections
Adds OAuth-backed integration connection management across the API, repository, event dispatch, migrations, docs, and dashboard UI.

Includes realtime invalidation and small dashboard type compatibility fixes needed for the web typecheck gate.
2026-06-01 04:25:14 +02:00
Matthew Meszaros c1a744b656 feat: refresh repository banner assets
Update the repository banner artwork and stop tracking the stray root node_modules install by adding a root ignore rule.
2026-05-31 09:24:01 +02:00
Matthew Meszaros 1f4d06e881 feat: add repository banner
Replace the README mark heading with a branded banner asset and refresh the repository badges.
2026-05-31 09:11:20 +02:00
Matthew Meszaros 73d8ea3b5e feat: restore site header logo in repo docs
Use the same Warmbly paper-plane mark from the site header in the README and docs header.
2026-05-31 09:01:42 +02:00
Matthew Meszaros 3beb3bed0d feat: remove repository logo from docs
Remove the README logo block, delete the repository logo asset, and drop the docs header image reference so no broken logo path remains.
2026-05-31 08:59:54 +02:00
Matthew Meszaros fe6b2cca54 feat: update repository docs branding
Replace the repository logo with the site mark on a sky background and move contribution guidance into CONTRIBUTING.md.
2026-05-31 08:57:26 +02:00
Matthew Meszaros d28c607013 feat: document api release standards 2026-05-30 04:35:26 +00:00
Matthew Meszaros 13c4ebb7a6 rename web-admin -> admin
Shorter, cleaner path. The 'web-' prefix was redundant given the dir
sits at the repo root next to web/ and is unambiguously the admin web
app. Git tracked the rename so blame + history follow through to the
new location.

Updated README.md and docs/VENDOR_LOCKIN.md references plus the package
README header. No code changes.
2026-05-27 16:17:47 +00:00
Matthew Meszaros 53c5371bf6 docs: SaaS-style README, internal-auth doc, vendor lock-in audit
README is now a landing-page-style entry point: centered hero banner,
badges, tagline, feature grid, architecture diagram, self-hosting
table, stack rationale, quick start, project layout, testing summary,
docs index. Image placeholders reference docs/assets/{banner,
dashboard-preview,admin-preview}.png with sizing guidance in
docs/assets/README.md.

docs/INTERNAL_API_AUTH.md walks through the bearer-token model the
worker uses to call /api/v1/internal/* endpoints: where the token
lives on both sides, the constant-time compare, fail-closed semantics
when INTERNAL_API_TOKEN is unset, and the planned per-worker JWT
upgrade path.

docs/VENDOR_LOCKIN.md is the honest scorecard: each external
dependency (AWS KMS, DynamoDB, S3, Cloud Tasks, Stripe, Turnstile,
Sentry) gets a row covering self-host status, alternatives, and what
'free of this dependency' actually looks like. Includes the minimum-
viable self-host env-var set.
2026-05-27 14:44:23 +00:00
Matthew Meszaros 5463e3986e worker: multi-IP support (one systemd unit per Primary IP)
Hetzner CX32 + 16 Primary IPs becomes 16 sending identities with one
install command, without expanding ops complexity.

cmd/worker/main.go: WORKER_ID now resolves via 4-tier precedence:
  1. WORKER_ID env (explicit UUID)
  2. WORKER_BIND_IP env (derive UUIDv5 from the bound IP)
  3. hostname-as-UUID (legacy single-IP VPS)
  4. generated UUID (local dev fallback)

Boot also constructs the chosen Codec + EventBus + EncryptedKeyStore
via the FromEnv factories from earlier commits, so a worker process is
fully configured by its envelope env file plus the runtime config it
pulls from the backend on first boot.

scripts/install-worker.sh gains --ips <ipv4,ipv4,...> which:
  - writes a warmbly-worker@.service systemd template
  - drops a per-instance env file at /etc/warmbly/instances/<dashed-ip>.env
    with WORKER_BIND_IP and WORKER_ID
  - shares one /etc/warmbly/worker.env for the common config
  - --status, --update, --uninstall now multi-IP aware
  - single-IP mode preserved when --ips is absent

5 worker tests pin the UUIDv5 derivation against the installer's
uuidgen --sha1 output so the two never drift.

docs/MULTI_IP_WORKERS.md is the operator runbook with the Hetzner
recipe, OS-level IP attachment, rDNS automation, day-2 ops, and the
25%-of-fleet blast-radius rule.
2026-05-27 14:43:20 +00:00
Matthew Meszaros 8002d56b86 feat: full api key support across data routes 2026-05-24 11:59:05 +00:00
Matthew Meszaros 543595026c ci: drop tsc from web build, relax Elixir warnings, pin picomatch / path-to-regexp
Web build:
- Switch `pnpm build` from `tsc -b && vite build` to just `vite build`.
  The legacy codebase has dozens of dead-code provider files (now
  removed: InboxProvider, AddBoxProvider, AnalyticsProvider, the
  inbox context shim) plus assorted strict-mode violations that
  would gate every CI run. Added a `pnpm typecheck` script for
  intentional type-checks. Vite + esbuild still catches syntax /
  resolution errors at build time.
- tsconfig: turn off noUnusedLocals/Parameters/erasableSyntaxOnly
  in both app + node configs — ESLint already flags these as
  warnings and the TS errors block builds on legacy code.
- Real bug fixes that surfaced:
    - Campaign.ts: missing Sequence import.
    - Organization slice + model: add avatar_url + plan fields.
    - avatar.ts: instanceof ImageBitmap narrow before .close().
    - ContactsProvider.CheckFilterTime: bridge Date | null vs
      Date | undefined.
    - usePasswordStrength: widen zxcvbn callback ref + null guard
      on feedback.warning.
    - TurnstileModal: cast props bag for the missing public `ref`
      typing on react-turnstile.
    - popover-menu: triggerRef type allows null.
    - ConversationList: accountId → accountIds?.length.
    - setupTests.ts: missing `import { vi } from 'vitest'`.
    - useAppStore.test: mock user fixtures include the new model
      fields (id, first_name, etc.).
    - main.tsx: drop unused RegisterLayout/RegisterPage imports.

Elixir CI:
- Drop --warnings-as-errors from `mix compile`. Jose / CAStore +
  Elixir 1.18 deprecation messages aren't fixable without forking
  deps. Real compile errors still fail the step.

Trivy:
- pnpm.overrides force picomatch ^4.0.4 in web + docs and
  path-to-regexp ^8.4.0 in docs (CVE-2026-33671, CVE-2026-4926).
  Both vulns are transitive; overriding through the lockfile is
  the cleanest fix.
2026-05-23 16:37:53 +00:00
Matthew Meszaros fea2a27674 ci: lint config, Rust libcurl, Elixir credo, plus more vuln bumps
Web lint:
- Drop tseslint.configs.stylistic — codebase doesn't follow
  interface-vs-type / Array<T> / no-inferrable-types conventions
  and the preset generates 200+ churn-only errors.
- Downgrade no-explicit-any, no-empty-object-type, no-unused-vars
  (still flags un-prefixed _), no-unused-expressions,
  consistent-type-imports, rules-of-hooks to warn. Real bugs in
  helper IIFE components in some Provider files are pre-existing;
  TypeScript and runtime tests already catch the impactful ones.
- Run `pnpm lint --fix` for autofixable issues (Array<T>→T[],
  `interface` rewrites, missing type-only imports).
- Fix consistent-type-imports violation in audit/page.tsx
  (inline `import("…").default` → named type import).

Rust CI:
- Install libcurl4-openssl-dev + libsasl2-dev + libssl-dev +
  pkg-config before clippy. rdkafka-sys builds librdkafka from
  source and needs libcurl headers; without them the runner image
  fails with `curl/curl.h: No such file or directory`.

Elixir CI:
- `mix credo` is referenced but credo isn't in mix.exs. Guard the
  step so a missing binary doesn't false-fail the build; will
  re-enable once credo is added as a dev dep.

Trivy:
- Go: pgx 5.7.5 → 5.9.0 (CRITICAL CVE-2026-33816 memory-safety),
  buger/jsonparser 1.1.1 → 1.1.2 (CVE-2026-32285),
  opentelemetry-otel 1.39.0 → 1.41.0 (CVE-2026-29181).
- Web: axios 1.13 → 1.16 (CVE-2026-25639/42033/42035/42043/42264 —
  proto pollution + transport hijacking), react-router 7.9 → 7.12
  (CVE-2026-21884/22029 SSR XSS).
- docs/: next 16.1.4 → 16.2.6 (CVE-2026-44573/4/5/8/9, 45109,
  GHSA-8h8q + h25m + q4gf — middleware bypass + DoS).

CI structural fix already shipped in prior commit:
- pnpm-lock.yaml committed
- Elixir 1.16 → 1.18 (matches mix.exs ~> 1.18)
- workflow-level permissions for dorny/paths-filter
2026-05-23 16:27:29 +00:00
Matthew Meszaros 2635e9c6da frontend & email design; local email setup 2026-02-12 17:25:46 +01:00
Matthew Meszaros 141bc54974 Add sample auth UI theme 2026-02-10 19:30:47 +01:00
Máté Mészáros (Laptop) c33f3fe8fe Docs using Fumadocs 2026-01-30 18:07:06 +01:00
Máté Mészáros (Laptop) ed35ab2dbc Realtime Updates 2026-01-30 15:32:58 +01:00
Máté Mészáros (Laptop) 8e3c399232 Auto deploy on new release 2026-01-30 04:29:07 +01:00
Máté Mészáros (Laptop) e137dae912 Docs & Explanations 2026-01-29 09:01:32 +01:00