Dandelion is a fair source project. View the code on Github · See the design guide
Commits on Nov 13, 2026
| bd9a238 |
Keep a wrapping host name beside its logo on event pages Claude-Session: https://claude.ai/code/session_015HnU1LNLG1HcXxMXu3euMm |
| 0c256ea |
Input group labels have the same vertical padding as fields (0.5rem, Bootstrap's $input-btn-padding-y), so a group of only labels, like a ticket type's Secret? checkbox, is as tall as the fields beside it: it was 37px against their 41px |
| b4f3e76 |
The event's capacity hint says places too: each ticket type can take up a different number of places |
| 711679f |
Ticket types say places, not slots: the field is labelled Takes up, its choices 0 places (add-on, not counted towards capacity), 1 place (standard) and 2 places (couple), and its tooltip, aria labels and the ticket group capacity tooltip say places. The docs section is Ticket places and capacity, listing 0, 1 and 2 places in order, with its claims renamed and their covers updated. The field is still slots in the code |
| d5dc0ef |
Ticket type Slots select: its right corners are rounded while the Other number field after it is hidden (Bootstrap squared them, as the select isn't the input group's last child), and Standard is listed second, after Add-on, still selected by default as the selection follows the slots value |
| ea6a295 |
rake test:parallel splits a group's files by how long each took in its last run rather than by its number of tests, which put a file of quick model tests on its own: the events group's runs took 9s and 80s, gathering_features' 21s and 74s. Each run records its files' seconds, retries included (test/setup/test_times.rb, with TEST_TIMES set), and test:parallel merges them into tmp/test_times.json, which CI caches per group, each run saving its own entry and the next restoring the newest. A file with no time yet counts its tests at the average time a test took. Locally the events group's times would split it 51s and 51s |
| f7aae2f |
CI's test groups split their files between two processes at once (rake test:parallel, TEST_PROCESSES): a group was one Ruby process and one Chrome on a 4-CPU runner. Each run already has its own database, port and Chrome, so they can't clash. Files go to the run with the fewest tests so far, biggest first, each run's output is printed whole when it's done, and the task fails if any run does. Locally the accounts group took 124s, its two runs 93s and 103s |
| c58e2d3 |
Faster mail editor: it took 2.5-2.9s for a large organisation's mail. Its recipient count plucked the organisation's 24.6k unsubscribed account ids and sent them back as a $nin (about 1.1s), and now matches on unsubscribed_organisation_ids_cache instead. The To dropdown loaded all 413 local groups whole (19 MB, about 0.7s) for their names, and now plucks names and ids, as for activities. The header asked Mailgun for the mail's stats twice, and now asks once LocalGroup.without_heavy_fields leaves out the shape, which is stored three times (geometry, area and polygons) and is up to 6 MB for one group. Lists of local groups use it: an organisation's local groups and their lookup, a profile's local groups, /accounts/subscriptions (which loaded them whole through includes), the carousel's location dropdown (which plucks names), and the groups someone joins with an organisation. Records loaded that way can't be saved, as validation parses geometry |
| 30a022e |
Drop send_keys(:tab) after fill_in from the tests, and add Dandelion/CapybaraTabAfterFillIn to keep it out: Cuprite's fill_in already blurs the field, so a field that saves on change or blur has started saving, and the tab raced that save. When the save replaced the field (the members table's cells, reloaded as a pagelet), the keys went to a node that was gone: ObsoleteNode in CI, on all three attempts of two gatherings/members tests, as cbabd573f found for the ticket price earlier. The gathering threshold and order ticketholder fields had the same race |
| 536da50 |
Cancel or delete an event: the delete page offers Cancel event, which keeps the event's page up (answering 410 Gone, HTML only) saying it has been cancelled, with the date, location and link block and an optional message, or Delete event, which removes it as before and hides the message box. A single button replaces the two refund buttons, with an Attempt to refund all orders checkbox, ticked by default, shown only when the event has orders. A cancelled locked event's page is still only for its admins, and its sessions box (whose forms post to the deleted event) isn't shown. The docs describe both choices, with claims covered by browser and Rack tests |
| 750bf4e |
CI's tests start MongoDB from its own build of mongod, cached, rather than docker run of its image: that still kept the groups waiting 1-22s (8s on average) at Wait for MongoDB, as pulling the image outlasted checkout and installing Ruby. The binary alone is cached (MONGODB_VERSION, 8.2.12, the newest 8.2), downloaded on a miss and checked against MONGODB_SHA256, and mongod --fork returns once it accepts connections, so there's no wait step |
| 0a2e4c4 |
Start CI's MongoDB in the background as the test job's first step rather than as a service container: the runner starts a service before any step, and pulling mongo's image and creating the container took about 17s of every group (10.5s pulling, 6s creating), which now overlap checking out and installing Ruby. Wait for MongoDB, before the tests, pings it for up to 90 seconds, and prints the docker run and mongod logs if it never answers |
| a98cc80 |
Warm up Chrome in CI's test jobs: its first start on a fresh runner took 0.6s to 29s, and the first page after it up to 13s more (the timings test/setup/capybara.rb logs), reading itself and its fonts from a cold disk, which landed on whichever browser test ran first. A step after checkout starts it headless in the background, rendering a page of text, while Ruby installs and the app boots, so the tests' own start finds both warm. It warns if the runner has no google-chrome |
| 5001020 |
More space between carousel images and their dots: 0.75rem (--space-sm) rather than 0.25rem, still inside the carousel's bottom margin |
| e3e90aa |
Run bookings/capacity_races in the ticket_types CI group rather than event_bookings, the slowest (168s of tests to ticket_types' 69s), and log in CI how long each part of the first browser test's start-up takes: Puma booting, Chrome starting and the first visit. Together they take 2s to over 40s there, landing on whichever browser test runs first, but a few seconds locally, so the log says which part to fix |
| 658cd38 |
script/lint --staged runs test/lint_test.rb in a copy of the index: it read the whole checkout from disk, so another session's unstaged edits failed your commit (a doc whose claims it hadn't re-hashed yet, in events.md) or let a broken one through, though every other linter already took the staged version of each file. git checkout-index writes the copy, node_modules is linked in, and GIT_DIR points git at the checkout's repository, so its git ls-files gives the index's files. AGENTS.md says so |
| e544fe4 |
AGENTS.md: cp fragments outlive a deploy, so a change that removes something a cached partial's old HTML needs (a script, library, CSS class or route) breaks pages until they expire, as the organisations carousel kept calling Slick after Slick went. Such a change should say so, for an admin to clear them with /fragments/delete/ |
| d35d468 |
Give each race for an event's last place buyers of their own: the test raced the same two buyers 20 times, and since a5177ed27 limits the bookings an address not signed in may make to 10 an hour (RecipientLimit), each attempt counting, refused or not, the eleventh raised TooManyBookings rather than racing for the place, on every attempt in CI |
| c342ce4 |
Move the two route marks CI found on tests that never requested their routes: GET /accounts/privacyable/:p to the privacy routes test, which requests it, and GET /notifications, which no test was about, to a new Rack test in test/site_routes_test.rb: signed out it's refused, outside XHR it goes home, and it serves only the signed-in account's own notifications whatever account_id says, cached for a minute. Both had sat on model tests in test/accounts/accounts_test.rb |
| 83a12c7 |
A test that marks a route with covers_route fails if it never requested it: the lint counted a route covered by its mark alone, so a mark on a test that called the model instead, or posted to a route since renamed, left the route untested. Every run now records the routes each test requests (test/setup/route_recording.rb), each attempt with its own set, guarded for Puma's threads, and a test that otherwise passed checks its marks in teardown. RECORD_ROUTES=1 still saves the recording to tmp/routes. The recorder returns Padrino::Filter::SKIPPED so it runs on each route a request tries: Padrino runs a before filter once a request otherwise, so a route reached after another passed (/accounts/providers/confirm after /accounts/:id/*) went unrecorded, and the recordings the marks were written from missed it |