Skip to content

Templates - Generate pre-filled groups of resources #154

@joepio

Description

@joepio

Being able to create a bunch of resources in one go can be really useful. In tools like Notion, Monday and Airtable we've got things like templates that do this. They create a structure and often a small amount of demo data to help users get started. You can make very domain-specific templates that demonstrate various use-cases, such as CRM, Blog CMS, todo-list, zettelkasten, etc.

Using JSON-AD with local-id + the Importer could be a nice way of actually implementing this, as it can describe a hierarchical structure of data anywhere.

The biggest challenge is actually creating the JSON-AD. I'm looking for a good way of doing that.

Some ideas:

  • Write a simple template-generation library / function / app thing. Probably in typescript.
  • Use nested JSON objects to denote parent - child relationships. We can infer the parent ID by going to the parent in the JSON.
  • Convert an existing structure into a template. For example: select a parent, find all children, output all as JSON-AD, conver the @id into a simpler local-id, voila!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions