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

Commits on Nov 08, 2026
9546a36

Fix the Notifications page crashing for gathering members: teams/_subscribe built its links from @gathering, which the team pages set but /accounts/subscriptions doesn't, as it lists teams from several gatherings. It now takes the gathering from the teamship. A browser test has a member turn a team's email notifications back on from that page (fixes #298)

47f03e8

Choose Rack or the browser by who is on the other end of the request, and bring the tests in line: nobody gets model calls, a program or a forged request Rack, a person the browser. Tests that posted a person's form by hand now fill in the real form, so they fail when its fields change; tests that were half a person's flow and half a forged request are split in two, and what someone can't do is tested both ways, not offered in the browser and refused by the route in Rack. Duplicates of browser tests are gone, their claims and assertions moved onto the tests that cover them. Dandelion/TestOneParadigm keeps each test to one of the two, but for a program's request in a person's flow like Stripe's webhook, and Dandelion/TestUnusedParadigm drops an include no test uses

873fc9a

Update packages to the newest releases out of the 7-day cooldown, from script/update_packages.rb (the package updates workflow) (#297)

9f7ccc4

Test Choose & Pay in the browser: a member joins an option with a cost, is asked to pay it, pays by card and is no longer asked. Stripe is stubbed at each end: the checkout session the server creates, Stripe.js on the page, which records the session it's given rather than going to stripe.com, and the webhook's signature check, so Stripe's checkout.session.completed marks the payment completed and the membership paid

1db9480

Move the tests of scheduling an activity, the newsfeed and the CSV exports from gathering_rules to gathering_features: they're what features do, and the rules file is now what people can't do and the limits on who gets in and what fills up

5588529

Test a gathering's rules in the browser: members see no admin controls and admin pages turn them away; people who aren't members are sent to join, to apply or away by the gathering's privacy; applications are accepted straight away when no proposers are needed, not when the gathering is full, and paused ones wait apart; a shift once taken or marked not needed can't be signed up for; an admin schedules an activity by dragging it into a slot, and unschedules it; the newsfeed shows members joining teams and signing up for shifts; and members export the member list and admins the rota as CSV

c7475fc

Test editing and deleting each gathering feature in the browser: removing members, deleting applications, and editing and deleting options, teams, expenses, items, rotas with their roles and slots, and timetables with their activities. sign_in and sign_in_with_rack issue the code from a fresh copy of the account, as signing in uses it up in the database and the account in hand offered it again, so signing someone in a second time silently failed. And the tests' Chrome prefers reduced motion, which turns off the view transitions between pages: Chrome raised a page error, failing the test, when a click navigated again before the last transition had finished

94c4bc5

Test each gathering feature in the browser: its pages, adding and promoting members, applying and accepting, options, teams, the budget, rotas, timetables and inventory, each as its admin or a member uses it. They found three things the move under /g/:slug left or found: leaving an option and an admin removing someone from it now share one route, which answers a pagelet with 200 and a form with the options page; /g/:slug/teams/:id/unsubscribe sent people to the old /teamships/:id/unsubscribe; and a membership's page, visited directly rather than in its modal, rendered a template that no longer exists and now goes to the members page

97d2cfa

Update what /stats/packages lists each night, in a pull request: script/update_packages.rb takes the gems (bundle lock --update, within the Gemfile and its cooldown), the frontend packages in frontend/package.json (once each file the app loads from one is at the new version on jsDelivr, then rake frontend:integrity) and the actions pinned to commits to their newest releases out of the 7-day cooldown, keeping HOLD's packages on their major (iframe-resizer on 4), and prints a summary. The Package Updates workflow runs it at 02:00 UTC and opens or refreshes a pull request from the package-updates branch, closing it when there's nothing left, as the PACKAGE_UPDATES_TOKEN secret, since the workflow's own token can't push workflow files and its pull requests don't start CI

8738cd5

Shade map hexagons by where their count ranks among the map's counts, not by its square root, so a city's thousands don't wash out the dozens and hundreds around it: the shades spread evenly over the hexagons, from 0.1 to 0.65 opacity

Commits on Nov 07, 2026
1715b67

Size the audience stats pages' charts and map for the screen: the Ages and Genders doughnuts stop at 24rem wide, centred (.chart-doughnut), rather than filling a wide column as tall as it is wide; the Followers bar chart (_chart.erb) is 18rem tall at any width (.chart-bar) rather than half its width; the map is 80vh tall, through a new height local on maps/_map.erb (50vh by default); and each section after the first has mt-5 above its heading

c0bf9cd

Find a gathering's records through the gathering, under /g/:slug: the routes for roles, slots, shifts, spaces, timetable slots and activities, teamships, spends and team budgets, optionships, applications and their verdicts, and memberships found the record by id and then its gathering, so each relied on checking the gathering it came from, and the rota cell route checked one gathering and read another's slot and role. Now each loads the gathering from the URL, checks it, and finds what it touches through it, so a forgotten scope is a 404. Dandelion/GatheringScope flags a gathering's model found by id from params in a controller. The unused /rota/rslot/role route goes, and an inventory item's responsible person must be one of the gathering's members

afc80aa

Find a rota cell's slot, role and shift through its rota: /rota/rslot/role/:rota_id/:rslot_id/:role_id checked membership of the rota's gathering but loaded the slot, role and shift by id alone, so a member of one gathering could pass another gathering's slot and role ids and see who was on that shift

ae79aff

Make account map hexagons 75 to 150 pixels wide on screen, not 80 to 160 (MapHexagons::PIXELS)

f646db7

Give the accounts the map tests insert directly their own emails and usernames: CI's test database has a unique index on email, so a second account with none clashed on null

55c3298

Store each account's smallest map hexagon (map_hex), set whenever its coordinates change, and count the accounts on a map of many accounts by it with a $group, so the map never reads where anyone is and a zoomed out map of a big organisation needn't fetch every member's account: bigger hexagons and which hexagons reach into the map's box are worked out from the counts. Accounts without map_hex yet are counted from their coordinates. The hexagon maths and its constants (now MapHexagons::SIZE and MapHexagons::PIXELS) move to lib/map_hexagons.rb, for the model and the map helper to share

f1efedd

Size account map hexagons to the screen: map.js sends the map's width in pixels, and hexagons are 2, 4, 8... times ACCOUNT_MAP_HEX_SIZE so they're ACCOUNT_MAP_HEX_PIXELS (80) to twice that wide on it, about the size they were just after zooming in, rather than as many as the box could hold, which made them small on a wide screen

82022c8

Pick an account map's hexagon size from how big its box is, and find its accounts with one query: hexagons grew from 2 km a doubling at a time, querying the box's accounts again each time, so a zoomed out map of an organisation with 51,000 members on the map read them seven times, taking up to 26 seconds. Hexagons now start at 2, 4, 8... times ACCOUNT_MAP_HEX_SIZE so the box holds no more than about MAP_POINTS_LIMIT / 2, which also keeps them about the same size on screen at every zoom, and the one query reaches far enough for them to grow once more without another.

Bigger hexagons now take in the centres of the smallest hexagons, not accounts' own coordinates, so people who share a 2 km hexagon stay together however far the map zooms out and a zoomed out map tells no more than a zoomed in one. And a hexagon is on a map when it reaches into its box, not only when its centre is in it, so big hexagons at the edges of a zoomed out map no longer drop the people in them; it's still decided by the hexagon alone, so a box anywhere in a hexagon finds the same

2b2ae0d

Draw maps of an organisation's, activity's or local group's accounts as a grid of hexagons, shaded in the theme colour by how many people are in each, with the count on each in black with a white halo once they're big enough to hold one, in place of a marker per square cell: the markers sat in rows and columns over the map, read as exact places and hid the streets. The grid is our own, laid out in Web Mercator so its hexagons look regular on the map, about 2 km across in London (ACCOUNT_MAP_HEX_SIZE), and an account counts towards a map's box only when its hexagon's centre is in the box, so narrowing the box still says nothing finer. When a box would have more than MAP_POINTS_LIMIT hexagons, the grid's hexagons grow 2, 4, 8... times as wide until it hasn't. A local group's area is now a black line around it, over the hexagons, not an orange fill that muddied them

3a88ae6

When an account map's box has more occupied cells than MAP_POINTS_LIMIT, merge neighbouring cells into ones 2, 4, 8... times as wide until it hasn't, rather than sending the most crowded cells and saying there are too many points: zoomed out over a country, the map showed markers under a "too many points" warning and left out the quietest cells. Everyone is still counted, and zooming in brings back the small cells