Skip to content

Refactor filter components to make them easier to maintain and more reliable #13035

@BrunoQuaresma

Description

@BrunoQuaresma

Right now, our filter components are not easier to maintain because of the base abstraction that is hard to extend, change, or test. To make that better I think we can:

  • Split the current filter component into minor components so each resource can have its filter component
  • Create tests for each of these new components
  • Create e2e tests for the filters

After that we can safely improve the data load from:

  • Template filter
    • Only fetch templates if there is a selected template.
    • When "All templates" is selected, it only should fetch data on click.
  • User filter
    • Only fetch users if there is a selected user.
    • When "All users" is selected, it only should fetch data on click.
    • When the selected user is the logged-in user, use the current user profile data instead of fetching data.

Metadata

Metadata

Assignees

Labels

siteArea: frontend dashboard

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy