Skip to content

feat: System to export & import standard Builder Page#405

Merged
surajshetty3416 merged 56 commits intofrappe:developfrom
surajshetty3416:export-builder-page
Dec 10, 2025
Merged

feat: System to export & import standard Builder Page#405
surajshetty3416 merged 56 commits intofrappe:developfrom
surajshetty3416:export-builder-page

Conversation

@surajshetty3416
Copy link
Member

@surajshetty3416 surajshetty3416 commented Sep 25, 2025

Option to export Builder Page as Standard. Using this, users/devs can ship pre-built pages in any Frappe app... for example, the Blog
app can now ship standard blog templates built using Builder.

Usage is quite simple: if you want a page to be exported as Standard, just toggle the Standard checkbox and select the module of the app where you want to export the standard page from the page settings (this toggle will only be enabled in Developer Mode). Once you make a page Standard, any changes you make to that page will be synced to its JSON file — similar to how doctypes work.
Screenshot 2025-11-07 at 11 01 12 AM

Note: Standard pages will be in read-only mode. Users can unpublish, duplicate, and make changes to these standard pages!
Screenshot 2025-11-07 at 11 02 52 AM

Things that get exported:

  • Builder page → .json
  • Components → .json
  • Scripts → .json
  • Font doc → .json
  • Assets (images, videos, fonts) → public folder inside builder_files

Note: Builder pages are imported on app install and synced on migration.

@codecov
Copy link

codecov bot commented Sep 25, 2025

Codecov Report

❌ Patch coverage is 51.03448% with 284 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.31%. Comparing base (762a62e) to head (bc1a570).
⚠️ Report is 186 commits behind head on develop.

Files with missing lines Patch % Lines
builder/export_import_standard_page.py 6.51% 201 Missing ⚠️
builder/utils.py 60.15% 53 Missing ⚠️
...ilder/builder/doctype/builder_page/builder_page.py 50.00% 13 Missing ⚠️
...e/builder_project_folder/builder_project_folder.py 0.00% 11 Missing ⚠️
builder/install.py 0.00% 5 Missing ⚠️
builder/api.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #405      +/-   ##
===========================================
+ Coverage    47.80%   49.31%   +1.50%     
===========================================
  Files           26       28       +2     
  Lines         1638     2180     +542     
===========================================
+ Hits           783     1075     +292     
- Misses         855     1105     +250     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@surajshetty3416
Copy link
Member Author

Merging this as part 1 of this feature, the export feature is functional.

The next part will have more improvement in UX and the addition of the following features.

  • Custom layer of scripts while editing scripts from standard page
    (scripts of standard page should not be directly editable.)
  • Show read-only inputs for standard pages (do not let users edit page properties)
    ...

This comment was marked as spam.

@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@frappe frappe deleted a comment from Copilot AI Dec 10, 2025
@surajshetty3416 surajshetty3416 merged commit 465a666 into frappe:develop Dec 10, 2025
13 checks passed
@frappe frappe deleted a comment from Copilot AI Dec 15, 2025
@github-actions
Copy link

🎉 This PR is included in version 1.22.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants