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

Commits on Feb 05, 2025
a8c85e8

⬆️ Upgrade OpenRouter to use Gemini 2.0 Flash model

This commit updates the OpenRouter configuration to use the latest Gemini 2.0 Flash model. The change aims to improve the AI's performance and capabilities in generating responses for the daily helper.

1710a67

🐛 Fix type mismatch in account ID comparison

This commit addresses a potential issue where account IDs might be compared as different types (string vs integer), which could lead to unexpected results. By converting all IDs to strings, we ensure consistent comparison.

ee4bfc1

🔥 Remove unused Lora font and its references

This commit removes the unused Lora font from the project. The Lora font was previously included but not actively used in the design. Removing it simplifies the font stack and reduces unnecessary resource loading.

81d64c2

🐛 Fix variable reference in events partial

The commit fixes a bug in the events partial view by changing the local variable 'events' to the instance variable '@events' when rendering the 'events/blocks' partial. This ensures the correct data is passed to the partial for rendering.

fd4d1e3

🔒️ Improve event filtering for legitimate and paid-up organizations

This commit enhances the event filtering process to ensure only legitimate events from paid-up organizations or events with ticket types are displayed. The changes were made to improve security and maintain data integrity.

a3163c5

✨ Implement stash_partial helper for caching rendered partials

This commit introduces a new caching mechanism for rendered partials using a Stash model. The changes include:

  1. Adding a new stash_partial helper method in helpers.rb
  2. Creating a new Stash model to store cached partial content
  3. Updating the daily controller to use stash_partial instead of cp
  4. Modifying the trending scope in EventScopes to accept a date parameter
  5. Updating the _daily.erb view to pass the current date to Event.trending

These changes improve performance by caching rendered partials and allow for more flexible date-based trending event queries.

9cf4ad4

🎨 Improve structure and styling of daily view

This commit enhances the layout and styling of the daily view page:

  1. Remove unnecessary 'article-content' class from book and film sections
  2. Add condition to ensure facilitator has a picture
  3. Improve facilitator section layout and styling
  4. Hide star icon in facilitator info section

These changes aim to create a more consistent and visually appealing layout for the daily view, while also ensuring that the facilitator of the day always has an associated image.

ef9bf2f

🌐 Add EventTag data to daily view for AJAX requests

This commit enhances the '/daily' route to include EventTag data when responding to AJAX requests. This change allows for dynamic loading of event tags, improving the user experience in the daily view.

5c60690

🚀 Implement daily page with date navigation and dynamic content

This commit introduces several enhancements to the daily page:

  1. Add date navigation to allow users to browse different dates
  2. Implement dynamic content loading based on selected date
  3. Refactor event queries to use the selected date
  4. Improve article rendering and layout
  5. Update facilitator of the day display
  6. Enhance styling for better readability and user experience

These changes provide a more interactive and informative daily page, allowing users to explore events and content for specific dates.

Commits on Feb 03, 2025
b7bab3f

🐛 Fix event feedback check and improve event summary generation

This commit addresses two issues in the daily_helper.rb file:

  1. Corrects the logic for checking event feedbacks when use_feedback is true. Now it properly checks if all events have empty feedbacks.

  2. Enhances the generate_events_summary method to skip events without feedback when use_feedback is true, ensuring only relevant events are included in the summary.

These changes improve the accuracy and efficiency of event rendering and summary generation, especially when dealing with event feedback.

463d10c

🚚 Rename "Events Listed Yesterday" to "Recently Listed" in daily view

Commits on Feb 02, 2025
a3dc3ca

✨ Add "Book of the Day", "Film of the Day", and "Facilitator of the Day" sections

This commit introduces three new sections to the daily view: "Book of the Day", "Film of the Day", and "Facilitator of the Day". These additions aim to provide more diverse and engaging content for users, showcasing different types of media and community members each day.

7c76d8f

🐛 Fix incorrect method call in daily_helper.rb

The commit fixes a bug in the render_article method where use_feedback? was incorrectly called as a method instead of using the use_feedback parameter. This ensures the correct evaluation of the feedback condition.

19c3af8

🐛 Fix event rendering logic and improve date formatting

This commit addresses two main issues:

  1. In daily_helper.rb:

    • Fix the conditional logic for rendering events with feedback
    • Correct the method call for joining event feedbacks
  2. In daily.erb:

    • Update date formatting to remove leading zero from day of month

These changes improve the accuracy of event rendering and enhance the readability of the displayed date.

1142512

⚡️ Implement caching for charts and pay progress components

7fc4b17

✨ Add early return for empty events in render_article helper

This change improves the efficiency of the render_article helper by avoiding unnecessary processing when there are no events or event feedbacks to render.

Commits on Feb 01, 2025
abfe36e

🎨 Refactor daily view template for improved readability and accuracy


♻️ Update feedback report query to use end_time instead of start_time

06377d0

♻️ Refactor daily view and extract helper methods

This commit refactors the daily view and extracts helper methods to improve code organization and reusability. The changes include:

  1. Creating a new daily_helper.rb file with helper methods
  2. Simplifying the _daily.erb partial by using the new helper methods
  3. Updating the daily.erb view to dynamically generate placeholders

These changes make the code more maintainable and easier to extend in the future.

Commits on Jan 31, 2025
c266ed7

🔥 Remove unused models and providers from OpenRouter configuration

d5f7ecf

🚚 Move Markdown initialization to the top of the file


♻️ Restructure event summary generation and display order


🎨 Improve readability by grouping related code blocks together