mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #1188] Add search (live filter?) box for GraphQL schema panel #407
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#407
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Qix- on GitHub (Sep 25, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1188
Is your feature request related to a problem? Please describe.
The schema fetching in Hoppscotch is very helpful and (mostly) well laid-out. However, it appears to be using a virtual list of some sort and thus isn't ctrl+f searchable, making large schemas incredibly hard to traverse.
This, paired with the fact it can't be resized (it's a tiny sliver for me) and that clicking types and whatnot doesn't seem to scroll to the appropriate positions, makes it for kind of a clunky experience - especially when the API in question doesn't provide formal docs and instead simply points to the in-schema documentation.
Describe the solution you'd like
Basically this.
Describe alternatives you've considered
Nothing really, feels like this is a core feature that'd be abundantly useful.
Alternatively, a tree-like viewer instead of a long virtual list, where items can be expanded to include documentation notes and whanot (collapsed by default).
Additional context
Only appears to be missing for GraphQL. The component in the screenshot is just hacked in, copied from another tab.
@liyasthomas commented on GitHub (Sep 25, 2020):
Thanks for reporting your pain points regarding GraphQL page. We're working on an overhaul on GraphQL page and hoping to bring the best experience. Will use this issue as a base to track it's progress.
@AndrewBastin commented on GitHub (Sep 27, 2020):
I think this will be good for Hacktoberfest as I am preoccupied with working on the Teams backend.
The implementation is pretty trivial actually.
Anyone interested can ping me (on Discord or Telegram group or here) if you need any pointers.
@LeoMartinDev commented on GitHub (Oct 3, 2020):
I'll give it a try 👌
@LeoMartinDev commented on GitHub (Oct 3, 2020):
I'm wondering, should it filter only on
fieldName? Maybe we could also search in the description, not sure about this@Qix- commented on GitHub (Oct 3, 2020):
Being able to fuzzy search for any of the content would be groundbreaking. Some of the schemas that get imported are massive and it's not always clear what the field name will be.
Just my $0.02.
@LeoMartinDev commented on GitHub (Oct 3, 2020):
You mean, including mutations args, fields types, etc.. ? Got something working, filtering on description & field/mutation/type name
@Qix- commented on GitHub (Oct 3, 2020):
Yeah, basically any part of the spec that is returned would be searchable in theory - within reason, of course.
@LeoMartinDev commented on GitHub (Oct 3, 2020):
For now it searches in
nameanddescriptionbut I made it easy to add more keys to search in