Dandelion is a fair source project. View the code on Github · See the design guide
Commits on Oct 09, 2026
| cd26802 |
Stop adding _t= to every AJAX request and send Cache-Control: no-store on XHR responses instead. The prefilter in pagelets.js appended a timestamp to every jQuery request, including POST bodies and requests to other sites, so nothing fetched by AJAX could ever be cached. The before filter now marks XHR responses no-store (routes can still set their own), which keeps pagelets and partials fresh and stops the browser storing a partial that shares its URL with the full page (/, /events, /notifications) and showing it on back navigation. Static files skip the before filter, so they keep their Last-Modified caching. |
| bb8af15 |
Test mass_assigning's Dragonfly filter directly instead of through POST /o/new. The request test failed in CI: saving an organisation with an upload asks ImageMagick for the image's size, and GitHub's ubuntu-24.04 runner doesn't have ImageMagick, so the save failed and no organisation was found. Assigning an upload runs ImageMagick too, so the test now passes retained_image, image_uid, image_url and image_name with an upload to mass_assigning and checks that only the upload, name and remove_image remain, and that the stored file it pointed at is still there. |
| bfb358f |
Centre the icons on map pins. The Bootstrap icon was laid out as inline text, whose -.125em nudge and taller line box left it above the pin's head; it's now an 18px block starting 10px down, a little below the head's middle so it looks centred in the teardrop. |
| e739cf7 |
Move maps and location fields off Google's deprecated APIs. Map pins are now AdvancedMarkerElements drawn in HTML (.map-marker, the map-icons pin shape as a CSS mask in the model's colour token, with its Bootstrap icon) and clicked with gmp-click, replacing google.maps.Marker and scottdejonge/map-icons. Clustering uses @googlemaps/markerclusterer 2.6.2 from jsDelivr instead of markerclustererplus, with clusters rendered as .map-cluster-sm/-md/-lg HTML, so the SVG data URLs drawn to suit the old clusterer's image-only styles are gone. At the closest zoom a cluster click now lists its points as intended: it compared against window.map.maxZoom, which isn't set. Advanced markers need a map ID, read from GOOGLE_MAPS_MAP_ID and falling back to Google's DEMO_MAP_ID. The Maps script tag on every page is replaced by Google's dynamic library loader, so the API only loads on pages that ask for a library; the homepage map hides itself if it can't load. The nine copies of google.maps.places.Autocomplete become placeAutocomplete() in places.js, which keeps the field an ordinary input (so free text, form names and styling are unchanged) and fills the jQuery UI autocomplete menu from the Places API (New) AutocompleteSuggestion with session tokens, with the Google Maps attribution Google requires under suggestions shown without a map. Enter picks the highlighted suggestion, and with nothing highlighted closes the menu rather than submitting the form. The browser key needs Places API (New) enabled for suggestions to appear; until then the fields work as plain text. Two browser tests fake the Places library to cover the edit profile field and the map page's submit-on-select. |
| 5794d13 |
Build CKEditor in this repo instead of loading it from symbiota-coop/ckeditor5-dandelion. ckeditor/ holds the build's source, webpack config, package.json and yarn.lock (package.json now lists the code-block and html-embed plugins the source imports, which the lockfile already pinned), and rake ckeditor:build builds it in a temporary folder, as rake bootstrap:build does, writing app/assets/javascripts/ext/ckeditor.js. That file is the GitHub build without its sourceMappingURL comment, as we don't serve the map, and rebuilding gives the same bytes. The stats page no longer looks up GitHub dependencies, and the design guide and AGENTS.md say how to change the editor (the build has three paragraph styles, Lead, Small and Action, not two). |
| ff31281 |
Load Coloris from @melloware/coloris on npm and drop jquery-ui-extensions. Coloris isn't on npm itself; its README points to @melloware/coloris, whose 0.25.0 matches the v0.25.0 commit we pinned (the CSS is byte-identical, the UMD build is the same code with a wrapper that still sets window.Coloris and inits it). The jQuery UI autocomplete HTML extension only added an html option that no autocomplete uses: the header and messages searches set their own _renderItem, and app.css styles jQuery UI's default item wrapper the same as the extension's links. CKEditor is now the only file loaded from /gh/. |
| 8b7a9b0 |
Load autosize, countUp, jquery-deparam and linkify from jsDelivr's npm endpoint instead of copies in javascripts/ext, which matched autosize@4.0.2, countup.js@2.1.0, jquery-deparam@0.5.3 and linkifyjs@2.1.9 (autosize only reformatted), and load jsQR and cytoscape-cola from npm (jsqr@1.4.0, cytoscape-cola@2.3.1, byte-identical to the GitHub commits) rather than /gh/. cytoscape-cola reads window.cola when it loads, so the network script now loads WebCola first. Our own scripts are listed as '/' => { 'javascripts' => ... } rather than under a nil path, so every dependency URL is base, path and file, and the layout and stats page no longer special-case nil. |
| ef5d32a |
Load npm libraries from jsDelivr instead of cdnjs, so every third-party file now comes from cdn.jsdelivr.net. FRONTEND_DEPENDENCIES' cdnjs entries are now package@version keys under /npm/ with the paths the npm packages use (masonry is masonry-layout, highlight.js is @highlightjs/cdn-assets), and jQuery, FullCalendar, highlight.js, marked, DOMPurify, web3, iframe-resizer and cytoscape follow. The files are byte-identical to cdnjs's except jquery.timeago.min.js, tribute.min.css, slick-theme.min.css and jquery.typewatch.min.js, which the npm packages don't ship minified, so jsDelivr minifies the same source itself. /stats/frontend_dependencies reads npm packages from the npm registry, taking release dates from it rather than from GitHub tags, ignoring prereleases when looking for newer versions, and linking repositories as https URLs. |
| d475e1c |
EVM addresses must now be valid, and the EVM payment prompt no longer builds HTML from strings. Organisation and Gathering only stripped evm_address, so an admin could save markup there and it ran on the event and gathering pay pages, where evm_payment.js inserted it with .html(). It also went unescaped into the JavaScript for the Celo QR codes. evm_address must now be 0x followed by 40 hex characters. The "Send EXACTLY … to …" prompt fills its two elements with .text(), so data.value and the address are inserted as text. |
| 60ee9a2 |
Load GitHub-hosted files from jsDelivr instead of githack. Pinned libraries (CKEditor, Coloris, the jQuery UI autocomplete extension, markerclustererplus, map-icons, WebCola, cytoscape-cola, jsQR) and the Hanken Grotesk fonts now come from cdn.jsdelivr.net/gh/user/repo@sha, and the library pages read stephenreid's CSVs and images from @master there. FRONTEND_DEPENDENCIES keys are now user/repo@sha, which /stats/frontend_dependencies parses for jsDelivr. |
| 0a4a60a |
Replace Pace with our own loader. Pace 1.0.0 came from cdnjs on every page and wrapped XMLHttpRequest and WebSocket for every script on it, though all we used was its bar and spinner. app.js now shows the same 2px --gradient-active bar and black spinner (.loader) while a jQuery GET is still going after half a second, as Pace did, and while leaving a page, hiding them on pagehide. The spinner no longer starts when the unsaved-changes prompt stops the page from leaving. CREATE_VIDEO turns it off with window.noLoader. |
| 65925ca |
Organisation and event admins can no longer set what their organisation owes Dandelion. Organisation.protected_attributes didn't list percent_requested, hide_from_homepage, allow_iframes, psychedelic, allow_purchase_url or no_referrer, and Event.protected_attributes didn't list fixed_contribution_gbp or cap_gbp, so mass_assigning let them through the organisation and event edit forms even though only dadmin shows them. A negative fixed contribution or cap (or a negative percent_requested) made contribution_requested negative, so update_paid_up marked the organisation paid up: the platform fee and Stripe top-up were skipped and its events became browsable. These fields are now protected, so posting them raises, and fixed_contribution_gbp, cap_gbp and percent_requested must be zero or more. Dadmin assigns raw params, so it can still set them. |
| 8d6c6cd |
Merge branch 'master' of https://github.com/symbiota-coop/dandelion |
| c5c0bc1 |
Forms can no longer delete or take over stored files through Dragonfly's hidden setters. mass_assigning only blocked listed fields, and Organisation, Event and Comment didn't list retained_image/retained_file or image_uid, so a signed-in user could copy a storage key from any public image URL and send it as retained_image alongside an upload (e.g. GET /o/new?organisation[image]=…&organisation[retained_image]=…, POST /comment, or event create/edit). Dragonfly's retained_ |
| 221fa6a |
Query parameters and list names are no longer written into HTML strings in JS. On organisation events pages with carousel buttons and a local group, the script that copies query parameters into the local group form built each hidden input as a string from URLSearchParams' decoded keys and values, so a link with a parameter like x="> |
| 1956a70 |
Terms and conditions URLs must be http or https. terms_and_conditions_url on events and organisations wasn't in validates_http_url, and the purchase form puts it straight into a link's href, so an event or organisation admin could save a javascript: URL that ran when a buyer clicked it. Both fields are now validated like the other link fields (a bare domain gets https:// in front). No stored value in either collection was invalid, so nothing needs cleaning up. |
Commits on Oct 08, 2026
| 1ec2a31 |
Remove unused .search-result-list h3 rules (results use h2) Claude-Session: https://claude.ai/code/session_01DQm4vaMufQ71ALbZD6oo1F |
| 45be059 |
Put ticket group headings on the type scale (--font-size-lg) Claude-Session: https://claude.ai/code/session_01DQm4vaMufQ71ALbZD6oo1F |
| 48fbf70 |
Bring design guide in line with app.css Lavender 500 and 800 are used by the onboarding callout; paper and hairlines have more uses than listed; note page view transitions under Motion. In app.css, fix the AI well comment (100, not 50), drop a stale gradient mention, let the notification dot keep its pill radius, and use --hairline between feedback entries. Claude-Session: https://claude.ai/code/session_01DQm4vaMufQ71ALbZD6oo1F |
| 5532f7c |
A signup that races another for the same email gets the existing-account response, not a 500. Two posts of the sign-up form (a double tap on a phone) both passed validates_uniqueness_of :email before either was saved, so the second insert hit the unique email index and raised E11000. POST /accounts/new now treats that duplicate key error as a failed save when an account with the email exists, so it takes the same path as signing up with an email that's already registered. Fixes DANDELION-3Y |