Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Templates - Generate pre-filled groups of resources #154

Open
joepio opened this issue Feb 14, 2023 · 0 comments
Open

Templates - Generate pre-filled groups of resources #154

joepio opened this issue Feb 14, 2023 · 0 comments

Comments

@joepio
Copy link
Member

joepio commented Feb 14, 2023

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant