Back to projects
Haven's Heroes - Feature Updates & Fixes

Haven's Heroes - Feature Updates & Fixes

Diane Larsen / March 28, 2025

πŸš€ Haven's Heroes - March 2025 Update

This update introduces multiple-choice polls, a refined activity feed, authentication fixes, UI improvements, and better role-based access control.


✨ New Features

πŸ“Š Multiple-Choice Polls

  • Users can now select multiple options in polls, ideal for event scheduling or gathering broader feedback.
  • Poll results are now displayed with a percentage-based bar graph, showing:
    • The percentage of total users who voted.
    • The distribution of votes for each option.

πŸ”” Improved Activity Feed

  • Displays username in activity logs (e.g., "New Post from Impixi").
  • Shows relative timestamps (e.g., "4 hours ago").
  • Highlights post-related activities and event creations.

πŸ”§ Fixes & Improvements

πŸ” Authentication & Clerk Fixes

  • Fixed issues where userId was sometimes undefined, causing login failures.
  • Now instantly redirects to the sign-in page if authentication fails.
  • Prevents UI flickering while Clerk resolves user authentication.

πŸŒ™ Dark Mode Fixes

  • Resolved an issue where modals had a white background in dark mode.
  • Ensured consistent dark mode support across all components.

πŸ–Ό Cloudinary File Upload Fix

  • Fixed a TypeScript error causing uploads to fail.
  • Instantly updates cover image previews after upload.
  • Displays a red warning message: "Cover image updated! Changes will not be saved until you press 'Update'."

πŸ“ Prisma & Profile Updates

  • Fixed a database validation issue preventing user profile updates.
  • Added input validation to prevent bad data storage.
  • Used revalidatePath("/profile") to ensure profile updates appear instantly.

πŸ›  Role-Based Access Control

  • Implemented admin-only pages, preventing non-admin users from accessing them.
  • Redirects unauthorized users back to the homepage.

πŸ“† Event & RSVP Enhancements

  • Users can edit events and update details.
  • Added an RSVP system for event attendance tracking.
  • Event pages now display creator and last editor details.

πŸš€ Final Outcome

βœ… Polls now support multiple-choice options
βœ… Activity feed displays usernames and timestamps
βœ… Authentication issues resolved
βœ… File uploads now update the UI instantly
βœ… Profile updates are validated and saved correctly
βœ… Dark mode fully functional
βœ… Event system improvements, including editing and RSVP tracking


πŸ”œ Next Steps

  • Complete email integration once Brevo activation is finalized.
  • Enhance poll analytics to display more detailed voting trends.
  • Improve event management by integrating Google Calendar.

πŸŽ‰ Haven’s Heroes is steadily improving, and I can’t wait to share more updates soon! πŸš€