Files
AFFiNE/packages/frontend/client
DarkSky 96709cab51 feat(desktop): add sidebar doc drops and linked doc rows
A doc row that you drag from any sidebar section onto an organize folder
adds a link to that doc in the folder. If the folder already has a link
to that doc, the drop moves the link. A drop on an organize row still
moves that row.

A doc row that you drop on a tag row adds the tag to the doc. The tag
change is idempotent and stays after the workspace opens again.

Escape, or a release outside the sidebar, cancels the drag and writes
nothing.

Doc rows that link to other docs now expand to show the linked docs.
Rows start collapsed. The expansion state uses the full row path, and a
doc that is already an ancestor in the path does not show again. "Add
linked doc" expands the parent row.

The "show linked docs in sidebar" setting is on by default and Web
Desktop keeps it in localStorage. When the setting is off, doc rows
show no arrow and no linked docs.
2026-12-05 02:36:07 +09:00
..