Dandelion is a fair source project. View the code on Github · See the design guide
Commits on Oct 06, 2026
| 268bc8e |
Stop event admins pointing atproto_uri at arbitrary Bluesky records atproto_uri was mass-assignable, so any event admin could set it to any record in the organisation's (or Dandelion's) repo and have delete_atproto/update_atproto delete or overwrite it. Protect the field and only return a client for calendar event records. |
| 63da43c |
Note that member CSV export is open to all confirmed members by design |
| 994b7ea |
The notifications page's organisations and gatherings sit under a Following heading, spaced apart from the email preferences form, with the name filter beneath it (always shown when there's anything to filter, not only past eight, and capped at 20rem wide). Organisations and Gatherings become h3s, and each hides when the filter leaves it with no cards. |
| 07a6924 |
The design guide's jonas photo is always Jonas Berg: the sample event's second facilitator and the joined_team notification used the name Sam Lee. |
| 6121727 |
The design guide's sample accounts have valid usernames (maya_okoro, as usernames allow only letters, numbers, underscores and dots, in place of maya-okoro), and its sample organisation drops the needless nil Stripe keys: it's never saved, and they're never shown. |
| 7d174e3 |
A smoke test for the design guide: it renders signed out and signed in without writing to the database (every collection's count but page_views unchanged), so a partial that starts querying or saving breaks the test rather than the public page. It also covers has_many_through reading an unsaved record's built join documents, which the guide's samples rely on. |
| 6b5bb85 |
The AI well's gradient starts at the 100 step (lavender, or the theme's on themed pages) rather than 50, so it's less intense: the top left is darker, closer to the 400 end. The design guide's ramps and AI well note follow. |
| 984aa6a |
The design guide's text field and error state are lib/form_builder.rb's text_block, on an unsaved event and an unsaved account with an error added, in place of hand-written fields that had drifted: the real label is the model's (Event title), with the required asterisk, and the error is wrapped in span.error. The focused state, plain checkboxes, switches and range stay hand-written. |
| 10e10be |
The design guide's pagination is will_paginate with BootstrapRenderer, both as lists use it (arrows alone, page_links: false) and as the admin lists do (page numbers too), in place of a hand-written pager whose ‹ › arrows and page numbers matched neither: the real arrows read ← Previous and Next →. |
| dd2b298 |
The design guide's ticket rows are purchase/_ticket_type.erb, for unsaved ticket types in two groups (one with 2 left, a pay-what-you-can range and a sold-out one with a waitlist), rendered as _purchase.erb renders them, in place of hand-copied rows. No tickets are sold: the event's ticket counts, an aggregate of saved tickets, are set to zero. The discounts, donation and total stay hand-written, as _purchase.erb is tied to the payment flow. |
| ac60b18 |
The design guide's progress bars are events/_progress.erb, for two unsaved events with 80 places, in place of hand-written bars. Their places taken, an aggregate of saved tickets, are set by hand. |
| 9859348 |
The design guide's date and icon tiles are events/_details.erb, as on the event page, for the sample event (as @event while it renders), in place of a hand-written inline row that didn't match the page's table of tiles and details. |
| 737689d |
The design guide's message thread renders messages/_bubble.erb for each bubble, with unsaved messages between a sample account (set as @account, the other party, while they render) and you, and accounts/_square for its avatars, in place of hand-written bubbles. Its link is now auto-linked, as in a real thread. |
| 485e224 |
The design guide's carousel slides are events/_block_carousel.erb, rendering five unsaved sample events (sold out, multi-day and on-demand among them, so the real date and label logic shows), in place of hand-written badges. The wrapper stays the guide's, as _carousel.erb caches each slide by event id. design_build_event and design_sample_organisation build the guide's events. |
| 6a30ca7 |
More of the design guide renders the real partials, fed by unsaved records from the factories in place of hand-copied markup: avatars (accounts/_square, the private one a built account that hasn't signed in), upcoming birthdays (accounts/_birthday), the key-value table (accounts/_table), the image wall (accounts/_add), the map info window (points/_account), the theme colour picker (_quick_theme_colors, in a form with its input, so app.js selects the matching swatch and a click previews that theme), the tags field (_tags_select, with the sample event's tags) and the notifications (_notification_summary, with two real notification types in place of the invented followed-you and booked-tickets ones). design_sample_account builds an account with one of the sample photos as a stand-in image. |
| b20c0a5 |
The design guide's event block is events/_block.erb itself, rendering an unsaved sample event built from the factories (design_sample_event: its organisation, facilitators and tags built in memory, nothing saved) in place of a hand-copied sample that had drifted from it. The photo is a stand-in (design_sample_image, shared with Tiles), as a real Dragonfly image stores a thumbnail and a DragonflyJob when its url is asked for. _block.erb passes skip_pagelets on to _block_main, so the sample doesn't load the star and hide pagelets. |
| ba79def |
has_many_through reads an unsaved record's join documents from memory, so built records are found (event.event_tagships.build(event_tag: tag) then event.event_tags gives the tag), in place of querying by their ids, which found nothing until everything was saved. Saved records, and through-associations with conditions, still query. |
| f6ef643 |
Font sizes that equal a type token use it: the header's icons and the search's close button take --font-size-lg in place of 1.125rem, badges beside headings and in event title lines and the newsfeed icons --font-size-base in place of 1rem, and the calendar's toolbar buttons and the design guide's nav --font-size-sm in place of .875rem. |
| 8c4ba44 |
app.css declares .progress, .nav-crumbs .btn and #calendar once each, in place of twice: .progress's grey track joins its bar colour, the crumbs' ellipsis widths join the rest of their button styles, and the calendar's toolbar variables join its today variable. |
| 5cd6ef9 |
Drop two dead rules: the filled .text-bg-yellow, white on the yellow 500, which nothing used outside badges (where the soft badge rule always won) and which would have failed contrast, and the .accordion focus ring, as there are no accordions. |