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

Commits on Oct 13, 2026
a8bf763

Hide Chrome's dd/mm/yyyy mask on empty native date inputs on phones

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

ad4bc27

Lint the email stylesheets for custom properties. event_details.css and email.css are inlined into emails, which can't resolve var(--x), so rather than ignoring them, Stylelint now checks them with an override that flags any var( and drops the hex and px rules, as they keep their own colours and sizes. AGENTS.md's rule about this moves from the Design section to the Stylelint checks.

3cd3234

Split AGENTS.md's Custom checks into RuboCop, erb_lint, ESLint and Stylelint sections, each saying where its rules live and how to disable one before listing them, in place of one list with the linter named on each rule. ESLint's no-restricted-syntax points back to the two DesignClasses rules it shares rather than repeating them.

6501ce9

Tell agents in AGENTS.md to commit only the changes they made, staging files by name rather than with git add -A or git commit -a, as other sessions may be editing the same checkout. The Linting section becomes Committing, with this line first.

1ffdb03

Say in AGENTS.md how to run CI's linters before committing. A new Linting section gives the RuboCop, erb_lint, ESLint and Stylelint commands for changed files, and says to lint everything, as CI does, after changing a linter's config. Until now this lived only in a personal commit skill, which other agents don't read, and which had no Stylelint step.

235b59b

Answer an unchanged messages thread poll with an empty 304 rather than rendering the whole thread. The stamp moves to Message.thread_stamp; pagelets.js sends the current stamp as X-Pagelet-Stamp on stamped reloads, and GET /messages/:id halts 304 when it still matches, after marking the thread read as before. On a 304, reloadPagelet leaves the pagelet alone, as it did when the stamps matched.

c2fc940

Check the design rules in AGENTS.md in CI. A new erb_lint linter, DesignClasses, flags -success classes, Bootstrap's badge-* colour classes, a bare label class and d-none toggled from inline scripts in templates; ESLint's no-restricted-syntax flags the same in app/assets/javascripts; and Stylelint, newly added at 17.16.0, flags hex colours outside custom property definitions and px in margins, padding, gaps, insets and font sizes. CI's ESLint step now runs Stylelint too. AGENTS.md's Custom cops section becomes Custom checks, listing these rules beside the cops, with how to disable each kind of check.

To need fewer exceptions, the root font size is now a percentage (106.25%, 118.75% and 131.25%, which are still 17px, 19px and 21px at the browser's default text size, and now follow the reader's own setting), and FullCalendar's event margin and padding move onto the --space-2xs step. The Google Maps block keeps px, as the rule allows, under one stylelint-disable comment. The messages page's breadcrumb keeps removing d-none, as the panel's d-none d-lg-block is responsive hiding, which .show() can't undo.

9895b01

Copy .env and .env.test into new Claude Code worktrees. They're gitignored, so worktrees started without them and foreman run -e .env.test failed until they were copied over by hand.

825f0d3

