mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #1220] [MERGED] Add search input & capability to graphql types and fields #3148
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#3148
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/1220
Author: @LeoMartinDev
Created: 10/3/2020
Status: ✅ Merged
Merged: 10/4/2020
Merged by: @liyasthomas
Base:
master← Head:feat/filter-graphql-fields📝 Commits (8)
7e87cc1Add search input & capability to graphql types and fieldsacb777cRemove debug code12941a1Use normalized text1546727Merge branch 'master' into feat/filter-graphql-fields76eba3dGraphql: highlight fields on searchd9a9ae7Merge branch 'feat/filter-graphql-fields' of https://github.com/LeoMartinDev/hoppscotch into feat/filter-graphql-fields0702ca3Highlight filtered field and type9601477Merge branch 'master' into feat/filter-graphql-fields📊 Changes
3 files changed (+133 additions, -9 deletions)
View changed files
📝
components/graphql/field.vue(+9 -1)📝
components/graphql/type.vue(+23 -2)📝
pages/graphql.vue(+101 -6)📄 Description
Related issue #1188
The PR adds basic filtering for
queryFields,mutationFields,subscriptionFieldsandgqlTypes.The value provided to the search input is used to match on
fieldNameanddescriptionfields.gqlTypesare handled differently as we also filter ongqlTypes._fieldsarray.Some improvements for an other PR could be to highlight matched text (?)
Also,
gqlTypes._fieldsfiltering could be improved by keeping only matched fields as it can be confusing to see the whole Schema and having to scroll until you find concerned fieldUnfiltered results
Filtered results
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.