An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Unify invalid document drag message dismissal https://github.com/siyuan-note/siyuan/issues/19548
Danielf3dc06810875
diff --git a/app/src/layout/dock/Files.drop.test.ts b/app/src/layout/dock/Files.drop.test.tsindex 8a6ad4078f..661318fb09 100644--- a/app/src/layout/dock/Files.drop.test.ts+++ b/app/src/layout/dock/Files.drop.test.ts@@ -44,7 +44,7 @@ test("dropping a document into itself or descendants reports an invalid target wfor (const target of ["/parent.sy", "/parent/child.sy", "/parent/child/grandchild.sy"]) {for (const sources of [["/parent.sy"], ["/other.sy", "/parent.sy"]]) {const result = dropDocuments(sources, target);- assert.deepEqual(result.messages, [{message: "Cannot move to this location", timeout: 7000, type: "error"}]);+ assert.deepEqual(result.messages, [{message: "Cannot move to this location", timeout: 0, type: "error"}]);assert.equal(result.requests.length, 0);assert.equal(result.classes.size, 0);}diff --git a/app/src/layout/dock/Files.ts b/app/src/layout/dock/Files.tsindex 4362bb6030..b88b7eac52 100644--- a/app/src/layout/dock/Files.ts+++ b/app/src/layout/dock/Files.ts@@ -881,7 +881,7 @@ export class Files extends Model {}});if (invalidMoveTarget) {- showMessage(window.siyuan.languages._kernel[87], 7000, "error");+ showMessage(window.siyuan.languages._kernel[87], 0, "error");newElement.classList.remove("dragover", "dragover__bottom", "dragover__top");return;}