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

Commits on Sep 30, 2026
b3f0830

Remove comments that only repeat the name of the method or class below them.

262cd93

Remove Membership's posts, subscriptions, comments and comment_reactions associations, which nothing links to.

None of those models has a membership_id or belongs to a membership, so Mongoid keyed them on _id: they never matched a record (their dependent: :destroy deleted nothing) and the admin's "See all" for them listed everything. A test now checks every has-many is keyed by a real field.

ae376a9

Fix four admin and form builder bugs, with tests.

  • The admin's related lists link "See all" and "New" by the association's foreign key. They built
  • image_block skips the preview when a stored file is missing in development, where the url is nil, rather than raising.
  • A date or datetime criterion that doesn't parse is skipped: Time.zone.parse returns nil rather than raising.
  • The form builder's tip, short URL and download icons use Bootstrap Icons, as Font Awesome isn't loaded.
64b6db0

Slide sidebar submenus open and shut in 175ms, in step with the faster mobile sidebar.

c774b8d

Show and hide the mobile sidebar in 0.15s rather than Bootstrap's 0.3s.

c2cc291

Revert "Close sidebar submenus faster than they open."

This reverts commit 726ccf36, which misread a request to speed up the mobile sidebar.

726ccf3

Close sidebar submenus faster than they open.

54f4d58

Slide sidebar submenus with jQuery, so clicking again mid-slide reverses it at once.

Bootstrap's collapse ignores clicks until its transition finishes. The minified sidebar still opens groups as Bootstrap dropdowns.

672ed1a

Parenthesise an assertion's block in the admin tests for RuboCop.

b115cac

Add tests for the admin: access, search, criteria, CSV, prefill, create/edit/delete, popups and the javascript: URL and layout fixes.

67e69a9

Tidy the admin's views: compute the list's columns once, make column sorting plain links, move the collection field and search fields out of inline Ruby, and prefill lookups in the controller.

Also swap inline styles for Bootstrap utilities, lay out search criteria as flex rows, fold the home page's row partial into it, and realign an end that the dadmin_ renames left RuboCop flagging.

b45d38f

Prefix the admin's remaining helpers with dadmin_, as they're visible app-wide.

f8f5875

Send requests for an unknown model to the admin home rather than the site home.

54ab9ff

Tidy the admin: build its search from small helpers in place of repeated branches, and share its model name, lookup labels and popup handling.

Criteria on a has-many collection's field (collection.field) now work, plucking the association's foreign key; unsupported criteria are skipped rather than raising; and a text search no field can match returns nothing rather than erroring.

e4adaa9

Rename the admin's refreshParent helper to refresh_parent.

a0ee492

Stop the admin setting @event, @organisation and the like, which made the layout load that record's analytics and JSON-LD.

The form is built from @resource directly, so Padrino no longer needs an instance variable named after the model.

82aad01

Fix the branch's RuboCop warnings, so CI's rubocop --fail-level warning passes again.

Mostly alignment and parentheses in the code brought in from activate-tools and activate-admin. Also: image_block escapes its preview URL with URI::Parser#escape, as URI.encode no longer exists and its rescue left the URL unescaped; and FORM_FIELD_ERROR_ATTRIBUTES moves out of the helpers block.

0f5efaa

Drop five admin helpers: use ActiveModel's model_name.human, assoc(...).class_name, and two constants for the searchable field types.

3640532

Set the admin's model as @model in its controller's before block, in place of an app-wide model helper.

206f19b

Make the notifications and messages pagelets the dropdown menus themselves, so they keep opening after their 60-second refresh.

Bootstrap 5's Dropdown remembers the menu element it first found, and the refresh replaced that element with a new one, leaving Bootstrap showing a detached menu. The partials now render only the list, which the mobile sheet clones.