[Refactor] Improve template document type handling and dynamic filtering system#99
Merged
Gautam25Raj merged 1 commit intoMay 27, 2026
Conversation
…prove filter functionality - Updated TemplateFilters to dynamically generate family and layout options based on provided templates. - Modified TemplateGroup to accept TemplateSummary directly and display additional group information. - Enhanced TemplateHeader to utilize TemplateSummary for better detail representation. - Revamped TemplatesHeader to include document type summaries and improved layout statistics. - Adjusted utility functions to support new template structure and href generation. - Updated TemplatesPortalPage to display document types with improved layout and information. - Refined template data structure in config/templates.ts to include additional metadata and improve type safety. - Fixed link generation in TemplatesPreview for correct document type routing.
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors the template browsing and rendering architecture to improve document type handling, dynamic filtering, layout statistics, and template metadata consistency across the templates experience.
Refactor
Template Filtering
TemplateFiltersto dynamically generate:Template Components
TemplateGroupto consumeTemplateSummarydirectlyTemplateHeaderwith richer template detail representationTemplatesHeaderto include:Template Data Structure
config/templates.tsImprovements
Routing & URL Handling
TemplatesPreviewUI & Information Architecture
TemplatesPortalPagewith improved document type presentationMaintainability
Notes
Type of Change
Checklist