[PR #7061] [MERGED] feat: custom share url, publish url and copy link to share #7712

Closed
opened 2026-03-23 23:20:52 +00:00 by mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7061
Author: @LucasXu0
Created: 12/26/2024
Status: Merged
Merged: 1/6/2025
Merged by: @LucasXu0

Base: mainHead: custom_url


📝 Commits (10+)

  • 1055f26 feat: custom share url, publish url and copy link to share
  • a86aa5a chore: update translation
  • 74bec9c feat: support base share domain
  • 0137899 feat: customize web url in login page
  • af82164 Merge branch 'main' into custom_url
  • aecd026 Merge branch 'main' into custom_url
  • 062b6aa feat: support customizing web url on mobile
  • 7b64751 Merge branch 'main' into custom_url
  • 56102e9 Merge branch 'main' into custom_url
  • 4c8e07e test: change web url test

📊 Changes

16 files changed (+476 additions, -142 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/share_menu_test.dart (+1 -1)
📝 frontend/appflowy_flutter/integration_test/desktop/settings/sign_in_page_settings_test.dart (+16 -4)
📝 frontend/appflowy_flutter/lib/core/config/kv_keys.dart (+1 -0)
📝 frontend/appflowy_flutter/lib/env/backend_env.dart (+11 -0)
📝 frontend/appflowy_flutter/lib/env/cloud_env.dart (+27 -1)
📝 frontend/appflowy_flutter/lib/env/env.dart (+8 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/self_host/self_host_bottom_sheet.dart (+17 -3)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/self_host_setting_group.dart (+88 -25)
📝 frontend/appflowy_flutter/lib/mobile/presentation/setting/widgets/mobile_setting_item_widget.dart (+23 -17)
📝 frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart (+31 -6)
📝 frontend/appflowy_flutter/lib/shared/patterns/common_patterns.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/application/settings/appflowy_cloud_urls_bloc.dart (+31 -3)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart (+141 -50)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart (+25 -7)
📝 frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_cloud.dart (+53 -24)
📝 frontend/resources/translations/en.json (+2 -0)

📄 Description

Feature Preview

  • add a text field to customize the share domain if users are in self-hosted mode
    • settings page (desktop)
    • login page (desktop)
    • settings page (mobile)
    • login page (mobile)
  • replace the share URL
  • replace the publish URL
  • replace the "copy link to block" URL
  • tests
Screenshot 1 Screenshot 2
Screenshot 2024-12-26 at 15 48 40 Screenshot 2024-12-26 at 15 48 44
Screenshot 2024-12-26 at 15 48 53 Screenshot 2024-12-26 at 15 49 07
Screenshot 2025-01-03 at 16 42 02 Screenshot 2025-01-03 at 16 41 09

PR Checklist

  • My code adheres to AppFlowy's Conventions
  • 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/7061 **Author:** [@LucasXu0](https://github.com/LucasXu0) **Created:** 12/26/2024 **Status:** ✅ Merged **Merged:** 1/6/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `custom_url` --- ### 📝 Commits (10+) - [`1055f26`](https://github.com/AppFlowy-IO/AppFlowy/commit/1055f266303ba75f63b9d393be02fe61fc101288) feat: custom share url, publish url and copy link to share - [`a86aa5a`](https://github.com/AppFlowy-IO/AppFlowy/commit/a86aa5a9ce05f338e93aad5de64cc4f9f235121a) chore: update translation - [`74bec9c`](https://github.com/AppFlowy-IO/AppFlowy/commit/74bec9c2599ca4b63e0b646aeb751c3de8127ff1) feat: support base share domain - [`0137899`](https://github.com/AppFlowy-IO/AppFlowy/commit/013789982a061ad18c006c672aeff4ad046e98d7) feat: customize web url in login page - [`af82164`](https://github.com/AppFlowy-IO/AppFlowy/commit/af82164d27db9dd4e2a62ea20868b29f62de119f) Merge branch 'main' into custom_url - [`aecd026`](https://github.com/AppFlowy-IO/AppFlowy/commit/aecd0265af3042fef311a9f0d35017a56853de7a) Merge branch 'main' into custom_url - [`062b6aa`](https://github.com/AppFlowy-IO/AppFlowy/commit/062b6aaa6bfcbe4eadb3fdcb5041c2da1dc72fbe) feat: support customizing web url on mobile - [`7b64751`](https://github.com/AppFlowy-IO/AppFlowy/commit/7b647519684846e4f81f97bb64c25475dcedc584) Merge branch 'main' into custom_url - [`56102e9`](https://github.com/AppFlowy-IO/AppFlowy/commit/56102e9719047103f6e1e16ce8b5443a46aa9389) Merge branch 'main' into custom_url - [`4c8e07e`](https://github.com/AppFlowy-IO/AppFlowy/commit/4c8e07ef1321d0c9f45ab6f86fbb183b56359be0) test: change web url test ### 📊 Changes **16 files changed** (+476 additions, -142 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/desktop/cloud/workspace/share_menu_test.dart` (+1 -1) 📝 `frontend/appflowy_flutter/integration_test/desktop/settings/sign_in_page_settings_test.dart` (+16 -4) 📝 `frontend/appflowy_flutter/lib/core/config/kv_keys.dart` (+1 -0) 📝 `frontend/appflowy_flutter/lib/env/backend_env.dart` (+11 -0) 📝 `frontend/appflowy_flutter/lib/env/cloud_env.dart` (+27 -1) 📝 `frontend/appflowy_flutter/lib/env/env.dart` (+8 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/self_host/self_host_bottom_sheet.dart` (+17 -3) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/self_host_setting_group.dart` (+88 -25) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/setting/widgets/mobile_setting_item_widget.dart` (+23 -17) 📝 `frontend/appflowy_flutter/lib/plugins/shared/share/constants.dart` (+31 -6) 📝 `frontend/appflowy_flutter/lib/shared/patterns/common_patterns.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/application/settings/appflowy_cloud_urls_bloc.dart` (+31 -3) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/settings_dialog.dart` (+141 -50) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_appflowy_cloud.dart` (+25 -7) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/settings/widgets/setting_cloud.dart` (+53 -24) 📝 `frontend/resources/translations/en.json` (+2 -0) </details> ### 📄 Description <!--- Thank you for submitting a pull request to AppFlowy. The team will dedicate their best efforts to reviewing and approving your pull request. If you have any questions about the project or feedback for us, please join our [Discord](https://discord.gg/wdjWUXXhtw). --> <!--- If your pull request adds a new feature, please drag and drop a video into this section to showcase what you've done! If not, you may delete this section. --> ### Feature Preview - [x] add a text field to customize the share domain if users are in self-hosted mode - [x] settings page (desktop) - [x] login page (desktop) - [x] settings page (mobile) - [x] login page (mobile) - [x] replace the share URL - [x] replace the publish URL - [x] replace the "copy link to block" URL - [x] tests | Screenshot 1 | Screenshot 2 | |------------------------------------------------------------------------------|------------------------------------------------------------------------------| | <img width="530" alt="Screenshot 2024-12-26 at 15 48 40" src="https://github.com/user-attachments/assets/32d8e8cf-6391-4ea5-84f9-88e0fb5700f5" /> | <img width="526" alt="Screenshot 2024-12-26 at 15 48 44" src="https://github.com/user-attachments/assets/a1533cba-499f-444d-a534-15f55050c7b2" /> | | <img width="620" alt="Screenshot 2024-12-26 at 15 48 53" src="https://github.com/user-attachments/assets/62fe56ea-8ff4-4cd6-bfeb-75b1c1dc88ca" /> | <img width="922" alt="Screenshot 2024-12-26 at 15 49 07" src="https://github.com/user-attachments/assets/e7cc416f-e27a-4b92-ab29-b94ebef83072" /> | | <img width="566" alt="Screenshot 2025-01-03 at 16 42 02" src="https://github.com/user-attachments/assets/f864f8e5-a308-4ec3-8db4-497c1f4588db" /> | <img width="566" alt="Screenshot 2025-01-03 at 16 41 09" src="https://github.com/user-attachments/assets/2cd3005a-b00e-4ee5-aa6e-5be2885b4465" /> | <!--- List at least one issue here that this PR addresses. If it fixes the issue, please use the [fixes](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests) keyword to close the issue. For example: fixes https://github.com/AppFlowy-IO/AppFlowy/pull/2106 --> --- <!--- Before you mark this PR ready for review, run through this checklist! --> #### PR Checklist - [x] My code adheres to [AppFlowy's Conventions](https://docs.appflowy.io/docs/documentation/software-contributions/conventions) - [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>
mirror 2026-03-23 23:20:52 +00:00
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#7712
No description provided.