@michengai/dsh-archive-manager 1.1.22 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@
4
4
 
5
5
  Published release notes are retained below; new versions are added without removing earlier entries.
6
6
 
7
+ ## 1.2.0 - 2026-11-03
8
+
9
+ - **Entry placement upgraded to 3-state control** (#103):
10
+ - Replaces the single sidebar toggle in plugin settings with a native 3-state segmented control (All locations / Sidebar only / Settings only), preventing accidental panel loss caused by disabling both entry points;
11
+ - Choosing "Sidebar only" unregisters the "Archived sessions" entry from the settings dialog for a cleaner settings view;
12
+ - Shows an inline error message when saving entry placement fails, preventing silent rollbacks;
13
+ - Automatically migrates existing configurations seamlessly with full backward compatibility.
14
+
7
15
  ## 1.1.22 - 2026-10-30
8
16
 
9
17
  - Add folder icons beside workspace names in the “Move to workspace” submenu, making destination workspaces easier to recognize.
@@ -4,6 +4,14 @@
4
4
 
5
5
  以下发布说明会持续保留;新增版本时不再删除较早记录。
6
6
 
7
+ ## 1.2.0 - 2026-11-03
8
+
9
+ - **入口展示位置升级为三选一设置**(#103):
10
+ - 在插件配置页将原有的侧边栏单选开关升级为原生分段选择器,支持选择「两边显示」、「仅侧边栏」或「仅设置」,彻底解决两处同时关闭可能导致的面板失联问题;
11
+ - 选择「仅侧边栏」时,系统设置弹窗中的「归档会话」菜单项会自动隐藏注销,保持设置界面整洁;
12
+ - 保存入口展示位置失败时在界面直接显示错误提示,不再静默回弹;
13
+ - 自动向后兼容旧版配置,已有配置无需重新设置。
14
+
7
15
  ## 1.1.22 - 2026-10-30
8
16
 
9
17
  - 在「移动到工作区」子菜单的工作区名称旁增加文件夹图标,方便识别目标工作区。
package/README.md CHANGED
@@ -123,15 +123,18 @@ Restart DSH Web, then refresh the page (or hard-refresh with `Ctrl+Shift+R`). Op
123
123
  The plugin follows standard DSH bundle configuration conventions. Options are located at:
124
124
  > **Sidebar → Plugins → Click `Archive Manager`** (the host's `plugins.bundle.config` slot).
125
125
 
126
- Two native switches are available:
127
-
128
- ### 1. Sidebar Entry (`sidebarEntry`)
129
- - **Default**: Disabled (`false`)
130
- - **Description**: Displays a persistent **Archive** navigation icon in the host's left primary sidebar under **Plugins**.
126
+ Native configuration options are available:
127
+
128
+ ### 1. Entry Location (`entryLocation`)
129
+ - **Options**:
130
+ - **All locations (`both`)**: Displays the Archive navigation icon in the left sidebar and keeps the menu entry under **Settings → Archived sessions**.
131
+ - **Sidebar only (`sidebar`)**: Displays the Archive navigation icon in the left sidebar and unregisters the settings section for a streamlined settings dialog.
132
+ - **Settings only (`settings`)** (Default): Keeps the entry under **Settings → Archived sessions** while maintaining a minimal sidebar.
133
+ - **Fail-safe Guarantee**: A mutually-exclusive 3-state segmented control ensures at least one entry point is always accessible, preventing accidental orphan states.
131
134
  - **Effect**:
132
- - When enabled, clicking the sidebar icon opens the Archive Manager directly in the primary workspace with a **960px centered container** (matching host plugin manager conventions). This eliminates vertical scrolling constraints in narrow settings dialogs;
133
- - When disabled, unregisters the sidebar entry cleanly (and resets the active panel gracefully if currently viewing the panel, preventing blank views);
134
- - The standard **Settings → Archived sessions** view remains active either way, and state is synchronized live across both entry points.
135
+ - When the sidebar is enabled, clicking the icon opens Archive Manager directly in the primary workspace with a **960px centered container** (matching host plugin manager conventions). This eliminates vertical scrolling constraints in narrow settings dialogs;
136
+ - When switching to **Settings only**, safely unregisters the sidebar entry (and resets the active panel gracefully if currently viewing the panel, preventing blank views);
137
+ - Backward compatible with legacy `sidebarEntry` boolean settings (`true` maps to `both`, `false` maps to `settings`).
135
138
 
136
139
  ### 2. Online Updates (`onlineUpdate` / `updater`)
137
140
  - **Default**: Enabled (`true`)
package/README.zh-CN.md CHANGED
@@ -127,15 +127,18 @@ dsh plugin --profile web add @michengai/dsh-archive-manager@latest --registry=ht
127
127
  插件遵循 DSH 官方扩展配置规范,配置项位于:
128
128
  > **主界面侧边栏「插件」→ 点击 `Archive Manager` 详情页**(对应宿主 `plugins.bundle.config` 槽位)。
129
129
 
130
- 此处提供两个原生扁平行开关:
131
-
132
- ### 1. 侧边栏入口 (`sidebarEntry`)
133
- - **默认状态**:关闭(`false`)
134
- - **功能说明**:在宿主左侧主导航栏的「插件」下方增加常驻的 **「归档」** 图标入口。
130
+ 此处提供原生配置项:
131
+
132
+ ### 1. 入口展示位置 (`entryLocation`)
133
+ - **选项范围**:
134
+ - **全部显示 (`both`)**:在左侧主导航栏显示「归档」图标,同时在「设置 → 归档会话」中保留菜单。
135
+ - **仅侧边栏 (`sidebar`)**:仅在左侧主导航栏显示「归档」图标,设置菜单中自动卸载隐藏,界面更精炼。
136
+ - **仅设置 (`settings`)**(默认):仅在「设置 → 归档会话」中显示,侧边栏保持极简。
137
+ - **防止失联保障**:采用互斥的三选一分段选择器,杜绝两处入口同时关闭导致面板失联的痛点。
135
138
  - **生效效果**:
136
- - 开启后,在侧边栏点击即可直达归档中心,并在主工作区以 **960px 居中版心**(对齐官方插件管理与市场规范)展开完整大面板,彻底告别在设置弹窗狭窄视口内滚动的局限;
137
- - 关闭后安全注销侧栏槽位(若当前正停留在归档大面板,会自动安全切回默认视图,防止悬空和白屏);
138
- - 无论是否开启侧栏入口,DSH 原有的「设置 → 归档会话」入口始终保留,两处界面数据与操作 100% 实时同步。
139
+ - 侧边栏开启时,点击即可直达归档中心,并在主工作区以 **960px 居中版心**(对齐官方插件管理与市场规范)展开完整大面板,彻底告别在设置弹窗狭窄视口内滚动的局限;
140
+ - 切换为「仅设置」关闭侧栏时安全注销侧栏槽位(若当前正停留在归档大面板,会自动安全切回默认视图,防止悬空和白屏);
141
+ - 向后完全兼容旧版 `sidebarEntry` 配置(`true` 自动映射为 `both`,`false` 自动映射为 `settings`)。
139
142
 
140
143
  ### 2. 在线更新 (`onlineUpdate` / `updater`)
141
144
  - **默认状态**:开启(`true`)