Skip to content
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

[Schedule] Allow to hide specific events #194

Open
dantetemplar opened this issue Feb 10, 2025 · 0 comments
Open

[Schedule] Allow to hide specific events #194

dantetemplar opened this issue Feb 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dantetemplar
Copy link
Member

dantetemplar commented Feb 10, 2025

Describe the feature

Users should be able to hide specific events from the calendar based on their categories within an event group. The feature should allow fine-grained control over visibility settings for events, improving the user experience when managing large event sets.

Suggested solution

  1. Event Group Category Filtering

    • When a user clicks on Sources in the calendar view, a list of event groups should be displayed.
    • Each event group will have a settings icon ⚙️. Clicking it will open a popup.
    • The popup will display a list of all unique CATEGORIES (sorted alphabetically) for that event group.
    • Each category will have a hide/unhide (eye icon) button to toggle its visibility.
    • A search bar should be included to filter categories in the list.
    • At the top of the list, an Invert All toggle button should be available.
      • When enabled, it should swap all hidden categories to visible and vice versa.
      • This inversion should be stored as a separate variable.
      • The toggle button can be represented by an exclamation mark icon (!), with an active state changing its background color.
    • When rendering the calendar, hidden CATEGORIES should be retrieved from settings and events matching those categories should be excluded.

    Example Data Structure:

    {
      "categories_settings": [
        {
          "event_group_id": 123,
          "inverted": false,
          "categories": ["DevOps Engineering"]
        }
      ]
    }
  2. User Modifications Overview

    • Clicking Sources should also display a summary of user modifications:
      • Hidden categories per event group should be listed like this:
        B22-CBS-02 hide:
        - DevOps Engineering
        - ...
        
      • Inverted event groups should be displayed as:
        B22-CBS-02 show only:
        - Software Quality
        - ...
        
      • Each modification should have a remove (❌) button to revert the change.
  3. Quick Hide via Event Details

    • When clicking on an individual event in the calendar, a popup should show its CATEGORIES.
    • Each category should have a hide button, allowing users to instantly hide that category.
    • This should hide all events with that category across the event group.
  4. Skipping Events with Hidden Categories

    • When fetching and displaying events, the system should check for hidden categories set by the user.
    • If an event has one or more matching hidden categories, it should be excluded from the calendar view.
    • If an event group is inverted, only explicitly allowed categories should be shown, skipping all others.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🔖 Todo
Development

No branches or pull requests

1 participant