8000 Enable dragging a document into drafts by hmacr · Pull Request #8411 · outline/outline · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Enable dragging a document into drafts #8411

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 3 commits into from
Feb 16, 2025
Merged

Enable dragging a document into drafts #8411

merged 3 commits into from
Feb 16, 2025

Conversation

hmacr
Copy link
Collaborator
@hmacr hmacr commented Feb 14, 2025

Closes #8346

@hmacr hmacr requested a review from tommoor February 14, 2025 03:27
import { useDropToUnpublish } from "../hooks/useDragAndDrop";
import SidebarLink from "./SidebarLink";

export const DraftsLink = observer(() => {
Copy link
Member

Choose a reason for hiding this comment

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

Nice 🆗

@hmacr hmacr requested a review from tommoor February 14, 2025 08:44
const channels = await this.getDocumentEventChannels(event, document);

// We need to add the collection channel to let the members update the doc structure.
channels.push(`collection-${event.collectionId}`);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed a bug along the way - unpublish events weren't sent to the interested users before.

This could've been added in the getDocumentEventChannels method itself - but we generally don't send draft document updates except this special case.

@tommoor tommoor merged commit bef4292 into main Feb 16, 2025
11 checks passed
@hmacr hmacr deleted the hmacr/8346-drafts-dnd branch February 18, 2025 03:35
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.

Enable dragging a document into drafts to remove from collection
2 participants
0