Add our own RuboCop cops for rules in AGENTS.md, so they no longer depend on an agent having read and remembered them. The eleven cops in .rubocop/dandelion flag Mongoid .or, scope, .where (apart from a JavaScript $where string, which .and can't take), bare belongs_to, has_many through:, validates presence:, validate blocks, .presence, .present?/.blank? on params, calling Sentry directly rather than ErrorReporting, and refute page.has_css? and its friends. They're warnings, so they fail CI, and erb_lint inherits .rubocop.yml, so they run on templates too. AGENTS.md lists them in a new Custom cops section, one line per cop with its name, in place of the rules they replace.

The code mostly followed the rules already. Uniqueness conditions now use self.and rather than where (Mongoid calls the lambda with the model class as self, so they mean the same), four params[...].blank? checks are now !params[...], and the two places that must call belongs_to and Sentry.capture_exception themselves disable the cop on that line.

33d06ef

Explain how .rubocop.yml and .erb_lint.yml relate: templates inherit .rubocop.yml but run only its warning-level cops, which are all CI fails on either way. Also say why the three alignment cops stay on and Lint/UselessAssignment is off in templates.

9a2dd2c

Quiet erb_lint in CI. It prints every offense it finds, including those --fail-level W then ignores, so the lint job's log was about 1,500 lines of RuboCop convention offenses that could never fail it. Templates now run only cops that can fail: the Layout, Style and Naming departments are off, apart from the three warning-level alignment cops, which makes the old Layout, Naming and Style/Semicolon overrides moot. The CI step also runs with RUBYOPT=-W0 to hide the parser gem's warning that it only knows Ruby 3.4 as 3.4.0-dev. erb_lint's output is now two lines.

8871b14

Fix three warning-level RuboCop offenses in templates that erb_lint wasn't showing, as a convention offense at the same spot hid each one. The questions partial reads its regexp match with Regexp.last_match(1) rather than $1, which RuboCop can't tie to the regexp in the tag before. The suggested donation checks for a whole number with (x % 1).zero? rather than comparing two floats, which gives the same result.

b7cb21a

Lint only our own templates and scripts in CI. setup-ruby installs gems into vendor/bundle, so erb_lint's /*.erb glob also linted 100 of the gems' templates, and failed on them; it now globs app/views//*.erb, where all our templates are. ESLint ignores vendor/ too, as the gems ship JavaScript.

b9960ff

Re-enable RuboCop's Lint/ShadowingOuterLocalVariable. Twelve notification methods set account to the order's or member's account and then looped over the people to email with |account| too; the loops now say |recipient|, so a later edit can't mistake one for the other. The AT Protocol sync's |e| becomes |event|.

c0dd680

Re-enable RuboCop's Lint/DuplicateBranch, ignoring an else that repeats an earlier branch (searchable.rb's selector, the routes stats badge). Mapplication#label lists pending and accepted in one when. Notification#link and #icon, one branch per notification type, turn the cop off around them, and check-in's two 409s and find_by_id_or_token's two ways of finding a record turn it off for that line. Elsewhere, two branches doing the same thing will now need a reason.

2b51fa5

Re-enable RuboCop's Lint/SuppressedException. Its one offense, the empty rescue in Ticket.refresh_home_page_stats!, now says why it's empty: orders that can't be converted to GBP are left out of the home page total. New silent rescues will need a comment saying why.

50ad5b2

Tell people waiting for an Instant Bank Pay confirmation that it usually takes a minute or two but can take longer, and that they can close the page as their ticket will be emailed once the payment is confirmed. GoCardless's payment confirmed webhook has arrived a median 64 s after the order was created (40 orders since 29 September), but one took 8 minutes, and that buyer left the waiting page after 4 and wrote in worried, though their order had completed and their ticket had been emailed. Shown only for Instant Bank Pay orders, not instalments or other providers.

Commits on Oct 12, 2026
8343f7a

Run ESLint in CI. .eslintrc.js was in the format ESLint 8 used, and nothing installed or ran it; package.json now pins ESLint 10.12.0, @eslint/js 10.0.1 and globals 17.13.0 (all over a week old, installed with --before so their dependencies are too), and eslint.config.mjs lints app/assets/javascripts as classic scripts sharing the page's globals: the CDN libraries and the functions our files define for each other, with unused top-level functions, unused catch variables and empty catch blocks allowed. The lint job installs Node 22 and runs npm ci and npx eslint, and the agents' install script runs npm ci. It found no bugs: an unused click handler argument in events_build.js goes, as do seven eslint-disable comments the new config doesn't need. AGENTS.md says how to add or bump these packages.

94b5783

Fix the dadmin search's saved criteria, broken by the SafeErb statement commit: the JSON array of criteria started a line after one ending in }) with no semicolon, so JavaScript read it as an index into the line before (undefined.forEach) and the criteria from the URL never came back. The array is now assigned to a variable first. Checked in the browser; the analytics scripts' new lines all follow a statement ending in a semicolon.

e21ef45

Turn on SafeErb in erb_lint, now that templates have no offenses: it checks that interpolations into scripts and JavaScript attributes go through to_json, that there's no Ruby control flow inside scripts, and that templates don't call html_safe or raw.