GithubHelp home page GithubHelp logo

calesce / redux-slider-monitor Goto Github PK

View Code? Open in Web Editor NEW
206.0 206.0 20.0 2.06 MB

A custom monitor for Redux DevTools to replay recorded Redux actions

License: MIT License

JavaScript 100.00%

redux-slider-monitor's People

Contributors

calesce avatar jhen0409 avatar keqingrong avatar lukekarrys avatar marcoga avatar mtojek avatar ondrejbartas avatar teameh avatar zalmoxisus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

redux-slider-monitor's Issues

Global key handler

Well I don't think this is a good idea. I have like a text editor in my app and suddenly I cannot even type a space because you eat it up in there :) Same for those arrow keys.

Edit: Perhaps there should be a global key first to enable/disable these keyboard shortcuts. Anything too simple is just problematic to collide with developed app.

React 0.14 support?

Love this kind of monitor. It is what you need 90% of the times, well done. I'm currently building an app using React 0.14 beta and it is giving some warnings about getDOMNode and findDOMNode. Are there any plans to make it 0.14 compatible?

Replay in `live` gone?

I noticed the live feature is gone. This was really helpful for me. Is there a particular reason why this was removed?

screen shot 2016-12-09 at 15 58 17

Bottom padding

Could you please publish changes to npm? The current 1.0.0 has bottom padding for the elements except slider bar, so it goes bellow the arrows (I guess it is because I don't use DockMonitor). It is fixed here, but not released yet.

Support for React 16

Is there any intention to add support for the latest version of React?

Thanks

Enable real-time replay

Makes replay more realistic, could be useful for animations. Currently there's just a static setInterval jumping to the next state every half second.

Maybe another monitor?

I saw your interest with replaying app like cerebral can. This works especially cool with your slider monitor, but I think that export/import of actions/state can be used for a lot of things not only for this use case. So maybe we can collaborate to make redux-export-import-monitor happen, what do you think?

Does not detect when keys are pressed

As the title describes - cannot hide/show the monitor with ctrl-h.
I notice you check for process.env.IS_BROWSER, which isn't set when I check it in my app. Is that a node-specific thing - would it be possible to make the keyboard check a bit less environment specific? The LogMonitor in devtools checks typeof window !== 'undefined' - maybe that instead?

Update to Redux DevTools 3.0 Beta 2

Redux DevTools beta is out with breaking changes. For monitors, there are a few of them:

  • Instead of receiving action creators in props, you now get dispatch in props and have to import { ActionCreators } from 'redux-devtools' to get access to commit, rollback, etc
  • The action props are now indexed by ID, so instead of stagedActions and skippedActions you get actionsById, stagedActionIds and skippedActionIds. toggleAction() now accepts id instead of index. To grab vanilla action object by ID, use this.props.actionsById[id].action. The timestamp is also available on that action: this.props.actionsById[id].timestamp.
  • The monitor now has to export a reducer static property. For what it's worth, it could be a no-op function, but it must exist. In more interesting case, it will be (state, action, props) => nextState function where state is the monitor's own state available to it as monitorState prop. You are free to use it to let monitor react to any action and remember any data. This is why setMonitorState prop is gone.
  • Monitors shouldn't take care anymore of isVisible (hiding or showing themselves) or doing so on special key presses. We're moving towards a composable monitor model, where you'd use a special dock monitor to contain other monitor. Therefore monitors should only be worried about rendering themselves.

The diff of the default LogMonitor can serve as an inspiration for these changes.
You can try the new version of Redux DevTools on the next branch.

Please let me know if you find any issues. The API might change slightly in the final release, but this is pretty close, and it involves some work, so let me know if you need any help.

Unknown prop `fit` on <svg> tag

I'm getting a warning in Chrome about an unknown property:

Warning: Unknown prop `fit` on <svg> tag. Remove this prop from the element. For details, see https://fb.me/react-unknown-prop
    in svg (created by SliderButton)

Looks like it's coming from the SliderButton

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.