-
Notifications
You must be signed in to change notification settings - Fork 170
Improve empty state messaging for upcoming events on dashboard #1545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Improve empty state messaging for upcoming events on dashboard #1545
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @aayushi2882, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Which issue is this related to? Please also add screenshots. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances the user experience of the dashboard by adding a clear informational message when there are no upcoming events. The implementation adds an {% else %} clause to display "You don't have any upcoming events yet." when the upcoming list is empty.
- Adds an empty state message for the upcoming events section using an alert-info component
- Restructures the template to include conditional rendering based on the presence of upcoming events
- Maintains the existing "Create a new event" button and event list functionality
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| {% if upcoming %} | ||
| <p class=""> |
Copilot
AI
Dec 18, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates duplicate logic for checking the upcoming variable. Lines 51-62 check if upcoming to display events, and lines 70-76 also check if upcoming to show the "View all future events" link. This check should be consolidated to avoid redundant conditional logic.
Co-authored-by: Copilot <[email protected]>
|
Thanks for the review! This PR is related to issue #1506. The change improves the empty state of the “Your upcoming events” section by showing a clear informational message when no upcoming events are available, instead of leaving the section blank. The update is limited to a small conditional change in the dashboard template and does not affect any backend logic. Running the full Eventyay stack locally is quite heavy, so I focused on a minimal and safe template-level change that is easy to review directly from the diff. Please let me know if you’d like me to add anything else. updated code snippet:
{% trans "You don’t have any upcoming events yet." %}
{% endif %}
|
mariobehling
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide screenshots.
mariobehling
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No screenshots were provided so far. Please provide screenshots.
This PR improves the empty state of the “Your upcoming events” section
by displaying a clear informational message when no upcoming events exist.
No changes were made to CTA buttons or event navigation logic.