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

Commits on Mar 05, 2025
2be1147

🐛 (event_stats_row): fix nil error when event end time is nil

The conditional statement event.end_time.to_date < Date.today - 1 was throwing an error when event.end_time was nil. This commit adds a check to ensure that event.end_time is not nil before attempting to call to_date on it.

63e6247

🐛 (app/views/layouts/pmail.erb): fix markdown rendering

The markdown was not rendering correctly due to missing options. This commit adds the autolink: true, tables: true options to the Redcarpet::Markdown renderer to fix this issue.

e39bee9

💄 (events_build/_ticket_types.erb): slightly reduce width of sales_end input to improve UI

896db83

💄(events_build/_ticket_types.erb): Minor UI adjustments for ticket type form

This commit makes small adjustments to the ticket type form in the event builder to improve visual consistency and spacing. Specifically, it reduces the left margin of the "hidden" checkbox and removes the unnecessary font-size styling from the external link icon, relying on the default size for better integration with the surrounding text.

02c3e64

💄 (app/views/events_build/_ticket_types.erb): add a left margin to the sales end datetime field
💄 (app/views/events_build/_ticket_types.erb): slightly reduce the width of the sales end input on smaller screens

2fb7f09

💄(app/views/events_build/_ticket_types.erb): fix width of input fields on smaller screens

0326362

🎨 (app/views/events_build/_ticket_types.erb): improve ticket type form layout and styling
💬 (app/views/events_build/_ticket_types.erb): change "Minimum monthly donation" to "Min. monthly donation"
♿️ (app/views/events_build/_ticket_types.erb): add accessibility attributes to secret ticket type checkbox

209a874

♻️ (app): refactor markdown rendering to use helper method

This commit refactors the markdown rendering logic by introducing a helper method md in app/helpers/helpers.rb. This method encapsulates the markdown rendering process, making it reusable across the application.

The changes include:

  • Introduction of the md helper method in app/helpers/helpers.rb to handle markdown rendering.
  • Replacement of direct Redcarpet::Markdown instantiation and rendering with calls to the md helper method in app/helpers/daily_helper.rb, app/views/books/book.erb, app/views/event_feedbacks/_report.erb, app/views/layouts/pmail.erb, app/views/purchase/_purchase.erb, and app/views/terms.erb.

This refactoring improves code maintainability and reduces duplication by centralizing the markdown rendering logic.

233f4d4

💄 (app.scss): style checkbox accent color and ticket types
✨ (app/views/events_build/_ticket_types.erb): improve ticket type form

This commit improves the styling of checkboxes by setting the accent color. It also enhances the ticket type form in the event build section by:

  • Adding a visual indicator for hidden ticket types with a link icon.
  • Improving the layout and responsiveness of the ticket type form, especially on smaller screens.
  • Adjusting input field styles for better user experience.
5720aca

💄 (app/views/events_build/_ticket_types.erb): add background and shadow to ticket types

f31a618

💄 (app/views/events_build/_ticket_types.erb): Improve ticket type UI

0a0e8f3

✨ (app/views/events_build/_ticket_types.erb): add sales end time to ticket types
✨ (app/views/purchase/_ticket_type.erb): display sales closed badge when sales end is in the past
✨ (models/concerns/event_duplication.rb): duplicate sales_end when duplicating events
✨ (models/ticket.rb): prevent ticket creation if sales end is in the past
✨ (models/ticket_type.rb): add sales_end field to ticket type model
💄 (app/views/events_build/_ticket_types.erb): improve styling of datetime inputs

e60e598

💄 (app/views/gatherings/join.erb): change card margin top to margin bottom to improve spacing

865e12d

⚡️ (tasks.rake): improve stripe monthly contributions rake task performance

The previous implementation fetched all charges and application fees from Stripe for the entire date range specified, then filtered them in-memory for each month. This commit optimizes the task by fetching charges and application fees on a per-month basis directly from Stripe, reducing the amount of data transferred and processed. This significantly improves the performance of the rake task, especially for large date ranges.

Commits on Feb 28, 2025
94c1e8c

🐛 (events_build): fix new org tour to not trigger on draft events

The new org tour was incorrectly triggering when creating draft events. This commit fixes this by adding a check to ensure that params[:draft_id] is not present before triggering the tour.

62d3e35

🔒️ (models/account.rb): increase failed sign in attempts to 99

This change increases the number of failed sign-in attempts allowed before an account is locked. This is to prevent attackers from locking out accounts by repeatedly trying incorrect passwords.

Commits on Feb 26, 2025
8e6e793

🔥 (app/views/contact.erb): remove Telegram link

The Telegram link was removed from the contact page. The link was not generating enough value to justify its presence on the page.

Commits on Feb 24, 2025
2c0daec

♻️ (models/pmail.rb): improve readability of send_pmail method

The order of the return statements was changed to improve readability. The condition message_ids = send_batch_message was moved to be checked before updating attributes.

Commits on Feb 20, 2025
ae943b5

🐛 Fix potential error when setting affiliate in Order model

This commit adds a check for the presence of affiliate_id before attempting to find the affiliate. This prevents a potential error when the affiliate_id is nil, improving the robustness of the affiliate assignment process.

Commits on Feb 13, 2025
1ea3e93

💄 Add letter-spacing to slick-placeholder class for improved readability