@shipfox/client-workspace-settings 0.2.0 → 2.0.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +45 -0
- package/dist/pages/events-settings-page.js +1 -1
- package/dist/pages/events-settings-page.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +26 -49
- package/src/pages/events-settings-page.tsx +1 -1
- package/test/typecheck/route-ids.tsx +7 -0
- package/test/typecheck/settings-composition.tsx +95 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/client-workspace-settings",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -11,60 +11,37 @@
|
|
|
11
11
|
"main": "dist/index.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"imports": {
|
|
14
|
-
"#*":
|
|
15
|
-
"types": "./src/*",
|
|
16
|
-
"workspace-source": "./src/*",
|
|
17
|
-
"development": "./src/*",
|
|
18
|
-
"default": "./dist/*"
|
|
19
|
-
},
|
|
14
|
+
"#*": "./dist/*",
|
|
20
15
|
"#test/*": "./test/*"
|
|
21
16
|
},
|
|
22
17
|
"exports": {
|
|
23
18
|
".": {
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
"default": "./src/index.ts"
|
|
27
|
-
},
|
|
28
|
-
"default": {
|
|
29
|
-
"types": "./dist/index.d.ts",
|
|
30
|
-
"default": "./dist/index.js"
|
|
31
|
-
}
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
32
21
|
},
|
|
33
22
|
"./feature": {
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
"default": "./src/feature.ts"
|
|
37
|
-
},
|
|
38
|
-
"default": {
|
|
39
|
-
"types": "./dist/feature.d.ts",
|
|
40
|
-
"default": "./dist/feature.js"
|
|
41
|
-
}
|
|
23
|
+
"types": "./dist/feature.d.ts",
|
|
24
|
+
"default": "./dist/feature.js"
|
|
42
25
|
},
|
|
43
26
|
"./routes/*": {
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
"default": "./src/routes/*.tsx"
|
|
47
|
-
},
|
|
48
|
-
"default": {
|
|
49
|
-
"types": "./dist/routes/*.d.ts",
|
|
50
|
-
"default": "./dist/routes/*.js"
|
|
51
|
-
}
|
|
27
|
+
"types": "./dist/routes/*.d.ts",
|
|
28
|
+
"default": "./dist/routes/*.js"
|
|
52
29
|
}
|
|
53
30
|
},
|
|
54
31
|
"dependencies": {
|
|
55
32
|
"@swc/helpers": "^0.5.17",
|
|
56
33
|
"@tanstack/react-form": "^1.32.0",
|
|
57
|
-
"@shipfox/client-agent": "
|
|
58
|
-
"@shipfox/api-workspaces-dto": "
|
|
59
|
-
"@shipfox/client-
|
|
60
|
-
"@shipfox/client-
|
|
61
|
-
"@shipfox/client-
|
|
62
|
-
"@shipfox/client-
|
|
63
|
-
"@shipfox/client-
|
|
64
|
-
"@shipfox/client-
|
|
65
|
-
"@shipfox/client-triggers": "
|
|
66
|
-
"@shipfox/
|
|
67
|
-
"@shipfox/
|
|
34
|
+
"@shipfox/client-agent": "2.0.0",
|
|
35
|
+
"@shipfox/api-workspaces-dto": "6.0.0",
|
|
36
|
+
"@shipfox/client-auth": "2.0.0",
|
|
37
|
+
"@shipfox/client-api": "1.0.0",
|
|
38
|
+
"@shipfox/client-integrations": "2.0.0",
|
|
39
|
+
"@shipfox/client-runners": "2.0.0",
|
|
40
|
+
"@shipfox/client-shell": "2.0.0",
|
|
41
|
+
"@shipfox/client-secrets": "2.0.0",
|
|
42
|
+
"@shipfox/client-triggers": "2.0.0",
|
|
43
|
+
"@shipfox/client-ui": "2.0.0",
|
|
44
|
+
"@shipfox/react-ui": "0.3.3"
|
|
68
45
|
},
|
|
69
46
|
"peerDependencies": {
|
|
70
47
|
"@tanstack/react-query": "^5.101.0",
|
|
@@ -84,13 +61,13 @@
|
|
|
84
61
|
"jsdom": "^29.0.0",
|
|
85
62
|
"react": "^19.1.1",
|
|
86
63
|
"react-dom": "^19.1.1",
|
|
87
|
-
"@shipfox/
|
|
88
|
-
"@shipfox/
|
|
89
|
-
"@shipfox/
|
|
90
|
-
"@shipfox/
|
|
91
|
-
"@shipfox/vitest": "1.2.
|
|
92
|
-
"@shipfox/typescript": "1.1.
|
|
93
|
-
"@shipfox/
|
|
64
|
+
"@shipfox/biome": "1.8.2",
|
|
65
|
+
"@shipfox/client-test-setup": "0.0.3",
|
|
66
|
+
"@shipfox/swc": "1.2.6",
|
|
67
|
+
"@shipfox/vite": "1.2.5",
|
|
68
|
+
"@shipfox/vitest": "1.2.3",
|
|
69
|
+
"@shipfox/typescript": "1.1.7",
|
|
70
|
+
"@shipfox/ts-config": "1.3.8"
|
|
94
71
|
},
|
|
95
72
|
"scripts": {
|
|
96
73
|
"build": "shipfox-swc",
|
|
@@ -2,7 +2,7 @@ import {EventsPage, type TriggerEventFilters} from '@shipfox/client-triggers';
|
|
|
2
2
|
import {getRouteApi} from '@tanstack/react-router';
|
|
3
3
|
import {WorkspaceSettingsShell} from '#components/workspace-settings-shell.js';
|
|
4
4
|
|
|
5
|
-
const routeApi = getRouteApi('/workspaces/$wid/
|
|
5
|
+
const routeApi = getRouteApi('/workspaces/$wid/settings/events');
|
|
6
6
|
|
|
7
7
|
export function EventsSettingsPage() {
|
|
8
8
|
const search = routeApi.useSearch();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import {getRouteApi} from '@tanstack/react-router';
|
|
2
|
+
import './settings-composition.js';
|
|
3
|
+
|
|
4
|
+
getRouteApi('/workspaces/$wid/settings/events');
|
|
5
|
+
|
|
6
|
+
// @ts-expect-error The generated route tree rejects unknown route ids.
|
|
7
|
+
getRouteApi('/workspaces/$wid/settings/_layout/events');
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import {buildAnchorSkeleton, type RouterContext} from '@shipfox/client-shell/runtime';
|
|
2
|
+
import {createRoute, createRouter} from '@tanstack/react-router';
|
|
3
|
+
import agentsRoute from '#routes/agents.js';
|
|
4
|
+
import eventsRoute from '#routes/events.js';
|
|
5
|
+
import indexRoute from '#routes/index.js';
|
|
6
|
+
import integrationsRoute from '#routes/integrations.js';
|
|
7
|
+
import membersRoute from '#routes/members.js';
|
|
8
|
+
import provisionersRoute from '#routes/provisioners.js';
|
|
9
|
+
import runnersRoute from '#routes/runners.js';
|
|
10
|
+
import secretsRoute from '#routes/secrets.js';
|
|
11
|
+
import variablesRoute from '#routes/variables.js';
|
|
12
|
+
|
|
13
|
+
const skeleton = buildAnchorSkeleton({navigation: [], settingsSections: []});
|
|
14
|
+
|
|
15
|
+
const settingsIndexRoute = createRoute({
|
|
16
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
17
|
+
path: '/',
|
|
18
|
+
...indexRoute.options,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const membersRouteNode = createRoute({
|
|
22
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
23
|
+
path: '/members',
|
|
24
|
+
...membersRoute.options,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const runnersRouteNode = createRoute({
|
|
28
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
29
|
+
path: '/runners',
|
|
30
|
+
...runnersRoute.options,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const provisionersRouteNode = createRoute({
|
|
34
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
35
|
+
path: '/provisioners',
|
|
36
|
+
...provisionersRoute.options,
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const agentsRouteNode = createRoute({
|
|
40
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
41
|
+
path: '/agents',
|
|
42
|
+
...agentsRoute.options,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const secretsRouteNode = createRoute({
|
|
46
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
47
|
+
path: '/secrets',
|
|
48
|
+
...secretsRoute.options,
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const variablesRouteNode = createRoute({
|
|
52
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
53
|
+
path: '/variables',
|
|
54
|
+
...variablesRoute.options,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
const integrationsRouteNode = createRoute({
|
|
58
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
59
|
+
path: '/integrations',
|
|
60
|
+
...integrationsRoute.options,
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
const eventsRouteNode = createRoute({
|
|
64
|
+
getParentRoute: () => skeleton.workspaceSettings,
|
|
65
|
+
path: '/events',
|
|
66
|
+
...eventsRoute.options,
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
const workspaceSettings = skeleton.workspaceSettings.addChildren([
|
|
70
|
+
settingsIndexRoute,
|
|
71
|
+
membersRouteNode,
|
|
72
|
+
runnersRouteNode,
|
|
73
|
+
provisionersRouteNode,
|
|
74
|
+
agentsRouteNode,
|
|
75
|
+
secretsRouteNode,
|
|
76
|
+
variablesRouteNode,
|
|
77
|
+
integrationsRouteNode,
|
|
78
|
+
eventsRouteNode,
|
|
79
|
+
]);
|
|
80
|
+
|
|
81
|
+
const workspaceLayout = skeleton.workspaceLayout.addChildren([workspaceSettings]);
|
|
82
|
+
|
|
83
|
+
const routeTree = skeleton.rootRoute.addChildren([workspaceLayout]);
|
|
84
|
+
|
|
85
|
+
export const router = createRouter({
|
|
86
|
+
routeTree,
|
|
87
|
+
context: {auth: undefined, queryClient: undefined} satisfies RouterContext,
|
|
88
|
+
scrollRestoration: true,
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
declare module '@tanstack/react-router' {
|
|
92
|
+
interface Register {
|
|
93
|
+
router: typeof router;
|
|
94
|
+
}
|
|
95
|
+
}
|