oolong icon indicating copy to clipboard operation
oolong copied to clipboard

Flipper Plugin

Open pardom opened this issue 5 years ago • 5 comments
trafficstars

Related links:

  • https://fbflipper.com/
  • https://fbflipper.com/docs/extending/index.html

Please follow up with suggestions and ideas if you have them, @oolong-kt/developers.

pardom avatar Apr 10 '20 14:04 pardom

Some ideas I've had:

  • Ability to display the function calls for init, update, view along with their return values. Ideally, this would be grouped since there's a UDF here, showing what update caused what view caused what render
  • Ability to call a debug function of some kind from within render,
    • ability to write some debug statement of some kind to describe the state of the UI
    • ability to report a bitmap/gif output inside the render function to show up in flipper as the output state of render function
  • Ability to click "go to" on any given model state and have that reinjected into the state of the runtime so that the render function can eventually be called with appropriate props and show a former state
  • Ability to record/save/export a series of states and replay them later (e.g. make an update of some kind to the render function) -- presumably would require some means of serializing/deserializing data and persisting that (e.g. json or similar)

dallasgutauckis avatar Dec 27 '22 19:12 dallasgutauckis

These are all great ideas! I've got a couple days off so I may hack on this.

pardom avatar Dec 28 '22 14:12 pardom

I already have the foundation working if you want to work from that

image

https://github.com/dallasgutauckis/oolong-flipper-plugin

I will also add that I think ideally each function reference can diff the prior so that it's easier to see the changes. I want to display the data for each (e.g. model, props) as a tree more like the sidebar in the end.

I have work today/tomorrow and doing a flipper plugin is in our mid-term plans but not on my immediate so I was just hacking on this last night. Would probably end up hacking on it more each night as well.

dallasgutauckis avatar Dec 28 '22 15:12 dallasgutauckis

Aghast as you may be, I didn't get a chance to do any more work on this yet. 🤣

dallasgutauckis avatar Jan 03 '23 16:01 dallasgutauckis

Sounds like you’re enjoy time off, as I am and as you should! Happy New Year!

pardom avatar Jan 03 '23 16:01 pardom