feat(info): 信息面板 UI 重做 + 双向批量关联 + 代码块内全选复制

1. 信息面板 UI 重做:设计 token 统一、lucide 图标、分区小节、星标/标签/关联 chip 化
2. 关联文档升级:新增 doc:link-batch IPC,A↔B 双向写入 links;面板支持快速双向关联 + 批量勾选关联/解除
3. 代码块内全选复制:Ctrl+A 在代码块内仅全选该代码块(TyporaKeys selectInsideCodeBlock),Ctrl+C 复制纯代码;代码块内 Ctrl+V 按纯文本粘贴
4. 修复 React error #62:btn 改为函数后遗漏 style={btn} 裸用,导致 render 期间更新
This commit is contained in:
hunter-dev
2026-09-09 20:11:08 +08:00
parent f77324afe7
commit dc8d844a1f
10 changed files with 353 additions and 58 deletions
+4 -4
View File
@@ -200,12 +200,12 @@ test('DocInfoPanel: 星标+标签+关联可用', async () => {
await a.page.getByPlaceholder('添加标签').press('Enter');
await a.page.waitForTimeout(300);
await expect(a.page.getByText('testtag')).toBeVisible({ timeout: 3000 });
// 关联文档
// 关联文档(快速双向关联:下拉为文档名,按钮 title 建立双向关联)
const select = a.page.locator('select').first();
await select.selectOption('DocB.md');
await a.page.getByRole('button', { name: '关联' }).click();
await select.selectOption('DocB');
await a.page.getByRole('button', { name: '关联', exact: true }).click();
await a.page.waitForTimeout(300);
await expect(a.page.getByText('DocB.md')).toBeVisible({ timeout: 3000 });
await expect(a.page.getByTitle('DocB.md')).toBeVisible({ timeout: 3000 });
await a.app.close();
});