redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

Search for entities

Open phihochzwei opened this issue 3 years ago • 4 comments

We are using the devtools in our project and they are really helpfull. But one thing is missing from my point of view: The possibility to search for an entity. We have e.g. one EntityState with roundabout 600 entities. It would be very helpfull if I could just enter the ID of a specific one to find it faster.

phihochzwei avatar Jan 04 '22 06:01 phihochzwei

I think the best way to implement it is to add search functionality to redux-devtools-inspector-monitor right-side content.

I do not think that it makes sense in this case to use a monitor like we did for rtk-query-monitor.

FaberVitale avatar Jan 04 '22 18:01 FaberVitale

I think I can help in this. I had implemented a search for my personal needs using jsonpath-plus and regex(broken).

Here's a sample run on https://drfhc8.csb.app/ image

Where original state is image

If it's acceptable, I'll think on working on it. It is functional but needs work in

  • Refactoring.
  • jsonpath-plus uses eval for complex expressions, which doesn't work here (and is unsafe). So, need to see how to fix that.

80avin avatar Nov 28 '22 20:11 80avin

I plan to also implement a search feature. It will maybe happen during a hackathon. Is there a chance that this feature will be accpeted as a PR?

ximfritz avatar Dec 21 '22 15:12 ximfritz

Feel free to submit a PR. I don't have much time to work on redux-devtools, so if the PR is small and it's easy to tell it's implemented correctly, then it's more likely to get accepted and merged in.

Methuselah96 avatar Dec 22 '22 16:12 Methuselah96