@omercnet/paseo-pr-radar 1.2.2 → 2.0.0-next.256.1
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/README.md +6 -8
- package/client/screen-state.ts +0 -12
- package/index.client.tsx +16 -31
- package/package.json +6 -6
- package/paseo-plugin.json +1 -1
package/README.md
CHANGED
|
@@ -32,15 +32,13 @@ DevTools before capture. Both PNGs come from an isolated Paseo test daemon at 2
|
|
|
32
32
|
|
|
33
33
|
Paseo supplies normalized workspace pull request status. A daemon-side plugin handler uses the authenticated `gh` CLI to distinguish authored pull requests from review requests. If viewer lookup fails, PR Radar falls back conservatively and does not claim that a row needs the user.
|
|
34
34
|
|
|
35
|
-
##
|
|
35
|
+
## Sidebar row
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
The sidebar row shows a "needs you" count; pressing the count opens a popover of those pull requests. Pressing one opens PR Radar focused on it (`param.pr`), and the needs-you link filters the queue (`param.filter`), so both survive reload and can be linked. A trailing `+` marks a count that may be incomplete: viewer lookup failed, a pagination or inbox cap was hit, or workspace status was unavailable.
|
|
38
38
|
|
|
39
39
|
## Install
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Paseo 0.9 and 0.10.1 support npm plugin sources. Install the published package on the daemon host:
|
|
41
|
+
Install the published package on the daemon host:
|
|
44
42
|
|
|
45
43
|
```bash
|
|
46
44
|
paseo plugin install npm:@omercnet/paseo-pr-radar
|
|
@@ -52,7 +50,7 @@ Update an npm installation to the latest published release:
|
|
|
52
50
|
paseo plugin update pr-radar
|
|
53
51
|
```
|
|
54
52
|
|
|
55
|
-
The npm install and update flow requires Paseo 0.
|
|
53
|
+
The npm install and update flow requires Paseo `^0.11.0` with npm available on the daemon host.
|
|
56
54
|
|
|
57
55
|
|
|
58
56
|
The daemon must have plugins enabled and `gh` authenticated for GitHub viewer-aware triage.
|
|
@@ -70,7 +68,7 @@ bun run typecheck
|
|
|
70
68
|
Release Please maintains the version, changelog, component tag, and GitHub release from
|
|
71
69
|
Conventional Commits in the monorepo.
|
|
72
70
|
|
|
73
|
-
The manifest supports Paseo `^0.
|
|
74
|
-
and protocol packages together. Host-owned navigation opens linked agents and workspaces without private routes or
|
|
71
|
+
The manifest supports Paseo `^0.11.0`. Development uses the 0.11 CLI, client, plugin SDK,
|
|
72
|
+
and protocol packages together from the workspace catalog. Host-owned navigation opens linked agents and workspaces without private routes or
|
|
75
73
|
page reloads on web, desktop, iOS, and Android. React `19.1` and React Native `0.81` match the versions supplied by
|
|
76
74
|
the plugin host.
|
package/client/screen-state.ts
CHANGED
|
@@ -50,15 +50,3 @@ export function needsYouSummary(
|
|
|
50
50
|
const items = rows.filter((row) => row.bucket === "needs-you");
|
|
51
51
|
return { items, label: loading ? "…" : `${items.length}${warnings.length ? "+" : ""}` };
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
export function supportsRadarScreen(
|
|
55
|
-
client: { addScreen?: unknown; addSidebarHeaderItem?: unknown; openScreen?: unknown },
|
|
56
|
-
sidebarRow: unknown,
|
|
57
|
-
) {
|
|
58
|
-
return (
|
|
59
|
-
typeof client.addScreen === "function" &&
|
|
60
|
-
typeof client.addSidebarHeaderItem === "function" &&
|
|
61
|
-
typeof client.openScreen === "function" &&
|
|
62
|
-
typeof sidebarRow === "function"
|
|
63
|
-
);
|
|
64
|
-
}
|
package/index.client.tsx
CHANGED
|
@@ -1,38 +1,23 @@
|
|
|
1
1
|
import type { PluginClientContext } from "@getpaseo/plugin/client";
|
|
2
|
-
import { SidebarRow } from "@getpaseo/plugin/client/ui";
|
|
3
2
|
import { PrRadar } from "./client/pr-radar";
|
|
4
|
-
import { supportsRadarScreen } from "./client/screen-state";
|
|
5
3
|
import { RadarSidebar } from "./client/sidebar";
|
|
6
4
|
|
|
7
5
|
export default function contribute(client: PluginClientContext) {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
client.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
});
|
|
15
|
-
client.addSidebarHeaderItem({ id: "radar", title: "PR Radar", Component: RadarSidebar });
|
|
16
|
-
} else {
|
|
17
|
-
client.addSurface("radar", PrRadar);
|
|
18
|
-
client.addSidebarItem({
|
|
19
|
-
id: "radar",
|
|
20
|
-
title: "PR Radar",
|
|
6
|
+
const removers = [
|
|
7
|
+
client.addScreen({ id: "radar", title: "PR Radar", Component: PrRadar }),
|
|
8
|
+
client.addSidebarHeaderItem({ id: "radar", title: "PR Radar", Component: RadarSidebar }),
|
|
9
|
+
client.addCommandCenterItem({
|
|
10
|
+
id: "open-radar",
|
|
11
|
+
title: "Open PR Radar",
|
|
21
12
|
icon: "GitPullRequest",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (screens && typeof capabilities.openScreen === "function")
|
|
33
|
-
capabilities.openScreen({ screenId: "radar" });
|
|
34
|
-
else capabilities.openSurface("radar");
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
return () => {};
|
|
13
|
+
keywords: ["pull requests", "delivery", "merge", "agents"],
|
|
14
|
+
context: "global",
|
|
15
|
+
onSelect({ openScreen }) {
|
|
16
|
+
openScreen({ screenId: "radar" });
|
|
17
|
+
},
|
|
18
|
+
}),
|
|
19
|
+
];
|
|
20
|
+
return () => {
|
|
21
|
+
for (const remove of removers.reverse()) remove();
|
|
22
|
+
};
|
|
38
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omercnet/paseo-pr-radar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-next.256.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A viewer-aware delivery queue for pull requests linked to Paseo workspaces.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"packageManager": "bun@1.4.
|
|
20
|
+
"packageManager": "bun@1.4.3",
|
|
21
21
|
"engines": {
|
|
22
22
|
"node": ">=24"
|
|
23
23
|
},
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@biomejs/biome": "^2.5.10",
|
|
50
|
-
"@getpaseo/cli": "0.11.
|
|
51
|
-
"@getpaseo/client": "0.11.
|
|
52
|
-
"@getpaseo/plugin": "0.11.
|
|
53
|
-
"@getpaseo/protocol": "0.11.
|
|
50
|
+
"@getpaseo/cli": "0.11.1",
|
|
51
|
+
"@getpaseo/client": "0.11.1",
|
|
52
|
+
"@getpaseo/plugin": "0.11.1",
|
|
53
|
+
"@getpaseo/protocol": "0.11.1",
|
|
54
54
|
"@tanstack/react-query": "^5.102.3",
|
|
55
55
|
"@types/node": "^24.10.1",
|
|
56
56
|
"@types/react": "^19.2.18",
|
package/paseo-plugin.json
CHANGED