Insomnia: Add sort options for folders and requests

Created on 9 Sep 2020  路  10Comments  路  Source: Kong/insomnia

Is your feature request related to a problem? Please describe.
Hard to find Folder / Request

Describe the solution you'd like
Sort the saved Folder / Request by either create date / name / anything...

Describe alternatives you've considered
Nil

Additional context
Add more filed to describe the Folder / Request name , easy for hashtag or find out the resource.

feature request good first issue

All 10 comments

Sounds reasonable! @erickrico / @nijikokun thoughts on a sort drop-down next to the filter? This drop-down can contain ordering fields such as "name, date created, last updated". Icon withstanding, just used fa-sort 馃槃

image

As an note for anybody looking to pick this up, it should be somewhat straightforward to implement. The ordering is controlled by a metaSortKey property on a request and request-group. The sidebar children are automatically ordered on fetching from redux.

If the metaSortKey properties are updated, the sidebar will reflect that. Use the App._moveDoc implementation as inspiration for updating the sort order. 馃槃

Additionally, after ordering I would expect that the active/selected request remains the same.

Hello, I'd like to try my hand at this. Where can I find the request properties?

Sounds reasonable! @erickrico / @nijikokun thoughts on a sort drop-down next to the filter? This drop-down can contain ordering fields such as "name, date created, last updated". Icon withstanding, just used fa-sort 馃槃

image

As an note for anybody looking to pick this up, it should be somewhat straightforward to implement. The ordering is controlled by a metaSortKey property on a request and request-group. The sidebar children are automatically ordered on fetching from redux.

If the metaSortKey properties are updated, the sidebar will reflect that. Use the App._moveDoc implementation as inspiration for updating the sort order. 馃槃

Additionally, after ordering I would expect that the active/selected request remains the same.

agree, we could use this selected state for the sort by dropdown
Screen Shot 2020-09-09 at 11 08 38

I've never done something this advanced in someone else's project, but I can try my hand at it for a day.

Try and break it down into small pieces, and see how you get on. 馃

Hello, I'm having trouble setting up the environment. Is there a group where I can ask questions?

Join our Slack at https://chat.insomnia.rest/, you can just ping in #general

Hi, I'm trying to work my way through the code to make an attempt here. The details added so far were helpful! I'll try to add one type of sorting and will update here.

Added a pull request. The basic feature is in, but I had some things I needed help with. I've asked them on the PR itself.

Was this page helpful?
0 / 5 - 0 ratings