An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:sparkles: Move reset all entry orders to the location header https://github.com/siyuan-note/siyuan/issues/19983
Daniel23568c7c1ea6
diff --git a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.syindex 3fdcdb4bba..436a5fddd9 100644--- a/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy+++ b/app/guide/20210808180117-6v0mkxr/20200923234011-ieuun1p/20210808180303-xaduj2o/20200924100950-9op5xi1.sy@@ -7,7 +7,7 @@"id": "20200924100950-9op5xi1","title": "Shortcuts","type": "doc",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -4224,7 +4224,7 @@"HeadingLevel": 2,"Properties": {"id": "20210106154056-koo4wdj",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -9993,7 +9993,7 @@"HeadingLevel": 3,"Properties": {"id": "20260928091724-mshqwvb",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -10048,12 +10048,12 @@"Type": "NodeParagraph","Properties": {"id": "20260927164841-clwu05c",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{"Type": "NodeText",- "Data": "In custom profiles, use the category selector to switch between the toolbar and slash menu. Drag the six-dot handle on the left of an item to change its order, or use its switch to change visibility. Drag near the list edge to scroll. Clear the search before sorting, and confirm to save the profile. Built-in profiles are read-only; duplicate one to customize it, then activate the saved profile. Profiles are stored on this device and are not synced across devices. New profiles based on Simple or Full follow the default order as versions change until you customize a level. Based on Current and duplicate preserve existing custom orders. Clear the search and use the reset icon in a column or dock group title to reset that level, or use Reset all orders at the bottom to reset every level. Confirm to save; Cancel discards the changes. Resetting order preserves visibility and dock placement, and reset levels continue to follow future default order changes."+ "Data": "In custom profiles, use the category selector to switch between the toolbar and slash menu. Drag the six-dot handle on the left of an item to change its order, or use its switch to change visibility. Drag near the list edge to scroll. Clear the search before sorting, and confirm to save the profile. Built-in profiles are read-only; duplicate one to customize it, then activate the saved profile. Profiles are stored on this device and are not synced across devices. New profiles based on Simple or Full follow the default order as versions change until you customize a level. Based on Current and duplicate preserve existing custom orders. Clear the search and use the reset icon in a column or dock group title to reset that level. To reset every level, use the refresh icon labeled Reset all orders on the right of the Position column title on desktop, or the Reset all orders button at the bottom on mobile. Confirm to save; Cancel discards the changes. Resetting order preserves visibility and dock placement, and reset levels continue to follow future default order changes."}]},diff --git a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.syindex 3a3d9c1dd4..2de495ccde 100644--- a/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy+++ b/app/guide/20210808180117-czj9bvb/20200812220555-lj3enxa/20210808180321-hbvl5c2/20200813004551-gm0pbn1.sy@@ -7,7 +7,7 @@"id": "20200813004551-gm0pbn1","title": "快捷键","type": "doc",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -4222,7 +4222,7 @@"HeadingLevel": 2,"Properties": {"id": "20201227133317-rkh4bji",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -9993,7 +9993,7 @@"HeadingLevel": 3,"Properties": {"id": "20260928091724-31ks0a6",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -10048,12 +10048,12 @@"Type": "NodeParagraph","Properties": {"id": "20260927164841-y6wu08m",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{"Type": "NodeText",- "Data": "编辑自定义方案时,可通过分类选择框切换工具栏与斜杠菜单。拖动项目左侧的六点手柄调整顺序,使用项目开关调整显隐;拖至列表边缘可滚动。排序前需清空搜索,修改后确认保存方案。内置方案只读,可复制后自定义,再启用保存的方案。方案保存在本设备,不跨设备同步。基于简洁或完整创建的新方案,其未自定义的层级排序会随版本默认顺序更新;基于当前创建或复制方案会保留已有自定义排序。清空搜索后,可点击列标题或停靠栏分组标题上的重置图标重置该层级,也可点击底部的重置全部排序。确认后保存,取消则放弃修改。重置排序会保留显隐和停靠栏入口所在位置,重置后的层级持续跟随后续版本的默认排序。"+ "Data": "编辑自定义方案时,可通过分类选择框切换工具栏与斜杠菜单。拖动项目左侧的六点手柄调整顺序,使用项目开关调整显隐;拖至列表边缘可滚动。排序前需清空搜索,修改后确认保存方案。内置方案只读,可复制后自定义,再启用保存的方案。方案保存在本设备,不跨设备同步。基于简洁或完整创建的新方案,其未自定义的层级排序会随版本默认顺序更新;基于当前创建或复制方案会保留已有自定义排序。清空搜索后,可点击列标题或停靠栏分组标题上的重置图标重置该层级。重置全部排序时,桌面端可点击“位置”列标题右侧的刷新图标,提示为“重置全部排序”;移动端可点击底部的重置全部排序按钮。确认后保存,取消则放弃修改。重置排序会保留显隐和停靠栏入口所在位置,重置后的层级持续跟随后续版本的默认排序。"}]},diff --git a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.syindex 2faf5a8b83..9cd9424d5d 100644--- a/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy+++ b/app/guide/20211226090932-5lcq56f/20211226115423-d5z1joq/20211226121203-rjjngpz/20211226122549-jktxego.sy@@ -7,7 +7,7 @@"id": "20211226122549-jktxego","title": "快捷鍵","type": "doc",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -4216,7 +4216,7 @@"HeadingLevel": 2,"Properties": {"id": "20211226122652-htptsmh",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -9982,7 +9982,7 @@"HeadingLevel": 3,"Properties": {"id": "20260928091724-sj0935a",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -10037,12 +10037,12 @@"Type": "NodeParagraph","Properties": {"id": "20260927164841-7yj0cwc",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{"Type": "NodeText",- "Data": "編輯自訂方案時,可透過分類選擇框切換工具列與斜線選單。拖曳項目左側的六點把手調整順序,使用項目開關調整顯隱;拖至清單邊緣可捲動。排序前需清空搜尋,修改後確認儲存方案。內建方案唯讀,可複製後自訂,再啟用儲存的方案。方案儲存在本裝置,不跨裝置同步。基於簡潔或完整建立的新方案,其未自訂的層級排序會隨版本預設順序更新;基於目前方案建立或複製方案會保留既有自訂排序。清空搜尋後,可點擊欄標題或停靠欄分組標題上的重設圖示重設該層級,也可點擊底部的重設全部排序。確認後儲存,取消則放棄修改。重設排序會保留顯隱和停靠欄入口所在位置,重設後的層級持續跟隨後續版本的預設排序。"+ "Data": "編輯自訂方案時,可透過分類選擇框切換工具列與斜線選單。拖曳項目左側的六點把手調整順序,使用項目開關調整顯隱;拖至清單邊緣可捲動。排序前需清空搜尋,修改後確認儲存方案。內建方案唯讀,可複製後自訂,再啟用儲存的方案。方案儲存在本裝置,不跨裝置同步。基於簡潔或完整建立的新方案,其未自訂的層級排序會隨版本預設順序更新;基於目前方案建立或複製方案會保留既有自訂排序。清空搜尋後,可點擊欄標題或停靠欄分組標題上的重設圖示重設該層級。重設全部排序時,桌面端可點擊「位置」欄標題右側的重新整理圖示,提示為「重設全部排序」;行動端可點擊底部的重設全部排序按鈕。確認後儲存,取消則放棄修改。重設排序會保留顯隱和停靠欄入口所在位置,重設後的層級持續跟隨後續版本的預設排序。"}]},diff --git a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.sy b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.syindex 481c7a0eb3..11b3ae98f1 100644--- a/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.sy+++ b/app/guide/20240530133126-axarxgx/20240530101000-4qitucx/20240530101000-g3ugxml/20240530101000-xsbxokr.sy@@ -9,7 +9,7 @@"id": "20240530101000-xsbxokr","title": "ショートカット","type": "doc",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -4178,7 +4178,7 @@"Properties": {"ID": "20240530101000-twmuxke","id": "20240530101000-675gu9g",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -9918,7 +9918,7 @@"HeadingLevel": 3,"Properties": {"id": "20260928091724-dfq9c2s",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{@@ -9973,12 +9973,12 @@"Type": "NodeParagraph","Properties": {"id": "20260927164841-2wtv9yz",- "updated": "20260930103944"+ "updated": "20260930171029"},"Children": [{"Type": "NodeText",- "Data": "カスタムプロファイルでは、分類の選択欄でツールバーとスラッシュメニューを切り替えます。項目の左側にある6つの点のハンドルをドラッグして順序を変更し、スイッチで表示・非表示を設定します。リストの端までドラッグするとスクロールします。並べ替える前に検索欄を空にし、変更後は確認してプロファイルを保存します。組み込みプロファイルは読み取り専用です。複製してカスタマイズし、保存したプロファイルを有効にしてください。プロファイルはこの端末に保存され、端末間では同期されません。シンプルまたは完全を基に作成した新しいプロファイルでは、カスタマイズしていない階層の並び順はバージョンごとの初期順序に従います。現在の設定を基に作成する場合や複製する場合は、既存のカスタム順序を引き継ぎます。検索欄を空にし、列またはドックグループの見出しにあるリセットアイコンを押すと、その階層をリセットできます。下部の「すべての並び順をリセット」で全階層をリセットできます。確認すると保存され、キャンセルすると変更を破棄します。並び順のリセットでは表示設定とドック項目の配置場所は維持され、リセットした階層は今後の初期順序の変更にも従います。"+ "Data": "カスタムプロファイルでは、分類の選択欄でツールバーとスラッシュメニューを切り替えます。項目の左側にある6つの点のハンドルをドラッグして順序を変更し、スイッチで表示・非表示を設定します。リストの端までドラッグするとスクロールします。並べ替える前に検索欄を空にし、変更後は確認してプロファイルを保存します。組み込みプロファイルは読み取り専用です。複製してカスタマイズし、保存したプロファイルを有効にしてください。プロファイルはこの端末に保存され、端末間では同期されません。シンプルまたは完全を基に作成した新しいプロファイルでは、カスタマイズしていない階層の並び順はバージョンごとの初期順序に従います。現在の設定を基に作成する場合や複製する場合は、既存のカスタム順序を引き継ぎます。検索欄を空にし、列またはドックグループの見出しにあるリセットアイコンを押すと、その階層をリセットできます。全階層をリセットするには、デスクトップでは「位置」列の見出し右側にある更新アイコン(「すべての並び順をリセット」)、モバイルでは下部の「すべての並び順をリセット」ボタンを押します。確認すると保存され、キャンセルすると変更を破棄します。並び順のリセットでは表示設定とドック項目の配置場所は維持され、リセットした階層は今後の初期順序の変更にも従います。"}]},diff --git a/app/src/config/entryVisibility/mobileUi.test.ts b/app/src/config/entryVisibility/mobileUi.test.tsindex ba3cf33181..cbda79282f 100644--- a/app/src/config/entryVisibility/mobileUi.test.ts+++ b/app/src/config/entryVisibility/mobileUi.test.ts@@ -217,6 +217,27 @@ const browserCases = async (sources: Record<string, string>, languages: Record<sview = open();check(!view.querySelector("[data-type='entry-section']"), "Desktop retains its location column");check(view.querySelector(".config-entry-visibility__column--locations"), "Desktop locations remain reachable");+ const resetAllSelector = ".config-entry-visibility__column--locations .config-entry-visibility__column-title " ++ "[data-action='reset-all-entry-orders']";+ const desktopReset = view.querySelector<HTMLElement>(resetAllSelector);+ check(desktopReset?.querySelector("use").getAttribute("xlink:href") === "#iconRefresh",+ "Desktop reset all uses the shared refresh icon in the location title");+ check(desktopReset.getAttribute("aria-label") === languages.entryResetAllOrders,+ "Desktop reset all retains its distinct accessible label");+ check(!view.querySelector(".b3-dialog__action [data-action='reset-all-entry-orders']"),+ "Desktop footer must not duplicate reset all");+ desktopReset.click();+ check(config().profiles[0].orders["editor.slash.menu"], "Desktop reset all remains a draft");+ view.querySelector<HTMLElement>("[data-action='cancel']").click();+ check(config().profiles[0].orders["editor.slash.menu"], "Cancelling desktop reset preserves orders");+ view = open();+ view.querySelector<HTMLElement>(resetAllSelector).click();+ view.querySelector<HTMLElement>("[data-action='confirm']").click();+ check(Object.keys(config().profiles[0].orders).length === 0, "Confirming desktop reset clears all orders");+ config().profiles[0].orders["editor.slash.menu"] = order;+ view = open("full");+ check(!view.querySelector("[data-action='reset-all-entry-orders']"), "Desktop built-in profiles do not offer resets");+ view = open();view.querySelector<HTMLElement>("[data-entry-section='editor.slash']").click();const desktopBrowser = view.querySelector<HTMLElement>("[data-type='entry-browser']");const first = desktopBrowser.querySelector<HTMLElement>("[data-entry-key='heading1']");diff --git a/app/src/config/entryVisibility/ui.ts b/app/src/config/entryVisibility/ui.tsindex 732ccb51c9..494cfc1dc1 100644--- a/app/src/config/entryVisibility/ui.ts+++ b/app/src/config/entryVisibility/ui.ts@@ -312,9 +312,9 @@ const renderEntryColumn = (profile: Config.IEntryVisibilityProfile, title: strin</div></section>`;-const renderOrderReset = (prefix: string) => `<button class="block__icon block__icon--show ariaLabel"- data-action="reset-entry-order" data-entry-parent="${escapeAttr(prefix)}" data-position="north"- aria-label="${escapeAttr(window.siyuan.languages.entryResetOrder)}">+const renderOrderReset = (prefix?: string) => `<button class="block__icon block__icon--show ariaLabel"+ data-action="${prefix ? "reset-entry-order" : "reset-all-entry-orders"}"${prefix ? ` data-entry-parent="${escapeAttr(prefix)}"` : ""} data-position="north"+ aria-label="${escapeAttr(window.siyuan.languages[prefix ? "entryResetOrder" : "entryResetAllOrders"])}"><svg><use xlink:href="#iconRefresh"></use></svg></button>`;@@ -451,7 +451,10 @@ const renderEntryColumns = (profile: Config.IEntryVisibilityProfile, sectionKey:: catalog;const section = sections.find((item) => item.key === sectionKey) || sections[0] || catalog[0];const locationColumn = `<section class="config-entry-visibility__column config-entry-visibility__column--locations" data-entry-column>- <div class="config-entry-visibility__column-title">${window.siyuan.languages.position}</div>+ <div class="config-entry-visibility__column-title">+ <span class="fn__ellipsis fn__flex-1">${window.siyuan.languages.position}</span>+ ${readOnly ? "" : renderOrderReset()}+ </div><div class="config-entry-visibility__column-list">${sections.map((item) => renderEntryLocation(profile, item, item.key === section.key, readOnly)).join("")}</div>@@ -598,7 +601,7 @@ const openProfileEditor = (root: HTMLElement, profileID?: string) => {<div class="config-entry-visibility__browser" data-type="entry-browser"></div></div><div class="b3-dialog__action">- ${builtin ? "" : `<button class="b3-button b3-button--outline config-entry-visibility__reset-orders ariaLabel" data-action="reset-all-entry-orders" data-position="north" aria-label="${escapeAttr(window.siyuan.languages.entryResetAllOrders)}"><span class="fn__ellipsis">${window.siyuan.languages.entryResetAllOrders}</span></button><span class="fn__space fn__flex-1"></span>`}+ ${builtin || !isMobile() ? "" : `<button class="b3-button b3-button--outline config-entry-visibility__reset-orders ariaLabel" data-action="reset-all-entry-orders" data-position="north" aria-label="${escapeAttr(window.siyuan.languages.entryResetAllOrders)}"><span class="fn__ellipsis">${window.siyuan.languages.entryResetAllOrders}</span></button><span class="fn__space fn__flex-1"></span>`}${builtin ? `<button class="b3-button b3-button--text" data-action="cancel">${window.siyuan.languages.close}</button>` : `<button class="b3-button b3-button--cancel" data-action="cancel">${window.siyuan.languages.cancel}</button><span class="fn__space"></span><button class="b3-button b3-button--text" data-action="confirm">${window.siyuan.languages.confirm}</button>`}