@agent-native/dispatch 0.13.1 → 0.13.2
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/dist/actions/create-pylon-ticket.js +2 -1
- package/dist/actions/create-pylon-ticket.js.map +1 -1
- package/dist/actions/send-platform-message.js +7 -7
- package/dist/actions/send-platform-message.js.map +1 -1
- package/dist/components/dispatch-control-plane.js +1 -1
- package/dist/components/dispatch-control-plane.js.map +1 -1
- package/dist/components/layout/Header.d.ts.map +1 -1
- package/dist/components/layout/Header.js +0 -1
- package/dist/components/layout/Header.js.map +1 -1
- package/dist/components/layout/Layout.d.ts.map +1 -1
- package/dist/components/layout/Layout.js +1 -8
- package/dist/components/layout/Layout.js.map +1 -1
- package/dist/hooks/use-navigation-state.js +2 -2
- package/dist/hooks/use-navigation-state.js.map +1 -1
- package/dist/routes/pages/settings.d.ts.map +1 -1
- package/dist/routes/pages/settings.js +4 -2
- package/dist/routes/pages/settings.js.map +1 -1
- package/dist/routes/pages/team.d.ts.map +1 -1
- package/dist/routes/pages/team.js +2 -3
- package/dist/routes/pages/team.js.map +1 -1
- package/package.json +2 -2
- package/src/actions/create-pylon-ticket.ts +2 -1
- package/src/actions/send-platform-message.ts +12 -8
- package/src/components/dispatch-control-plane.tsx +1 -1
- package/src/components/layout/Header.tsx +0 -1
- package/src/components/layout/Layout.tsx +0 -8
- package/src/hooks/use-navigation-state.ts +2 -2
- package/src/routes/pages/settings.tsx +70 -47
- package/src/routes/pages/team.tsx +2 -17
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ChangelogSettingsCard,
|
|
2
3
|
LanguagePicker,
|
|
4
|
+
SettingsTabsPage,
|
|
3
5
|
openAgentSettings,
|
|
4
6
|
useT,
|
|
5
7
|
} from "@agent-native/core/client";
|
|
8
|
+
import { TeamPage } from "@agent-native/core/client/org";
|
|
6
9
|
import { Link } from "react-router";
|
|
7
10
|
|
|
8
11
|
import { DispatchShell } from "@/components/dispatch-shell";
|
|
@@ -16,6 +19,8 @@ import {
|
|
|
16
19
|
} from "@/components/ui/card";
|
|
17
20
|
import { Label } from "@/components/ui/label";
|
|
18
21
|
|
|
22
|
+
import changelog from "../../../CHANGELOG.md?raw";
|
|
23
|
+
|
|
19
24
|
export function meta() {
|
|
20
25
|
return [{ title: "Settings - Dispatch" }];
|
|
21
26
|
}
|
|
@@ -28,55 +33,73 @@ export default function SettingsRoute() {
|
|
|
28
33
|
title={t("settings.title")}
|
|
29
34
|
description={t("settings.description")}
|
|
30
35
|
>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
<SettingsTabsPage
|
|
37
|
+
general={
|
|
38
|
+
<div className="mx-auto w-full max-w-3xl space-y-6">
|
|
39
|
+
<Card>
|
|
40
|
+
<CardHeader>
|
|
41
|
+
<CardTitle className="text-base">
|
|
42
|
+
{t("settings.languageTitle")}
|
|
43
|
+
</CardTitle>
|
|
44
|
+
<CardDescription>
|
|
45
|
+
{t("settings.languageDescription")}
|
|
46
|
+
</CardDescription>
|
|
47
|
+
</CardHeader>
|
|
48
|
+
<CardContent className="max-w-xs space-y-1.5">
|
|
49
|
+
<Label>{t("settings.languageLabel")}</Label>
|
|
50
|
+
<LanguagePicker label={t("settings.languageLabel")} />
|
|
51
|
+
</CardContent>
|
|
52
|
+
</Card>
|
|
46
53
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</Card>
|
|
54
|
+
<Card>
|
|
55
|
+
<CardHeader>
|
|
56
|
+
<CardTitle className="text-base">
|
|
57
|
+
{t("settings.workspaceTitle")}
|
|
58
|
+
</CardTitle>
|
|
59
|
+
<CardDescription>
|
|
60
|
+
{t("settings.workspaceDescription")}
|
|
61
|
+
</CardDescription>
|
|
62
|
+
</CardHeader>
|
|
63
|
+
<CardContent>
|
|
64
|
+
<Button variant="outline" asChild>
|
|
65
|
+
<Link to="/workspace">
|
|
66
|
+
{t("settings.openResourceSettings")}
|
|
67
|
+
</Link>
|
|
68
|
+
</Button>
|
|
69
|
+
</CardContent>
|
|
70
|
+
</Card>
|
|
65
71
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
<Card>
|
|
73
|
+
<CardHeader>
|
|
74
|
+
<CardTitle className="text-base">
|
|
75
|
+
{t("settings.agentTitle")}
|
|
76
|
+
</CardTitle>
|
|
77
|
+
<CardDescription>
|
|
78
|
+
{t("settings.agentDescription")}
|
|
79
|
+
</CardDescription>
|
|
80
|
+
</CardHeader>
|
|
81
|
+
<CardContent>
|
|
82
|
+
<Button variant="outline" onClick={() => openAgentSettings()}>
|
|
83
|
+
{t("settings.openAgentSettings")}
|
|
84
|
+
</Button>
|
|
85
|
+
</CardContent>
|
|
86
|
+
</Card>
|
|
87
|
+
</div>
|
|
88
|
+
}
|
|
89
|
+
team={
|
|
90
|
+
<div className="mx-auto w-full max-w-3xl">
|
|
91
|
+
<TeamPage
|
|
92
|
+
showTitle={false}
|
|
93
|
+
createOrgDescription="Set up a team to share dispatch destinations and approvals with your colleagues."
|
|
94
|
+
/>
|
|
95
|
+
</div>
|
|
96
|
+
}
|
|
97
|
+
whatsNew={
|
|
98
|
+
<div className="mx-auto w-full max-w-3xl">
|
|
99
|
+
<ChangelogSettingsCard markdown={changelog} />
|
|
100
|
+
</div>
|
|
101
|
+
}
|
|
102
|
+
/>
|
|
80
103
|
</DispatchShell>
|
|
81
104
|
);
|
|
82
105
|
}
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { DispatchShell } from "@/components/dispatch-shell";
|
|
1
|
+
import { Navigate } from "react-router";
|
|
4
2
|
|
|
5
3
|
export function meta() {
|
|
6
4
|
return [{ title: "Team — Dispatch" }];
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
export default function TeamRoute() {
|
|
10
|
-
return
|
|
11
|
-
<TeamPage
|
|
12
|
-
title="Team"
|
|
13
|
-
createOrgDescription="Set up a team to share dispatch destinations and approvals with your colleagues."
|
|
14
|
-
layout={(children) => (
|
|
15
|
-
<DispatchShell
|
|
16
|
-
title="Team"
|
|
17
|
-
description="Workspace membership and approval ownership."
|
|
18
|
-
>
|
|
19
|
-
{children}
|
|
20
|
-
</DispatchShell>
|
|
21
|
-
)}
|
|
22
|
-
/>
|
|
23
|
-
);
|
|
8
|
+
return <Navigate to="/settings#team" replace />;
|
|
24
9
|
}
|