@jskit-ai/workspaces-web 0.2.32 → 0.2.33
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- The members screen's invite-role and member-role fields are http-web's `SelectField`, bound to `loading` while the workspace's role catalog loads, so a stored role id never shows as text before its label; the members admin status says `isLoadingRoles`.
|
|
5
6
|
- The invite form's email and role fields have no margin under them, since each keeps its supporting-text line (`@jskit-ai/material-web` no longer sets `hideDetails: "auto"`).
|
|
6
7
|
- The workspace-surfaces pattern's pending-invitations cue links to the account settings' invitations section at its own address, `/account/invites`, as users-web's routed sections have it, instead of `/account?section=invites`.
|
|
7
8
|
- The workspaces and invitations screens and the workspace-surfaces pattern's panels sit directly on the page, without bordered sheets; the invite landing and the members screen use elevated Material 3 cards; titles use Material 3 type classes instead of hand-sized ones. Buttons are Material 3's 40dp buttons inside material-web's 48dp touch target, no longer stretched to 48px; the workspace list's and invitations' buttons are default size instead of small.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/workspaces-web",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"./locales/en.json": "./locales/en.json"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@jskit-ai/users-core": "0.2.
|
|
20
|
-
"@jskit-ai/workspaces-core": "0.2.
|
|
19
|
+
"@jskit-ai/users-core": "0.2.24",
|
|
20
|
+
"@jskit-ai/workspaces-core": "0.2.24"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@jskit-ai/auth-web": "0.2.
|
|
24
|
-
"@jskit-ai/http-web": "0.2.
|
|
25
|
-
"@jskit-ai/kernel": "0.2.
|
|
26
|
-
"@jskit-ai/shell-web": "0.2.
|
|
27
|
-
"@jskit-ai/users-web": "0.2.
|
|
23
|
+
"@jskit-ai/auth-web": "0.2.24",
|
|
24
|
+
"@jskit-ai/http-web": "0.2.27",
|
|
25
|
+
"@jskit-ai/kernel": "0.2.18",
|
|
26
|
+
"@jskit-ai/shell-web": "0.2.22",
|
|
27
|
+
"@jskit-ai/users-web": "0.2.33",
|
|
28
28
|
"@tanstack/vue-query": "^5.90.5",
|
|
29
29
|
"vue": "^3.5.13",
|
|
30
30
|
"vue-router": "^5.0.4",
|
|
@@ -42,12 +42,11 @@
|
|
|
42
42
|
autocomplete="email"
|
|
43
43
|
:disabled="isCreatingInvite || showWorkspaceInviteRefreshingIndicator"
|
|
44
44
|
/>
|
|
45
|
-
<
|
|
45
|
+
<SelectField
|
|
46
46
|
v-model="inviteForm.roleSid"
|
|
47
47
|
:label="t('jskit.workspaces.membersAdmin.role')"
|
|
48
48
|
:items="inviteRoleOptions"
|
|
49
|
-
|
|
50
|
-
item-value="value"
|
|
49
|
+
:loading="isLoadingRoles"
|
|
51
50
|
variant="outlined"
|
|
52
51
|
density="comfortable"
|
|
53
52
|
:disabled="isCreatingInvite || showWorkspaceInviteRefreshingIndicator"
|
|
@@ -127,11 +126,10 @@
|
|
|
127
126
|
|
|
128
127
|
<template #append>
|
|
129
128
|
<div class="d-flex align-center ga-2">
|
|
130
|
-
<
|
|
129
|
+
<SelectField
|
|
131
130
|
v-model="member.roleSid"
|
|
132
131
|
:items="memberRoleOptions"
|
|
133
|
-
|
|
134
|
-
item-value="value"
|
|
132
|
+
:loading="isLoadingRoles"
|
|
135
133
|
density="compact"
|
|
136
134
|
variant="outlined"
|
|
137
135
|
hide-details
|
|
@@ -139,8 +137,8 @@
|
|
|
139
137
|
:disabled="showMembersRefreshingIndicator || isMemberRoleLocked(member)"
|
|
140
138
|
@update:model-value="(value) => onMemberRoleUpdate(member, value)"
|
|
141
139
|
>
|
|
142
|
-
<template #selection="{ internalItem }">{{
|
|
143
|
-
</
|
|
140
|
+
<template #selection="{ internalItem }">{{ memberRoleTitle(internalItem.value) }}</template>
|
|
141
|
+
</SelectField>
|
|
144
142
|
<v-btn
|
|
145
143
|
variant="text"
|
|
146
144
|
color="error"
|
|
@@ -192,6 +190,7 @@
|
|
|
192
190
|
|
|
193
191
|
<script setup>
|
|
194
192
|
import { computed, toRefs } from "vue";
|
|
193
|
+
import SelectField from "@jskit-ai/http-web/client/components/SelectField";
|
|
195
194
|
import { normalizeRecordId } from "@jskit-ai/kernel/shared/support/normalize";
|
|
196
195
|
import { useJskitText } from "../i18n.js";
|
|
197
196
|
|
|
@@ -261,6 +260,7 @@ const isRemovingMember = computed(() => status.value.isRemovingMember);
|
|
|
261
260
|
const isCopyingInviteLink = computed(() => status.value.isCopyingInviteLink);
|
|
262
261
|
const createdInviteUrl = computed(() => status.value.createdInviteUrl);
|
|
263
262
|
const createdInviteDeliveryStatus = computed(() => status.value.createdInviteDeliveryStatus);
|
|
263
|
+
const isLoadingRoles = computed(() => status.value.isLoadingRoles);
|
|
264
264
|
const workspaceInvitePolicyLoaded = computed(() => status.value.hasLoadedWorkspaceSettings);
|
|
265
265
|
const workspaceInvitePolicyRefreshing = computed(() => status.value.isRefreshingWorkspaceSettings);
|
|
266
266
|
const membersListLoaded = computed(() => status.value.hasLoadedMembersList);
|
|
@@ -311,6 +311,11 @@ function formatRole(roleSid, fallback = roleSid) {
|
|
|
311
311
|
return options.value.formatRole(roleSid, fallback);
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
+
// A member's role reads as its label, else its option's title, else its id: an owner's role is no assignable option.
|
|
315
|
+
function memberRoleTitle(roleSid) {
|
|
316
|
+
return formatRole(roleSid, memberRoleOptions.value.find((option) => option.value === roleSid)?.title || roleSid);
|
|
317
|
+
}
|
|
318
|
+
|
|
314
319
|
function formatDateTime(value) {
|
|
315
320
|
return options.value.formatDateTime(value);
|
|
316
321
|
}
|
|
@@ -232,6 +232,7 @@ function useWorkspaceMembersPage() {
|
|
|
232
232
|
isCopyingInviteLink: Boolean(isCopyingInviteLink.value),
|
|
233
233
|
createdInviteUrl: createdInviteUrl.value,
|
|
234
234
|
createdInviteDeliveryStatus: createdInviteDeliveryStatus.value,
|
|
235
|
+
isLoadingRoles: Boolean(workspaceRolesView.isLoading),
|
|
235
236
|
hasLoadedWorkspaceSettings: !canInviteMembers.value || !workspaceSettingsView.isLoading,
|
|
236
237
|
hasLoadedMembersList: !canViewMembers.value || !workspaceMembersList.isInitialLoading,
|
|
237
238
|
hasLoadedInviteList: !canViewMembers.value || !workspaceInvitesList.isInitialLoading,
|
package/src/client/types.js
CHANGED
|
@@ -147,6 +147,7 @@
|
|
|
147
147
|
* @property {boolean} isCopyingInviteLink
|
|
148
148
|
* @property {string} createdInviteUrl
|
|
149
149
|
* @property {string} createdInviteDeliveryStatus
|
|
150
|
+
* @property {boolean} isLoadingRoles
|
|
150
151
|
* @property {boolean} hasLoadedWorkspaceSettings
|
|
151
152
|
* @property {boolean} hasLoadedMembersList
|
|
152
153
|
* @property {boolean} hasLoadedInviteList
|