Skip to content

Added a "Label added to a member" automation trigger prototype - #32575

Draft
zach1618 wants to merge 3 commits into
mainfrom
zach-ny-1750-lead-magnet-design-prototype
Draft

zach1618 wants to merge 3 commits into
mainfrom
zach-ny-1750-lead-magnet-design-prototype

Conversation

@zach1618

@zach1618 zach1618 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

ref https://linear.app/ghost/issue/NY-1750

Design prototype, not ready to merge. This draft is open so the preview can be shared for feedback.

What it shows

  • New trigger: "Label added to a member" in the automation trigger picker.
  • Label field: uses the same field as "Paid subscription changed" From/To (TierScopePicker), with a new single-choice mode.
    • Click to open the list. Picking a label closes it and shows the label as plain text.
    • Typing searches. "Create" appears when there's no match.
    • Backspace clears the choice.
    • Sites with more than 100 labels search the server and load more as you scroll.
  • Publish dialog: when the label already has members, the dialog asks who to start the automation for: "From now on" or "From now on and who already have it". Neither is picked to start with, so the publisher has to choose.
  • Settings: the stop condition names the label.
  • Comparison page: /automations/triggers shows every trigger card, as shipped now and as proposed. It is prototype only.

Not done yet

  • Saving is blocked: the API can't store a label trigger yet, and the publish choice isn't stored.
  • Before merging, remove apps/admin/src/automations/prototype/ and its route.
  • "Paid subscription started" moving to the same field is a separate PR.

Trying it on the preview

  1. Turn on Automations in Settings → Labs. Redeploys reset the database, so do this after each push.
  2. Add a label to a few members, so the publish question shows up. The seeded members have no labels.
  3. Create a new automation and pick "Label added to a member".

ref https://linear.app/ghost/issue/NY-1750

- adds the trigger to the picker behind the lifecycle triggers flag, with a single-label field that can create, rename and delete labels inline
- names the label in the Settings stop condition
- asks whether to include members who already have the label when publishing
- keeps the selection in local state; saving is blocked until the API can hold it
…net-design-prototype

# Conflicts:
#	apps/admin/src/automations/components/canvas/automation-canvas.tsx
#	apps/admin/src/automations/components/canvas/automation-sidebar.tsx
#	apps/admin/src/automations/components/canvas/trigger-card.tsx
#	apps/admin/src/automations/editor.tsx
#	apps/admin/src/automations/new-automation.tsx
ref https://linear.app/ghost/issue/NY-1750

- the label field now uses the paid subscription changed From/To picker in a new single choice mode, so every trigger shares one field pattern; Backspace clears a choice so a decision can always be undone
- the publish dialog asks explicitly, with no default, whether to start the automation for members who already have the label, as the PM asked
- adds a prototype-only /automations/triggers page comparing every trigger card, current vs proposed; remove before merging
@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@zach1618 zach1618 added the preview Deploy a PR preview environment label Nov 4, 2026
@nx-cloud

nx-cloud Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🤖 Nx Cloud AI Fix

Ensure the fix-ci command is configured to always run in your CI pipeline to get automatic fixes in future runs. For more information, please see https://nx.dev/ci/features/self-healing-ci


View your CI Pipeline Execution ↗ for commit cf06aaa

Command Status Duration Result
nx run @tryghost/admin:test:acceptance --shard=3/3 ✅ Succeeded 7m 6s View ↗
nx run @tryghost/admin:test:acceptance --shard=2/3 ✅ Succeeded 6m 55s View ↗
nx run @tryghost/admin:test:acceptance --shard=1/3 ✅ Succeeded 6m 47s View ↗
nx run-many -t test:unit -p @tryghost/admin ✅ Succeeded 5m 3s View ↗
nx run ghost-monorepo:lint:boundaries ✅ Succeeded 17s View ↗
nx run-many -t lint -p @tryghost/admin,ghost-mo... ✅ Succeeded 1m 9s View ↗
nx run @tryghost/admin:build ✅ Succeeded 23s View ↗
nx run-many -t test:types -p @tryghost/admin ✅ Succeeded 9s View ↗
Additional runs (2) ✅ Succeeded ... View ↗

💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-04 22:04:58 UTC

This branch was successfully deployed

1 active deployment
pr-preview-32575 — cf06aaa8 Deployed Nov 4, 2026 by Ghost-Slimer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Deploy a PR preview environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants