Skip to content

Conversation

@prayag78
Copy link
Contributor

@prayag78 prayag78 commented Dec 18, 2025

Summary

Aligns Tickets and Talk menus with the Common Dashboard for consistent spacing and behavior.

Fixes #1542

Before

Screenshot 2025-12-18 114421 Screenshot 2025-12-18 114451 image

After

Screenshot 2025-12-20 114434 Screenshot 2025-12-20 114603 Screenshot 2025-12-20 114537

Summary by Sourcery

Align event dashboard header layout with the common dashboard navigation for consistent typography and spacing.

New Features:

  • Introduce a reusable #main-title layout for event dashboards with structured navigation title and action button areas.

Enhancements:

  • Update event dashboard template to use a unified navigation title structure with prominent event name and styled date.
  • Adjust common dashboard navigation styles to center text, apply lighter font weight, and add consistent bottom spacing.

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Dec 18, 2025

Reviewer's Guide

Updates the event dashboard header structure and shared navigation styles so that Tickets and Talk menus visually align with the Common Dashboard menu in spacing, typography, and button placement.

Flow diagram for updated event dashboard header layout

flowchart TD
  main_title["div id=main-title"]
  navigation_title["div.navigation-title"]
  heading["h1"]
  event_name["text: event.name"]
  event_date["span.event-date text-muted"]
  navigation_button["div.navigation-button (component_link.html)"]

  main_title --> navigation_title
  navigation_title --> heading
  heading --> event_name
  heading --> event_date
  main_title --> navigation_button
Loading

File-Level Changes

Change Details Files
Refactor the event dashboard main title markup to use a dedicated navigation title container and updated heading hierarchy matching the common dashboard layout.
  • Replace the previous flex-based #main-title h2 layout with a simpler container that wraps title and navigation link components
  • Promote the event title from an h2 to an h1 and wrap it in a .navigation-title div for consistent styling hooks
  • Move the event date into a span with event-date and text-muted classes for separate styling control
  • Preserve the inclusion of the component_link navigation partial after the updated title container
app/eventyay/orga/templates/orga/event/dashboard.html
Introduce and adjust CSS for #main-title and navigation title elements to match the common dashboard spacing, typography, and button alignment.
  • Add #main-title rules in the orga layout CSS to use flexbox, wrapping, centered text, and light font weight
  • Define typography for .navigation-title h1, including font size, weight, and line height aligned with the common dashboard
  • Add specific styling for .navigation-title h1 .event-date to reduce font size and adjust weight and line height
  • Extend common navigation-bar styles in custom.scss to center text, apply lighter font weight, and add bottom margin while keeping the navigation button aligned to the right
app/eventyay/static/orga/css/_layout.css
app/eventyay/static/eventyay-common/scss/custom.scss

Assessment against linked issues

Issue Objective Addressed Explanation
#1542 Adjust the Tickets and Talk component menus so their spacing, alignment, and visual hierarchy match the Common Dashboard menu.
#1542 Ensure the behavior of the menu bar (hover, active state, focus, responsiveness) in Tickets and Talk matches the Common Dashboard implementation.
#1542 Make navigation across Home, Tickets, Talk, and Videos feel visually and behaviorally unified.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there - I've reviewed your changes - here's some feedback:

  • The new #main-title styling in _layout.css overlaps conceptually with the .page-heading .navigation styles in custom.scss; consider reusing a shared class or extending the existing pattern instead of introducing a separate ID-based layout to avoid divergence over time.
  • Applying text-align: center and font-weight: 200 to .page-heading .navigation in custom.scss will affect all pages using this structure; double-check that this global change is intended for every dashboard and not just Tickets/Talks, or scope it more narrowly if needed.
  • Switching the event title from an h2 to an h1 changes the heading hierarchy on the dashboard; verify that this still fits the overall page structure or adjust other headings accordingly to maintain accessible, sequential heading levels.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The new `#main-title` styling in `_layout.css` overlaps conceptually with the `.page-heading .navigation` styles in `custom.scss`; consider reusing a shared class or extending the existing pattern instead of introducing a separate ID-based layout to avoid divergence over time.
- Applying `text-align: center` and `font-weight: 200` to `.page-heading .navigation` in `custom.scss` will affect all pages using this structure; double-check that this global change is intended for every dashboard and not just Tickets/Talks, or scope it more narrowly if needed.
- Switching the event title from an `h2` to an `h1` changes the heading hierarchy on the dashboard; verify that this still fits the overall page structure or adjust other headings accordingly to maintain accessible, sequential heading levels.

## Individual Comments

### Comment 1
<location> `app/eventyay/orga/templates/orga/event/dashboard.html:28-37` </location>
<code_context>
         </div>
     {% endif %}
-    <div id="main-title" class="d-md-flex justify-content-between">
-        <h2>
-            <span>
+    <div id="main-title">
+        <div class="navigation-title">
+            <h1>
                 {{ request.event.name }}
-                <small class="text-muted small">{{ request.event.get_date_range_display }}</small>
</code_context>

<issue_to_address>
**suggestion (bug_risk):** Switching from h2 to h1 might disrupt the overall heading hierarchy of the page/layout.

If the layout or parent templates already define a primary `<h1>` (e.g. at site or section level), this change may introduce multiple top-level headings on a single page, harming accessibility and document structure. Please verify the global heading hierarchy and consider keeping this as a lower-level heading, using CSS for visual emphasis if needed.

```suggestion
    <div id="main-title">
        <div class="navigation-title">
            <h2>
                {{ request.event.name }}
                <span class="event-date text-muted">
                    {{ request.event.get_date_range_display }}
                </span>
            </h2>
        </div>
        {% include "orga/event/component_link.html" %}
    </div>
```
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

Copilot AI left a 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 aligns the event dashboard header layout in the Tickets and Talk menus with the Common Dashboard navigation for consistent typography, spacing, and behavior. The main focus is on unifying the visual presentation of event dashboards across different sections of the application.

Key Changes

  • Introduces a reusable #main-title layout structure with navigation title and action button areas in the event dashboard
  • Updates HTML structure from <h2> to <h1> with structured date display for better semantic hierarchy
  • Adds consistent styling properties (text-align, font-weight, margin-bottom) to common dashboard navigation

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
app/eventyay/static/orga/css/_layout.css Adds new #main-title CSS rules for flex layout, typography, and event date styling
app/eventyay/static/eventyay-common/scss/custom.scss Enhances .navigation class with centered text alignment, lighter font weight, and bottom margin
app/eventyay/orga/templates/orga/event/dashboard.html Restructures header from <h2> to <h1> within .navigation-title wrapper, updates event date markup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 589 to 615
#main-title {
display: flex;
flex-wrap: wrap;
text-align: center;
font-weight: 200;
}

#main-title .navigation-button {
margin-left: auto;
}

#main-title .navigation-title h1 {
font-size: 2.25rem;
font-weight: 500;
line-height: 1.2;
}

#main-title .navigation-title h1 .event-date {
font-size: 65%;
font-weight: 400;
line-height: 1;
}
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's significant duplication between these styles and the .navigation styles in custom.scss. Both define display: flex, flex-wrap: wrap, text-align: center, and font-weight: 200. Additionally, both have .navigation-button { margin-left: auto; }. Consider consolidating these styles into a single shared location to maintain DRY principles and prevent style drift between the two implementations.

