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

Commits on Nov 15, 2026
a5f5483

Let a private session be offered with just a name: How to book and In person or online are optional, a session without How to book shows no section for it, and the docs say a session can say how to book it. And a required rich text field no longer stops its form silently: the editor hides its textarea, which the browser refused to submit empty without being able to say so, so wysiwyg.js takes its required off and the server says what's needed instead

3639622

Let a private session's price be blank without meaning by donation: with no price it shows none, rather than a By donation badge, as its hint and the docs now say. And drop "Each one says how to book it." from the list's intro

7a68c7b

Turn away signed-out event listing requests beyond a few at once, so a crawl of the listings can't take every Puma thread: on 15 Nov 2026 a minute of requests to /events and /o/:slug/events, from 288 ASNs in 78 countries with one or two each, queued requests for 14s and Render answered 502 to every page until a second instance started. Neither Rack::Attack's throttles nor ASN blocking catch a crawl spread that thin, and a throttle counts requests per time window, not those still running. ListingConcurrencyLimit (after Rack::Attack) lets each process run MAX_THREADS - 3 of them at once, at least 2, and answers the rest at once with a 503 and Retry-After, covering each listing as a page, .html, .json and .ics, with or without a trailing slash; signed-in sessions are never turned away. Tests hold the slots with requests waiting inside the route, and check further listings are refused while an event page still loads, the held ones finish, and a signed-in session gets through

9253f24

Let CKEditor's link form work in a modal: it opens at the end of the body, outside the modal, so Bootstrap's focus trap pulled the focus back into the modal as it opened, jumping the modal to its top and closing the form, and it was hidden behind the modal anyway. Focus moving into CKEditor's balloons no longer reaches the trap while a modal is open (wysiwyg.js), and they sit above an open modal (ckeditor.css, --ck-z-modal and --ck-z-panel), as for Cmd-K on a private session's How to book

996f9d0

