π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): update role descriptions
Ramesh Manef23e950dd719
diff --git a/packages/nc-gui/components/roles/SelectorV2.vue b/packages/nc-gui/components/roles/SelectorV2.vueindex a44126cf14..bd20aef260 100644--- a/packages/nc-gui/components/roles/SelectorV2.vue+++ b/packages/nc-gui/components/roles/SelectorV2.vue@@ -1,5 +1,5 @@<script lang="ts" setup>-import { RoleColors, RoleDescriptions, RoleIcons, RoleLabels } from 'nocodb-sdk'+import { RoleColors, RoleIcons, RoleLabels } from 'nocodb-sdk'import type { SelectValue } from 'ant-design-vue/es/select'import type { IconMapKey } from '#imports'@@ -34,6 +34,8 @@ const isDropdownOpen = ref(false)const newRole = ref<null | keyof typeof RoleLabels>(null)async function onChangeRole(val: SelectValue) {+ if (val === role.value) return+newRole.value = val as keyof typeof RoleLabelsawait props.onRoleChange(val as keyof typeof RoleLabels)@@ -46,7 +48,7 @@ const roleSelectorOptions = computed<NcListItemType[]>(() => {(role: keyof typeof RoleLabels): NcListItemType => ({value: role,label: t(`objects.roleType.${RoleLabels[role]}`),- description: RoleDescriptions[role],+ description: t(`objects.roleDescription.${role}`),icon: RoleIcons[role],color: RoleColors[role],ncItemDisabled: props.disabledRoles?.includes(role),diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.jsonindex 9f6ff525cc..7627c0aea8 100644--- a/packages/nc-gui/lang/en.json+++ b/packages/nc-gui/lang/en.json@@ -512,6 +512,26 @@"orgLevelCreator": "Organization Level Creator","orgLevelViewer": "Organization Level Viewer"},+ "roleDescription": {+ "workspace-level-owner": "Can fully configure and edit workspace bases and manage workspace settings and billing",+ "workspace-level-creator": "Can fully configure and edit workspace bases",+ "workspace-level-editor": "Can add, edit, and delete records, but cannot configure the workspace bases",+ "workspace-level-commenter": "Can view and comment on records in workspace bases",+ "workspace-level-viewer": "Can only view records workspace bases",+ "workspace-level-no-access": "Cannot access this workspace",+ "owner": "Has complete control, including full configuration and deletion of the base",+ "creator": "Has full configuration access for the base, except deletion rights",+ "editor": "Can add, edit, and delete records, but cannot configure the base",+ "commenter": "Can view and comment on records",+ "viewer": "Can view records only",+ "no-access": "Cannot access this base",+ "super": "Full access to all",+ "org-level-creator": "Can fully configure and edit bases",+ "org-level-viewer": "Can only view records in bases",+ "cloud-org-level-owner": "Full access to organization and workspaces",+ "cloud-org-level-creator": "Can create and manage domains, users and workspaces",+ "cloud-org-level-viewer": "Can only view organization and workspaces"+ },"sqlView": "SQL View","rowHeight": "Record Height","heightClass": {diff --git a/packages/nocodb-sdk/src/lib/enums.ts b/packages/nocodb-sdk/src/lib/enums.tsindex bd7a9977de..8a04432823 100644--- a/packages/nocodb-sdk/src/lib/enums.ts+++ b/packages/nocodb-sdk/src/lib/enums.ts@@ -297,29 +297,35 @@ export const RoleColors = {};export const RoleDescriptions = {- [WorkspaceUserRoles.OWNER]: 'Full access to workspace',- [WorkspaceUserRoles.CREATOR]:- 'Can create bases, sync tables, views, setup web-hooks and more',- [WorkspaceUserRoles.EDITOR]: 'Can edit data in workspace bases',+ [WorkspaceUserRoles.OWNER]:+ 'Can fully configure and edit workspace bases and manage workspace settings and billing',+ [WorkspaceUserRoles.CREATOR]: 'Can fully configure and edit workspace bases',+ [WorkspaceUserRoles.EDITOR]:+ 'Can add, edit, and delete records, but cannot configure the workspace bases',[WorkspaceUserRoles.COMMENTER]:- 'Can view and comment data in workspace bases',- [WorkspaceUserRoles.VIEWER]: 'Can view data in workspace bases',+ 'Can view and comment on records in workspace bases',+ [WorkspaceUserRoles.VIEWER]: 'Can only view records workspace bases',[WorkspaceUserRoles.NO_ACCESS]: 'Cannot access this workspace',- [ProjectRoles.OWNER]: 'Full access to base',++ [ProjectRoles.OWNER]:+ 'Has complete control, including full configuration and deletion of the base',[ProjectRoles.CREATOR]:- 'Can create tables, views, setup webhook, invite collaborators and more',- [ProjectRoles.EDITOR]: 'Can view, add & modify records, add comments on them',- [ProjectRoles.COMMENTER]: 'Can view records and add comment on them',- [ProjectRoles.VIEWER]: 'Can only view records',+ 'Has full configuration access for the base, except deletion rights',+ [ProjectRoles.EDITOR]:+ 'Can add, edit, and delete records, but cannot configure the base',+ [ProjectRoles.COMMENTER]: 'Can view and comment on records',+ [ProjectRoles.VIEWER]: 'Can view records only',[ProjectRoles.NO_ACCESS]: 'Cannot access this base',+[OrgUserRoles.SUPER_ADMIN]: 'Full access to all',[OrgUserRoles.CREATOR]:- 'Can create bases, sync tables, views, setup web-hooks and more',- [OrgUserRoles.VIEWER]: 'Can only view bases',+ 'Can fully configure and edit bases',+ [OrgUserRoles.VIEWER]: 'Can only view records in bases',- [CloudOrgUserRoles.OWNER]: 'Full access to organization and admin panel',- [CloudOrgUserRoles.CREATOR]: 'Can create and manage domains, users and workspaces',- [CloudOrgUserRoles.VIEWER]: 'Can view organization and workspaces',+ [CloudOrgUserRoles.OWNER]: 'Full access to organization and workspaces',+ [CloudOrgUserRoles.CREATOR]:+ 'Can create and manage domains, users and workspaces',+ [CloudOrgUserRoles.VIEWER]: 'Can only view organization and workspaces',};export const RoleIcons = {