Skip to content

Search for entities #989

@phihochzwei

Description

@phihochzwei

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.

Activity

FaberVitale

FaberVitale commented on Jan 4, 2022

@FaberVitale
Contributor

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.

80avin

80avin commented on Nov 28, 2022

@80avin
Contributor

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.
ximfritz

ximfritz commented on Dec 21, 2022

@ximfritz

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?

Methuselah96

Methuselah96 commented on Dec 22, 2022

@Methuselah96
Member

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.

linked a pull request that will close this issue on Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @Methuselah96@phihochzwei@FaberVitale@80avin@ximfritz

      Issue actions

        Search for entities · Issue #989 · reduxjs/redux-devtools