[PR #7895] [MERGED] feat: desktop Search UI revamp #8191

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

📋 Pull Request Information

Original PR: https://github.com/AppFlowy-IO/AppFlowy/pull/7895
Author: @asjqkkkk
Created: 5/8/2025
Status: Merged
Merged: 5/11/2025
Merged by: @LucasXu0

Base: mainHead: feat/desktop/search


📝 Commits (10+)

  • ab75743 feat: add ai search entrance
  • 3323a5c chore: revamp search recent list
  • 2582a68 feat: revamp preview widget
  • 2c853df feat: support click the 'Ask ai button'
  • a15d910 feat: support go to trash when there is no search results
  • 9304b63 feat: support AI overview
  • faf81a3 Merge branch 'main' into feat/desktop/search
  • f6a7667 fix: typo issue
  • 989d5e9 fix: empty trash item name
  • 3c12079 chore: replace some Dividers to AFDividers

📊 Changes

28 files changed (+1609 additions, -652 deletions)

View changed files

📝 frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_input.dart (+22 -0)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_ask_ai_entrance.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_textfield.dart (+3 -4)
📝 frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_view_ancestors.dart (+43 -0)
📝 frontend/appflowy_flutter/lib/plugins/database/application/cell/bloc/date_cell_editor_bloc.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/date_transaction_handler.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_date_block.dart (+3 -3)
📝 frontend/appflowy_flutter/lib/plugins/trash/src/trash_cell.dart (+7 -2)
📝 frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart (+1 -1)
📝 frontend/appflowy_flutter/lib/workspace/application/command_palette/command_palette_bloc.dart (+6 -3)
📝 frontend/appflowy_flutter/lib/workspace/application/command_palette/search_result_ext.dart (+2 -1)
📝 frontend/appflowy_flutter/lib/workspace/application/recent/recent_views_bloc.dart (+7 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/command_palette.dart (+179 -62)
frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/page_preview.dart (+160 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/recent_views_list.dart (+103 -32)
frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_ask_ai_entrance.dart (+227 -0)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_field.dart (+64 -96)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_recent_view_cell.dart (+100 -25)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_cell.dart (+123 -124)
📝 frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_results_list.dart (+96 -201)

...and 8 more files

📄 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

Revamp the desktop search UI to improve the user experience and add new features for searching and interacting with AI

New Features:

  • Add AI-powered search overview
  • Implement enhanced search result preview
  • Add ability to ask AI follow-up questions directly from search

Enhancements:

  • Improve search result cell design
  • Add view path display in search results
  • Enhance text highlighting in search results
  • Improve command palette UI

Chores:

  • Refactor search-related components
  • Update search-related translations

🔄 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/7895 **Author:** [@asjqkkkk](https://github.com/asjqkkkk) **Created:** 5/8/2025 **Status:** ✅ Merged **Merged:** 5/11/2025 **Merged by:** [@LucasXu0](https://github.com/LucasXu0) **Base:** `main` ← **Head:** `feat/desktop/search` --- ### 📝 Commits (10+) - [`ab75743`](https://github.com/AppFlowy-IO/AppFlowy/commit/ab757430fdd64b645957d8f0b36da9c2269fa1f0) feat: add ai search entrance - [`3323a5c`](https://github.com/AppFlowy-IO/AppFlowy/commit/3323a5c7e98537695194aa10eef81ae4adc3c75a) chore: revamp search recent list - [`2582a68`](https://github.com/AppFlowy-IO/AppFlowy/commit/2582a68febb268e9651534e3f51f81287cd6bb11) feat: revamp preview widget - [`2c853df`](https://github.com/AppFlowy-IO/AppFlowy/commit/2c853df42633f7b49df2cfbfe8ecc9539c42e5d6) feat: support click the 'Ask ai button' - [`a15d910`](https://github.com/AppFlowy-IO/AppFlowy/commit/a15d91059841f8482831a6f28f956d67d1eee305) feat: support go to trash when there is no search results - [`9304b63`](https://github.com/AppFlowy-IO/AppFlowy/commit/9304b6399ebfb0373480756f5ac18b06d35e2d77) feat: support AI overview - [`faf81a3`](https://github.com/AppFlowy-IO/AppFlowy/commit/faf81a3d43542b1051cde9a85356e5d351a73dda) Merge branch 'main' into feat/desktop/search - [`f6a7667`](https://github.com/AppFlowy-IO/AppFlowy/commit/f6a7667cdc16b780747b24fd993d1e4df1c238dc) fix: typo issue - [`989d5e9`](https://github.com/AppFlowy-IO/AppFlowy/commit/989d5e95b31ee613900af8f21a4bb467dd994c48) fix: empty trash item name - [`3c12079`](https://github.com/AppFlowy-IO/AppFlowy/commit/3c12079625ce2962a4518e7dd20ede4e61e7ba29) chore: replace some Dividers to AFDividers ### 📊 Changes **28 files changed** (+1609 additions, -652 deletions) <details> <summary>View changed files</summary> 📝 `frontend/appflowy_flutter/lib/ai/widgets/prompt_input/desktop_prompt_input.dart` (+22 -0) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_ask_ai_entrance.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_search_textfield.dart` (+3 -4) 📝 `frontend/appflowy_flutter/lib/mobile/presentation/search/mobile_view_ancestors.dart` (+43 -0) 📝 `frontend/appflowy_flutter/lib/plugins/database/application/cell/bloc/date_cell_editor_bloc.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/date_transaction_handler.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/mention/mention_date_block.dart` (+3 -3) 📝 `frontend/appflowy_flutter/lib/plugins/trash/src/trash_cell.dart` (+7 -2) 📝 `frontend/appflowy_flutter/lib/startup/tasks/app_widget.dart` (+1 -1) 📝 `frontend/appflowy_flutter/lib/workspace/application/command_palette/command_palette_bloc.dart` (+6 -3) 📝 `frontend/appflowy_flutter/lib/workspace/application/command_palette/search_result_ext.dart` (+2 -1) 📝 `frontend/appflowy_flutter/lib/workspace/application/recent/recent_views_bloc.dart` (+7 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/command_palette.dart` (+179 -62) ➕ `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/page_preview.dart` (+160 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/recent_views_list.dart` (+103 -32) ➕ `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_ask_ai_entrance.dart` (+227 -0) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_field.dart` (+64 -96) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_recent_view_cell.dart` (+100 -25) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_result_cell.dart` (+123 -124) 📝 `frontend/appflowy_flutter/lib/workspace/presentation/command_palette/widgets/search_results_list.dart` (+96 -201) _...and 8 more files_ </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 Revamp the desktop search UI to improve the user experience and add new features for searching and interacting with AI New Features: - Add AI-powered search overview - Implement enhanced search result preview - Add ability to ask AI follow-up questions directly from search Enhancements: - Improve search result cell design - Add view path display in search results - Enhance text highlighting in search results - Improve command palette UI Chores: - Refactor search-related components - Update search-related translations --- <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:02 +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#8191
No description provided.