@shipfox/client-projects 17.0.0 → 21.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.
Files changed (36) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +21 -0
  3. package/dist/pages/create-project-page.stories.js +1 -1
  4. package/dist/pages/create-project-page.stories.js.map +1 -1
  5. package/dist/pages/project-settings-page.stories.js +1 -1
  6. package/dist/pages/project-settings-page.stories.js.map +1 -1
  7. package/dist/pages/projects-hub-page.js +3 -3
  8. package/dist/pages/projects-hub-page.js.map +1 -1
  9. package/dist/routes/create-project.d.ts +3 -0
  10. package/dist/routes/create-project.js +3 -0
  11. package/dist/routes/create-project.js.map +1 -1
  12. package/dist/routes/home.d.ts +3 -0
  13. package/dist/routes/home.js +3 -0
  14. package/dist/routes/home.js.map +1 -1
  15. package/dist/routes/project-index.d.ts +3 -0
  16. package/dist/routes/project-index.d.ts.map +1 -1
  17. package/dist/routes/project-index.js +3 -0
  18. package/dist/routes/project-index.js.map +1 -1
  19. package/dist/routes/project-settings-index.d.ts +3 -0
  20. package/dist/routes/project-settings-index.d.ts.map +1 -1
  21. package/dist/routes/project-settings-index.js +3 -0
  22. package/dist/routes/project-settings-index.js.map +1 -1
  23. package/dist/routes/project-settings.d.ts +3 -0
  24. package/dist/routes/project-settings.js +3 -0
  25. package/dist/routes/project-settings.js.map +1 -1
  26. package/dist/tsconfig.test.tsbuildinfo +1 -1
  27. package/package.json +7 -7
  28. package/src/pages/create-project-page.stories.tsx +1 -1
  29. package/src/pages/project-settings-page.stories.tsx +1 -1
  30. package/src/pages/projects-hub-page.tsx +5 -5
  31. package/src/routes/create-project.tsx +4 -1
  32. package/src/routes/home.tsx +1 -0
  33. package/src/routes/project-index.tsx +1 -0
  34. package/src/routes/project-settings-index.tsx +1 -0
  35. package/src/routes/project-settings.tsx +4 -1
  36. package/tsconfig.build.tsbuildinfo +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/client-projects",
3
3
  "license": "MIT",
4
- "version": "17.0.0",
4
+ "version": "21.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -31,13 +31,13 @@
31
31
  "@shipfox/api-definitions-dto": "12.3.0",
32
32
  "@shipfox/api-integration-core-dto": "12.2.0",
33
33
  "@shipfox/api-projects-dto": "12.2.0",
34
- "@shipfox/client-agent": "17.0.0",
34
+ "@shipfox/client-agent": "21.0.0",
35
35
  "@shipfox/client-api": "6.0.1",
