@agent-native/dispatch 0.13.1 → 0.13.3

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.
Files changed (30) hide show
  1. package/dist/actions/create-pylon-ticket.js +2 -1
  2. package/dist/actions/create-pylon-ticket.js.map +1 -1
  3. package/dist/actions/send-platform-message.js +7 -7
  4. package/dist/actions/send-platform-message.js.map +1 -1
  5. package/dist/components/dispatch-control-plane.js +1 -1
  6. package/dist/components/dispatch-control-plane.js.map +1 -1
  7. package/dist/components/layout/Header.d.ts.map +1 -1
  8. package/dist/components/layout/Header.js +0 -1
  9. package/dist/components/layout/Header.js.map +1 -1
  10. package/dist/components/layout/Layout.d.ts +4 -1
  11. package/dist/components/layout/Layout.d.ts.map +1 -1
  12. package/dist/components/layout/Layout.js +55 -17
  13. package/dist/components/layout/Layout.js.map +1 -1
  14. package/dist/hooks/use-navigation-state.js +2 -2
  15. package/dist/hooks/use-navigation-state.js.map +1 -1
  16. package/dist/routes/pages/settings.d.ts.map +1 -1
  17. package/dist/routes/pages/settings.js +4 -2
  18. package/dist/routes/pages/settings.js.map +1 -1
  19. package/dist/routes/pages/team.d.ts.map +1 -1
  20. package/dist/routes/pages/team.js +2 -3
  21. package/dist/routes/pages/team.js.map +1 -1
  22. package/package.json +2 -2
  23. package/src/actions/create-pylon-ticket.ts +2 -1
  24. package/src/actions/send-platform-message.ts +12 -8
  25. package/src/components/dispatch-control-plane.tsx +1 -1
  26. package/src/components/layout/Header.tsx +0 -1
  27. package/src/components/layout/Layout.tsx +229 -102
  28. package/src/hooks/use-navigation-state.ts +2 -2
  29. package/src/routes/pages/settings.tsx +70 -47
  30. 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
- <div className="mx-auto w-full max-w-3xl space-y-6">
32
- <Card>
33
- <CardHeader>
34
- <CardTitle className="text-base">
35
- {t("settings.languageTitle")}
36
- </CardTitle>
37
- <CardDescription>
38
- {t("settings.languageDescription")}
39
- </CardDescription>
40
- </CardHeader>
41
- <CardContent className="max-w-xs space-y-1.5">
42
- <Label>{t("settings.languageLabel")}</Label>
43
- <LanguagePicker label={t("settings.languageLabel")} />
44
- </CardContent>
45
- </Card>
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
- <Card>
48
- <CardHeader>
49
- <CardTitle className="text-base">
50
- {t("settings.workspaceTitle")}
51
- </CardTitle>
52
- <CardDescription>
53
- {t("settings.workspaceDescription")}
54
- </CardDescription>
55
- </CardHeader>
56
- <CardContent className="flex flex-wrap gap-2">
57
- <Button variant="outline" asChild>
58
- <Link to="/team">{t("settings.openTeamSettings")}</Link>
59
- </Button>
60
- <Button variant="outline" asChild>
61
- <Link to="/workspace">{t("settings.openResourceSettings")}</Link>
62
- </Button>
63
- </CardContent>
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
- <Card>
67
- <CardHeader>
68
- <CardTitle className="text-base">
69
- {t("settings.agentTitle")}
70
- </CardTitle>
71
- <CardDescription>{t("settings.agentDescription")}</CardDescription>
72
- </CardHeader>
73
- <CardContent>
74
- <Button variant="outline" onClick={() => openAgentSettings()}>
75
- {t("settings.openAgentSettings")}
76
- </Button>
77
- </CardContent>
78
- </Card>
79
- </div>
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 { TeamPage } from "@agent-native/core/client/org";
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
  }