Dandelion is a fair source project. View the code on Github · See the design guide

Commits on Nov 03, 2026
61c99ad

Let other sites embed full event pages again, not just the ticket form

Blocking framing on every page but minimal-layout ones stopped organisers' embeds of their event pages working. Framed on another site an event page is signed out, as the session cookie is SameSite=Lax, so there's nothing signed in to clickjack. The docs now show embedding the event page and the ticket form.

2924462

Test the checkout's balance with credit on Dandelion donation events

Credit that covers the tickets books them with "Use credit" and no donation to Dandelion; credit that covers part of them leaves the donation on top; and on free tickets credit isn't taken off the donation (#292)

Claude-Session: https://claude.ai/code/session_015HnU1JrXbWb57eJ9hRHegN

92f1b2b

Match the checkout's balance to OrderBuilder on Dandelion donation events

Credit and fixed discounts now pay only for the tickets in purchase.js, as in OrderBuilder: tickets they cover in full show "Use credit" and book as an RSVP, without the donation, rather than "Pay £1.00 via card" crashing in the Stripe handler. And an order that comes back with only its id (completed without a payment) goes to the confirmation, whichever method was chosen.

Fixes #292

Claude-Session: https://claude.ai/code/session_015HnU1JrXbWb57eJ9hRHegN

748ec9f

Don't let a zero-slot add-on settle another ticket's resale

The group and event capacity fallbacks in Ticket#ticket_on_resale_replaced ran for any completed ticket, so paying for a zero-slot add-on at a full event (full because of an unpaid hold on a resale) refunded and deleted the admission on resale. Only a ticket that takes places now enters them, and only tickets that take places are their candidates.

Fixes #291

Claude-Session: https://claude.ai/code/session_015HnU1JrXbWb57eJ9hRHegN

Commits on Nov 02, 2026
f4a96e5

Turning resales off puts back only the tickets on resale that fit

Every ticket on resale went back in the counts, including those whose places unpaid orders held, and paying those orders then removed nothing, overbooking the event. Now those stay on resale until the hold is paid for, which refunds and removes them whether or not resales are on, or let go, which puts them back. A sale past a ticket group's or the event's capacity also replaces a ticket on resale, not only one past its type's quantity. Fixes #289

Claude-Session: https://claude.ai/code/session_015HnU1MNNmipbzXKJevKXFZ

20d7e1f

Apply credit and fixed discounts to tickets before adding a donation to Dandelion

The donation to Dandelion was created first, so credit and fixed discounts paid it: covered tickets went to Stripe for the donation, credit was spent on it for orders completed without payment, and part-covered donations made an application fee larger than the payment, which Stripe refused and locked the event. Now credit and fixed discounts pay only for tickets, the default donation comes from what's left, and tickets they pay for in full get no donation. Fixes #290

Claude-Session: https://claude.ai/code/session_015HnU1MNNmipbzXKJevKXFZ

70fff31

Look up an id before a slug, so a username can't take another account's old links

find_by_slug_or_id tried the slug first, so an account whose username was another's id received messages sent from that account's old /messages/:id links. It now tries the id first, and usernames can no longer look like ids. Fixes #287

Claude-Session: https://claude.ai/code/session_015HnU1MNNmipbzXKJevKXFZ

d329be2

Link feedback notifications to the reviewer when their event is gone

Notification#link dereferenced the feedback's event for its slug, so the newsfeed and notifications dropdown raised for feedback whose event is missing. Fixes #288

Claude-Session: https://claude.ai/code/session_015HnU1MNNmipbzXKJevKXFZ

84fd459

Refuse a purchase with no tickets chosen, rather than erroring on nil quantities

The checkout form sends a blank ticketForm[quantities] when no ticket is chosen, which blanks_to_nils turns into nil, so OrderBuilder#check_choices raised NoMethodError on nil.select. OrderBuilder now treats missing quantities as none and raises NoTickets ("Choose at least one ticket.") before making anything.

Claude-Session: https://claude.ai/code/session_015HnU1KrryDuhs86HSNECRu

f21ffb5

Take tickets off resale when an event's resales are turned off

