[PR #3032] feat: add template #5530

Open
opened 2026-03-23 22:19:09 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/3032
Author: @AmanNegi
Created: 7/20/2023
Status: 🔄 Open

Base: mainHead: feat-create-template


📝 Commits (10+)

📊 Changes

20 files changed (+1301 additions, -7 deletions)

View changed files

frontend/appflowy_flutter/assets/template/journal.zip (+0 -0)
frontend/appflowy_flutter/assets/template/resume.zip (+0 -0)
frontend/appflowy_flutter/assets/template/todos.zip (+0 -0)
frontend/appflowy_flutter/assets/test/workspaces/template_doc.zip (+0 -0)
frontend/appflowy_flutter/assets/test/workspaces/template_grid.zip (+0 -0)
frontend/appflowy_flutter/integration_test/document/document_template_test.dart (+174 -0)
📝 frontend/appflowy_flutter/integration_test/document/document_test_runner.dart (+2 -0)
📝 frontend/appflowy_flutter/integration_test/util/common_operations.dart (+23 -0)
frontend/appflowy_flutter/lib/plugins/document/application/template/config_service.dart (+317 -0)
frontend/appflowy_flutter/lib/plugins/document/application/template/inbuilt_templates.dart (+36 -0)
frontend/appflowy_flutter/lib/plugins/document/application/template/template_service.dart (+573 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_header_node_widget.dart (+4 -0)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/share/share_button.dart (+13 -0)
📝 frontend/appflowy_flutter/lib/startup/deps_resolver.dart (+3 -0)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/share/import_service.dart (+4 -2)
📝 frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_add_button.dart (+30 -1)
📝 frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart (+113 -0)
📝 frontend/resources/translations/en.json (+4 -0)
📝 frontend/rust-lib/flowy-folder2/src/event_handler.rs (+4 -3)
📝 frontend/rust-lib/flowy-folder2/src/event_map.rs (+1 -1)

📄 Description

Issue: Add Template in AppFlowy

Fixes #444


This Issue basically aims at adding the template feature in AppFlowy. This allows users to export their documents as templates and share them with others meanwhile, others can simply import the template to achieve the same structure. A further feature request may add the feature to add a Template Marketplace to AppFlowy as well.

Major Challenges

  • Importing Nested Documents.
  • Importing Databases while maintaining references.
  • Importing Local Images.

📹 Find Progress Clips here.

PR Checklist

  • My code adheres to the AppFlowy Style Guide
  • I've listed at least one issue that this PR fixes in the description above.
  • I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes.
  • All existing tests are passing.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AppFlowy-IO/AppFlowy/pull/3032 **Author:** [@AmanNegi](https://github.com/AmanNegi) **Created:** 7/20/2023 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feat-create-template` --- ### 📝 Commits (10+) - [`99ecf59`](https://github.com/AppFlowy-IO/AppFlowy/commit/99ecf5996a6d50ae18ba4ea16fa2a9fc2bd27e06) feat: add template - [`646876a`](https://github.com/AppFlowy-IO/AppFlowy/commit/646876ad9a693108886d39086978f308d6b0be6f) feat: add integration tests - [`53803ab`](https://github.com/AppFlowy-IO/AppFlowy/commit/53803ab3b233631a88bfc0ff0f1c77c250b99b27) chore: merge with main - [`2b929ad`](https://github.com/AppFlowy-IO/AppFlowy/commit/2b929ad5bfe12689cc6ed7da05823bf5f9eda8af) fix: update integration test - [`6301d1b`](https://github.com/AppFlowy-IO/AppFlowy/commit/6301d1b398bb21b67b2a5670092629fd7ee4ff21) feat: Fix tests and template button - [`f92734b`](https://github.com/AppFlowy-IO/AppFlowy/commit/f92734b9db4b2247d73c00ded5872afc5cc8324d) chore: merge with main - [`118f871`](https://github.com/AppFlowy-IO/AppFlowy/commit/118f8712b8ce2157b9f06e10ed71d46db01beb41) chore: fix errors - [`8d4cf4b`](https://github.com/AppFlowy-IO/AppFlowy/commit/8d4cf4b86270eb486c288aac9e8377c3ceed66bb) fix: analyzing issue - [`f9c069d`](https://github.com/AppFlowy-IO/AppFlowy/commit/f9c069d56a787d2c7913e13c9a88141e45cf1144) feat: Support nested pages - [`01deb81`](https://github.com/AppFlowy-IO/AppFlowy/commit/01deb81a347f08824f7bbadb20aa45f93cf0ad86) chore: merge with main ### 📊 Changes **20 files changed** (+1301 additions, -7 deletions) <details> <summary>View changed files</summary> ➕ `frontend/appflowy_flutter/assets/template/journal.zip` (+0 -0) ➕ `frontend/appflowy_flutter/assets/template/resume.zip` (+0 -0) ➕ `frontend/appflowy_flutter/assets/template/todos.zip` (+0 -0) ➕ `frontend/appflowy_flutter/assets/test/workspaces/template_doc.zip` (+0 -0) ➕ `frontend/appflowy_flutter/assets/test/workspaces/template_grid.zip` (+0 -0) ➕ `frontend/appflowy_flutter/integration_test/document/document_template_test.dart` (+174 -0) 📝 `frontend/appflowy_flutter/integration_test/document/document_test_runner.dart` (+2 -0) 📝 `frontend/appflowy_flutter/integration_test/util/common_operations.dart` (+23 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/application/template/config_service.dart` (+317 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/application/template/inbuilt_templates.dart` (+36 -0) ➕ `frontend/appflowy_flutter/lib/plugins/document/application/template/template_service.dart` (+573 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/header/document_header_node_widget.dart` (+4 -0) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/share/share_button.dart` (+13 -0) 📝 `frontend/appflowy_flutter/lib/startup/deps_resolver.dart` (+3 -0) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/share/import_service.dart` (+4 -2) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/home/menu/view/view_add_button.dart` (+30 -1) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/widgets/dialogs.dart` (+113 -0) 📝 `frontend/resources/translations/en.json` (+4 -0) 📝 `frontend/rust-lib/flowy-folder2/src/event_handler.rs` (+4 -3) 📝 `frontend/rust-lib/flowy-folder2/src/event_map.rs` (+1 -1) </details> ### 📄 Description # Issue: Add Template in AppFlowy Fixes #444 --- This Issue basically aims at adding the template feature in AppFlowy. This allows users to export their documents as templates and share them with others meanwhile, others can simply import the template to achieve the same structure. A further feature request may add the feature to add a Template Marketplace to AppFlowy as well. ## Major Challenges - Importing Nested Documents. - Importing Databases while maintaining references. - Importing Local Images. > 📹✨ Find Progress Clips [here](https://github.com/AmanNegi/Octernship-2023). #### PR Checklist - [x] My code adheres to the [AppFlowy Style Guide](https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/submitting-code/style-guides) - [x] I've listed at least one issue that this PR fixes in the description above. - [x] I've added a test(s) to validate changes in this PR, or this PR only contains semantic changes. - [x] All existing tests are passing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#5530
No description provided.