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

Commits on Mar 12, 2025
c76aa29

🐛 (models/event.rb): fix tag generation prompt to use local variables

The tag generation prompt was using e.name and e.description instead of the local name and description variables, leading to incorrect tag generation. This commit fixes the prompt to use the correct local variables.

21a2c9b

🔥 (app/views): remove Telegram support links from contact and doc pages

1ff99ed

💬 (models/event.rb): improve prompt for tag generation

The prompt for generating tags for events has been improved to include instructions for handling multi-word tags. The prompt now explicitly states to separate multiple words within a tag with spaces, ensuring that the generated tags are more accurate and useful.

93a42f0

✨ (app): limit tags in event stats row and add plus more

This commit introduces a limit to the number of tags displayed in the event stats row and adds a "+ more" indicator if the event has more tags than the limit. This improves the readability of the event stats row by preventing it from becoming too cluttered with tags.

00a91fa

🎨 (purchase/_ticket_type.erb): change col class to col-auto

The change was made to improve the layout of the ticket type selection on the purchase page. By changing the col class to col-auto, the width of the quantity selection element will be determined by its content, rather than taking up the full width of its parent. This allows the other elements in the row to be displayed more naturally.

671c7bc

🔥 (code/_commits.erb): remove caching for current month commits

The caching logic was removed because it was causing issues with displaying the latest commits for the current month. The cache key was not being invalidated when new commits were added, so users were not seeing the most up-to-date information.

780238f

🚚 (app/views/code/code.erb): move commit listing to a partial
✨ (app/views/code/_commits.erb): create _commits partial to display commit history

Commits on Mar 11, 2025
d4a3002

🐛 (models/pmail.rb): fix from_name and from_email extraction

The regex for extracting the from_name was too strict and didn't handle all cases. The logic is changed to handle emails without a name and to correctly extract the email address when no name is present.

8b22d15

🐛 (models/pmail.rb): fix from and reply_to headers for mailgun

The goal is to use the sender's email address as the from address when sending via Mailgun, instead of rewriting it to use the default MAILER_EMAIL. This allows replies to go directly to the sender.

The changes ensure that if the from email address belongs to the organization's Mailgun domain, it's used as the from address. Otherwise, the existing logic (using MAILER_EMAIL) is preserved. A reply_to header is no longer needed in the mailgun case, as the from header is already correct.

cb53eba

📝 (app/views/code/_commit_summary.erb): remove past tense instruction

0ba0012

🔥 (app/views/code/_commit_summary.erb): remove begin rescue block

The begin rescue block was removed because it was hiding errors. If the OpenRouter.chat method fails, the error should be raised so that it can be handled properly.

5d1bb59

🐛 (code/_commit_summary.erb): fix commit summary parsing

The commit summary parsing logic was updated to handle cases where the response from OpenRouter starts with '# '. This ensures that the summary extraction works correctly for different response formats.

116e86f

💬 (app/views/code/_commit_summary.erb): improve prompt for commit summary generation to be more user-centric
✨ (app/views/code/_commit_summary.erb): specify anthropic/claude-3.7-sonnet:beta model for OpenRouter.chat to improve summary quality

d785d0d

🐛 (code.erb): fix escaping underscores in commit messages

The previous implementation was escaping underscores, but then not unescaping them in the final output. This commit fixes this issue by unescaping underscores after the emoji replacement.

27e38b2

🐛 (code.erb): fix emoji presentation in commit messages

The emoji presentation was broken due to a regex issue. This commit fixes the regex to properly handle emojis in commit messages.

97a0d91

💬 (code.erb): improve commit message rendering in code view

This commit improves the rendering of commit messages in the code view by:

  • Replacing underscores with escaped underscores to prevent markdown interpretation.
  • Adding line breaks before emojis to improve readability.
  • Removing leading line breaks.
7cb2e7f

💬 (app/views/code/_commit_summary.erb): improve prompt for commit summary

The prompt is improved to provide better instructions for summarizing commit messages, specifically focusing on user-facing changes and avoiding internal terminology.

062277a

📝 (app/views/code/_commit_summary.erb): clarify instructions for writing commit summaries

8ef32d1

💬 (app/views/code/_commit_summary.erb): improve prompt for commit summaries

The prompt for summarizing commit messages was improved to generate more informative and user-friendly summaries. The changes include:

  • Specifying a minimum length of 3 sentences per paragraph to ensure sufficient detail.
  • Clarifying the exclusion of technical details, such as z-index changes, to focus on user-relevant information.
3beca22

✨ (Gemfile): add octokit gem to fetch commit data from Github
🚚 (app): move code view to a subdirectory for better organization
🐛 (app.js): add support for month input type to submitOnChange form
✨ (app): add code view to display commit history and network graph
✨ (lib): update claude model to 3.7-sonnet:beta