Only events that allow resales refund and remove a ticket on resale when its place sells (Ticket#payment_completed!). Turning resales off left tickets on resale out of the counts, so their places could sell and the holders, who can always take a ticket off resale, then overbook the event. Event now puts them back in the counts when enable_resales is turned off, and refreshes the sold out cache. While resales were on, any sale past capacity removed one, so they fit.

a6bd26f

Test that disconnecting a provider needs a sign in code

17a5c3143 made disconnecting a provider call verification_required!, as deleting the account does, but only tested deleting. A session from an email link that posts to /accounts/disconnect/:provider is now checked to be sent for a code with the provider still connected, and to disconnect it once the code is entered.

1c7b78c

Only let tickets go on resale on events that allow resales

POST /tickets/:id/toggle_resale didn't check enable_resales?; only the page hid its link. A ticket on resale leaves the event's ticket counts, freeing its place, but only events with resales on refund and remove it when that place sells (Ticket#payment_completed!). Elsewhere a ticketholder could put their tickets on resale, let the freed places sell, and take them back off resale, still valid: unlimited overbooking on free events. Putting a ticket on resale now needs the event to allow it; taking one off is always allowed, as it only puts the ticket back in the counts.

Claude-Session: https://claude.ai/code/session_015HnU1P23xZ6XWJpLAXWR8h

17a5c31

Need a sign in code to delete the account or disconnect a provider, as for changing its email or password

A link in an email signs in whoever opens it, so changing the account's email, password or providers, seeing its keys and signing out other browsers already need a sign in code (verification_required!), so that a session from a forwarded email can't take the account over. Deleting it didn't: the delete page shows the email it asks to be typed, so that session could permanently delete the account, with its roles, memberships, messages and follows. Disconnecting a provider didn't either. Now the delete page, deleting and disconnecting send a code first and come back.

Claude-Session: https://claude.ai/code/session_015HnU1P23xZ6XWJpLAXWR8h

2bc3e76

Send only links marked data-method="post" as a POST, not every link whose path ends in destroy

app.js, pagelets.js and confirm.js treated any link whose path ended in destroy as one of our delete links: after an "Are you sure?" popover whose button took the link's own text, they posted to it on the viewer's session. The sanitizer keeps relative links in user content, so an attendee could write https://claude.ai/code/session_015HnU1P23xZ6XWJpLAXWR8h

26697ae

Add the smallest donation to Dandelion to agent bookings by default, rather than the checkout form's 5%. Left out, donation_amount now gives the currency's smallest unit (£1) on paid tickets, via Event#default_dandelion_donation, which replaces suggested_dandelion_donation; 0 still gives none, and free tickets still get none. The checkout requirements drop suggested_percent and higher_price, which an agent could take for the amount to add, keeping minimum and added_by_default, and the tool descriptions and integrations docs say the booking adds the minimum. The checkout form still starts at 5% (2.5% above £249).

a2a21b1

Close the Stripe payment page when an unpaid order stops holding its tickets. Checkout sessions stayed open for Stripe's default of 24 hours, while the hourly cleanup releases an unpaid order's tickets after Order::UNPAID_HOLD, so a buyer who paid late, which agents' hand-offs make likelier, had their order restored though its tickets might have been sold again. The session now expires at the order's created_at plus UNPAID_HOLD, which pay_by already gives agents. Mollie, PayPal and GoCardless take no expiry, so they're unchanged.

2e1167a

Let agents find and book secret events by their slug or a link to them, as anyone with the link can on the event page. The booking tools and get_event_tool only found public events, so an agent given a secret event's link got Event not found. Dandelion::MCP.bookable_event, which the requirements, checkout and waitlist tools now use, finds a secret event by its exact slug, or the slug in a link (event_slug_from), but never by its id, and get_event_tool falls back to it for a slug; searches, trending and organisation listings still leave secret events out, as the link is what keeps them secret. The tools' slug parameter and the integrations docs say they take a link.

2331ac1

Check a phone number's country code in Account, and tell agents to pass 0 to give no donation to Dandelion. The checkout form stopped checking the phone's + prefix when its checks moved to OrderBuilder, which never had that one, so a buyer could book with a number Signal then drops (SignalMessaging#normalize_phone takes only + or 00). Account now refuses a changed number without either, so OrderBuilder's AccountInvalid says so to the form, embedded forms and agents; numbers saved before are left as they are. DonationTooSmall's message told agents to leave out donation_amount to give nothing, which now adds the suggested donation.

801df50

Add the checkout form's suggested donation to Dandelion to agent bookings, unless the agent says how much to give. The form starts with 5% of the tickets selected (2.5% above £249, and at least £1), which buyers have to clear to give nothing, but an agent booking added no donation unless the agent passed one, and nothing told it what the form suggests. Event#suggested_dandelion_donation now holds the rules, with the percentages and cutoff as constants the form's preselected button and purchase.js read too, and OrderBuilder adds it, once the tickets' price is known, when create_checkout_tool is called without donation_amount; 0 gives none. Free tickets get none, so an agent can't make a free booking paid. The requirements list the Dandelion donation's suggested_percent, higher_price and added_by_default, so the agent can tell the buyer the total, and the tool's description and the integrations docs tell it to say the donation is included and optional.

6c3f97d

Keep the MCP tool list in the integrations docs to one line per tool, with the details of checking out, booking and joining a waitlist in sections of their own below. The page also said all access was read-only, which stopped being true when agents could book: it's admin data that's read-only.