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

Commits on Oct 13, 2026
e203109

Allow save_screenshot in Lint/Debugger rather than disabling the cop. Our tests save screenshots on purpose, each test's last page and the how-to videos' frames, so .rubocop.yml now drops save_screenshot from the cop's Capybara list, keeping save_and_open_page and the rest, and test_config.rb (disabled throughout) and video_narration_helper.rb no longer disable it.

846535a

Remove the Lint/DuplicateBranch exceptions. Check-in's two 409 branches, for a ticket already checked in and one already not, are now one condition. find_by_id_or_token returns early rather than having two branches that both return the record. Notification#link and #icon group the types that share a link or icon in one when (30 types each, in 19 and 22 branches), with every type's link and icon unchanged. The check-in test now also covers the 409s.

38624b9

Bring the menu button and marketing cards in line with the motion rules. The menu button's bars now turn into a cross with translate and rotate rather than transition: all over width, top, bottom and transform (the cross is the same; its narrowing to 1.25rem now snaps rather than animating), and the marketing cards lift --space-2xs with translate rather than transform, so neither needs an exception. The quick theme colours and feedback stars, which grow on hover, stay the design guide's two older exceptions. The spinner, CKEditor's upload bar and the docs page's cycling status words, whose 1s fade docs_ask.js times, keep their disables as loading indicators, and the design guide and AGENTS.md now list just these.

570a908

