[PR #7932] [MERGED] feat: support mobile search AI Overview #8220

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7932
Author: @asjqkkkk
Created: 5/14/2025
Status: Merged
Merged: 5/21/2025
Merged by: @LucasXu0

Base: mainHead: feat/mobile/search


📝 Commits (10+)

  • 8c0d567 feat: add arrow back button in search page
  • 4d75d13 feat: support mobile search AI Overview
  • 08f0e94 fix: add error toast fore the view no longer existed
  • e267de0 chore: add some tests
  • 403075d fix: remove unuse code
  • f6e6e97 Merge branch 'main' into feat/mobile/search
  • 0c9c973 chore: i18n
  • 0b6506a Merge branch 'main' into feat/mobile/search
  • 5997f46 chore: improve mobile search UI
  • a71022c Merge branch 'main' into feat/mobile/search

📊 Changes

14 files changed (+869 additions, -146 deletions)

View changed files

📝 frontend/appflowy_flutter/integration_test/mobile/search/search_test.dart (+34 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/mobile_bottom_navigation_bar.dart (+11 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_ask_ai_entrance.dart (+126 -11)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_cell.dart (+11 -10)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_page.dart (+34 -30)
frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_reference_bottom_sheet.dart (+152 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_result.dart (+72 -87)
frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_special_styles.dart (+24 -0)
frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_summary_cell.dart (+338 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_textfield.dart (+46 -3)
📝 frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_chat_input.dart (+13 -4)
📝 frontend/appflowy_flutter/lib/workspace/application/command_palette/search_result_ext.dart (+4 -1)
frontend/resources/flowy_icons/20x/search_page_arrow_left.svg (+3 -0)
📝 frontend/resources/translations/en-US.json (+1 -0)

📄 Description

Feature Preview


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.

Summary by Sourcery

Support AI-generated overviews in the mobile search UI and refine navigation and layout for search-related screens.

New Features:

  • Show an AI overview section in mobile search with ask-AI entry, loading indicator, and summary cell.
  • Provide a ‘see sources’ bottom sheet listing referenced pages for AI summaries.
  • Add a back arrow in the search text field to return to the previously active bottom-nav tab.
  • Enable bottom navigation bar to route to the search screen and back.

Enhancements:

  • Refactor search result and recent lists to stateless widgets and streamline their layout.
  • Merge multiple scrollable areas into a single scroll view in the mobile search page.
  • Use toast notifications for fetch errors when tapping on search results.
  • Leverage nullable helpers and remove manual bloc lifecycle management for search results.

Tests:

  • Add an integration test verifying navigation from home → search → home and notification tabs.

🔄 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/7932 **Author:** [@asjqkkkk](https://github.com/asjqkkkk) **Created:** 5/14/2025 **Status:** ✅ Merged **Merged:** 5/21/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `feat/mobile/search` --- ### 📝 Commits (10+) - [`8c0d567`](https://github.com/AppFlowy-IO/AppFlowy/commit/8c0d567ecc2df9656a8e5cb7009534a635a1c882) feat: add arrow back button in search page - [`4d75d13`](https://github.com/AppFlowy-IO/AppFlowy/commit/4d75d135935161ec181781ecf626275dc92eb62f) feat: support mobile search AI Overview - [`08f0e94`](https://github.com/AppFlowy-IO/AppFlowy/commit/08f0e94848a5b8461262628f780cead3560f05f8) fix: add error toast fore the view no longer existed - [`e267de0`](https://github.com/AppFlowy-IO/AppFlowy/commit/e267de0337d00a82f2492105363dec6a536e9eb4) chore: add some tests - [`403075d`](https://github.com/AppFlowy-IO/AppFlowy/commit/403075d42a0fd07ea634b5c8a8eb324d67503af2) fix: remove unuse code - [`f6e6e97`](https://github.com/AppFlowy-IO/AppFlowy/commit/f6e6e9717213a9fe27d4bd3b9e616b1f18566c06) Merge branch 'main' into feat/mobile/search - [`0c9c973`](https://github.com/AppFlowy-IO/AppFlowy/commit/0c9c973647d01b585253cf4ddf9a0157e0a2ca40) chore: i18n - [`0b6506a`](https://github.com/AppFlowy-IO/AppFlowy/commit/0b6506a31c2734c14568820b880a61f616fb5bb8) Merge branch 'main' into feat/mobile/search - [`5997f46`](https://github.com/AppFlowy-IO/AppFlowy/commit/5997f467c705b13bec64bd75edca2f309326e0bc) chore: improve mobile search UI - [`a71022c`](https://github.com/AppFlowy-IO/AppFlowy/commit/a71022c0d292d760a798f8f7185303f51ad4e5d0) Merge branch 'main' into feat/mobile/search ### 📊 Changes **14 files changed** (+869 additions, -146 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/integration_test/mobile/search/search_test.dart` (+34 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/mobile_bottom_navigation_bar.dart` (+11 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_ask_ai_entrance.dart` (+126 -11) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_cell.dart` (+11 -10) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_page.dart` (+34 -30) ➕ `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_reference_bottom_sheet.dart` (+152 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_result.dart` (+72 -87) ➕ `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_special_styles.dart` (+24 -0) ➕ `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_summary_cell.dart` (+338 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_textfield.dart` (+46 -3) 📝 `frontend/appflowy_flutter/lib/plugins/ai_chat/presentation/chat_input/mobile_chat_input.dart` (+13 -4) 📝 `frontend/appflowy_flutter/lib/workspace/application/command_palette/search_result_ext.dart` (+4 -1) ➕ `frontend/resources/flowy_icons/20x/search_page_arrow_left.svg` (+3 -0) 📝 `frontend/resources/translations/en-US.json` (+1 -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 <!--- 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. - [ ] All existing tests are passing. ## Summary by Sourcery Support AI-generated overviews in the mobile search UI and refine navigation and layout for search-related screens. New Features: - Show an AI overview section in mobile search with ask-AI entry, loading indicator, and summary cell. - Provide a ‘see sources’ bottom sheet listing referenced pages for AI summaries. - Add a back arrow in the search text field to return to the previously active bottom-nav tab. - Enable bottom navigation bar to route to the search screen and back. Enhancements: - Refactor search result and recent lists to stateless widgets and streamline their layout. - Merge multiple scrollable areas into a single scroll view in the mobile search page. - Use toast notifications for fetch errors when tapping on search results. - Leverage nullable helpers and remove manual bloc lifecycle management for search results. Tests: - Add an integration test verifying navigation from home → search → home and notification tabs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
mirror 2026-03-23 23:23:10 +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#8220
No description provided.