Skip to content

DYN-10190 swap recents and templates#67

Open
Chloepeg wants to merge 9 commits intoDynamoDS:masterfrom
Chloepeg:DYN-10190-Swap-Recents-and-Templates
Open

DYN-10190 swap recents and templates#67
Chloepeg wants to merge 9 commits intoDynamoDS:masterfrom
Chloepeg:DYN-10190-Swap-Recents-and-Templates

Conversation

@Chloepeg
Copy link

@Chloepeg Chloepeg commented Mar 2, 2026

Purpose

This PR addresses DYN-10190 https://jira.autodesk.com/browse/DYN-10190

The changes in the code aim to reorders the Home page layout to display the Recent section above the Templates section.

Changes :

-Display the Recent files section above the Templates section on the Home page.
-Update layout ordering without modifying functionality.
-Preserve existing behaviour and state for both sections.

Recent and templates swap

Declarations

Check these if you believe they are true

Release Notes

Reorders the Home page layout to display the Recent section above the Templates section.

Reviewers

@zeusongit
@DynamoDS/eidos

FYIs
@dnenov
@johnpierson

Chloepeg added 5 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_)
@Chloepeg Chloepeg force-pushed the DYN-10190-Swap-Recents-and-Templates branch from 4553c45 to 0ea9a36 Compare March 3, 2026 13:02
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
@Chloepeg Chloepeg force-pushed the DYN-10190-Swap-Recents-and-Templates branch from 0ea9a36 to 6b64bf7 Compare March 3, 2026 17:43
TemplatesContext requires templates export in development mode
@Chloepeg Chloepeg force-pushed the DYN-10190-Swap-Recents-and-Templates branch from 6b64bf7 to 2d995e6 Compare March 10, 2026 18:01
@avidit avidit changed the title Dyn 10190 swap recents and templates DYN-10190 swap recents and templates Mar 10, 2026
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
@Chloepeg Chloepeg force-pushed the DYN-10190-Swap-Recents-and-Templates branch from 2d995e6 to f3b6fa4 Compare March 11, 2026 10:19
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