@shipfox/client-workspace-settings 14.0.0 → 16.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 +26 -0
- package/dist/components/members/workspace-members-section.js +11 -11
- package/dist/components/members/workspace-members-section.js.map +1 -1
- package/dist/components/workspace-settings-shell.d.ts +1 -1
- package/dist/feature.d.ts +24 -24
- package/dist/feature.d.ts.map +1 -1
- package/dist/hooks/api/list-invitations.d.ts +1 -1
- package/dist/hooks/api/list-invitations.d.ts.map +1 -1
- package/dist/hooks/api/list-members.d.ts +1 -1
- package/dist/hooks/api/list-members.d.ts.map +1 -1
- package/dist/pages/general-settings-page.js +3 -3
- package/dist/pages/general-settings-page.js.map +1 -1
- package/dist/routes/general.d.ts.map +1 -1
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/members.d.ts.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/components/members/workspace-members-section.tsx +11 -11
- package/src/pages/general-settings-page.tsx +3 -3
- 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": "16.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/client-ui": "
|
|
35
|
-
"@shipfox/react-ui": "
|
|
32
|
+
"@shipfox/client-auth": "16.0.0",
|
|
33
|
+
"@shipfox/client-shell": "16.0.0",
|
|
34
|
+
"@shipfox/client-ui": "16.0.0",
|
|
35
|
+
"@shipfox/react-ui": "1.1.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@tanstack/react-query": "^5.101.0",
|
|
@@ -52,7 +52,7 @@ export function WorkspaceMembersSettingsSection({
|
|
|
52
52
|
workspaceName: string;
|
|
53
53
|
}) {
|
|
54
54
|
return (
|
|
55
|
-
<div className="flex min-w-0 flex-col gap-
|
|
55
|
+
<div className="flex min-w-0 flex-col gap-region">
|
|
56
56
|
<MembersSection workspaceId={workspaceId} workspaceName={workspaceName} />
|
|
57
57
|
<PendingInvitationsSection workspaceId={workspaceId} workspaceName={workspaceName} />
|
|
58
58
|
</div>
|
|
@@ -71,8 +71,8 @@ function MembersSection({
|
|
|
71
71
|
const members = query.data ?? [];
|
|
72
72
|
|
|
73
73
|
return (
|
|
74
|
-
<section className="flex flex-col gap-
|
|
75
|
-
<div className="flex flex-col gap-
|
|
74
|
+
<section className="flex flex-col gap-group">
|
|
75
|
+
<div className="flex flex-col gap-tight">
|
|
76
76
|
<Header variant="h3">Members</Header>
|
|
77
77
|
<Text size="sm" className="text-foreground-neutral-muted">
|
|
78
78
|
{query.isPending
|
|
@@ -206,9 +206,9 @@ function PendingInvitationsSection({
|
|
|
206
206
|
const [inviteOpen, setInviteOpen] = useState(false);
|
|
207
207
|
|
|
208
208
|
return (
|
|
209
|
-
<section className="flex flex-col gap-
|
|
210
|
-
<div className="flex items-center justify-between gap-
|
|
211
|
-
<div className="flex flex-col gap-
|
|
209
|
+
<section className="flex flex-col gap-group">
|
|
210
|
+
<div className="flex items-center justify-between gap-group">
|
|
211
|
+
<div className="flex flex-col gap-tight">
|
|
212
212
|
<Header variant="h3">Pending invitations</Header>
|
|
213
213
|
<Text size="sm" className="text-foreground-neutral-muted">
|
|
214
214
|
{query.isPending
|
|
@@ -285,7 +285,7 @@ function InvitationRow({
|
|
|
285
285
|
</TableCell>
|
|
286
286
|
<TableCell>{invitation.invitedByDisplay ?? 'N/A'}</TableCell>
|
|
287
287
|
<TableCell>
|
|
288
|
-
<div className="flex items-center gap-
|
|
288
|
+
<div className="flex items-center gap-inline">
|
|
289
289
|
<Text size="sm">{formatDate(invitation.expiresAt)}</Text>
|
|
290
290
|
{expiry === 'expires-soon' ? <Badge variant="warning">Soon</Badge> : null}
|
|
291
291
|
{expiry === 'expired' ? <Badge variant="error">Expired</Badge> : null}
|
|
@@ -390,7 +390,7 @@ function InviteMemberModal({
|
|
|
390
390
|
<ModalHeader>
|
|
391
391
|
<Text size="lg">Invite a member</Text>
|
|
392
392
|
</ModalHeader>
|
|
393
|
-
<ModalBody className="gap-
|
|
393
|
+
<ModalBody className="gap-group">
|
|
394
394
|
{formError ? (
|
|
395
395
|
<Callout role="alert" type="error">
|
|
396
396
|
{formError}
|
|
@@ -398,7 +398,7 @@ function InviteMemberModal({
|
|
|
398
398
|
) : null}
|
|
399
399
|
<form
|
|
400
400
|
id="invite-member-form"
|
|
401
|
-
className="flex flex-col gap-
|
|
401
|
+
className="flex flex-col gap-group"
|
|
402
402
|
noValidate
|
|
403
403
|
onSubmit={(event) => {
|
|
404
404
|
event.preventDefault();
|
|
@@ -459,10 +459,10 @@ function EmptyInvitations() {
|
|
|
459
459
|
|
|
460
460
|
function TableSkeleton({rows, cols}: {rows: number; cols: number}) {
|
|
461
461
|
return (
|
|
462
|
-
<div className="flex flex-col gap-
|
|
462
|
+
<div className="flex flex-col gap-cluster">
|
|
463
463
|
{Array.from({length: rows}).map((_, rowIdx) => (
|
|
464
464
|
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholder rows
|
|
465
|
-
<div key={rowIdx} className="grid grid-cols-3 gap-
|
|
465
|
+
<div key={rowIdx} className="grid grid-cols-3 gap-group">
|
|
466
466
|
{Array.from({length: cols}).map((__, colIdx) => (
|
|
467
467
|
// biome-ignore lint/suspicious/noArrayIndexKey: stable placeholder cells
|
|
468
468
|
<Skeleton key={colIdx} className="h-20" />
|
|
@@ -94,8 +94,8 @@ function WorkspaceGeneralForm({workspace}: {workspace: ReturnType<typeof useActi
|
|
|
94
94
|
|
|
95
95
|
return (
|
|
96
96
|
<>
|
|
97
|
-
<div className="flex min-w-0 flex-col gap-
|
|
98
|
-
<header className="flex flex-col gap-
|
|
97
|
+
<div className="flex min-w-0 flex-col gap-section">
|
|
98
|
+
<header className="flex flex-col gap-inline">
|
|
99
99
|
<Header variant="h1">General</Header>
|
|
100
100
|
<Text size="sm" className="text-foreground-neutral-muted">
|
|
101
101
|
Update the workspace name and the slug used in its URLs.
|
|
@@ -109,7 +109,7 @@ function WorkspaceGeneralForm({workspace}: {workspace: ReturnType<typeof useActi
|
|
|
109
109
|
) : null}
|
|
110
110
|
|
|
111
111
|
<form
|
|
112
|
-
className="flex max-w-[560px] flex-col gap-
|
|
112
|
+
className="flex max-w-[560px] flex-col gap-group"
|
|
113
113
|
noValidate
|
|
114
114
|
onSubmit={(event) => {
|
|
115
115
|
event.preventDefault();
|