1
Don't clear Preview when Response Filter is invalid/non-existent
Source: Kong/insomnia#3708 · opened by @yozlet
Following on from #1258:
Short version: Only update the Response Preview when the Response Filter evaluation returns something worth showing.
In more detail:
• *Given:* the Preview pane is displaying any response content
• *When:* the Response Filter input changes
• *And:* the Response Filter input evaluates as either syntactically invalid or non-existent in the current document
• *Then:* don't update the Preview to show [] or similar, as it hides the document tree that the user is currently trying to navigate.
Example: If I'm trying to filter down to $.store.books[*].author, then as soon as I type $. the Preview just shows [], and I won't see anything useful until I either delete or type as far as $.store . This is particularly annoying if I'm continually looking at the Preview as a guide to the path I'm typing.
Short version: Only update the Response Preview when the Response Filter evaluation returns something worth showing.
In more detail:
• *Given:* the Preview pane is displaying any response content
• *When:* the Response Filter input changes
• *And:* the Response Filter input evaluates as either syntactically invalid or non-existent in the current document
• *Then:* don't update the Preview to show [] or similar, as it hides the document tree that the user is currently trying to navigate.
Example: If I'm trying to filter down to $.store.books[*].author, then as soon as I type $. the Preview just shows [], and I won't see anything useful until I either delete or type as far as $.store . This is particularly annoying if I'm continually looking at the Preview as a guide to the path I'm typing.
No pledges yet. Be the first to back this.
Comments
Similar requests
Active JSONPath filter not obvious
2 votes · 0 comments
Consider not smart-previewing response bodies for invalid content-type
3 votes · 0 comments
Indicate when response filter (JSONPath/XPath) input is invalid/non-existent
1 vote · 0 comments
Preview mode plugin
1 vote · 0 comments
Resolve File References
11 votes · 0 comments
No comments yet.