@ossy/workspaces 1.16.6 → 1.16.7
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/workspaces",
|
|
3
3
|
"description": "Workspaces feature package — create, select, and manage workspaces, users, and invitations",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"module": "./src/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@jest/globals": "^30.2.0",
|
|
28
|
-
"@ossy/platform": "^1.38.
|
|
28
|
+
"@ossy/platform": "^1.38.7",
|
|
29
29
|
"casual": "^1.6.2",
|
|
30
30
|
"jest": "^30.2.0"
|
|
31
31
|
},
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"/src",
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "f65df0cd6da864c314c4f424112e05e8e2dec0ff"
|
|
41
41
|
}
|
|
@@ -33,7 +33,7 @@ export const AuthenticationGuard = ({ children }) => {
|
|
|
33
33
|
<Switch.Case match={[AuthenticationStatus.Verifying, AuthenticationStatus.NoInitialized]}>
|
|
34
34
|
<View layout="off-center" style={{ height: '100%' }}>
|
|
35
35
|
<Icon
|
|
36
|
-
name="
|
|
36
|
+
name="spinner"
|
|
37
37
|
style={{ width: '64px', height: '64px' }}
|
|
38
38
|
className="rotate fill-50"
|
|
39
39
|
slot="content"
|
package/src/Invitations.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { useWorkspace } from '@ossy/sdk-react'
|
|
3
|
-
import { Title, Text, Button, View,
|
|
3
|
+
import { Title, Text, Button, View, Icon } from '@ossy/design-system'
|
|
4
4
|
import { useRouter } from '@ossy/router-react'
|
|
5
5
|
|
|
6
6
|
export const Invitations = () => {
|
|
@@ -29,7 +29,7 @@ export const Invitations = () => {
|
|
|
29
29
|
<View gap="xs">
|
|
30
30
|
{invitations.map(invite => (
|
|
31
31
|
<View layout="row" roundness="s" alignItems="center" inset="m" gap="m" selectable key={invite.email}>
|
|
32
|
-
<
|
|
32
|
+
<Icon name="mail" />
|
|
33
33
|
<View>
|
|
34
34
|
<Text variant="small" as="span">{invite.email}</Text>
|
|
35
35
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { useWorkspaces, AsyncStatus } from '@ossy/sdk-react'
|
|
3
|
-
import { Title, Text, Switch, Button, View, Guide,
|
|
3
|
+
import { Title, Text, Switch, Button, View, Guide, Icon } from '@ossy/design-system'
|
|
4
4
|
import { useRouter } from '@ossy/router-react'
|
|
5
5
|
import { AuthenticationGuard } from './AuthenticationGuard.jsx'
|
|
6
6
|
import { patchUserWorkspaceId } from './patchUserWorkspaceId.js'
|
|
@@ -77,7 +77,7 @@ export const SelectWorkspacePage = () => {
|
|
|
77
77
|
</Switch.Case>
|
|
78
78
|
|
|
79
79
|
<Switch.Case match={[PageFlow.Loading]}>
|
|
80
|
-
<
|
|
80
|
+
<Icon
|
|
81
81
|
slot="content"
|
|
82
82
|
name="spinner"
|
|
83
83
|
style={{ width: '64px', height: '64px' }}
|
|
@@ -93,9 +93,9 @@ export const SelectWorkspacePage = () => {
|
|
|
93
93
|
Workspaces are separate environments where you can manage resources, templates, services and billing.
|
|
94
94
|
</Text>
|
|
95
95
|
|
|
96
|
-
<
|
|
96
|
+
<View stack gap="xs" style={{ overflowY: 'auto' }}>
|
|
97
97
|
{workspaces.map(workspace => (
|
|
98
|
-
<
|
|
98
|
+
<View.Item
|
|
99
99
|
key={workspace.id}
|
|
100
100
|
layout="row"
|
|
101
101
|
style={{ alignItems: 'center' }}
|
|
@@ -111,9 +111,9 @@ export const SelectWorkspacePage = () => {
|
|
|
111
111
|
</View>
|
|
112
112
|
<div style={{ flexGrow: '1' }} />
|
|
113
113
|
<Button prefix="more-vertical-alt" variant="command" style={{ cursor: 'not-allowed' }} />
|
|
114
|
-
</
|
|
114
|
+
</View.Item>
|
|
115
115
|
))}
|
|
116
|
-
</
|
|
116
|
+
</View>
|
|
117
117
|
</View>
|
|
118
118
|
</Switch.Case>
|
|
119
119
|
|
package/src/Users.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { useUsers, AsyncStatus } from '@ossy/sdk-react'
|
|
3
|
-
import { Text, View,
|
|
3
|
+
import { Text, View, Icon, Title, Button } from '@ossy/design-system'
|
|
4
4
|
import { useRouter } from '@ossy/router-react'
|
|
5
5
|
|
|
6
6
|
export const Users = () => {
|
|
@@ -30,7 +30,7 @@ export const Users = () => {
|
|
|
30
30
|
<View gap="xs">
|
|
31
31
|
{users.map(user => (
|
|
32
32
|
<View layout="row" roundness="s" alignItems="center" inset="m" gap="m" selectable key={user.id}>
|
|
33
|
-
<
|
|
33
|
+
<Icon name={user.type === 'Bot' ? 'bot' : 'user'} />
|
|
34
34
|
<View>
|
|
35
35
|
<View layout="row" gap="s">
|
|
36
36
|
<Text as="span" style={{ fontWeight: 'bold' }}>{user.firstName}</Text>
|