Skip to content

[Improvement] staffing / shifts interface - Filter by department shown #4537

@NRJank

Description

@NRJank

In the shift signup interface, you get a "Filter by Department" view option populated with the departments you are assigned to. However, while you can also show Public shifts, you cannot filter those by department. This public view can get extremely cluttered, and force you to go into list view to be able to see what's actually there. It would be a nice usability improvement to be able to filter by any department shown, since someone can sign up for Public shifts in departments outside of their assigned depts. Example image below showing the problem below. Even limiting the view to a single day, it's impossible to identify a number of those shifts, and only the dark blue ones are able to be department filtered by things i'm assigned to.

Image

Currently that entire filter sits within a check if user has any assigned departments.

{% if assigned_depts_list|length >= 1 %}

and then appends departments from that list to the filter dropdown
{% for opt, label in assigned_depts_list %}

unclear if the calendar appended to the bottom returns any list usable details at render time where a public shifts view toggle could return the set of departments now shown, but it would seem sensible for that assigned department check to be placed within a check for the state of public_button_on/public_button_off, and if on then replace the assigned_depts_list check with a simple list of all departments if no subset can be determined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions