Add settings roles page (#9940)

## Context
This PR introduces a new Roles settings page, accessible through the
settings menu when the isPermissionsEnabled feature flag is enabled. The
page provides a foundation for managing user roles within the workspace.

This is not fetching the roles from the BE for now and will be done in a
followup PR.
This commit is contained in:
Weiko
2025-01-30 18:24:02 +01:00
committed by GitHub
parent e7ed9530ca
commit 502891a430
26 changed files with 3697 additions and 4194 deletions

View File

@ -1,5 +1,5 @@
import { gql } from '@apollo/client';
import * as Apollo from '@apollo/client';
import { gql } from '@apollo/client';
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
@ -419,6 +419,7 @@ export enum FeatureFlagKey {
IsLocalizationEnabled = 'IsLocalizationEnabled',
IsMicrosoftSyncEnabled = 'IsMicrosoftSyncEnabled',
IsNewRelationEnabled = 'IsNewRelationEnabled',
IsPermissionsEnabled = 'IsPermissionsEnabled',
IsPostgreSQLIntegrationEnabled = 'IsPostgreSQLIntegrationEnabled',
IsRichTextV2Enabled = 'IsRichTextV2Enabled',
IsStripeIntegrationEnabled = 'IsStripeIntegrationEnabled',

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +1,11 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2025-01-16 21:57+0100\n"
"POT-Creation-Date: 2025-01-30 18:16+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: en\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Plural-Forms: \n"
#. js-lingui-explicit-id
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:49
#~ msgid "/+Z5u4"
#~ msgstr "/+Z5u4"
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:126
#~ msgid "{0}"
#~ msgstr "{0}"
#: src/modules/object-record/record-board/record-board-column/utils/computeAggregateValueAndLabel.ts:129
msgid "{aggregateLabel} of {fieldLabel}"
@ -70,7 +55,7 @@ msgid "Account Deletion"
msgstr "Account Deletion"
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:21
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:113
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:119
msgid "Accounts"
msgstr "Accounts"
@ -93,10 +78,6 @@ msgstr "Active"
msgid "Active API keys created by you or your team."
msgstr "Active API keys created by you or your team."
#: src/pages/settings/developers/SettingsDevelopers.tsx:50
#~ msgid "Active APIs keys created by you or your team."
#~ msgstr "Active APIs keys created by you or your team."
#: src/modules/ui/layout/page/components/PageAddButton.tsx:38
msgid "Add"
msgstr "Add"
@ -147,6 +128,10 @@ msgstr "All"
msgid "All ({relationRecordsCount})"
msgstr "All ({relationRecordsCount})"
#: src/pages/settings/roles/SettingsRoles.tsx:68
msgid "All roles"
msgstr "All roles"
#: src/modules/settings/security/components/SettingsSecurityOptionsList.tsx:135
msgid "Allow logins through Google's single sign-on functionality."
msgstr "Allow logins through Google's single sign-on functionality."
@ -168,7 +153,7 @@ msgid "An optional description"
msgstr "An optional description"
#: src/pages/onboarding/ChooseYourPlan.tsx:91
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:178
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:191
msgid "API & Webhooks"
msgstr "API & Webhooks"
@ -193,19 +178,19 @@ msgstr "Appearance"
msgid "Are you sure that you want to change your billing interval?"
msgstr "Are you sure that you want to change your billing interval?"
#: src/pages/settings/SettingsBilling.tsx:190
#~ msgid "Are you sure that you want to change your billing interval? {5}"
#~ msgstr "Are you sure that you want to change your billing interval? {5}"
#: src/pages/settings/SettingsBilling.tsx:189
#~ msgid "Are you sure that you want to change your billing interval? {impact}"
#~ msgstr "Are you sure that you want to change your billing interval? {impact}"
#: src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx:201
#: src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx:214
msgid "Ascending"
msgstr "Ascending"
#: src/pages/settings/roles/SettingsRoles.tsx:69
msgid "Assign roles to specify each member's access permissions"
msgstr "Assign roles to specify each member's access permissions"
#: src/pages/settings/roles/SettingsRoles.tsx:36
msgid "Assigned to"
msgstr "Assigned to"
#: src/modules/settings/security/components/SettingsSecurityOptionsList.tsx:73
msgid "At least one authentication method must be enabled"
msgstr "At least one authentication method must be enabled"
@ -229,7 +214,7 @@ msgstr "Back to content"
#: src/pages/settings/SettingsBilling.tsx:132
#: src/pages/settings/SettingsBilling.tsx:138
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:148
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:154
msgid "Billing"
msgstr "Billing"
@ -251,7 +236,7 @@ msgstr "Calendar"
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:14
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:24
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:77
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:83
msgid "Calendars"
msgstr "Calendars"
@ -274,10 +259,6 @@ msgstr "Cancel Plan"
msgid "Cancel your subscription"
msgstr "Cancel your subscription"
#: src/pages/settings/SettingsBilling.tsx:194
#~ msgid "Change {6}"
#~ msgstr "Change {6}"
#: src/pages/settings/SettingsBilling.tsx:193
msgid "Change {to}"
msgstr "Change {to}"
@ -288,10 +269,6 @@ msgstr "Change {to}"
msgid "Change Password"
msgstr "Change Password"
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:86
#~ msgid "Chinese"
#~ msgstr "Chinese"
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:86
msgid "Chinese — Simplified"
msgstr "Chinese — Simplified"
@ -316,10 +293,6 @@ msgstr "Choose your Trial"
msgid "Close"
msgstr "Close"
#: src/modules/command-menu/components/CommandMenu.tsx:151
#~ msgid "Companies"
#~ msgstr "Companies"
#: src/pages/settings/security/SettingsSecurity.tsx:48
msgid "Configure an SSO connection"
msgstr "Configure an SSO connection"
@ -336,10 +309,6 @@ msgstr "Configure how dates are displayed across the app"
msgid "Configure your emails and calendar settings."
msgstr "Configure your emails and calendar settings."
#: src/modules/settings/accounts/components/SettingsNewAccountSection.tsx:13
#~ msgid "Connect a Google account"
#~ msgstr "Connect a Google account"
#: src/modules/settings/accounts/components/SettingsNewAccountSection.tsx:11
msgid "Connect a new account to your workspace"
msgstr "Connect a new account to your workspace"
@ -377,10 +346,6 @@ msgstr "Copy invitation link"
msgid "Copy this key as it will not be visible again"
msgstr "Copy this key as it will not be visible again"
#: src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx:172
#~ msgid "Copy this key as it will only be visible this one time"
#~ msgstr "Copy this key as it will only be visible this one time"
#: src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterDropdownContent.tsx:52
#: src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnHeaderAggregateDropdownMenuContent.tsx:38
msgid "Count"
@ -423,10 +388,6 @@ msgstr "Create Webhook"
msgid "Custom objects"
msgstr "Custom objects"
#: src/modules/command-menu/components/CommandMenu.tsx:167
#~ msgid "Custom Objects"
#~ msgstr "Custom Objects"
#: src/modules/settings/data-model/object-details/components/tabs/ObjectFields.tsx:28
msgid "Customise the fields available in the {objectLabelSingular} views."
msgstr "Customise the fields available in the {objectLabelSingular} views."
@ -448,7 +409,7 @@ msgid "Danger zone"
msgstr "Danger zone"
#: src/pages/settings/data-model/SettingsObjects.tsx:139
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:154
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:167
msgid "Data model"
msgstr "Data model"
@ -632,7 +593,7 @@ msgstr "Email integration"
msgid "Email or domain is already in blocklist"
msgstr "Email or domain is already in blocklist"
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:71
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:77
#: src/modules/settings/accounts/components/SettingsAccountsSettingsSection.tsx:45
msgid "Emails"
msgstr "Emails"
@ -676,10 +637,6 @@ msgstr "Error deleting api key: {err}"
msgid "Error regenerating api key: {err}"
msgstr "Error regenerating api key: {err}"
#: src/pages/settings/SettingsBilling.tsx:118
#~ msgid "Error while switching subscription {1}."
#~ msgstr "Error while switching subscription {1}."
#: src/pages/settings/SettingsBilling.tsx:124
msgid "Error while switching subscription {to}."
msgstr "Error while switching subscription {to}."
@ -696,10 +653,6 @@ msgstr "Exclude the following people and domains from my email sync"
msgid "Existing objects"
msgstr "Existing objects"
#: src/modules/navigation/components/AppNavigationDrawer.tsx:36
#~ msgid "Exit settings"
#~ msgstr "Exit settings"
#: src/modules/navigation/components/AppNavigationDrawer.tsx:36
msgid "Exit Settings"
msgstr "Exit Settings"
@ -710,7 +663,7 @@ msgstr "Expected selected node to be a create step node."
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:26
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:32
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:107
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:113
msgid "Experience"
msgstr "Experience"
@ -761,10 +714,6 @@ msgstr "Export to PDF"
msgid "Export view"
msgstr "Export view"
#: src/pages/settings/data-model/SettingsNewObject.tsx:57
#~ msgid "Failed to create object"
#~ msgstr "Failed to create object"
#: src/modules/favorites/components/CurrentWorkspaceMemberFavoritesFolders.tsx:58
msgid "Favorites"
msgstr "Favorites"
@ -785,7 +734,7 @@ msgid "Fields Count"
msgstr "Fields Count"
#: src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHeadDropdownMenu.tsx:102
#: src/modules/object-record/object-filter-dropdown/components/SingleEntityObjectFilterDropdownButton.tsx:81
#: src/modules/object-record/object-filter-dropdown/components/SingleEntityObjectFilterDropdownButton.tsx:82
#: src/modules/object-record/object-filter-dropdown/components/MultipleFiltersButton.tsx:24
msgid "Filter"
msgstr "Filter"
@ -810,14 +759,14 @@ msgstr "from yearly to monthly"
msgid "Full access"
msgstr "Full access"
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:186
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:199
msgid "Functions"
msgstr "Functions"
#: src/pages/settings/SettingsWorkspace.tsx:29
#: src/pages/settings/SettingsWorkspace.tsx:35
#: src/pages/settings/workspace/SettingsDomain.tsx:116
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:137
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:143
msgid "General"
msgstr "General"
@ -877,7 +826,7 @@ msgstr "Instances"
#: src/pages/settings/integrations/SettingsIntegrations.tsx:15
#: src/pages/settings/integrations/SettingsIntegrations.tsx:21
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:159
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:172
msgid "Integrations"
msgstr "Integrations"
@ -898,10 +847,6 @@ msgstr "Invalid email or domain"
msgid "Invalid form values"
msgstr "Invalid form values"
#: src/pages/settings/data-model/SettingsNewObject.tsx:53
#~ msgid "Invalid object data"
#~ msgstr "Invalid object data"
#: src/pages/settings/SettingsWorkspaceMembers.tsx:244
msgid "Invite by email"
msgstr "Invite by email"
@ -926,7 +871,7 @@ msgstr "Invite your team"
msgid "Italian"
msgstr "Italian"
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:204
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:217
msgid "Lab"
msgstr "Lab"
@ -950,7 +895,7 @@ msgstr "Link copied to clipboard"
msgid "Log out"
msgstr "Log out"
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:215
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:228
msgid "Logout"
msgstr "Logout"
@ -982,15 +927,10 @@ msgstr "Max"
#: src/pages/settings/SettingsWorkspaceMembers.tsx:143
#: src/pages/settings/SettingsWorkspaceMembers.tsx:149
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:142
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:148
msgid "Members"
msgstr "Members"
#: src/pages/settings/crm-migration/SettingsCRMMigration.tsx:22
#: src/pages/settings/crm-migration/SettingsCRMMigration.tsx:28
#~ msgid "Migrate"
#~ msgstr "Migrate"
#: src/modules/object-record/record-board/record-board-column/utils/getAggregateOperationShortLabel.ts:11
#: src/modules/object-record/record-board/record-board-column/utils/getAggregateOperationLabel.ts:11
msgid "Min"
@ -1013,6 +953,7 @@ msgstr "Move right"
#: src/pages/settings/SettingsWorkspaceMembers.tsx:177
#: src/pages/settings/SettingsWorkspace.tsx:44
#: src/pages/settings/SettingsProfile.tsx:35
#: src/pages/settings/roles/SettingsRoles.tsx:31
#: src/pages/settings/developers/api-keys/SettingsDevelopersApiKeysNew.tsx:106
#: src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx:209
#: src/pages/settings/data-model/SettingsObjectFieldTable.tsx:29
@ -1031,10 +972,6 @@ msgstr "Name of your API key"
msgid "Name of your workspace"
msgstr "Name of your workspace"
#: src/modules/command-menu/components/CommandMenu.tsx:143
#~ msgid "Navigate"
#~ msgstr "Navigate"
#: src/modules/action-menu/actions/record-actions/constants/WorkflowRunsActionsConfig.ts:76
#: src/modules/action-menu/actions/record-actions/constants/DefaultActionsConfigV2.ts:180
msgid "Navigate to next record"
@ -1092,6 +1029,10 @@ msgstr "New Password"
msgid "New record"
msgstr "New record"
#: src/pages/settings/roles/SettingsRoles.tsx:52
msgid "New Role"
msgstr "New Role"
#: src/pages/settings/developers/webhooks/components/SettingsDevelopersWebhooksNew.tsx:81
msgid "New Webhook"
msgstr "New Webhook"
@ -1108,26 +1049,14 @@ msgstr "No workflow runs yet"
msgid "No workflow versions yet"
msgstr "No workflow versions yet"
#: src/pages/settings/workspace/SettingsDomain.tsx:108
#~ msgid "not allowed"
#~ msgstr "not allowed"
#: src/modules/object-record/record-board/record-board-column/utils/getAggregateOperationShortLabel.ts:25
msgid "Not empty"
msgstr "Not empty"
#: src/modules/command-menu/components/CommandMenu.tsx:159
#~ msgid "Notes"
#~ msgstr "Notes"
#: src/modules/command-menu/components/CommandMenu.tsx:73
msgid "Object"
msgstr "Object"
#: src/pages/settings/data-model/SettingsNewObject.tsx:46
#~ msgid "Object created successfully"
#~ msgstr "Object created successfully"
#: src/pages/settings/data-model/SettingsObjects.tsx:155
#: src/pages/settings/data-model/SettingsObjectFieldEdit.tsx:179
#: src/pages/settings/data-model/SettingsNewObject.tsx:73
@ -1143,10 +1072,6 @@ msgstr "Off the beaten path"
msgid "Opened"
msgstr "Opened"
#: src/modules/command-menu/components/CommandMenu.tsx:155
#~ msgid "Opportunities"
#~ msgstr "Opportunities"
#: src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdown.tsx:40
msgid "Options"
msgstr "Options"
@ -1155,7 +1080,7 @@ msgstr "Options"
msgid "or"
msgstr "or"
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:194
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:207
msgid "Other"
msgstr "Other"
@ -1163,10 +1088,6 @@ msgstr "Other"
msgid "Page Not Found"
msgstr "Page Not Found"
#: src/pages/not-found/NotFound.tsx:41
#~ msgid "Page Not Found | Twenty"
#~ msgstr "Page Not Found | Twenty"
#: src/modules/settings/security/components/SettingsSecurityOptionsList.tsx:156
msgid "Password"
msgstr "Password"
@ -1175,10 +1096,6 @@ msgstr "Password"
msgid "Password reset link has been sent to the email"
msgstr "Password reset link has been sent to the email"
#: src/modules/command-menu/components/CommandMenu.tsx:147
#~ msgid "People"
#~ msgstr "People"
#: src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterDropdownContent.tsx:66
#: src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnHeaderAggregateDropdownMenuContent.tsx:45
msgid "Percent"
@ -1225,7 +1142,7 @@ msgstr "Preview"
#: src/pages/settings/SettingsProfile.tsx:19
#: src/pages/settings/SettingsProfile.tsx:25
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:102
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:108
msgid "Profile"
msgstr "Profile"
@ -1260,7 +1177,7 @@ msgstr "Regenerate Key"
#: src/pages/settings/Releases.tsx:111
#: src/pages/settings/Releases.tsx:117
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:210
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:223
msgid "Releases"
msgstr "Releases"
@ -1292,6 +1209,12 @@ msgstr "Reset to"
msgid "Results"
msgstr "Results"
#: src/pages/settings/roles/SettingsRoles.tsx:48
#: src/pages/settings/roles/SettingsRoles.tsx:62
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:161
msgid "Roles"
msgstr "Roles"
#: src/modules/object-record/record-table/empty-state/utils/getEmptyStateSubTitle.ts:13
msgid "Run a workflow and return here to view its executions"
msgstr "Run a workflow and return here to view its executions"
@ -1310,12 +1233,8 @@ msgstr "Search a field..."
msgid "Search an index..."
msgstr "Search an index..."
#: src/pages/settings/data-model/SettingsObjects.tsx:171
#~ msgid "Search an object..."
#~ msgstr "Search an object..."
#: src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx:219
#: src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx:173
#: src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx:182
msgid "Search fields"
msgstr "Search fields"
@ -1329,7 +1248,7 @@ msgstr "Search records"
#: src/pages/settings/security/SettingsSecurity.tsx:33
#: src/pages/settings/security/SettingsSecurity.tsx:40
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:165
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:178
msgid "Security"
msgstr "Security"
@ -1367,7 +1286,7 @@ msgstr "Select your preferred language"
msgid "Send an invite email to your team"
msgstr "Send an invite email to your team"
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:197
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:210
msgid "Server Admin Panel"
msgstr "Server Admin Panel"
@ -1431,10 +1350,6 @@ msgstr "Subdomain can not be longer than 30 characters"
msgid "Subdomain can not be shorter than 3 characters"
msgstr "Subdomain can not be shorter than 3 characters"
#: src/pages/settings/SettingsBilling.tsx:113
#~ msgid "Subscription has been switched {0}"
#~ msgstr "Subscription has been switched {0}"
#: src/pages/settings/SettingsBilling.tsx:120
msgid "Subscription has been switched {to}"
msgstr "Subscription has been switched {to}"
@ -1448,14 +1363,6 @@ msgstr "Sum"
msgid "Support"
msgstr "Support"
#: src/pages/settings/SettingsBilling.tsx:157
#~ msgid "Switch {2}"
#~ msgstr "Switch {2}"
#: src/pages/settings/SettingsBilling.tsx:161
#~ msgid "Switch {3}"
#~ msgstr "Switch {3}"
#: src/pages/settings/SettingsBilling.tsx:159
msgid "Switch {from}"
msgstr "Switch {from}"
@ -1464,10 +1371,6 @@ msgstr "Switch {from}"
msgid "Switch {to}"
msgstr "Switch {to}"
#: src/pages/settings/SettingsBilling.tsx:187
#~ msgid "Switch billing {4}"
#~ msgstr "Switch billing {4}"
#: src/pages/settings/SettingsBilling.tsx:187
msgid "Switch billing {to}"
msgstr "Switch billing {to}"
@ -1484,10 +1387,7 @@ msgstr "System settings - {systemDateFormatLabel}"
msgid "System Settings - {systemTimeFormatLabel}"
msgstr "System Settings - {systemTimeFormatLabel}"
#: src/modules/command-menu/components/CommandMenu.tsx:163
#~ msgid "Tasks"
#~ msgstr "Tasks"
#: src/modules/workflow/components/RecordShowPageWorkflowHeader.tsx:50
#: src/modules/action-menu/actions/record-actions/constants/WorkflowActionsConfig.ts:156
msgid "Test"
msgstr "Test"
@ -1527,10 +1427,6 @@ msgstr "The values of this field must be unique"
msgid "There was an issue"
msgstr "There was an issue"
#: src/pages/settings/SettingsWorkspaceMembers.tsx:323
#~ msgid "This action cannot be undone. This will permanently delete this user and remove them from all their assignements."
#~ msgstr "This action cannot be undone. This will permanently delete this user and remove them from all their assignements."
#: src/pages/settings/SettingsWorkspaceMembers.tsx:323
msgid "This action cannot be undone. This will permanently delete this user and remove them from all their assignments."
msgstr "This action cannot be undone. This will permanently delete this user and remove them from all their assignments."
@ -1603,7 +1499,7 @@ msgstr "Use our API or add your first {objectLabel} manually"
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:29
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:17
#: src/pages/settings/accounts/SettingsAccounts.tsx:43
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:100
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:106
msgid "User"
msgstr "User"
@ -1618,10 +1514,6 @@ msgstr "User is not logged in"
msgid "Values"
msgstr "Values"
#: src/modules/command-menu/components/CommandMenu.tsx:135
#~ msgid "View"
#~ msgstr "View"
#: src/pages/settings/SettingsBilling.tsx:150
msgid "View billing details"
msgstr "View billing details"
@ -1655,13 +1547,9 @@ msgstr "When the API key will expire."
msgid "When the key will be disabled"
msgstr "When the key will be disabled"
#: src/modules/command-menu/components/CommandMenu.tsx:131
#~ msgid "Workflow Record Selection"
#~ msgstr "Workflow Record Selection"
#: src/modules/command-menu/components/CommandMenu.tsx:139
#~ msgid "Workflows"
#~ msgstr "Workflows"
#: src/modules/workflow/components/RecordShowPageWorkflowHeader.tsx:58
msgid "Workflow cannot be tested"
msgstr "Workflow cannot be tested"
#: src/pages/settings/SettingsWorkspaceMembers.tsx:146
#: src/pages/settings/SettingsWorkspace.tsx:32
@ -1669,6 +1557,7 @@ msgstr "When the key will be disabled"
#: src/pages/settings/Releases.tsx:114
#: src/pages/settings/workspace/SettingsDomain.tsx:112
#: src/pages/settings/security/SettingsSecurity.tsx:37
#: src/pages/settings/roles/SettingsRoles.tsx:59
#: src/pages/settings/integrations/SettingsIntegrations.tsx:18
#: src/pages/settings/developers/SettingsDevelopers.tsx:39
#: src/pages/settings/developers/webhooks/components/SettingsDevelopersWebhooksNew.tsx:74
@ -1680,7 +1569,7 @@ msgstr "When the key will be disabled"
#: src/pages/settings/data-model/SettingsNewObject.tsx:69
#: src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldConfigure.tsx:201
#: src/modules/sign-in-background-mock/components/SignInAppNavigationDrawerMock.tsx:58
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:135
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:141
#: src/modules/favorites/components/WorkspaceFavorites.tsx:19
msgid "Workspace"
msgstr "Workspace"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +1,11 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2025-01-16 21:57+0100\n"
"POT-Creation-Date: 2025-01-30 18:16+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: pseudo-en\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Plural-Forms: \n"
#. js-lingui-explicit-id
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:49
#~ msgid "/+Z5u4"
#~ msgstr ""
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:126
#~ msgid "{0}"
#~ msgstr ""
#: src/modules/object-record/record-board/record-board-column/utils/computeAggregateValueAndLabel.ts:129
msgid "{aggregateLabel} of {fieldLabel}"
@ -70,7 +55,7 @@ msgid "Account Deletion"
msgstr ""
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:21
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:113
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:119
msgid "Accounts"
msgstr ""
@ -93,10 +78,6 @@ msgstr ""
msgid "Active API keys created by you or your team."
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:50
#~ msgid "Active APIs keys created by you or your team."
#~ msgstr ""
#: src/modules/ui/layout/page/components/PageAddButton.tsx:38
msgid "Add"
msgstr ""
@ -147,6 +128,10 @@ msgstr ""
msgid "All ({relationRecordsCount})"
msgstr ""
#: src/pages/settings/roles/SettingsRoles.tsx:68
msgid "All roles"
msgstr ""
#: src/modules/settings/security/components/SettingsSecurityOptionsList.tsx:135
msgid "Allow logins through Google's single sign-on functionality."
msgstr ""
@ -168,7 +153,7 @@ msgid "An optional description"
msgstr ""
#: src/pages/onboarding/ChooseYourPlan.tsx:91
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:178
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:191
msgid "API & Webhooks"
msgstr ""
@ -193,19 +178,19 @@ msgstr ""
msgid "Are you sure that you want to change your billing interval?"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:190
#~ msgid "Are you sure that you want to change your billing interval? {5}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:189
#~ msgid "Are you sure that you want to change your billing interval? {impact}"
#~ msgstr ""
#: src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx:201
#: src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx:214
msgid "Ascending"
msgstr ""
#: src/pages/settings/roles/SettingsRoles.tsx:69
msgid "Assign roles to specify each member's access permissions"
msgstr ""
#: src/pages/settings/roles/SettingsRoles.tsx:36
msgid "Assigned to"
msgstr ""
#: src/modules/settings/security/components/SettingsSecurityOptionsList.tsx:73
msgid "At least one authentication method must be enabled"
msgstr ""
@ -229,7 +214,7 @@ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:132
#: src/pages/settings/SettingsBilling.tsx:138
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:148
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:154
msgid "Billing"
msgstr ""
@ -251,7 +236,7 @@ msgstr ""
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:14
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:24
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:77
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:83
msgid "Calendars"
msgstr ""
@ -274,10 +259,6 @@ msgstr ""
msgid "Cancel your subscription"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:194
#~ msgid "Change {6}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:193
msgid "Change {to}"
msgstr ""
@ -288,10 +269,6 @@ msgstr ""
msgid "Change Password"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:86
#~ msgid "Chinese"
#~ msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:86
msgid "Chinese — Simplified"
msgstr ""
@ -316,10 +293,6 @@ msgstr ""
msgid "Close"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:151
#~ msgid "Companies"
#~ msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:48
msgid "Configure an SSO connection"
msgstr ""
@ -336,10 +309,6 @@ msgstr ""
msgid "Configure your emails and calendar settings."
msgstr ""
#: src/modules/settings/accounts/components/SettingsNewAccountSection.tsx:13
#~ msgid "Connect a Google account"
#~ msgstr ""
#: src/modules/settings/accounts/components/SettingsNewAccountSection.tsx:11
msgid "Connect a new account to your workspace"
msgstr ""
@ -377,10 +346,6 @@ msgstr ""
msgid "Copy this key as it will not be visible again"
msgstr ""
#: src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx:172
#~ msgid "Copy this key as it will only be visible this one time"
#~ msgstr ""
#: src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterDropdownContent.tsx:52
#: src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnHeaderAggregateDropdownMenuContent.tsx:38
msgid "Count"
@ -423,10 +388,6 @@ msgstr ""
msgid "Custom objects"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:167
#~ msgid "Custom Objects"
#~ msgstr ""
#: src/modules/settings/data-model/object-details/components/tabs/ObjectFields.tsx:28
msgid "Customise the fields available in the {objectLabelSingular} views."
msgstr ""
@ -448,7 +409,7 @@ msgid "Danger zone"
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:139
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:154
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:167
msgid "Data model"
msgstr ""
@ -632,7 +593,7 @@ msgstr ""
msgid "Email or domain is already in blocklist"
msgstr ""
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:71
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:77
#: src/modules/settings/accounts/components/SettingsAccountsSettingsSection.tsx:45
msgid "Emails"
msgstr ""
@ -676,10 +637,6 @@ msgstr ""
msgid "Error regenerating api key: {err}"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:118
#~ msgid "Error while switching subscription {1}."
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:124
msgid "Error while switching subscription {to}."
msgstr ""
@ -696,10 +653,6 @@ msgstr ""
msgid "Existing objects"
msgstr ""
#: src/modules/navigation/components/AppNavigationDrawer.tsx:36
#~ msgid "Exit settings"
#~ msgstr ""
#: src/modules/navigation/components/AppNavigationDrawer.tsx:36
msgid "Exit Settings"
msgstr ""
@ -710,7 +663,7 @@ msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:26
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:32
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:107
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:113
msgid "Experience"
msgstr ""
@ -761,10 +714,6 @@ msgstr ""
msgid "Export view"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:57
#~ msgid "Failed to create object"
#~ msgstr ""
#: src/modules/favorites/components/CurrentWorkspaceMemberFavoritesFolders.tsx:58
msgid "Favorites"
msgstr ""
@ -785,7 +734,7 @@ msgid "Fields Count"
msgstr ""
#: src/modules/object-record/record-table/record-table-header/components/RecordTableColumnHeadDropdownMenu.tsx:102
#: src/modules/object-record/object-filter-dropdown/components/SingleEntityObjectFilterDropdownButton.tsx:81
#: src/modules/object-record/object-filter-dropdown/components/SingleEntityObjectFilterDropdownButton.tsx:82
#: src/modules/object-record/object-filter-dropdown/components/MultipleFiltersButton.tsx:24
msgid "Filter"
msgstr ""
@ -810,14 +759,14 @@ msgstr ""
msgid "Full access"
msgstr ""
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:186
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:199
msgid "Functions"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:29
#: src/pages/settings/SettingsWorkspace.tsx:35
#: src/pages/settings/workspace/SettingsDomain.tsx:116
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:137
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:143
msgid "General"
msgstr ""
@ -877,7 +826,7 @@ msgstr ""
#: src/pages/settings/integrations/SettingsIntegrations.tsx:15
#: src/pages/settings/integrations/SettingsIntegrations.tsx:21
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:159
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:172
msgid "Integrations"
msgstr ""
@ -898,10 +847,6 @@ msgstr ""
msgid "Invalid form values"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:53
#~ msgid "Invalid object data"
#~ msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:244
msgid "Invite by email"
msgstr ""
@ -926,7 +871,7 @@ msgstr ""
msgid "Italian"
msgstr ""
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:204
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:217
msgid "Lab"
msgstr ""
@ -950,7 +895,7 @@ msgstr ""
msgid "Log out"
msgstr ""
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:215
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:228
msgid "Logout"
msgstr ""
@ -982,15 +927,10 @@ msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:143
#: src/pages/settings/SettingsWorkspaceMembers.tsx:149
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:142
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:148
msgid "Members"
msgstr ""
#: src/pages/settings/crm-migration/SettingsCRMMigration.tsx:22
#: src/pages/settings/crm-migration/SettingsCRMMigration.tsx:28
#~ msgid "Migrate"
#~ msgstr ""
#: src/modules/object-record/record-board/record-board-column/utils/getAggregateOperationShortLabel.ts:11
#: src/modules/object-record/record-board/record-board-column/utils/getAggregateOperationLabel.ts:11
msgid "Min"
@ -1013,6 +953,7 @@ msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:177
#: src/pages/settings/SettingsWorkspace.tsx:44
#: src/pages/settings/SettingsProfile.tsx:35
#: src/pages/settings/roles/SettingsRoles.tsx:31
#: src/pages/settings/developers/api-keys/SettingsDevelopersApiKeysNew.tsx:106
#: src/pages/settings/developers/api-keys/SettingsDevelopersApiKeyDetail.tsx:209
#: src/pages/settings/data-model/SettingsObjectFieldTable.tsx:29
@ -1031,10 +972,6 @@ msgstr ""
msgid "Name of your workspace"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:143
#~ msgid "Navigate"
#~ msgstr ""
#: src/modules/action-menu/actions/record-actions/constants/WorkflowRunsActionsConfig.ts:76
#: src/modules/action-menu/actions/record-actions/constants/DefaultActionsConfigV2.ts:180
msgid "Navigate to next record"
@ -1092,6 +1029,10 @@ msgstr ""
msgid "New record"
msgstr ""
#: src/pages/settings/roles/SettingsRoles.tsx:52
msgid "New Role"
msgstr ""
#: src/pages/settings/developers/webhooks/components/SettingsDevelopersWebhooksNew.tsx:81
msgid "New Webhook"
msgstr ""
@ -1108,26 +1049,14 @@ msgstr ""
msgid "No workflow versions yet"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:108
#~ msgid "not allowed"
#~ msgstr ""
#: src/modules/object-record/record-board/record-board-column/utils/getAggregateOperationShortLabel.ts:25
msgid "Not empty"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:159
#~ msgid "Notes"
#~ msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:73
msgid "Object"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:46
#~ msgid "Object created successfully"
#~ msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:155
#: src/pages/settings/data-model/SettingsObjectFieldEdit.tsx:179
#: src/pages/settings/data-model/SettingsNewObject.tsx:73
@ -1143,10 +1072,6 @@ msgstr ""
msgid "Opened"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:155
#~ msgid "Opportunities"
#~ msgstr ""
#: src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdown.tsx:40
msgid "Options"
msgstr ""
@ -1155,7 +1080,7 @@ msgstr ""
msgid "or"
msgstr ""
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:194
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:207
msgid "Other"
msgstr ""
@ -1163,10 +1088,6 @@ msgstr ""
msgid "Page Not Found"
msgstr ""
#: src/pages/not-found/NotFound.tsx:41
#~ msgid "Page Not Found | Twenty"
#~ msgstr ""
#: src/modules/settings/security/components/SettingsSecurityOptionsList.tsx:156
msgid "Password"
msgstr ""
@ -1175,10 +1096,6 @@ msgstr ""
msgid "Password reset link has been sent to the email"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:147
#~ msgid "People"
#~ msgstr ""
#: src/modules/object-record/record-table/record-table-footer/components/RecordTableColumnAggregateFooterDropdownContent.tsx:66
#: src/modules/object-record/record-board/record-board-column/components/RecordBoardColumnHeaderAggregateDropdownMenuContent.tsx:45
msgid "Percent"
@ -1225,7 +1142,7 @@ msgstr ""
#: src/pages/settings/SettingsProfile.tsx:19
#: src/pages/settings/SettingsProfile.tsx:25
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:102
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:108
msgid "Profile"
msgstr ""
@ -1260,7 +1177,7 @@ msgstr ""
#: src/pages/settings/Releases.tsx:111
#: src/pages/settings/Releases.tsx:117
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:210
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:223
msgid "Releases"
msgstr ""
@ -1292,6 +1209,12 @@ msgstr ""
msgid "Results"
msgstr ""
#: src/pages/settings/roles/SettingsRoles.tsx:48
#: src/pages/settings/roles/SettingsRoles.tsx:62
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:161
msgid "Roles"
msgstr ""
#: src/modules/object-record/record-table/empty-state/utils/getEmptyStateSubTitle.ts:13
msgid "Run a workflow and return here to view its executions"
msgstr ""
@ -1310,12 +1233,8 @@ msgstr ""
msgid "Search an index..."
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:171
#~ msgid "Search an object..."
#~ msgstr ""
#: src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx:219
#: src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx:173
#: src/modules/object-record/object-filter-dropdown/components/ObjectFilterDropdownFilterSelect.tsx:182
msgid "Search fields"
msgstr ""
@ -1329,7 +1248,7 @@ msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:33
#: src/pages/settings/security/SettingsSecurity.tsx:40
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:165
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:178
msgid "Security"
msgstr ""
@ -1367,7 +1286,7 @@ msgstr ""
msgid "Send an invite email to your team"
msgstr ""
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:197
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:210
msgid "Server Admin Panel"
msgstr ""
@ -1431,10 +1350,6 @@ msgstr ""
msgid "Subdomain can not be shorter than 3 characters"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:113
#~ msgid "Subscription has been switched {0}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:120
msgid "Subscription has been switched {to}"
msgstr ""
@ -1448,14 +1363,6 @@ msgstr ""
msgid "Support"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:157
#~ msgid "Switch {2}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:161
#~ msgid "Switch {3}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:159
msgid "Switch {from}"
msgstr ""
@ -1464,10 +1371,6 @@ msgstr ""
msgid "Switch {to}"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:187
#~ msgid "Switch billing {4}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:187
msgid "Switch billing {to}"
msgstr ""
@ -1484,10 +1387,7 @@ msgstr ""
msgid "System Settings - {systemTimeFormatLabel}"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:163
#~ msgid "Tasks"
#~ msgstr ""
#: src/modules/workflow/components/RecordShowPageWorkflowHeader.tsx:50
#: src/modules/action-menu/actions/record-actions/constants/WorkflowActionsConfig.ts:156
msgid "Test"
msgstr ""
@ -1527,10 +1427,6 @@ msgstr ""
msgid "There was an issue"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:323
#~ msgid "This action cannot be undone. This will permanently delete this user and remove them from all their assignements."
#~ msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:323
msgid "This action cannot be undone. This will permanently delete this user and remove them from all their assignments."
msgstr ""
@ -1603,7 +1499,7 @@ msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:29
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:17
#: src/pages/settings/accounts/SettingsAccounts.tsx:43
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:100
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:106
msgid "User"
msgstr ""
@ -1618,10 +1514,6 @@ msgstr ""
msgid "Values"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:135
#~ msgid "View"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:150
msgid "View billing details"
msgstr ""
@ -1655,13 +1547,9 @@ msgstr ""
msgid "When the key will be disabled"
msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:131
#~ msgid "Workflow Record Selection"
#~ msgstr ""
#: src/modules/command-menu/components/CommandMenu.tsx:139
#~ msgid "Workflows"
#~ msgstr ""
#: src/modules/workflow/components/RecordShowPageWorkflowHeader.tsx:58
msgid "Workflow cannot be tested"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:146
#: src/pages/settings/SettingsWorkspace.tsx:32
@ -1669,6 +1557,7 @@ msgstr ""
#: src/pages/settings/Releases.tsx:114
#: src/pages/settings/workspace/SettingsDomain.tsx:112
#: src/pages/settings/security/SettingsSecurity.tsx:37
#: src/pages/settings/roles/SettingsRoles.tsx:59
#: src/pages/settings/integrations/SettingsIntegrations.tsx:18
#: src/pages/settings/developers/SettingsDevelopers.tsx:39
#: src/pages/settings/developers/webhooks/components/SettingsDevelopersWebhooksNew.tsx:74
@ -1680,7 +1569,7 @@ msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:69
#: src/pages/settings/data-model/SettingsObjectNewField/SettingsObjectNewFieldConfigure.tsx:201
#: src/modules/sign-in-background-mock/components/SignInAppNavigationDrawerMock.tsx:58
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:135
#: src/modules/settings/components/SettingsNavigationDrawerItems.tsx:141
#: src/modules/favorites/components/WorkspaceFavorites.tsx:19
msgid "Workspace"
msgstr ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,590 +0,0 @@
msgid ""
msgstr ""
"POT-Creation-Date: 2025-01-16 21:57+0100\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: @lingui/cli\n"
"Language: zh\n"
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Plural-Forms: \n"
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:126
#~ msgid "{0}"
#~ msgstr ""
#: src/modules/ui/input/components/ImageInput.tsx:157
msgid "Abort"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:86
msgid "About"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:321
msgid "Account Deletion"
msgstr ""
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:21
msgid "Accounts"
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:193
#: src/pages/settings/data-model/SettingsObjectFieldTable.tsx:201
msgid "Active"
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:50
msgid "Active API keys created by you or your team."
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:50
#~ msgid "Active APIs keys created by you or your team."
#~ msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:149
msgid "Add object"
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:49
msgid "API keys"
msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:37
msgid "Appearance"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:190
msgid "Are you sure that you want to change your billing interval?"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:190
#~ msgid "Are you sure that you want to change your billing interval? {5}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:189
#~ msgid "Are you sure that you want to change your billing interval? {impact}"
#~ msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:63
msgid "Authentication"
msgstr ""
#: src/pages/not-found/NotFound.tsx:58
msgid "Back to content"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:129
#: src/pages/settings/SettingsBilling.tsx:135
msgid "Billing"
msgstr ""
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:14
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:24
msgid "Calendars"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:175
msgid "Cancel Plan"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:170
msgid "Cancel your subscription"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:194
#~ msgid "Change {6}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:194
msgid "Change {to}"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:86
msgid "Chinese"
msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:48
msgid "Configure an SSO connection"
msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:43
msgid "Configure how dates are displayed across the app"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:228
msgid "Continue"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:217
msgid "Copy invitation link"
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:56
msgid "Create API key"
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:72
msgid "Create Webhook"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:56
msgid "Customize Domain"
msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:64
msgid "Customize your workspace security"
msgstr ""
#: src/modules/settings/profile/components/DeleteWorkspace.tsx:30
msgid "Danger zone"
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:144
msgid "Data model"
msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:42
msgid "Date and time"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:87
msgid "Define the name and description of your object"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:332
msgid "Delete account"
msgstr ""
#: src/modules/settings/profile/components/DeleteWorkspace.tsx:36
#: src/modules/settings/profile/components/DeleteWorkspace.tsx:54
msgid "Delete workspace"
msgstr ""
#: src/modules/settings/profile/components/DeleteWorkspace.tsx:31
msgid "Delete your whole workspace"
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:35
#: src/pages/settings/developers/SettingsDevelopers.tsx:42
msgid "Developers"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:51
#: src/pages/settings/workspace/SettingsDomain.tsx:125
#: src/pages/settings/workspace/SettingsDomain.tsx:135
#: src/pages/settings/workspace/SettingsDomain.tsx:150
msgid "Domain"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:157
msgid "Edit billing interval"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:145
msgid "Edit payment method, see your invoices and more"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:52
msgid "Edit your subdomain name or set a custom domain."
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:180
#: src/pages/settings/SettingsWorkspaceMembers.tsx:256
#: src/pages/settings/SettingsProfile.tsx:42
msgid "Email"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:82
msgid "English"
msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:51
msgid "Enterprise"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:118
#~ msgid "Error while switching subscription {1}."
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:121
msgid "Error while switching subscription {to}."
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:66
msgid "Establish Webhook endpoints for notifications on asynchronous events."
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:167
msgid "Existing objects"
msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:26
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:32
msgid "Experience"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:259
msgid "Expires in"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:57
msgid "Failed to create object"
msgstr ""
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:42
msgid "Fields"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:66
msgid "French"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:45
msgid "from monthly to yearly"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:52
msgid "from yearly to monthly"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:29
#: src/pages/settings/SettingsWorkspace.tsx:35
#: src/pages/settings/workspace/SettingsDomain.tsx:132
msgid "General"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:70
msgid "German"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:184
msgid "Get the most out of your workspace by inviting your team."
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:65
msgid "Grant Twenty support temporary access to your workspace so we can troubleshoot problems or recover content on your behalf. You can revoke access at any time."
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:217
#: src/pages/settings/data-model/SettingsObjectFieldTable.tsx:215
msgid "Inactive"
msgstr ""
#: src/pages/settings/integrations/SettingsIntegrations.tsx:15
#: src/pages/settings/integrations/SettingsIntegrations.tsx:21
msgid "Integrations"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:87
msgid "Invalid form values"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:53
msgid "Invalid object data"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:244
msgid "Invite by email"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:157
msgid "Invite by link"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:152
msgid "Invite link sent to email addresses"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:181
msgid "Invite your team"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:74
msgid "Italian"
msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:51
msgid "Language"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:127
msgid "Link copied to clipboard"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:167
msgid "Manage Members"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:168
msgid "Manage the members of your space here"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:144
msgid "Manage your subscription"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:143
#: src/pages/settings/SettingsWorkspaceMembers.tsx:149
msgid "Members"
msgstr ""
#: src/pages/settings/crm-migration/SettingsCRMMigration.tsx:22
#: src/pages/settings/crm-migration/SettingsCRMMigration.tsx:28
msgid "Migrate"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:177
#: src/pages/settings/SettingsWorkspace.tsx:44
#: src/pages/settings/SettingsProfile.tsx:35
msgid "Name"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:44
msgid "Name of your workspace"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:77
msgid "New"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:67
msgid "New Object"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:108
msgid "not allowed"
msgstr ""
#: src/pages/settings/data-model/SettingsNewObject.tsx:46
msgid "Object created successfully"
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:160
#: src/pages/settings/data-model/SettingsNewObject.tsx:74
msgid "Objects"
msgstr ""
#: src/pages/not-found/NotFound.tsx:47
msgid "Off the beaten path"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:213
msgid "or"
msgstr ""
#: src/pages/not-found/NotFound.tsx:41
msgid "Page Not Found | Twenty"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:40
#: src/pages/settings/SettingsProfile.tsx:30
msgid "Picture"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:62
msgid "Portuguese"
msgstr ""
#: src/pages/settings/SettingsProfile.tsx:19
#: src/pages/settings/SettingsProfile.tsx:25
msgid "Profile"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:93
msgid "Pseudo-English"
msgstr ""
#: src/pages/settings/Releases.tsx:111
#: src/pages/settings/Releases.tsx:117
msgid "Releases"
msgstr ""
#: src/modules/ui/input/components/ImageInput.tsx:173
msgid "Remove"
msgstr ""
#: src/pages/settings/data-model/SettingsObjectFieldTable.tsx:183
msgid "Search a field..."
msgstr ""
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:116
msgid "Search an index..."
msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:171
#~ msgid "Search an object..."
#~ msgstr ""
#: src/pages/settings/data-model/SettingsObjects.tsx:171
msgid "Search for an object..."
msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:33
#: src/pages/settings/security/SettingsSecurity.tsx:40
msgid "Security"
msgstr ""
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:52
msgid "Select your preferred language"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:245
msgid "Send an invite email to your team"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:151
msgid "Set the name of your subdomain"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:158
msgid "Share this link to invite users to join your workspace"
msgstr ""
#: src/pages/onboarding/InviteTeam.tsx:236
msgid "Skip"
msgstr ""
#: src/pages/settings/profile/appearance/components/LocalePicker.tsx:78
msgid "Spanish"
msgstr ""
#: src/pages/settings/security/SettingsSecurity.tsx:47
msgid "SSO"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:107
msgid "Subdomain already taken"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:49
msgid "Subdomain can not be longer than 30 characters"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:48
msgid "Subdomain can not be shorter than 3 characters"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:113
#~ msgid "Subscription has been switched {0}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:117
msgid "Subscription has been switched {to}"
msgstr ""
#: src/pages/settings/SettingsWorkspace.tsx:63
msgid "Support"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:157
#~ msgid "Switch {2}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:161
#~ msgid "Switch {3}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:158
msgid "Switch {from}"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:162
msgid "Switch {to}"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:187
#~ msgid "Switch billing {4}"
#~ msgstr ""
#: src/pages/settings/SettingsBilling.tsx:188
msgid "Switch billing {to}"
msgstr ""
#: src/pages/settings/SettingsProfile.tsx:43
msgid "The email associated to your account"
msgstr ""
#: src/pages/not-found/NotFound.tsx:50
msgid "The page you're seeking is either gone or never was. Let's get you back on track"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:323
msgid "This action cannot be undone. This will permanently delete this user and remove them from all their assignements."
msgstr ""
#: src/modules/settings/profile/components/DeleteWorkspace.tsx:48
msgid "This action cannot be undone. This will permanently delete your entire workspace. <0/> Please type in your email to confirm."
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:51
msgid "to monthly"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:44
msgid "to yearly"
msgstr ""
#: src/pages/settings/data-model/SettingsObjectIndexTable.tsx:55
msgid "Type"
msgstr ""
#: src/modules/ui/input/components/ImageInput.tsx:165
msgid "Upload"
msgstr ""
#: src/pages/settings/workspace/SettingsDomain.tsx:51
msgid "Use letter, number and dash only. Start and finish with a letter or a number"
msgstr ""
#: src/pages/settings/SettingsProfile.tsx:22
#: src/pages/settings/profile/appearance/components/SettingsExperience.tsx:29
#: src/pages/settings/accounts/SettingsAccountsCalendars.tsx:17
msgid "User"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:149
msgid "View billing details"
msgstr ""
#: src/pages/settings/developers/SettingsDevelopers.tsx:65
msgid "Webhooks"
msgstr ""
#: src/pages/settings/SettingsWorkspaceMembers.tsx:146
#: src/pages/settings/SettingsWorkspace.tsx:32
#: src/pages/settings/SettingsBilling.tsx:132
#: src/pages/settings/Releases.tsx:114
#: src/pages/settings/workspace/SettingsDomain.tsx:128
#: src/pages/settings/security/SettingsSecurity.tsx:37
#: src/pages/settings/integrations/SettingsIntegrations.tsx:18
#: src/pages/settings/developers/SettingsDevelopers.tsx:39
#: src/pages/settings/data-model/SettingsObjects.tsx:157
#: src/pages/settings/data-model/SettingsNewObject.tsx:70
#: src/pages/settings/crm-migration/SettingsCRMMigration.tsx:25
msgid "Workspace"
msgstr ""
#: src/modules/settings/profile/components/DeleteWorkspace.tsx:46
msgid "Workspace Deletion"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:46
msgid "You will be charged immediately for the full year."
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:53
msgid "Your credit balance will be used to pay the monthly bills."
msgstr ""
#: src/pages/settings/SettingsProfile.tsx:36
msgid "Your name as it will be displayed"
msgstr ""
#: src/pages/settings/SettingsBilling.tsx:171
msgid "Your workspace will be disabled"
msgstr ""

View File

@ -259,6 +259,12 @@ const SettingsLab = lazy(() =>
})),
);
const SettingsRoles = lazy(() =>
import('~/pages/settings/roles/SettingsRoles').then((module) => ({
default: module.SettingsRoles,
})),
);
type SettingsRoutesProps = {
isBillingEnabled?: boolean;
isFunctionSettingsEnabled?: boolean;
@ -304,6 +310,7 @@ export const SettingsRoutes = ({
element={<SettingsObjectDetailPage />}
/>
<Route path={SettingsPath.NewObject} element={<SettingsNewObject />} />
<Route path={SettingsPath.Roles} element={<SettingsRoles />} />
<Route path={SettingsPath.Developers} element={<SettingsDevelopers />} />
<Route
path={SettingsPath.DevelopersNewApiKey}

View File

@ -12,6 +12,7 @@ import {
IconFunction,
IconHierarchy2,
IconKey,
IconLock,
IconMail,
IconRocket,
IconServer,
@ -35,8 +36,10 @@ import { NavigationDrawerItemGroup } from '@/ui/navigation/navigation-drawer/com
import { NavigationDrawerSection } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSection';
import { NavigationDrawerSectionTitle } from '@/ui/navigation/navigation-drawer/components/NavigationDrawerSectionTitle';
import { getNavigationSubItemLeftAdornment } from '@/ui/navigation/navigation-drawer/utils/getNavigationSubItemLeftAdornment';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useLingui } from '@lingui/react/macro';
import { matchPath, resolvePath, useLocation } from 'react-router-dom';
import { FeatureFlagKey } from '~/generated/graphql';
import { getSettingsPath } from '~/utils/navigation/getSettingsPath';
type SettingsNavigationItem = {
@ -53,6 +56,9 @@ export const SettingsNavigationDrawerItems = () => {
const { t } = useLingui();
const billing = useRecoilValue(billingState);
const isPermissionsEnabled = useIsFeatureEnabled(
FeatureFlagKey.IsPermissionsEnabled,
);
// We want to disable this serverless function setting menu but keep the code
// for now
@ -150,6 +156,13 @@ export const SettingsNavigationDrawerItems = () => {
Icon={IconCurrencyDollar}
/>
)}
{isPermissionsEnabled && (
<SettingsNavigationDrawerItem
label={t`Roles`}
path={SettingsPath.Roles}
Icon={IconLock}
/>
)}
<SettingsNavigationDrawerItem
label={t`Data model`}
path={SettingsPath.Objects}

View File

@ -36,4 +36,5 @@ export enum SettingsPath {
AdminPanel = 'admin-panel',
FeatureFlags = 'admin-panel/feature-flags',
Lab = 'lab',
Roles = 'roles',
}

View File

@ -0,0 +1,90 @@
import styled from '@emotion/styled';
import { Trans, useLingui } from '@lingui/react/macro';
import { Button, H2Title, IconPlus, Section } from 'twenty-ui';
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
import { SettingsPath } from '@/types/SettingsPath';
import { SubMenuTopBarContainer } from '@/ui/layout/page/components/SubMenuTopBarContainer';
import { Table } from '@/ui/layout/table/components/Table';
import { TableHeader } from '@/ui/layout/table/components/TableHeader';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { FeatureFlagKey } from '~/generated/graphql';
import { getSettingsPath } from '~/utils/navigation/getSettingsPath';
const StyledRoleTableRow = styled.div`
align-items: center;
display: grid;
grid-template-columns: 1fr 1fr;
`;
export const SettingsRoles = () => {
const { t } = useLingui();
const isPermissionsEnabled = useIsFeatureEnabled(
FeatureFlagKey.IsPermissionsEnabled,
);
const GET_SETTINGS_ROLE_TABLE_METADATA = {
tableId: 'settingsRole',
fields: [
{
fieldName: 'name',
fieldLabel: t`Name`,
align: 'left' as const,
},
{
fieldName: 'assignedTo',
fieldLabel: t`Assigned to`,
align: 'left' as const,
},
],
};
if (!isPermissionsEnabled) {
return null;
}
return (
<SubMenuTopBarContainer
title={t`Roles`}
actionButton={
<Button
Icon={IconPlus}
title={t`New Role`}
accent="blue"
size="small"
/>
}
links={[
{
children: <Trans>Workspace</Trans>,
href: getSettingsPath(SettingsPath.Workspace),
},
{ children: <Trans>Roles</Trans> },
]}
>
<SettingsPageContainer>
<Section>
<H2Title
title={t`All roles`}
description={t`Assign roles to specify each member's access permissions`}
/>
<Table>
<StyledRoleTableRow>
{GET_SETTINGS_ROLE_TABLE_METADATA.fields.map(
(settingsRoleTableMetadataField) => (
<TableHeader
key={settingsRoleTableMetadataField.fieldName}
align={settingsRoleTableMetadataField.align}
>
{settingsRoleTableMetadataField.fieldLabel}
</TableHeader>
),
)}
</StyledRoleTableRow>
</Table>
</Section>
</SettingsPageContainer>
</SubMenuTopBarContainer>
);
};

View File

@ -16,4 +16,5 @@ export enum FeatureFlagKey {
IsBillingPlansEnabled = 'IS_BILLING_PLANS_ENABLED',
IsRichTextV2Enabled = 'IS_RICH_TEXT_V2_ENABLED',
IsNewRelationEnabled = 'IS_NEW_RELATION_ENABLED',
IsPermissionsEnabled = 'IS_PERMISSIONS_ENABLED',
}