Giter VIP home page Giter VIP logo

Comments (7)

josevalim avatar josevalim commented on August 14, 2024 1

I would wait until there is a use case.
I use Kino.Tree a lot (it is awesome) and I want to see how the latest changes work in practice. If we feel they need more tweaking, we can revisit. :)

from kino.

stefanchrobot avatar stefanchrobot commented on August 14, 2024

Sounds good! Should we apply the same logic to lists and maps? This would be nice for exploring API responses. Maybe we need something like "expand everything up to M elements up to Nth level deep"?

When building Kino.Tree I was considering adding some sort of UI elements for configuring this. What do you think about that?

from kino.

josevalim avatar josevalim commented on August 14, 2024

I'd start with tuples right now. I would even always expand them by default.

The reason I am worried about also adding lists and maps is because you can have maps/lists inside maps/lists, so if we expand them by default, even if small, we can have a really large output, because we small maps inside small maps inside small lists.

Tuples are usually not nested within each other. :)

from kino.

stefanchrobot avatar stefanchrobot commented on August 14, 2024

I hope to be able to take a stab at this issue this week.

from kino.

stefanchrobot avatar stefanchrobot commented on August 14, 2024

Sorry for the delay, hopefully I'll get to this soon.

from kino.

stefanchrobot avatar stefanchrobot commented on August 14, 2024

Wanted to follow-up on this. What do you think about making this customizable like on the mockup below? The settings could be stored in the browser's local storage.

Screenshot 2024-02-21 at 18 10 22

The idea here is that the settings represent an "or" condition, e.g. auto-expand if it's a tuple of size <=6 or we're at level <= 1. I think it would be nice to set a limit to the depth to which auto-expansion applies. Not sure how to represent that in the UI. I thought about a double slider for "depth", but it may be a bit confusing.

Do you think this would be useful?

from kino.

stefanchrobot avatar stefanchrobot commented on August 14, 2024

Makes sense. My use case for Kino.Tree was for exploring API responses. Maybe if the REST smart cell get's more traction there will be a stronger need for adding settings.

from kino.

Related Issues (20)

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.