Give constant defaults with default: on the field, checked by a new cop: Dandelion/CallbackDefault flags filling in a literal when a field is nil in a callback (self.worth = 1 unless worth, self.balance = 0 if balance.nil?, self.x ||= 'y'), which is only for a field a form can blank, so blank means the default, with a disable saying so. Account's sign_ins_count and date_of_birth_privacy, Gathering's balance and processed_via_dandelion, Membership's requested_contribution and StripeCharge's balance_float and fees_float, which only code sets, now use default:; the fields forms can blank (Carousel weeks, Option cost, Role and Rslot worth, Gathering invitations_granted, Membership paid, Event's revenue adjustments) keep their callbacks. Email, phone and location privacy stay filled in on save, as a nil one stored would show them publicly. AGENTS.md says when to use which

0dcea1b

Put who offers a private session in its title, "Thai massage with Stephen Reid", in place of the line with their picture: on its page, its modal, in lists and on the map, the byline in the same small secondary grey as a profile heading's @username, its name linking to their profile without turning green. A session without an image shows its creator's picture, or the wash if they have none, as its image field now says. Its maximum number of people can be left blank, for no maximum, showing no group size badge, as the docs say

a088564

Make a private session's How to book rich text, shown as its description is (sanitised, with bare URLs and emails made links too), show a session offered in person and online as one badge (Stockholm & Online), and the person offering it larger. A required rich text field couldn't be submitted: CKEditor wrote its textarea only as the form submitted, after the browser had refused it as empty, so each editor now keeps its textarea up to date as it's typed in

2ea4fd0

Show answers, feedback, verdict reasons and option and activity descriptions as typed, through plain_text_html, rather than as HTML: each is typed into a plain textarea, but was sanitised as HTML with Rinku.auto_link(text.gsub("\n", '
')), so a little markup someone typed rendered. Now it's escaped, with its line breaks and links (public feedback quotes, joined with

, keep no links, as before, the home page's sitting inside a link), so someone typed shows as typed. Dandelion/EscapedLineBreaks now flags Rinku.auto_link of text with
s added by hand too, with or without Sanitize.fragment, and a browser test checks a member's answer shows markup as text, with its line breaks and links

c3a7ea4

Show plain text people typed only through plain_text_html, checked by a new cop: Dandelion/EscapedLineBreaks flags escaping text with h or html_escape and adding
s by hand, so it's escaped the same way everywhere. A cancelled event's message did that, and now uses plain_text_html, as its test checks (escaped, line breaks kept, links made); the emails' own nl2br in lib/mail/email_helper.rb is the exception, as email templates don't have the app's helpers

0700dae

Let people vouch for a private session, with an optional testimonial: once each and not for their own (PrivateSessionVouch, with a unique account per session), under Vouches on the session's page and modal, their own first with Edit to change or remove it (confirmed), and under Vouch for this service a form for those who haven't (signed out, a Vouch link that signs them in and brings them back, GET /ps/:slug/vouch). Testimonials show as typed, escaped and without links, through plain_text_html's new links: false; lists show the count as a badge, kept on the session (vouches_count). The vouch form doesn't take the cursor when the session opens in #modal (data-no-autofocus, app.js). How to book leaves its card, and it and the vouch headings are underlined with a new .heading-rule, as the docs' headings are, whose gaps above and below the line it now shares. Vouch tests have their own file, sharing PrivateSessionsHelpers with the private session tests

c95d5ae

Tick In person when a search is near a place, and empty near when Online is ticked, on events, an organisation's events and private sessions: being near a place means meeting in person, so a search with near filled in (but near=online, which still means online events) ticks In person and unticks Online, and filters to in person (near_place_ticks_in_person, run by apply_online_in_person_filter and the private sessions list). Ticking Online empties the form's near before it submits itself (forms.js), as near would tick In person again

e48dbeb

Add private sessions, under Facilitators in the sidebar: one-to-one and small group sessions people offer by arrangement (bodywork, meditation, coaching...), each with tags, in person (with a location, geocoded) or online or both, a maximum number of people, a length and a price in minutes and money as a number or a range (stored as numbers, as TicketType's price_or_range does, a blank price being by donation), an image (or the lavender wash image-less tiles have), a description and how to book it (an email, phone or link, made clickable), as Dandelion doesn't take the booking. /private_sessions lists them, with a search well as events have (searched by name, description and tag, near a place, tagged, and Online or In person, a session offered both ways being under each), as a list or on a map; each is at /ps/:slug, opening in a wide modal from the list (data-open-in-modal with a new data-modal-size, and modal-lg and modal-xl now keep their widths rather than app.css's 37.5rem), as does its form, which saves there in the background (data-save-in-modal, app.js) and opens the session's page, or shows its errors in the modal. They're on their owner's profile, and Secret keeps one off the list and the profile. Only the owner and site admins edit them (private_session_admin?). The modal partial gathering pages used moves to app/views/_modal_content.erb, map.js draws a pin for each model /points shows (checked by lint_test), and docs/private_sessions says what they do, its claims tested

8b30e91

Stop opening a modal from moving the page beneath it: Bootstrap hides the page's scrollbar and pads the body to make up for it in two steps, and in between the content is briefly wider, so its text reflows shorter and the browser's scroll anchoring moves the page to keep what's in view in place, which it then isn't. A profile scrolled down to its lower sections moved 26px on opening any modal, more the further down, wherever scrollbars take space. Scroll anchoring is now off while a modal opens or closes, and back afterwards for content that loads in above where someone is reading

811bc49

Refuse link tokens in mails and lookalike characters in names, and test the refusals no test triggered

A mail's recipients get no link token of their own, so a link_token= or sign_in_token= in a mail's body or link params can only be one pasted from someone's own email, and would sign every recipient in as them. The click webhook already kept it out of the stats, but nothing stopped the mail going out: mails now refuse it, with PmailLink's own check. The name checks also ran on the name as typed, so full-width lookalikes (@, $, https://) got past them (and an ASCII @ never reaches its check, as the name is cut at it first): they now run on its NFKC form.

Tests, each seen failing with its refusal broken in memory: the pmail form refuses a body or link params with a link token and saves without; a click whose token survives the query stripping (in the fragment) records no link; PmailLink refuses tokens and invalid URLs. The profile form refuses a username that looks like an account id (an existing one still saves), links in the bio until the account is a live player, names with $, @, www. or links and their lookalikes, and a date of birth that isn't in the past, each changing nothing. No one is offered Follow on their own profile, and POST /follow/:username makes no self-follow. POST /e/:slug/boosts answers 400 with the error and makes no boost for a locked or secret event or a start before this hour, and starts a checkout for one this hour.

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

84a0ecf

Test the validations that guard events' revenue, tickets, donations, gatherings' member limits and organisations' payment settings, which no test triggered: on the models, each refusal with its exact error beside the case that's allowed, and nothing saved after one. An event's revenue sharer and their share can't change once it has orders; the sharer must be connected to the organisation, take 1 to 100%, and not come with an organiser; an organisation can require one or the other; profit shares are 0 to 100% and together no more than the organisation's share; the suggested donation isn't below the minimum, the end is after the start and feedback hours aren't negative. A ticket is refused when its type is full (unless complimentary), sales have ended or closed at the event's end, or the buyer gives too little each month; a ticket type's event can't change and its prices, range, quantity and maximum per transaction can't be negative. A donation is at least 0.01. A full gathering refuses a membership, lowering its limit below its members raises it, and its threshold, limit and Stripe keys are checked. An organisation's tax rate, PayPal, GoCardless and Patreon settings are checked, and in production its Stripe and Mollie keys are live and PayPal isn't in sandbox mode unless its account is a site admin. Two checks can't be reached: a revenue sharer's blank share is set to 0 before it's checked for, and a Stripe Connect organisation's events always have an organiser, as it defaults to the creator. connected_account moves to OrganisationsHelpers, shared with the event permissions tests

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

bab1dbc

Test the refusals that stop someone acting on another person's records, which branch coverage showed no test triggered: putting someone else's ticket on or off resale, cancelling someone else's free order, opening a ticket that isn't cancellable for cancelling, editing someone else's comment, unsubscribing someone else's subscription, replies by email with no SPF-passed envelope sender or from someone who can't see the discussion, and locked events opened by anyone but their admins (in Rack and the browser). Each shows the owner's or admin's request succeeding beside the refusal, and that nothing changed after it. The inbound refusal test checked no comment was made with comments.and(via_email: true), which can't fail as via_email isn't stored; it counts the discussion's comments now. Moves the toggle_resale and comment edit covers_route marks to these tests

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

b0cefa5

Test that payment webhooks change nothing when they should be ignored, and that the same delivery completes the order once the condition is met: an organisation on Stripe Connect ignores its own Stripe webhook; a paid checkout completes only its organisation's order (not another's, nor another's deleted one, nor one matching no session); GoCardless with no endpoint secret, and a billing request whose mandate GoCardless says is cancelled, issue no tickets; Mollie with no key completes nothing without calling Mollie, and an unpaid payment then paid completes; the boosts webhook with no endpoint secret completes no boost; a boost that fails its checks answers 400 with its error, and one whose Stripe checkout can't start is removed

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

95c8b4b

List the refusals no test triggers in the coverage summary

rake test:coverage's job summary gets an Untaken refusals table: each line in the then side of a branch no test took that halts with a 4xx, kicks, 404s, raises, adds a validation error or calls a *_required! or *_only! guard (TestCoverage::REFUSALS), by file and line with its source, the first 100 and how many more, leaving out lib/ai/. Most untaken branches are nil guards and view toggles; these are the rules no test has seen refuse. It reads Coverage's own branch data, as a safe navigation (x&.y) is a branch too and could list a halt that ran. Tested in test/lint_test.rb on a SimpleCov::SourceFile, and AGENTS.md's Coverage paragraph mentions the table.

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

6497618

Say in AGENTS.md what makes a test able to fail: a section under Tests from what the audit of the suite found (fed0f73c8, b01cd4728), for every agent writing tests. Check a test fails with its feature broken, broken in memory as the checkout is shared; stub outside services, never the check under test, and give fakes a way to say no; don't pass the test its answer; show the allowed case beside a refusal, and that nothing changed after one; check what happened rather than that a job ran; check the setup holds and a stub or gate is reached; watch for asserts in possibly empty loops or behind conditions, absence checks before the page loads and fakes that fail before recording; never weaken a test to make it pass; and say which tests ran

Commits on Nov 14, 2026
4b64aa1

Test creating events, the public map and ICS feeds, and event image fallbacks

Creating an event: an activity's or local group's admin starts one for its organisation, and an id that doesn't exist 404s; someone who can't create events for the organisation isn't offered it (organisation and activity pages) and is refused by both routes with nothing made, unless the organisation takes submissions, when it's made locked; a save that fails re-renders with the error and makes nothing; someone with no organisation is sent to /o/new; and an organisation asked to contribute is sent to contribute first, and back.

The events map JSON and /events.ics list only browsable, future, unlocked, public events, by search and (for the map) date, and the ICS parses.

An event without an image shares its organisation's as its og:image, a cohost's image wins when seen through the cohost, and /e/:slug.jpg redirects to the event's (or cohost's) image and 404s without one.

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