piccolo_admin icon indicating copy to clipboard operation
piccolo_admin copied to clipboard

synchronise the filters with the GET parameters

Open sinisaos opened this issue 3 years ago • 11 comments

Related to #42 and #163

sinisaos avatar Jun 02 '22 19:06 sinisaos

Codecov Report

Merging #165 (9c5805d) into master (ba9da95) will not change coverage. The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@           Coverage Diff           @@
##           master     #165   +/-   ##
=======================================
  Coverage   93.31%   93.31%           
=======================================
  Files           5        5           
  Lines         359      359           
=======================================
  Hits          335      335           
  Misses         24       24           

codecov-commenter avatar Jun 02 '22 19:06 codecov-commenter

@dantownsend Did you have time to try this?

sinisaos avatar Jun 06 '22 06:06 sinisaos

@sinisaos Not yet, will have a look today.

dantownsend avatar Jun 06 '22 07:06 dantownsend

This is cool.

I came across an issue though - even though the values in the URL are applied as filters, they don't show in the filter sidebar for some reason.

https://user-images.githubusercontent.com/350976/172550468-d74f7d72-06a0-483e-9005-d9d3f19a1035.mov

I'm not sure why - will have to investigate more.

dantownsend avatar Jun 08 '22 06:06 dantownsend

@dantownsend You're right. Sorry, I didn't watch it at all. I focused on being able to get back to the filtered view after pressing Back button.

sinisaos avatar Jun 08 '22 07:06 sinisaos

@dantownsend Can you try this with last commit? It's keeping the form data after changing the route. Work with input type text and number, doesn't work on select.

Result is:

https://user-images.githubusercontent.com/30960668/174348726-6bf6a22f-d2cf-499f-b972-d6c40a156cb2.mp4

sinisaos avatar Jun 11 '22 19:06 sinisaos

Sorry I haven't had a change to look into this yet - will get it in the next release.

dantownsend avatar Jul 04 '22 09:07 dantownsend

@dantownsend Another try with history.state. The main problem is that the duration and keySearch widget are not in sync with history.state, so I changed that. The code is not the prettiest, but it works. Fell free to change that.

https://user-images.githubusercontent.com/30960668/180741650-a18b8785-dda9-48e1-a668-c8a8276eb299.mp4

sinisaos avatar Jul 25 '22 09:07 sinisaos

@sinisaos Cool, thanks - it looks like it works well in the video.

dantownsend avatar Jul 25 '22 09:07 dantownsend

@dantownsend It works, but the code is not the nicest.

sinisaos avatar Jul 25 '22 09:07 sinisaos

This PR has been marked as stale because it has been open for 30 days with no activity. Are there any blockers, or should this be closed?

github-actions[bot] avatar Aug 25 '22 03:08 github-actions[bot]

@dantownsend Can you also check this? If you are ok with that, you can merge this as it solves the issue #163

sinisaos avatar Nov 22 '22 07:11 sinisaos

This PR has been marked as stale because it has been open for 30 days with no activity. Are there any blockers, or should this be closed?

github-actions[bot] avatar Dec 28 '22 02:12 github-actions[bot]

Still valid - just need to test it.

dantownsend avatar Dec 30 '22 06:12 dantownsend

This PR has been marked as stale because it has been open for 30 days with no activity. Are there any blockers, or should this be closed?

github-actions[bot] avatar Jan 31 '23 02:01 github-actions[bot]

Unfortunately, this no longer works. Need to find another way to synchronize the query parameters and the filter form, UPDATE: Everything is working again now.

sinisaos avatar Mar 08 '23 12:03 sinisaos

This PR has been marked as stale because it has been open for 30 days with no activity. Are there any blockers, or should this be closed?

github-actions[bot] avatar Apr 10 '23 02:04 github-actions[bot]

This PR has been marked as stale because it has been open for 30 days with no activity. Are there any blockers, or should this be closed?

github-actions[bot] avatar Jul 07 '23 02:07 github-actions[bot]