mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-11 02:46:29 +00:00
* feat(app): add persistent workspace side panes Keep the common review and file-browsing workflow beside the active agent without tearing down pane contents. Workspace tabs now share one compact chip language, assistant file links route into the retained right pane, and diff/file trees share stable geometry. * fix(app): localize pull request empty state * test(app): update explorer pane coverage * fix(app): preserve explorer pane workflows * test(app): make explorer tab selection idempotent * fix(app): persist workspace review pins * fix(app): preserve sidebar scrim drag hook * fix(app): restore companion pane interactions * test(app): follow selected sidebar surface
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { getPullRequestIdentity, resolvePullRequestContentState } from "./state";
|
|
|
|
describe("pull request panel", () => {
|
|
it("resolves a manually opened panel without a pull request to the empty state", () => {
|
|
expect(resolvePullRequestContentState({ data: null, error: null, isLoading: false })).toBe(
|
|
"empty",
|
|
);
|
|
});
|
|
|
|
it("uses the canonical URL as the stable detected pull request identity", () => {
|
|
expect(
|
|
getPullRequestIdentity({
|
|
forge: "github",
|
|
number: 42,
|
|
url: "https://github.com/getpaseo/paseo/pull/42",
|
|
title: "PR panel",
|
|
state: "open",
|
|
baseRefName: "main",
|
|
headRefName: "feature",
|
|
isMerged: false,
|
|
isDraft: false,
|
|
mergeable: "MERGEABLE",
|
|
checks: [],
|
|
}),
|
|
).toBe("url:https://github.com/getpaseo/paseo/pull/42");
|
|
});
|
|
|
|
it("does not manufacture an identity while detection has no result", () => {
|
|
expect(getPullRequestIdentity(null)).toBeNull();
|
|
});
|
|
});
|