Skip to content

Conversation

@jerelmiller
Copy link
Member

Searching the cache in the devtools has always felt a little bit broken. At present, it doesn't do any filtering of the list, so matches against the search string are very difficult to find if the list of cache keys is large (see example in this discussion). Furthermore, it would match against values in the cache entry itself, but this was difficult to find since it required you to activate the cache entry to see it.

This PR improves the search functionality by matching only against cache keys and actively filtering that list as the user types. The matched string in the cache key is also now highlighted so its obvious how the record is filtered. This should improve cases where you might have an ID and want to quickly see what what a record with that ID contains by pasting that ID into the search field.

Before
search-old

After
search-new

@jerelmiller jerelmiller changed the title Improve searching the cache Improve cache search Sep 3, 2023
Copy link
Contributor

@alessbell alessbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is such a great usability improvement! 🚀

@jerelmiller
Copy link
Member Author

Will merge once #1052 is merged since this branches off of that 🙂

@alessbell
Copy link
Contributor

Just noticed that :) Was hoping I could sneak this into the next release I'm about to cut but can't review the other one before signing off today 😅

Base automatically changed from fix-anys to main September 6, 2023 16:23
@jerelmiller jerelmiller merged commit ddaec3d into main Sep 6, 2023
@jerelmiller jerelmiller deleted the better-search branch September 6, 2023 16:37
@github-actions github-actions bot mentioned this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants