Skip to content

Commit

Permalink
feat: add field name to dash filters
Browse files Browse the repository at this point in the history
  • Loading branch information
helllllllder committed Jun 17, 2024
1 parent b0ff7e6 commit 1660728
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions insights/dashboards/usecases/dashboard_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,30 @@ def get_dash_filters(dash: Dashboard):
"sector": {
"type": "select",
"label": "Setor",
"field": "uuid",
"source": "sectors",
"placeholder": "Selecione setor",
},
"queue": {
"type": "select",
"label": "Fila",
"field": "uuid",
"source": "queues",
"depends_on": {"filter": "sector", "search_param": "sector_id"},
"placeholder": "Selecione fila",
},
"agent": {
"type": "select",
"label": "Agente",
"field": "email",
"source": "agents",
"depends_on": {"filter": "sector", "search_param": None},
"placeholder": "Selecione agente",
},
"tags": {
"type": "select",
"label": "Tags",
"field": "uuid",
"source": "tags",
"depends_on": {"filter": "sector", "search_param": "sector_id"},
"placeholder": "Selecione tags",
Expand Down

0 comments on commit 1660728

Please sign in to comment.