Giter Site home page Giter Site logo

matryoshka's People

Contributors

bujiraso avatar krstffr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

matryoshka's Issues

Protect CSS classes better.

How to do this in a good way? Just add style: none to styles which might "bleed" in to this app from other styles as I detect them? Or is there a better way?

Some kind of global inherit-thing or something?

User handling

How to handle users? Who can do stuff in Matryoshka?

Add som kind of "matyoskhaAdminRole": "editor"/"admin"/"none" property to users?

Who can add users and set previleges? Only "admin" or something?

Weird click event bug for .matryoshka__nestable__container__col--left

When clicking on .matryoshka__nestable__container__col--left for triggering the visibility of it's "children", if you've went from:

  1. a nestable with nestedNestables to
  2. a nestable without nestedNestables and back to a
  3. a nestable with nestedNestables

then the click event will fire multipel times! Now protected by a stupid setTimeout. SUPER ANNOYING.

Probably due to Meteor/Blaze itself.

Keydown/up event is NOT very nice

Maybe: start a time out for maybe 2 seconds on each keydown (and disable currently running ones of course). THEN save the stuff to the session after the two second pause. 2 seconds should be enough for anyone using this package.

Ability to make fields unique

For exampel: I'm building a CMS for a website. I want the pages' "slug" field to be unique, as I don't want multiple live pages with the same slug.

Filter ability

If you've got a lot of nestables and you want to find a specific, scrolling is not always the fastest method. We need a filter/search function!

Multiple nesteable types in object: how to handle ordering?

So let's say I can nest two different types of nestables: gridParts and subpageParts. If I want to be able to put:

  1. gridPart
  2. pagePart
  3. gridPart
    then this is right now impossible.
    The solution could be: Should nestables be put in a general nestables container!?

Every "part" field is now assigned to every part.

Like: a pagePart will get a gridPart (with just an empty [] Array as value) even if that's not one of it's nestables. I don't even want to think about how much bigger the DB would get if this was allowed any longer.

How to handle deleted fields.

For example:

I create a nestable with a foo-field. I later remove the foo field. The user can now no longer change (or see!) the value of foo, but it will still be saved to the DB for ever.

Maybe show all keys (which are not currently set by the user) in some way?

Maybe like "there are 4 extra field" and a "show" toggle. But how to handle arrays/object?

Duplicate nested parts

Let's say I create a nested thing and I want three more which are basically the same. Shouldn't there be a duplicate button for this? Or is it feature overkill?

Create nestablePart from a nested part inside nestable

That sounds complicated, but it shouldn't be. What could be complicated is figuring out the flow. Something like:

  1. Create a new nestable from the current part (What should the name be?)
  2. Get the ID from the newly created nestable
  3. Switch the previously saved nestable for the new linked (the ID mainly)
  4. Maybe go to the newly created nestable so the use can give it a proper name?

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.