36
- "@shipfox/client-auth": "17.0.0",
37
- "@shipfox/client-integrations": "17.0.0",
38
- "@shipfox/client-shell": "17.0.0",
39
- "@shipfox/client-ui": "17.0.0",
40
- "@shipfox/react-ui": "1.2.0"
36
+ "@shipfox/client-auth": "21.0.0",
37
+ "@shipfox/client-integrations": "21.0.0",
38
+ "@shipfox/client-shell": "21.0.0",
39
+ "@shipfox/client-ui": "21.0.0",
40
+ "@shipfox/react-ui": "2.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@tanstack/react-query": "^5.101.0",
@@ -64,7 +64,7 @@ function CreateProjectPageStory({scenario}: CreateProjectPageStoryProps) {
64
64
  return (
65
65
  <QueryClientProvider client={queryClient}>
66
66
  <JotaiProvider store={store}>
67
- <div className="min-h-screen bg-background-neutral-background px-24 py-32">
67
+ <div className="min-h-screen bg-background-subtle-base px-24 py-32">
68
68
  <div className="mx-auto w-full max-w-[1120px]">
69
69
  <RouterProvider router={router} />
70
70
  </div>
@@ -71,7 +71,7 @@ function ProjectSettingsPageStory({scenario}: ProjectSettingsPageStoryProps) {
71
71
  return (
72
72
  <QueryClientProvider client={queryClient}>
73
73
  <JotaiProvider store={store}>
74
- <div className="min-h-screen bg-background-neutral-background px-24 py-32">
74
+ <div className="min-h-screen bg-background-subtle-base px-24 py-32">
75
75
  <div className="mx-auto w-full max-w-[1120px]">
76
76
  <RouterProvider router={router} />
77
77
  </div>
@@ -8,10 +8,10 @@ import {
8
8
  import {QueryLoadError} from '@shipfox/client-ui';
9
9
  import {Button} from '@shipfox/react-ui/button';
10
10
  import {Callout} from '@shipfox/react-ui/callout';
11
- import {Card} from '@shipfox/react-ui/card';
12
11
  import {EmptyState} from '@shipfox/react-ui/empty-state';
13
12
  import {Icon} from '@shipfox/react-ui/icon';
14
13
  import {Input} from '@shipfox/react-ui/input';
14
+ import {Panel} from '@shipfox/react-ui/panel';
15
15
  import {Skeleton} from '@shipfox/react-ui/skeleton';
16
16
  import {Header, Text} from '@shipfox/react-ui/typography';
17
17
  import {Link, useNavigate} from '@tanstack/react-router';
@@ -140,12 +140,12 @@ function ProjectsSkeleton() {
140
140
  >
141
141
  {[0, 1, 2, 3, 4, 5].map((row) => (
142
142
  <li key={row}>
143
- <Card className="h-full p-panel-compact">
143
+ <Panel className="h-full p-panel-compact">
144
144
  <div className="flex items-center gap-cluster">
145
145
  <Skeleton className="size-24 shrink-0" />
146
146
  <Skeleton className="h-16 w-1/2" />
147
147
  </div>
148
- </Card>
148
+ </Panel>
149
149
  </li>
150
150
  ))}
151
151
  </ul>
@@ -209,7 +209,7 @@ function ProjectCard({
209
209
  params={{workspaceSlug, projectSlug: project.slug}}
210
210
  className="block h-full rounded-8 focus-visible:shadow-button-neutral-focus focus-visible:outline-none"
211
211
  >
212
- <Card className="h-full p-panel-compact transition-colors hover:bg-background-components-hover">
212
+ <Panel className="h-full p-panel-compact transition-colors hover:bg-background-components-hover">
213
213
  <div className="flex min-w-0 items-center gap-cluster">
214
214
  {/* Settle on success or error: a failed fetch falls back to the
215
215
  neutral provider icon rather than spinning forever. */}
@@ -229,7 +229,7 @@ function ProjectCard({
229
229
  {status ? <ConnectionStatusBadge status={status} className="shrink-0" /> : null}
230
230
  </div>
231
231
  </div>
232
- </Card>
232
+ </Panel>
233
233
  </Link>
234
234
  </li>
235
235
  );
@@ -1,4 +1,7 @@
1
1
  import {defineRoute} from '@shipfox/client-shell/runtime';
2
2
  import {CreateProjectPage} from '#pages/create-project-page.js';
3
3
 
4
- export default defineRoute({component: CreateProjectPage});
4
+ export default defineRoute({
5
+ staticData: {frame: 'content'},
6
+ component: CreateProjectPage,
7
+ });
@@ -3,6 +3,7 @@ import {HomeRouter} from '#pages/home-router.js';
3
3
  import {validateProjectsSearch} from './search.js';
4
4
 
5
5
  export default defineRoute({
6
+ staticData: {frame: 'content'},
6
7
  validateSearch: validateProjectsSearch,
7
8
  component: () => <HomeRouter search={useRouteSearch(validateProjectsSearch)} />,
8
9
  });
@@ -2,6 +2,7 @@ import {defineRoute} from '@shipfox/client-shell/runtime';
2
2
  import {redirect} from '@tanstack/react-router';
3
3
 
4
4
  export default defineRoute({
5
+ staticData: {frame: 'content'},
5
6
  beforeLoad: ({params}: {params: {workspaceSlug: string; projectSlug: string}}) => {
6
7
  throw redirect({
7
8
  to: '/w/$workspaceSlug/p/$projectSlug/runs',
@@ -2,6 +2,7 @@ import {defineRoute} from '@shipfox/client-shell/runtime';
2
2
  import {redirect} from '@tanstack/react-router';
3
3
 
4
4
  export default defineRoute({
5
+ staticData: {frame: 'content'},
5
6
  beforeLoad: ({params}: {params: {workspaceSlug: string; projectSlug: string}}) => {
6
7
  throw redirect({
7
8
  to: '/w/$workspaceSlug/p/$projectSlug/settings/general',
@@ -1,4 +1,7 @@
1
1
  import {defineRoute} from '@shipfox/client-shell/runtime';
2
2
  import {ProjectSettingsPage} from '#pages/project-settings-page.js';
3
3
 
4
- export default defineRoute({component: ProjectSettingsPage});
4
+ export default defineRoute({
5
+ staticData: {frame: 'content'},
6
+ component: ProjectSettingsPage,
7
+ });