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

Commits on Feb 10, 2025
b84bc07

🐛 Improve AI response validation in Event model

This commit enhances the validation logic for AI-generated content in the Event model. It now ensures that the content includes commas and doesn't contain hash symbols, providing more reliable and consistent results.

7e5020c

✨ Add opt-in options for organisation and facilitator emails

This commit introduces new features to enhance user control over email communications:

  1. Add 'opt_in_organisation' checkbox to event creation form
  2. Enable 'opt_in_organisation' and 'opt_in_facilitator' by default for new events
  3. Include 'opt_in_organisation' in event duplication process
  4. Update purchase form to respect 'opt_in_organisation' setting
  5. Remove restriction on 'opt_in_facilitator' for non-admin users

These changes provide more flexibility for event organizers and attendees to manage their communication preferences, improving user experience and data privacy compliance.

e82230a

🐛 Fix unsubscribe status when creating new relationships

This commit addresses an issue where newly created relationships (organisationships, activityships, local_groupships) were not properly setting the unsubscribed status. The changes ensure that when a new relationship is created, the unsubscribed field is explicitly set to nil, allowing users to receive communications by default.

5acc8ae

🐛 Enhance AI response parsing in daily_helper.rb

Improve the logic for removing unnecessary introductory paragraphs from AI responses. Now, it removes paragraphs that start with 'Here' in addition to those ending with a colon, resulting in cleaner and more concise output.

Commits on Feb 09, 2025
a364f81

🐛 Fix environment variable name in daily task

The commit changes the environment variable name from 'BASE_URL' to 'BASE_URI' in the daily task. This correction ensures consistency with the expected configuration and prevents potential errors due to mismatched variable names.

Commits on Feb 07, 2025
fa342e8

✨ Add filter to exclude events with nil descriptions

This change improves the quality of event summaries by ensuring that only events with valid descriptions are included in the daily view. It prevents potential issues with summarizing events that lack proper information.

Commits on Feb 06, 2025
23ecc54

🎨 Improve responsive design for article content text alignment

This commit makes two main changes:

  1. In the daily.erb view, the text-align: justify style for article content is now applied only on screens wider than 768px. This improves readability on smaller screens where justified text can create awkward spacing.

  2. In the OrganisationAccounting module, the condition for updating paid_up status has been simplified. Instead of checking if stripe_customer_id is not nil, we now use the truthiness of stripe_customer_id directly, which is a more idiomatic Ruby approach.

These changes enhance the user experience on mobile devices and slightly improve code readability in the backend.

97519df

🔒️ Improve payment processing security and error handling

This commit enhances the security and robustness of the payment processing flow. It now only updates the organization's payment details and performs the top-up if a valid card payment method is present.

c53059a

🚚 Separate Home and Newsfeed into distinct navigation items

The changes reorganize the navigation menu to improve user experience and clarity. The Home link is now always present, and a new "Dandelion Daily" link has been added to replace the conditional Newsfeed option.

475c9af

✨ Add daily task to fetch data from external API

9df51a9

🎨 Improve UI and structure of the daily view

This commit enhances the UI and structure of the daily view page:

  • Replace text arrows with Bootstrap icons for navigation
  • Restructure date navigation HTML for better semantics
  • Adjust CSS for improved layout and responsiveness
  • Reorganize and clean up CSS rules for better maintainability

These changes aim to improve the overall user experience and code quality.

7ac491b

🎨 Improve responsive layout and typography in daily view

This commit enhances the responsiveness and visual presentation of the daily view. It adjusts column classes for better mobile layout and improves the newspaper title's responsiveness to ensure proper display across devices.

c8f36c9

🎨 Improve structure and styling of daily view and event feedback

This commit enhances the visual presentation and structure of the daily view and event feedback components. It includes the following changes:

  1. Standardize heading levels in the daily view
  2. Improve image handling for books and films
  3. Refactor event feedback display and processing
  4. Adjust styling for average ratings
  5. Enhance facilitator of the day section
  6. Optimize event filtering in daily helper

These changes aim to create a more consistent and visually appealing user interface while also improving the code structure and maintainability.

e603622

🐛 Adjust browsable condition logic in Event model

The order of conditions in the set_browsable method has been changed to prioritize the organization's paid status over the existence of ticket types. This ensures more accurate browsability settings for events.

77b4bf6

♻️ Refactor update_browsable method in Event model

The update_browsable method has been refactored to set_browsable for improved performance and clarity. This change replaces the update_attribute call with a more efficient set method, reducing unnecessary database operations.

47efef3

🚚 Rename update_browsable method to set_browsable for clarity

This commit renames the 'update_browsable' method to 'set_browsable' in both the EventCallbacks module and the Organisation model. The new name better reflects the method's purpose of setting the browsable state rather than updating it, improving code readability and maintainability.

4b3e1d2

🔧 Replace 'legit' scope with 'browsable' for improved event filtering

This commit introduces a more semantic and flexible approach to filtering events by replacing the 'legit' scope with a new 'browsable' field. The change allows for better control over which events are displayed in public listings and searches.

462abd0

🐛 Handle nil responses from OpenRouter.chat in feedback summaries

This commit adds error handling for potential nil responses from OpenRouter.chat in account and activity feedback summaries, as well as in the Event model. This prevents errors when processing the response and ensures more robust behavior in case of API failures or unexpected results.

Commits on Feb 05, 2025
12f4df4

🎨 Refine OpenRouter chat result processing in daily_helper

This commit improves the handling of OpenRouter chat results by removing the first paragraph if it ends with a colon. This change enhances the formatting and readability of the generated content.

d27d9dc

🔧 Adjust OpenRouter chat response handling and event summary prompts