Skip to content

Add Audience empty state illustrations and resale settings on the resale page - #1520

Merged
max-1-max merged 2 commits into
v2.3.0from
feature/audience-blank-slates
Nov 27, 2026
Merged

max-1-max merged 2 commits into
v2.3.0from
feature/audience-blank-slates

Conversation

@max-1-max

@max-1-max max-1-max commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

What

Two changes:

  1. Illustrated empty states for the Audience pages.
  2. Resale settings can be changed on the resale page itself.

Audience empty states

Adds illustrated empty states to the Audience pages, in the same style as the blank slate set from #1509.

Page Illustration Shown when
Overview A stats card with a donut chart around a portrait, and three people in front Nobody is in the audience yet
Contacts A stack of contact cards with index tabs No contacts, with no search, filter or segment applied
Segments A rule card with a funnel badge, leading to three matching people No segments of your own (shown at 140px, as it sits inside a section)
Campaigns An open envelope with a designed email, recipient faces and a megaphone badge No campaigns, on the "All" tab with no search
Signup forms A form card with a new-subscriber card overlapping it No forms

Search misses, filtered lists, the Suppressed list and the other campaign tabs keep the small icon and text they had.

Changes

  • Five new SVGs in frontend/public/blank-slate/ (2–5KB each, static).
  • One .emptyImage style in the shared Audience stylesheet.
  • Each page's empty block swaps its icon for the image. The copy is unchanged, so there are no new strings to translate.
  • The Signup forms empty state gets a "New form" button, reusing the existing label. It only shows to members who can create forms.

Testing

Screenshotted a fresh account with an empty audience against the dev stack at 375, 768 and 1440px wide. On all five pages the image loaded at the expected size, centred, with no horizontal scroll. The Drafts tab on Campaigns and a search on Contacts showed no image, as intended.

npx tsc --noEmit shows no errors in src/ee/crm.

The Audience E2E specs were not run locally. The text they assert on is unchanged.

Resale settings on the resale page

/manage/event/:id/resale used to say "Ticket resale is off for this event" with a link to checkout settings. It now has a settings bar above the listings:

  • On/off switch. It always asks first. Turning resale on shows the full explanation, including the chargeback sentence. Turning it off says that listed tickets come off sale and go back to their buyers, unless someone is already paying for one.
  • Stop resale. The cutoff picker saves as soon as a value is chosen.
  • How resale works. A popover with the same explanation as checkout settings.

It saves through the existing partial update of event settings, so the API and its permission check are unchanged. The switch is disabled for members who can't issue refunds, and members who can't edit see no controls (only the "resale is off" line when it is off). Checkout settings keeps its own controls.

The cutoff options and the resale explanation moved to shared helpers so both pages use the same text. Seven new strings are translated into every locale.

Testing

  • New E2E test: an organizer turns resale on, moves the cutoff and turns it off again from the resale page. It passes against the dev stack.
  • Screenshotted the bar, the popover and both confirmations at 375, 768 and 1440px wide.
  • npx tsc --noEmit shows no errors in the changed files.

One existing test in the same spec file, "a ticket type switched to not resellable says so when reopened", fails on v2.3.0 without this change: it uses a free ticket, and free tickets no longer show a resale option since #1516.

Overview, Contacts, Segments, Campaigns and Signup forms now show an illustration from the blank slate set when there is nothing to list. Search misses, filtered lists and the other campaign tabs keep their icon and text. The Signup forms empty state also gets a New form button.
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ E2E smoke tests: Everything passed.

Mode Result ✅ Passed ❌ Failed ⚠️ Flaky ⏭️ Skipped ⏱️ Duration
Self-hosted ✅ Passed 129 0 0 0 5m 30s

Open the run

The resale page gets a settings bar with the on/off switch and the cutoff, saved straight away, in place of the link to checkout settings. Turning resale on or off asks first: turning it on shows the full explanation, including the chargeback sentence, and turning it off says what happens to listed tickets. The switch still needs the refund permission, and members who cannot edit see no controls.
@max-1-max max-1-max changed the title Add illustrated empty states to the Audience pages Add Audience empty state illustrations and resale settings on the resale page Nov 27, 2026
@max-1-max
max-1-max merged commit 6acae6c into v2.3.0 Nov 27, 2026
7 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant