Skip to content

Dyn 9702 template files support#89

Draft
Chloepeg wants to merge 12 commits into
DynamoDS:masterfrom
Chloepeg:DYN-9702-template-files-support
Draft

Dyn 9702 template files support#89
Chloepeg wants to merge 12 commits into
DynamoDS:masterfrom
Chloepeg:DYN-9702-template-files-support

Conversation

@Chloepeg
Copy link
Copy Markdown
Contributor

@Chloepeg Chloepeg commented May 13, 2026

Purpose

This PR addresses DYN-9702 https://jira.autodesk.com/browse/DYN-9702 The changes in the code aim to add Templates support to the Dynamo Home UI, allowing users to view and open template files directly from the Home page.

This PR works with : DynamoDS/Dynamo#17107

DYN-9702-Gif

Changes :

  • Added a DynamoHome callback for receiving template metadata from the Dynamo host.
  • Added the Home UI data flow for Templates, including a Templates context and rendering support in the Home page.
  • Added a Templates section with grid/list view support and persisted view mode settings.
  • Added a Templates info tooltip on the heading question mark icon.
  • Added local development mock data for Templates while production builds wait for template data from Dynamo.

Declarations

Check these if you believe they are true

Release Notes

Added template file support to Dynamo Home. The Home page now shows a Templates section with grid and list views. Added a Templates info tooltip

Reviewers

@zeusongit
@DynamoDS/eidos

FYIs

@dnenov
@johnpierson
@jnealb

Chloepeg added 12 commits March 3, 2026 12:50
- Enhance CustomDropdown component to support divider and header option types
- Add template options to Sidebar "New" dropdown with visual grouping
- Add template data structure in home.ts assets
- Update dropdown styling for divider and header elements
- Add TypeScript types for dropdown option kinds (item/divider/header)
- Update package dependencies
- Add Templates section above Recent section on home page
- Implement templates data loading from home.ts (dev) and backend (prod)
- Add independent grid/list view toggle for Templates section
- Add templatesPageViewMode setting for view preference persistence
- Map template data structure (date -> DateModified) for component compatibility
- Add receiveTemplatesDataFromDotNet window function for backend integration
- Add "Templates" translation key to locale files
- Reuse existing GraphGridItem and GraphTable components for templates display
…down

- Add newWorkspaceWithTemplate utility function
- Implement listener pattern for template data sharing between Sidebar and PageRecent
- Map hardcoded dropdown options to real template files from backend
- Update TypeScript types for listener pattern
- Add TemplatesContext to manage template state centrally
- Update Sidebar and PageRecent to use useTemplates() hook
- Remove duplicate global handlers to prevent race conditions
- Aligns with existing React patterns
Update template matching logic to use new filenames:
- Template 1: matches 'Create a Graph.dyn' (was Template_00_)
- Template 2: matches 'Import & Export Workflow.dyn' (was Template_01_)
Drop down menu on side panel removed, will be added back later

- Remove Template 1 and Template 2 options from Sidebar dropdown
- Remove newWorkspaceWithTemplate function from utility.ts
- Remove divider/header support from CustomDropdown component
- Remove template data from home.ts assets
- Update type definitions to remove template-related types
TemplatesContext requires templates export in development mode
Fix module path in TemplatesContext.tsx and restore package-lock.json metadata.
Display Recent files section above Templates section on the home page.

Visual reordering only, there is no functional changes to either section
Add info icon with tooltip to the Templates section title that appears when
hovering over the Template heading

Changes:
- Add tooltip component to Templates title in PageRecent.tsx
- Add tooltip text to locale file (en.json)
- Extend Tooltip component to support right-side positioning with arrow
- Update tooltip styling for wider layout to fit space inbetween
- Position tooltip to the right of the title with left-pointing arrow
- Add QuestionMarkIcon import to PageRecent component
- Tooltip now appears when hover over the icon instead of the header
- Text updated
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

Successfully merging this pull request may close these issues.

1 participant