Dandelion is a fair source project. View the code on Github · See the design guide
Commits on Nov 10, 2026
| a57d3e9 |
Email a deleted event's facilitators when its queued refund fails: since refunds moved to the worker, the failed-refund email looked up the event's contacts once the event was deleted, and deleting it hard-deletes its facilitations, so facilitators no longer heard. Order#refund_later now passes the contacts' ids to the job when it's queued, as the event's orders are destroyed before its facilitations, and the email goes to those. Jobs queued with only the order id still use the event's contacts |
| 85dae9a |
Keep the session on POSTs the browser marks Sec-Fetch-Site: same-origin, rather than signing people out Since 1b57c7125 put the session inside Rack::Protection, and Sinatra sets every module to react with drop_session, a POST whose Origin HttpOrigin can't match runs signed out: the route's sign_in_required! sends the person to /accounts/new, which looks like being signed out. Browsers send Origin: null on a form POST from a page with Referrer-Policy: no-referrer (our ?order_id= pages and order routes), and an attendee on iOS Safari was signed out on every POST for several minutes, Mark for resale included, by HttpOrigin per Render's logs. allow_if now lets through requests the browser itself marks Sec-Fetch-Site: same-origin, which no page can set; cross-site POSTs, and unmatched Origins from browsers that don't send the header, still run signed out |
| 75cb73e |
Remove the legacy path for organisations taking Stripe payments with their own API keys outside revenue sharing: no organisation in production has keys without a stripe_client_id, so the "We're changing how Dandelion connects to Stripe" page shown before creating or duplicating events (and Organisation#stripe_connect_migration_required?), the Payments tab's "Using Stripe API keys (legacy)" status and the Stripe report's fallback to the organisation's own key go. An organisation with neither revenue sharing nor Connect is now offered Connect Stripe on its Payments tab, and the Stripe report is for Connect organisations only, so it always uses Dandelion's key. Revenue sharing, which uses the organisation's own keys as its Connect platform, and gatherings' keys are unchanged, as is Stripe checkout's key path, which revenue sharing shares and the tests' default organisation (with keys from the factory) books through |
| d10114d |
Bind an organisation's Stripe Connect state to the account that started it: the state was only the organisation's id, so someone who isn't an admin (an event manager, or anyone when an organisation takes event submissions) could get one from the "connect Stripe" page shown before creating or duplicating events, authorise their own Stripe account, and pass the callback URL to an admin, whose visit connected the organisation to that account. Now the state carries the account, as the personal flow's does, and the callback signs in first and refuses a state minted for anyone else, or before this change, with no token exchange. The "connect Stripe" page offers the link only to organisation admins, telling others an admin needs to connect it, and the condition for it is Organisation#stripe_connect_migration_required?, with the production check in Organisation.stripe_connect_migration? so tests can turn it on. The Payments tab checks stripe_connect_json before stripe_sk, so an organisation with both shows the Connect account its checkouts use, and Disconnect, rather than "Using Stripe API keys (legacy)" Claude-Session: https://claude.ai/code/session_015HnU1MeugVuMkwQ4E1uyBk |
| 5000698 |
Refund deleted orders in the worker, not in the request: deleting an event refunds its paid orders one after another, and each Stripe refund takes about 3 seconds, so deleting an event with 8 paid orders kept the page waiting for 29 seconds. Order's after_destroy now checks the prevent flags (only in memory) and queues Order.refund_destroyed, which loads the soft-deleted order and event with unscoped and refunds as before. The tests run the queued job where they stub Stripe, and call refund directly where they stub the order itself |
| f616bb8 |
Update packages to the newest releases out of the 7-day cooldown, from script/update_packages.rb (the package updates workflow) (#303) |
| 1a8d94d |
Install ImageMagick for CI's images job: the runner has none, so images_test.rb's identify calls failed with "identify: not found". Only that job installs it, as it's the one that checks real images and our ImageMagick policy against ImageMagick itself |
| 70c74f9 |
Keep uploads that aren't JPEG, PNG, GIF, WebP or HEIC away from ImageMagick, and give it a security policy: production's ImageMagick ran with no policy.xml at all (Render's image ships none), so every image upload passed SVG, MSL, TEXT, URL fetches and PostScript (with Ghostscript installed) straight to its parsers, the class of bug behind the Active Storage ImageMagick advisory. ImageSignature now checks an upload's first bytes before image? or format runs identify, image fields refuse anything else, and Upload stores other files untouched rather than renaming an SVG to .jpeg past RejectsActiveContent. config/imagemagick/policy.xml, which dragonfly_config.rb loads through MAGICK_CONFIGURE_PATH so no host setting is needed, denies those formats and the gs delegate as a backstop; it's a denylist as ImageMagick 6 and 7 differ on whether a later allow undoes a deny |
| b3248e9 |
Add opencode-go/mimo-v2.6-pro to the opencode bug reviews, with no effort MiMo models list no variants: they always reason at one level, so naming an effort for one would be a no-op that opencode ignores. The opencode job required an effort for every model in OPENCODE_MODELS; it now takes a model with none and runs it without --variant, leaving the effort out of the job name and the report heading. |
| 7a355be |
Drop opencode-go/crouton-alpha-free:max from the opencode bug reviews |
Commits on Nov 09, 2026
| 40a11d4 |
Move the detail of the agent workflows out of AGENTS.md: its Automation bullet packed the daily bug reviews, issue-to-PR and the email replies into one paragraph every session loaded, though only a change to a workflow, its prompt or its models needs it. That is now .github/workflows/README.md (not .github/README.md, which GitHub would show as the repo's front page), and the bullet says what the workflows do, points there, and keeps the rule that emails and query results stay out of this repo's public logs |
| e497067 |
Trim AGENTS.md's root package.json bullet to what only it says: it listed what CI runs ESLint, Stylelint and Herb over and with which config, which the Linting section already covers through script/lint. It keeps what the package holds, that it installs with npm ci, and how to pin and bump a version inside the cooldown |
| 247c183 |
Split AGENTS.md's Cloud agents section by who it applies to: seeding, starting the web process and the seed login, and .mcp.json, rake mcp:sync and the MongoDB MCP's read-only rule, apply on our own machines too, but sat under a heading a local agent has reason to skip. They are now Running the app and MCP servers, where the section was, and Cloud agents, at the end, keeps only what differs in a cloud environment: the script/agent-env scripts, each tool's boot setup, the web process already starting, where each cloud agent's MCP servers come from, and Playwright through the proxy |
| 92d0063 |
Gather AGENTS.md's nevers at the top and drop its @ imports: Crucial restrictions was two lines in third place, with the other rules that must never be broken (the MongoDB MCP's write tools, --no-verify, git add -A, the full test suite, built files, the cooldown) spread through later sections, so it now follows the intro and lists each in a line naming the section that explains it. The @Gemfile and frontend imports only expanded for Claude Code, which loaded some 230 lines into every session while other agents saw the literal text; a line in Dependencies now points every agent to the Gemfile and frontend/package.json before adding a package |
| fbfaf72 |
Move code out of lib into helpers, models and concerns: the almanac (the header's moon and the Wheel of the Year) is now helper methods, as only app.rb and the nav use it; generated avatars are an Account concern, AccountAvatar, with the account's other avatar methods; the bounds to search near a place are Location.bounds_for; summaries of a set of events are Event.summarise, in an EventSummaries concern; EventIds sits with the event scopes it uses; and AnalyticsProvider is beside the AnalyticsProviders concern. AGENTS.md says to prefer these to lib, and what lib is still for |
| 3aa4afe |
Save a test's screenshot only once it has used the page: taking one starts Chrome, so every model and Rack test started a browser it didn't need, and none could run where Chrome can't start, like Codex's sandbox on macOS |
| 84c8422 |
Make Account#merge work with the unique indexes behind each uniqueness validation: it moved all of the victim's rows to the survivor and deduplicated organisationships afterwards, so in production, where the indexes exist, it raised E11000 partway through whenever both accounts shared an organisation, gathering, followee and so on. Now absorb_has_many! (CoreExtensions) leaves the victim's rows the survivor already has with the victim, to go when it's destroyed, after the survivor's row absorbs them: Organisationship as before, Membership its shifts, attendances, payments and other rows, admin and paid, Mapplication its acceptance, memberships and verdicts, and Activityship and LocalGroupship admin and receive_feedback |
| 0171454 |
Give the issue-to-PR agent the issue from the event, not its comments: the prompt had it run gh issue view --comments, and anyone can comment on a public issue, so a comment made before Claude read it reached it as part of the task. The workflow now writes the issue's title and body, as its author opened it, to a file Claude reads, and the prompt says never to fetch the issue, its comments or other issues' and pull requests' text. The check for an existing pull request prints only numbers, as anyone can write a pull request's title |
| c5958d0 |
Sample whole tokens for the Atlas whole-word check: it split names at every non-letter and searched for O'Sullivan's Sullivan, which Atlas's standard analyzer keeps in one token with the O', so the check failed though search worked. It now takes tokens as Atlas sees them, roughly (letters, digits and underscores, joined across an apostrophe, full stop or colon), and searches only for those that are all letters. The start-of-field checks still take a field's leading letters |
| 25339c5 |
Count every organisation's followers, subscribed accounts, monthly donors and donations at once: Organisation.set_counts makes a query each across them all, rather than several per organisation in the nightly loop, and writes only the counts that changed in one bulk write. The donations total is still added up in Ruby, as it converts currencies at our exchange rates, and set_counts on one organisation goes through the same code |