10000 feat: Restore document search in link toolbar by tommoor · Pull Request #8581 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Restore document search in link toolbar #8581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 28, 2025

Conversation

tommoor
Copy link
Member
@tommoor tommoor commented Feb 27, 2025

Back due to popular demand 😆

closes #8444

@tommoor tommoor requested a review from Copilot February 28, 2025 15:50
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Overview

This PR restores the document search functionality within the link toolbar while refactoring the LinkEditor component from a class-based to a functional approach. Key changes include:

  • Converting LinkEditor.tsx from a class component to a functional component with hooks.
  • Integrating document search results and suggestions using a new suggestions menu.
  • Minor styling updates in Input.tsx and enhancements in context menu components for pointer interactions.

Reviewed Changes

File Description
app/editor/components/LinkEditor.tsx Refactored to a functional component; added document search and suggestion UI.
app/editor/components/Input.tsx Updated placeholder styling using polished’s transparentize.
app/components/ContextMenu/MenuItem.tsx Added onPointerMove event support.
app/editor/components/MentionMenu.tsx Modified the useRequest callback for fetching suggestions.
app/editor/components/SuggestionsMenuItem.tsx Added onPointerMove prop forwarding to improve hover interactions.

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

documents: Document[];
users: User[];
}>(
const { loading, request } = useRequest(
Copy link
Preview
Copilot AI Feb 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous callback returned an object containing documents and users, but the updated implementation only maps these values without returning them. This change might break downstream logic if it depends on the returned data.

Copilot uses AI. Check for mistakes.

@tommoor tommoor merged commit eecc7e3 into main Feb 28, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore document search in link toolbar
1 participant
0