Dandelion is a fair source project. View the code on Github

Commits on Mar 09, 2025
f7c0564

✨ (tasks.rake): move tasks to modules and call them from rake

This commit refactors the rake tasks by moving them into modules and calling them from the rake tasks. This makes the code more modular and easier to maintain.

The following tasks were moved:

  • organisations:check_squarespace_signup to CheckSquarespaceSignup.check
  • organisations:set_counts to Organisation.set_counts
  • stats:monthly_contributions to MonthlyContributionsCalculator.calculate
  • events:recommend to Event.recommend
  • late: update feedback counts to EventFeedback.update_facilitator_feedback_counts
6faf811

✨ (tasks.rake): add late:errands task to perform daily tasks This commit introduces a new rake task, late:errands, which consolidates several daily maintenance operations. This task is designed to be run late in the day to perform cleanup and data refreshing tasks.


🚚 (tasks.rake): rename and consolidate tasks for better organization This commit renames the daily:get task to late:errands and incorporates several other tasks into it. The tasks tidy_up:delete_all, organisations:create_edges, gatherings:clear_up_optionships, and stats:facilitator_feedback_counts have been removed as separate tasks and their functionality has been integrated into the new late:errands task. This change aims to improve the organization and maintainability of the rake tasks by grouping related operations into a single task.

7e3a4c5

✨ (tasks.rake): introduce hourly and morning rake tasks

This commit introduces new rake tasks for hourly and morning errands.

The hourly task checks for payments for organisations and events, and deletes stale uncompleted orders.

The morning task sends feedback requests for events that ended yesterday, event reminders for events starting tomorrow, star reminders for events starting in 6 days, and payment reminders for ticket types with payment plans on the 1st of each month.

The check_for_payments, delete_stale_uncompleted_orders, send_feedback_requests, send_reminders, send_star_reminders, and send_payment_reminders tasks were removed from the events namespace as they are now part of the hourly and morning tasks.

3d75fec

📝 (/.cursorrules): add project details for context

This file now contains information about the project's tech stack, Gemfile, and CDN dependencies. This provides context for future cursor movement and code understanding.

d0fa997

🐛 (orders.rb): handle not found orders

This commit fixes a bug where the application would crash if an order with a given ID was not found. The code now checks if the order exists and returns a 404 error if it does not.

Commits on Mar 06, 2025
210675b

✨ (app/app.rb): do not track pageviews for /z/ paths

The change prevents page view tracking for paths starting with '/z/'. This is useful for excluding certain types of requests (e.g., health checks, internal probes) from analytics, reducing noise and improving the accuracy of genuine user traffic data.

d44dc44

💬 (app/views/contact.erb): reduce font size of contact email

09af9e0

💄 (app/views/events_build/_ticket_groups.erb): Improve mobile ticket group input styling

62f8ac7

💄 (app/views/events_build/_ticket_groups.erb): improve ticket group UI

78cace4

💄 (app/views/events_build/_ticket_types.erb): improve ticket types form responsiveness on smaller screens

4d4480f

🎨 (app/views/events_build/_ticket_types.erb): improve ticket type form UI

64c2a6e

Revert "
🎨 (app/views/_nav.erb): replace javascript pseudo-link with #"

This reverts commit da5d264bba7d0e301b18763043d7233580e3215d.

0626840

Revert "
🐛 (apps.js): fix sidebar menu toggle on click"

This reverts commit 9d16354c4a2a2256baca4095abff36860459ccf0.

da5d264

🎨 (app/views/_nav.erb): replace javascript pseudo-link with #

The javascript pseudo-link is not a valid link and can cause accessibility issues. Replacing it with # will make the link valid and prevent the page from reloading.

9d16354

🐛 (apps.js): fix sidebar menu toggle on click

The default action on click was causing the page to jump to the top. This commit prevents the default action and fixes the sidebar menu toggle.

7d7b83a

Revert "Auxiliary commit to revert individual files from a9a55a40647e4d6be4550e0b8c36e7e1d79a2079"

This reverts commit 48f6d560eb23c5f5350f830a9a65fd278417f470.

e0e9238

💄 (app/views/events_build/_ticket_types.erb): fix ticket type form styling on smaller screens

a9a55a4

💄 (app.scss): make sidebar submenus clickable
📝 (_nav.erb): remove href from submenu items to prevent page reload

fbe6cdd

💬 (models/pmail.rb): update sender name and reply-to

This commit modifies the sender name and reply-to address in the Pmail model. The sender name is extracted from the from address if present, otherwise, it defaults to the MAILER_EMAIL_FULL environment variable. The reply-to address is set to the original from address. This change ensures that replies are correctly routed to the original sender while providing a consistent sender name.

8be0b12

💬 (app/views/purchase/_ticket_type.erb): enable links in ticket descriptions