Repository navigation
Add Audience empty state illustrations and resale settings on the resale page - #1520
Merged
Merged
Conversation
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.
Contributor
✅ E2E smoke tests: Everything passed.
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Two changes:
Audience empty states
Adds illustrated empty states to the Audience pages, in the same style as the blank slate set from #1509.
Search misses, filtered lists, the Suppressed list and the other campaign tabs keep the small icon and text they had.
Changes
frontend/public/blank-slate/(2–5KB each, static)..emptyImagestyle in the shared Audience stylesheet.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 --noEmitshows no errors insrc/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/resaleused to say "Ticket resale is off for this event" with a link to checkout settings. It now has a settings bar above the listings: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
npx tsc --noEmitshows 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.0without this change: it uses a free ticket, and free tickets no longer show a resale option since #1516.