@shipfox/client-workspace-settings 21.0.0 → 22.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/.turbo/turbo-type.log +1 -0
- package/CHANGELOG.md +15 -0
- package/dist/components/members/workspace-members-section.js +28 -16
- package/dist/components/members/workspace-members-section.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/components/members/workspace-members-section.tsx +22 -10
- 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": "22.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@tanstack/react-form": "^1.32.0",
|
|
30
30
|
"@shipfox/api-workspaces-dto": "12.0.0",
|
|
31
31
|
"@shipfox/client-api": "6.0.1",
|
|
32
|
-
"@shipfox/client-auth": "
|
|
33
|
-
"@shipfox/client-shell": "
|
|
34
|
-
"@shipfox/react-ui": "2.
|
|
35
|
-
"@shipfox/client-ui": "
|
|
32
|
+
"@shipfox/client-auth": "22.0.0",
|
|
33
|
+
"@shipfox/client-shell": "22.0.0",
|
|
34
|
+
"@shipfox/react-ui": "2.1.0",
|
|
35
|
+
"@shipfox/client-ui": "22.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@tanstack/react-query": "^5.101.0",
|
|
@@ -82,10 +82,12 @@ function MembersSection({
|
|
|
82
82
|
</Text>
|
|
83
83
|
</div>
|
|
84
84
|
|
|
85
|
-
{query.isPending ? <TableSkeleton rows={3} cols={3} /> : null}
|
|
85
|
+
{query.isPending ? <TableSkeleton rows={3} cols={3} label="Loading members" /> : null}
|
|
86
86
|
|
|
87
87
|
{query.isError && query.data === undefined ? (
|
|
88
|
-
<
|
|
88
|
+
<Panel>
|
|
89
|
+
<QueryLoadError query={query} subject="members" variant="panel" />
|
|
90
|
+
</Panel>
|
|
89
91
|
) : null}
|
|
90
92
|
|
|
91
93
|
{members.length > 0 ? (
|
|
@@ -227,13 +229,19 @@ function PendingInvitationsSection({
|
|
|
227
229
|
/>
|
|
228
230
|
</div>
|
|
229
231
|
|
|
230
|
-
{query.isPending ? <TableSkeleton rows={2} cols={3} /> : null}
|
|
232
|
+
{query.isPending ? <TableSkeleton rows={2} cols={3} label="Loading invitations" /> : null}
|
|
231
233
|
|
|
232
234
|
{query.isError && query.data === undefined ? (
|
|
233
|
-
<
|
|
235
|
+
<Panel>
|
|
236
|
+
<QueryLoadError query={query} subject="invitations" variant="panel" />
|
|
237
|
+
</Panel>
|
|
234
238
|
) : null}
|
|
235
239
|
|
|
236
|
-
{query.data !== undefined && invitations.length === 0 ?
|
|
240
|
+
{query.data !== undefined && invitations.length === 0 ? (
|
|
241
|
+
<Panel>
|
|
242
|
+
<EmptyInvitations />
|
|
243
|
+
</Panel>
|
|
244
|
+
) : null}
|
|
237
245
|
|
|
238
246
|
{invitations.length > 0 ? (
|
|
239
247
|
<Panel>
|
|
@@ -458,22 +466,26 @@ function EmptyInvitations() {
|
|
|
458
466
|
icon="mailLine"
|
|
459
467
|
title="No pending invitations."
|
|
460
468
|
description="Invite someone above to grow your workspace."
|
|
469
|
+
variant="panel"
|
|
461
470
|
/>
|
|
462
471
|
);
|
|
463
472
|
}
|
|
464
473
|
|
|
465
|
-
function TableSkeleton({rows, cols}: {rows: number; cols: number}) {
|
|
474
|
+
function TableSkeleton({rows, cols, label}: {rows: number; cols: number; label: string}) {
|
|
466
475
|
return (
|
|
467
|
-
<
|
|
476
|
+
<Panel role="status" aria-label={label} className="divide-y">
|
|
468
477
|
{Array.from({length: rows}).map((_, rowIdx) => (
|
|
469
|
-
|
|
470
|
-
|
|
478
|
+
<div
|
|
479
|
+
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholder rows
|
|
480
|
+
key={rowIdx}
|
|
481
|
+
className="grid min-h-44 grid-cols-3 gap-group px-row py-row"
|
|
482
|
+
>
|
|
471
483
|
{Array.from({length: cols}).map((__, colIdx) => (
|
|
472
484
|
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholder cells
|
|
473
485
|
<Skeleton key={colIdx} className="h-20" />
|
|
474
486
|
))}
|
|
475
487
|
</div>
|
|
476
488
|
))}
|
|
477
|
-
</
|
|
489
|
+
</Panel>
|
|
478
490
|
);
|
|
479
491
|
}
|