Skip to content

feat: custom fields, tags & segments + webhooks to Core (free) - #83

Merged
JuansesDev merged 8 commits into
mainfrom
feat/marketing-ready-webhooks-free
Jul 6, 2026
Merged

JuansesDev merged 8 commits into
mainfrom
feat/marketing-ready-webhooks-free

Conversation

@JuansesDev

Copy link
Copy Markdown
Member

Summary

Ships the Marketing-ready milestone and moves webhooks into the free Core.

Features

  • Custom fields — typed, project-scoped subscriber attributes (string/number/date/boolean/enum) over the existing metadata JSONB. Define once per project (Settings), validated on write, usable in templates as {{custom.*}} and in segment rules.
  • Tags — free-form labels per subscriber (single, bulk, inline on CSV import) + distinct-tags endpoint.
  • Segments — saved filters (match all/any over status, tags, custom.*) with a live match count; broadcasts can target a segment_id instead of "all active".
  • Webhooks → Core (free) — the management UI + REST API (create/list/pause/delete, delivery history) moved out of the Pro tier. Dispatcher/HMAC/retries were already in Core. Paid tier is now Analytics + Audit log + Team.

Hardening (fix(auth))

Login/2FA throttling (per-account), session revocation on password change, safer default role, and API-key capability scoping. Generic on purpose.

Frontend

New stores/components/pages for the above, plus inline form validation (required + typed values) and an error prop on AppInput.

Tests & tooling

  • Backend: unit tests for field validation, the segment predicate builder, the {{custom.*}} render, and the auth hardening.
  • Frontend: Vitest set up from scratch (@vue/test-utils + jsdom) with the first suites (validation util + components).

Docs

New guides (Segments, Custom fields, Tags), API refs, screenshots across the dashboard, tier updates (webhooks now Core), changelog sync (incl. 0.6.8), and a global fix for the {{ }} template-variable rendering bug in VitePress.

Verification

  • go build ./..., go vet ./..., go test ./... — green
  • npm run type-check, npm run lint, npm run build, npm run test (frontend) — green
  • Migrations applied locally; feature flows verified in the running app.

Notes

  • Migrations: 2 new (field definitions; tags column + GIN + segments table). Forward-only.
  • Depends on nothing external; no breaking API changes.

@JuansesDev
JuansesDev merged commit e963b52 into main Jul 6, 2026
@JuansesDev
JuansesDev deleted the feat/marketing-ready-webhooks-free branch July 6, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant