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

fill filtered created date field value after page refresh #1246

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

phyothiha
Copy link

issue #1242

How to solve it

This is a quick fix, and I assumed that there is only one filter field called Created Date in the current situation. If there are more filter fields like the data grid table in the future, I think the best solution might be to control the filter column from the backend and include it in the response. 

Currently, columns are controlled in the kanban.blade.php file.

The response format from data grid table.

{
    "records": {
        "data": [
            {},
            {}
        ]
    },
    "columns": [
        {
            "index": "created_at",
            "label": "Created Date",
            "type": "date_range",
            "sortable": true,
            "filterable": true,
            "values": ["", ""]
        },
        {}
    ],
}

@prabhat-webkul
Copy link
Collaborator

@phyothiha

please apply a few changes to the Kanban blade

  1. store search/side filters in a single variable
  2. extract variable, make URL, and update search URI
  3. call getLeads() without passing any params, just use old URL
  4. check search/filters both should be compatible
  5. test with pipeline also

The date-range component seems fine

@prabhat-webkul
Copy link
Collaborator

@phyothiha

Please do the changes

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

Successfully merging this pull request may close these issues.

None yet

2 participants