Remove the Style/* rubocop:disable comments. Style cops are convention level, which CI's --fail-level warning never fails on, so these only hid editor warnings. The comment saying why event_validation.rb's two profit-share loops stay apart remains. Style/CombinableLoops and Style/MutableConstant (COMMIT_TIMES is a cache, so it can't be frozen) are only autocorrected by rubocop -A, not -a.

44675f7

Flag @ variables created inline in tests, with Dandelion/TestInstanceVariable. AGENTS.md says @ variables in tests come from helpers and anything created inline is a local; the cop flags an @x = in a test block unless a helper method in the same file sets it, so ticket_types_test.rb can still refresh the @follower its setup makes. It found the two how-to video tests, whose accounts, organisation, event, ticket type and gathering are now locals: they're only passed to helpers and read in narrate's lambdas, which close over locals too.

9dac2b3

Flag index declarations in models, with Dandelion/MongoidIndex. Mongo indexes are created directly in the database, as AGENTS.md says, but agents used to other Mongoid apps declare them in models with index, which would do nothing here. The cop flags a bare index call with arguments in models; there are none today.

9ee6150

Test that dependency versions are exact and CKEditor stays on 37. AGENTS.md's cooldown relies on choosing each version, so test/lint_test.rb now checks that the root package.json, the CDN packages in config/frontend_dependencies.rb and layouts/_dependencies.erb, and the packages rake tasks install all name exact versions (ckeditor/ installs from its yarn.lock, which pins them). It also checks that ckeditor/package.json keeps CKEditor on 37, as 38 and later show a Powered by CKEditor badge. Everything passes today.

deedd20

Check that selects take form-select. AGENTS.md said so, but nothing checked: DesignClasses now flags a built in a script. It found one, the subscribe form's country select (accounts/_new_compact.erb), which now has it. Select2 replaces that one, at its own 100% width, so the class only changes how it looks until Select2 loads.

7217c5c

Fail a commit that changes a built file without its source. AGENTS.md says never to edit bootstrap5.css or ext/ckeditor.js, which rake bootstrap:build and rake ckeditor:build make from bootstrap5.scss and ckeditor/. script/lint now fails when either is among its files (so staged, in the pre-commit hook) without its source or rake task, saying where to make the change. Every change to them so far came with its source.

ed95afa

Test that the MCP copies match .mcp.json. AGENTS.md says to edit only .mcp.json and run rake mcp:sync to write the copies Cursor, opencode and Codex read, but an agent editing a copy, or forgetting the sync, went unnoticed: test/lint_test.rb now compares each committed copy with what the sync would write. A new Other checks section in AGENTS.md lists the rules checked there rather than by a linter.

6ec34ba

Check motion with Stylelint. AGENTS.md's motion rules now have a check: transitions may animate only colours, shadows, masks, opacity, translate and rotate, not all, transform, scale or sizes; take --transition-fast or --transition-enter rather than a duration of their own; and only loading indicators loop. It flagged seven declarations, all kept with reasons: the design guide's older exceptions (the menu button's cross, the quick theme colours and feedback stars growing, the marketing cards lifting), the .bi-spin spinner and CKEditor's upload bar, and the docs page's status words, which cross-fade over 1s as they cycle.

d3a2654

Flag a has_no_ check straight after a click, with Dandelion/CapybaraHasNoAfterClick. AGENTS.md says to assert something on the new page first, as until it loads the check passes on the old one; the cop now checks that in test, flagging assert page.has_no_* or assert_no_* as the statement after one with a click. A click inside dismiss_confirm or dismiss_prompt doesn't count, as cancelling it leaves the page as it was, which is the one case in our tests. As its bad example is two statements, test/lint_test.rb now reads a cop's bad example split by blank lines as one case per paragraph.

61f6fe9

Flag Rails habits in controllers, with Dandelion/RailsController. Controllers are Padrino blocks, which AGENTS.md said but nothing checked, and agents often write them as Rails controllers. In app/controllers the cop flags before_action and the other callbacks (use before do), a bare render (erb, partial or cp), redirect_to (redirect), respond_to (provides: and content_type) and params.require or permit, as there are no strong parameters: params go through mass_assigning, which keeps to the fields each model allows. Calls with a receiver, like a PDF's render, pass. Nothing in the app does any of these today. Its @example and edge cases are in test/lint_test.rb, which now runs each cop on a file it checks.

5a8deee

Test our checks, in test/lint_test.rb. Each Dandelion cop is run on the bad and good code in its own @example, so its documentation is its test (ParamsBlank's examples are now valid Ruby to allow it), plus edge cases. It also tests that AGENTS.md lists each cop, DesignClasses and RubocopTags on templates through .erb_lint.yml, that the Bootstrap 4 list matches no class Bootstrap 5 or our stylesheets define, the ESLint and Stylelint rules, and script/lint's usage, file runs and failures. It doesn't boot the app, so CI's lint job runs it, with Node for the ESLint and Stylelint tests, and the test matrix leaves it out. AGENTS.md says to add cases when adding a check.

4b01192

Print script/lint's summary with $stderr.puts, not warn, which prints nothing under RUBYOPT=-W0. Run that way, as AGENTS.md's old erb_lint command was, a failing run said only what the linter printed, with no Failed: line and no word that node_modules was missing.

43bd51f

Move the setup in .claude/remote-setup.sh that isn't about Claude into script/agent-env, so the next cloud agent can call it rather than copy it. ruby.sh installs the Gemfile's Ruby from ruby-builder on images without it, browser-path.sh picks the Chromium for BROWSER_PATH, and start-web.sh starts Puma in the background where there's no terminal to keep it in. system-deps.sh now installs apt's chromium only on Debian: on Ubuntu it's a snap stub that doesn't run, so there it expects the image's Playwright Chromium, and says so if there isn't one. remote-setup.sh keeps only what is Claude Code's alone: its CLAUDE_CODE_REMOTE guard, the agent proxy's CA and CLAUDE_ENV_FILE.

3ce618e

Remove the @claude workflow. With the PR review gone, claude.yml only answered @claude mentions on issues and PRs, which we don't use. The daily Claude bug review still uses CLAUDE_CODE_OAUTH_TOKEN and CLAUDE_MODEL.

f533af5

Stop reviewing every pull request with Claude. The review job in claude.yml ran on each opened or updated PR, and only with Claude, though AGENTS.md said PR review ran Claude, Codex and Cursor alike. The @claude mention job stays, and AGENTS.md now names only the daily bug reviews as the shared AI workflows.

51a0fd6

Flag Bootstrap 4 classes and attributes. config/bootstrap4_leftovers.json lists those Bootstrap 5 renamed or dropped (ml-*, text-left, float-right, sr-only, badge-pill, custom-select, btn-block, close, data-toggle...) with what to use instead, and DesignClasses and ESLint both read it, so the two checks share one list. They look only at classes (class attributes, class: options, addClass and friends, classList) and at Bootstrap's own data attributes, so prose and our data-parent and data-target pass; .media, .form-group and .form-inline are left out as our stylesheets define them. Nothing in the app uses one today: this keeps it that way, as agents often reach for Bootstrap 4. AGENTS.md's Bootstrap 5 rule moves from Design to the checks, and script/lint treats the list as config for both linters.

52b2443

Fix a race in script/lint's worker threads. They assigned the index of each job to i, but the top-level --only parsing had already made i a local of the script, so the four threads shared it: one finishing could set it to nil while another was still running, and sorting the results then raised. The threads now use their own variables, and the --only position is at.