devboard icon indicating copy to clipboard operation
devboard copied to clipboard

Nested namespace

Open SeeThruHead opened this issue 8 years ago • 4 comments

devcard.ns('sub-namespace') ? to create a nested namespace?

I can take a look at this if you think it's worthwhile.

SeeThruHead avatar Apr 05 '16 18:04 SeeThruHead

Seems like a good idea

API-wise how about these options?

devboard.ns(a, b, c)
devboard.ns("a/b/c")

glenjamin avatar Apr 05 '16 18:04 glenjamin

Would you expect to be able to put cards in non-leaf namespaces? I think this should be allowed

Should the namespace page include links to sub namespaces, or should the tree view only be on the root list? Unsure about this one

glenjamin avatar Apr 05 '16 18:04 glenjamin

I hadn't thought about non-leaf but you could put the links up top, and any cards below, to keep it simple. As for api it could just do either.

EDIT: I think it should definitely contain sub-links, more important than non-leaf cards i think

SeeThruHead avatar Apr 05 '16 18:04 SeeThruHead

Ok, let's go for

  • multi-arg API
  • can have cards at every level
  • tree view on the root
  • same tree view of children on namespaces that have them

Implementation-wise I reckon you could get away with using the JSON-encoded namespace path as the key for the catalog.

URLs might be tricky

glenjamin avatar Apr 05 '16 18:04 glenjamin