feat: [re]Init Page Templates 🎨#624
Merged
Merged
Conversation
- Redesign Templates dialog with TemplatesDialog, TemplateGroupList, TemplatePageGrid, TemplatePageCard components + shared state - Add template_sync.py to load templates from builder_templates/ on install - Wire template selection into page creation flow (DashboardContent, DashboardToolbar, BuilderToolbar, PageBuilderDashboard, PageBuilder) - Extend Builder Page doctype with template fields; update api.py helpers - Update block_template.py, install.py, utils.py for template support - Remove old TemplateSelector.vue and TemplatePagePreview.vue - Update types and webPage data layer for template-aware pages
Move all page-template content out of builder into a new builder_hub app fetched over HTTP, so templates get their own release cycle. - builder ships zero templates now; the 6 groups + assets move to builder_hub - machinery stays in builder (parameterized with app/target_app to avoid a circular dep): template_sync, asset/preview helpers, on_update/on_trash hooks - get_template_groups fetches the hub catalog server-side (cached, graceful empty fallback) + merges local "My Templates" - create_page_from_template fetches a per-page bundle, import_doc's the deps, and builds an editable page directly from the blocks (no local template rows) - add Builder Settings > Template Hub URL; drop sync from install hooks; hub-guarded cleanup patch removes previously-synced template-group pages - frontend: hub previews/Preview open absolute live_url; edit pencil hidden for remote templates
Strip the consumer down to the core "browse → use" flow: - get_template_groups just fetches the hub catalog live (no redis cache, so config changes take effect immediately; no stale-empty-catalog bug) - drop the local "My Templates" merge and the dual local/hub create path — create_page_from_template always materializes from the hub bundle - move catalog-building into builder_hub (builder no longer builds catalogs) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Two crashes hit right after create_page_from_template navigated to the new
page (cleared on refresh):
- fontManager.setFont read .find on userFont.data while the list resource was
still loading -> null crash + Vue mount cascade. Guard with (data || []).
- importing the template's components fired BuilderComponent.on_update ->
queue_action("clear_page_cache") -> DocumentLockedError mid-import. Skip the
background cache-clear during in_import/in_install/in_migrate/in_patch.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…late create_page_from_template now enqueues generate_page_preview_image, so the new page shows a real thumbnail on the dashboard instead of the fallback. generate_page_preview_image renders via BuilderPageRenderer in preview mode (uses draft_blocks), so it works for unpublished/draft pages too — not just pages reachable by their published route. This lets template_sync drop its duplicate render_template_page helper. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The hub URL now comes only from site config (template_hub_url in site_config / common_site_config) — one source, no per-site doctype field to manage. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… update template dialog structure
…ate selection logic
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## develop #624 +/- ##
===========================================
- Coverage 58.36% 54.91% -3.45%
===========================================
Files 29 30 +1
Lines 3295 3613 +318
===========================================
+ Hits 1923 1984 +61
- Misses 1372 1629 +257 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Member
|
Added an option to "Import All" pages in a Template Group Screen.Recording.2026-06-09.at.5.14.16.AM.mp4 |
and use preview directly from template instead of creating from waiting for preview generator
Member
Author
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.

Page Tempates
This add an option to create a pages using a template.
Screen.Recording.2026-06-08.at.3.22.59.PM.mov
Templates are fetched from a centralised site. Once the user selects the page, all the required file are pulled from the centralised server required to create a page. All the templates are maintained and served from builder_hub (repository where all the assets related to builder like templates and plugins will reside)
Available Templates
Landing · About · Contact
Landing · Pricing · About · Contact
Home · Work · Contact
Home · Project · About · Contact
Home · Work · Writing · About
Home · Work · About
Home · Article · About
Home · Speakers · Schedule · Tickets