feat(update): integrate managed installs and recoverable in-app updates (#6168)
Add owner-aware Stable and Preview updates with explicit consent, verified release plans, protected process handoff and bounded service recovery. Keep configuration and conversations separate from program rollback. Include the compact About controls, Windows long-path support, native package recovery checks and optional macOS Dock lifecycle integration. Preserve documented guidance for installations owned by other managers. This code integration does not publish packages, enable signing or advance the public update channel. Co-authored-by: chengyongru <61816729+chengyongru@users.noreply.github.com>
This commit is contained in:
1 parent
76da55994b
commit
fbb61a373f
216 files changed
+27948
-1084
No files matched your search
@@ -76,3 +76,27 @@ it("keeps the visible assistant identity when translating existing interaction f
|
||||
|
||||
expect(preview.getByText("Support assistant:已关闭")).toBeVisible();
|
||||
});
|
||||
|
||||
it("quietly keeps Preview selection and translates update feedback without executing an update", async () => {
|
||||
const source = "webui/src/components/settings/overview/VersionCheckRowView.tsx";
|
||||
window.history.replaceState({}, "", `/gallery.html#${new URLSearchParams({ component: source })}`);
|
||||
const fetch = vi.fn().mockResolvedValue({ ok: true, json: async () => inventory });
|
||||
vi.stubGlobal("fetch", fetch);
|
||||
render(<Gallery />);
|
||||
const preview = within(await screen.findByRole("region", { name: "Component preview" }));
|
||||
await userEvent.click(preview.getByRole("combobox", { name: "Version state" }));
|
||||
await userEvent.click(await screen.findByRole("option", { name: "preview" }));
|
||||
const toggle = preview.getByRole("switch", { name: "Receive preview updates" });
|
||||
await userEvent.click(toggle);
|
||||
expect(toggle).toBeChecked();
|
||||
expect(preview.queryByText("Sample preference saved; nothing will be installed or restarted.")).toBeNull();
|
||||
await userEvent.click(preview.getByRole("button", { name: "Update" }));
|
||||
expect(preview.getByText("Update review selected; this preview does not install or restart anything.")).toBeVisible();
|
||||
|
||||
await chooseChinese();
|
||||
|
||||
expect(preview.getByText("已选择查看更新;组件预览不会安装或重启。")).toBeVisible();
|
||||
expect(toggle).toBeChecked();
|
||||
expect(preview.getByText("v0.3.7.dev2026101501")).toBeVisible();
|
||||
expect(fetch).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
Reference in new issue
Block a user