You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This task involves updating the templates_config.ts file to manage and dynamically load MDX templates based on frontmatter (https://mdxjs.com/guides/frontmatter/). Each workflow MDX file will include frontmatter that defines metadata (e.g., title, description, templateKey), and this information will be used to configure and display workflow templates in the application.
Example Frontmatter for "Attic Air Sealing and Insulation" workflow:
'---
title: "Attic Air Sealing and Insulation"
description: "This workflow provides step-by-step quality installation procedures for sealing air leaks and adding insulation to the attic to improve energy efficiency."
templateKey: "doe_workflow_attic_air_sealing_and_insulation"
version: "1.0" (optional)
---'
Edge Case Handling & Error Handling:
Required:
Handle case when 2 or more templates have the same "templateKey".
Handle case when an imported document (JSON file) refers to an unknown template using a "templateKey" that is not found.
Optional:
Including version key in the frontmatter to support multiple versions of the same template. The key-value pair should also be stored locally along with templateKey and imported/exported in JSON documents
Handle case when an imported JSON document refers to a known template using a "version" that is not found.
Add debugging screen to list known templates and their versions.
The text was updated successfully, but these errors were encountered:
This task involves updating the templates_config.ts file to manage and dynamically load MDX templates based on frontmatter (https://mdxjs.com/guides/frontmatter/). Each workflow MDX file will include frontmatter that defines metadata (e.g., title, description, templateKey), and this information will be used to configure and display workflow templates in the application.
Example Frontmatter for "Attic Air Sealing and Insulation" workflow:
'---
title: "Attic Air Sealing and Insulation"
description: "This workflow provides step-by-step quality installation procedures for sealing air leaks and adding insulation to the attic to improve energy efficiency."
templateKey: "doe_workflow_attic_air_sealing_and_insulation"
version: "1.0" (optional)
---'
Edge Case Handling & Error Handling:
Required:
Optional:
The text was updated successfully, but these errors were encountered: