mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 09:39:53 +01:00
Merge branch 'master' of https://github.com/paperclipai/paperclip into fix/runner-paid-matrix-integrity
* 'master' of https://github.com/paperclipai/paperclip: feat(ui): refine streamlined task experience (#12748) feat(ui): refine streamlined workspace surfaces (#12747) feat(ui): add streamlined navigation foundation (#12746)
This commit is contained in:
commit
cb9f13e6df
192 files changed
+38922
-3786
No files matched your search
@@ -270,6 +270,24 @@ describe("instance settings routes", () => {
|
||||
.expect(404);
|
||||
});
|
||||
|
||||
it("accepts the instance-wide Streamlined UI preference", async () => {
|
||||
const app = await createApp({
|
||||
type: "board",
|
||||
userId: "local-board",
|
||||
source: "local_implicit",
|
||||
isInstanceAdmin: true,
|
||||
});
|
||||
|
||||
await request(app)
|
||||
.patch("/api/instance/settings/experimental")
|
||||
.send({ enableStreamlinedUi: false })
|
||||
.expect(200);
|
||||
|
||||
expect(mockInstanceSettingsService.updateExperimental).toHaveBeenCalledWith({
|
||||
enableStreamlinedUi: false,
|
||||
});
|
||||
});
|
||||
|
||||
it("strips server-managed worktree run execution fields before updating experimental settings", async () => {
|
||||
const app = await createApp({
|
||||
type: "board",
|
||||
|
||||
@@ -29,6 +29,7 @@ describe("instance settings service", () => {
|
||||
enableManagedSandboxOnly: false,
|
||||
enableIsolatedWorkspaces: true,
|
||||
enableStreamlinedLeftNavigation: true,
|
||||
enableStreamlinedUi: true,
|
||||
enableApps: true,
|
||||
enableConferenceRoomChat: false,
|
||||
enableClassicTaskInterface: false,
|
||||
@@ -59,6 +60,15 @@ describe("instance settings service", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("defaults streamlined UI on without inheriting the retired navigation preference", () => {
|
||||
expect(normalizeExperimentalSettings(undefined).enableStreamlinedUi).toBe(true);
|
||||
expect(normalizeExperimentalSettings({}).enableStreamlinedUi).toBe(true);
|
||||
expect(
|
||||
normalizeExperimentalSettings({ enableStreamlinedLeftNavigation: false }).enableStreamlinedUi,
|
||||
).toBe(true);
|
||||
expect(normalizeExperimentalSettings({ enableStreamlinedUi: false }).enableStreamlinedUi).toBe(false);
|
||||
});
|
||||
|
||||
it("keeps Apps on for empty, legacy, and explicitly disabled stored settings", () => {
|
||||
expect(normalizeExperimentalSettings(undefined).enableApps).toBe(true);
|
||||
expect(normalizeExperimentalSettings({}).enableApps).toBe(true);
|
||||
|
||||
@@ -224,6 +224,7 @@ export function normalizeExperimentalSettings(raw: unknown): InstanceExperimenta
|
||||
enableManagedSandboxOnly: parsed.data.enableManagedSandboxOnly ?? false,
|
||||
enableIsolatedWorkspaces: parsed.data.enableIsolatedWorkspaces ?? false,
|
||||
enableStreamlinedLeftNavigation: parsed.data.enableStreamlinedLeftNavigation ?? true,
|
||||
enableStreamlinedUi: parsed.data.enableStreamlinedUi ?? true,
|
||||
// Apps graduated from Experimental. Ignore historical off values while
|
||||
// continuing to accept the compatibility key in stored settings.
|
||||
enableApps: true,
|
||||
@@ -262,6 +263,7 @@ export function normalizeExperimentalSettings(raw: unknown): InstanceExperimenta
|
||||
enableManagedSandboxOnly: false,
|
||||
enableIsolatedWorkspaces: false,
|
||||
enableStreamlinedLeftNavigation: true,
|
||||
enableStreamlinedUi: true,
|
||||
enableApps: true,
|
||||
enablePipelines: false,
|
||||
enableCases: false,
|
||||
|
||||
Reference in new issue
Block a user