Copilot uses AI. Check for mistakes.
.header-nav.btn-success.active {
box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a comment explaining the purpose of this style block and its relationship to the common dashboard navigation styles. This would help future maintainers understand why these specific styles are needed for the event dashboard.

Suggested change
/* Event dashboard main title area
* These styles control the layout of the main header/title section
* for the event dashboard. The flex container aligns the page title
* with the navigation button, and works together with the common
* header navigation button styles defined above to create a cohesive
* dashboard header.
*/

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@Saksham-Sirohi Saksham-Sirohi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi ui is a bit different on Talk platform admin button also appears differently and fonts appear different then tickets

Copy link
Contributor

@Saksham-Sirohi Saksham-Sirohi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi ui is a bit different on Talk platform admin button also appears differently and fonts appear different then tickets

@prayag78 prayag78 force-pushed the align-menu-with-dashboard branch from 4c8b8eb to 9848fce Compare December 20, 2025 02:51
@mariobehling
Copy link
Member

Please update screenshots once ready.

@prayag78
Copy link
Contributor Author

Hi @Saksham-Sirohi , sorry for the late update.
I’ve updated the UI. Please take a look.

Screen.Recording.2025-12-20.113012.mp4

@prayag78
Copy link
Contributor Author

Please update screenshots once ready.

Hi @mariobehling , I’ve updated the screenshots

@mariobehling
Copy link
Member

  1. Thanks, the spacing below the menu on tickets and talk has increased a lot. I think the original existing spacing on the commons component was just fine. Please adjust to this spacing.
Screenshot 2025-12-18 114421
  1. The spacing on the talk component is still different as can be seen in your video. Please also test with different screen resolutions.

@prayag78
Copy link
Contributor Author

  1. Thanks, the spacing below the menu on tickets and talk has increased a lot. I think the original existing spacing on the commons component was just fine. Please adjust to this spacing.
Screenshot 2025-12-18 114421 2. The spacing on the talk component is still different as can be seen in your video. Please also test with different screen resolutions.

Fixed the bottom spacing.
Screenshot 2025-12-20 130013

On large screens, Talk doesn’t have a sidebar I think it causes spacing shift

@mariobehling
Copy link
Member

Please provide an updated video.

@prayag78
Copy link
Contributor Author

Please provide an updated video.

Recording.2025-12-20.144825.mp4

@mariobehling
Copy link
Member

It looks like the dropdown user menu has disappeared in the talk component.

@mariobehling
Copy link
Member

Please also provide the view on large screens either on video or screenshots.

@prayag78
Copy link
Contributor Author

It looks like the dropdown user menu has disappeared in the talk component.

Screenshot 2025-12-20 152232

It exists, but on my setup maybe it didn’t render properly

@prayag78
Copy link
Contributor Author

Please also provide the view on large screens either on video or screenshots.

Recording.2025-12-20.152605.mp4

@mariobehling
Copy link
Member

mariobehling commented Dec 20, 2025

It looks like the dropdown user menu has disappeared in the talk component.

It exists, but on my setup maybe it didn’t render properly

Please ensure that it works. We need to be sure that this issue is not related to your PR.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

#page-content {
background: var(--color-bg);
flex-grow: 1;
max-width: 100%;
Copy link

Copilot AI Dec 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from padding: 20px 40px to padding: 18px 44px introduces asymmetric adjustments (-2px vertical, +4px horizontal). This creates a non-uniform scaling pattern that may be difficult to maintain. Consider using a consistent scaling factor or documenting the specific design rationale for these particular values to aid future maintenance.

Suggested change
max-width: 100%;
max-width: 100%;
/* Note: Asymmetric padding (18px vertical, 44px horizontal) is intentional to match surrounding layout spacing. */

Copilot uses AI. Check for mistakes.
border-radius: 0 !important;
font-size: 16px;
font-weight: normal;
padding: 6px 10px;
Copy link

Copilot AI Dec 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent padding values between similar button styles. In _layout.css, the padding is set to "6px 10px", while in custom.scss the padding is "7px 7px". These should be aligned for consistency across the dashboard menus.

Suggested change
padding: 6px 10px;
padding: 7px 7px;

Copilot uses AI. Check for mistakes.
@prayag78
Copy link
Contributor Author

It looks like the dropdown user menu has disappeared in the talk component.

It exists, but on my setup maybe it didn’t render properly

Please ensure that it works. We need to be sure that this issue is not related to your PR.

Yes, I’m trying to find why it didn’t render in the UI on my setup, but this PR doesn’t touch any files related to the dropdown icon.

Copy link
Member

@mariobehling mariobehling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please also check latest AI comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

Align Tickets and Talk component menu design with Common Dashboard menu

4 participants