diff --git a/api/errorpkg/error_creators.go b/api/errorpkg/error_creators.go
index 8d49ca0ea..f591dc607 100644
--- a/api/errorpkg/error_creators.go
+++ b/api/errorpkg/error_creators.go
@@ -140,26 +140,6 @@ func NewInvitationNotFoundError(err error) *ErrorResponse {
)
}
-func NewSnapshotLanguageNotSetError(err error) *ErrorResponse {
- return NewErrorResponse(
- "snapshot_language_not_set",
- http.StatusBadRequest,
- "Snapshot language is not set.",
- "Snapshot language is not set.",
- err,
- )
-}
-
-func NewSnapshotTextLengthExceedsLimitError(err error) *ErrorResponse {
- return NewErrorResponse(
- "snapshot_text_length_exceeds_limit",
- http.StatusBadRequest,
- "Snapshot text length exceeds limit.",
- "Snapshot text length exceeds limit.",
- err,
- )
-}
-
func NewSnapshotCannotBePatchedError(err error) *ErrorResponse {
return NewErrorResponse(
"snapshot_cannot_be_patched",
@@ -180,16 +160,6 @@ func NewSnapshotHasPendingTaskError(err error) *ErrorResponse {
)
}
-func NewUnsupportedFileTypeError(err error) *ErrorResponse {
- return NewErrorResponse(
- "unsupported_file_type",
- http.StatusBadRequest,
- "File type is not supported.",
- "File type is not supported.",
- err,
- )
-}
-
func NewTaskIsRunningError(err error) *ErrorResponse {
return NewErrorResponse(
"task_is_running",
@@ -210,16 +180,6 @@ func NewTaskBelongsToAnotherUserError(err error) *ErrorResponse {
)
}
-func NewCannotDeletePendingTaskError(err error) *ErrorResponse {
- return NewErrorResponse(
- "cannot_delete_pending_task",
- http.StatusBadRequest,
- "Cannot delete a pending task.",
- "Cannot delete a pending task.",
- err,
- )
-}
-
func NewInternalServerError(err error) *ErrorResponse {
return NewErrorResponse(
"internal_server_error",
diff --git a/ui/src/pages/group/group-settings-page.tsx b/ui/src/pages/group/group-settings-page.tsx
index 122de9fbc..7d70db51c 100644
--- a/ui/src/pages/group/group-settings-page.tsx
+++ b/ui/src/pages/group/group-settings-page.tsx
@@ -59,62 +59,71 @@ const GroupSettingsPage = () => {
{group.name}
-
-
-
Name
-
-
{truncateEnd(group.name, 60)}
-
}
- isDisabled={!hasEditPermission}
- aria-label=""
- onClick={() => {
- setIsNameModalOpen(true)
- }}
- />
+
+
+
Basics
+
+ Name
+
+ {truncateEnd(group.name, 60)}
+ }
+ isDisabled={!hasEditPermission}
+ aria-label=""
+ onClick={() => {
+ setIsNameModalOpen(true)
+ }}
+ />
+
+
-
-
-
Add members
-
-
}
- isDisabled={!hasOwnerPermission}
- aria-label=""
- onClick={() => {
- setIsAddMembersModalOpen(true)
- }}
- />
+
+
Membership
+
+ Add members
+
+ }
+ isDisabled={!hasOwnerPermission}
+ aria-label=""
+ onClick={() => {
+ setIsAddMembersModalOpen(true)
+ }}
+ />
+
+
-
-
-
Delete permanently
-
-
}
- variant="solid"
- colorScheme="red"
- isDisabled={!hasOwnerPermission}
- aria-label=""
- onClick={() => setDeleteModalOpen(true)}
- />
+
+
Advanced
+
+ Delete group
+
+ }
+ variant="solid"
+ colorScheme="red"
+ isDisabled={!hasOwnerPermission}
+ aria-label=""
+ onClick={() => setDeleteModalOpen(true)}
+ />
+
-
setIsNameModalOpen(false)}
- />
- setIsAddMembersModalOpen(false)}
- />
- setDeleteModalOpen(false)}
- />
+
setIsNameModalOpen(false)}
+ />
+ setIsAddMembersModalOpen(false)}
+ />
+ setDeleteModalOpen(false)}
+ />
>
)
}
diff --git a/ui/src/pages/organization/organization-settings-page.tsx b/ui/src/pages/organization/organization-settings-page.tsx
index ddcbdf8ae..497cd93ce 100644
--- a/ui/src/pages/organization/organization-settings-page.tsx
+++ b/ui/src/pages/organization/organization-settings-page.tsx
@@ -60,78 +60,87 @@ const OrganizationSettingsPage = () => {
{org.name}
-
-
-
Name
-
-
{truncateEnd(org.name, 60)}
-
}
- isDisabled={!geEditorPermission(org.permission)}
- aria-label=""
- onClick={() => {
- setIsNameModalOpen(true)
- }}
- />
+
+
+
Basics
+
+ Name
+
+ {truncateEnd(org.name, 60)}
+ }
+ isDisabled={!geEditorPermission(org.permission)}
+ aria-label=""
+ onClick={() => {
+ setIsNameModalOpen(true)
+ }}
+ />
+
+
-
-
-
Invite members
-
-
}
- isDisabled={!geOwnerPermission(org.permission)}
- aria-label=""
- onClick={() => {
- setIsInviteMembersModalOpen(true)
- }}
- />
+
+
Membership
+
+ Invite members
+
+ }
+ isDisabled={!geOwnerPermission(org.permission)}
+ aria-label=""
+ onClick={() => {
+ setIsInviteMembersModalOpen(true)
+ }}
+ />
+
+
+ Leave
+
+ }
+ variant="solid"
+ colorScheme="red"
+ aria-label=""
+ onClick={() => setIsLeaveModalOpen(true)}
+ />
+
+
-
-
Leave
-
-
}
- variant="solid"
- colorScheme="red"
- aria-label=""
- onClick={() => setIsLeaveModalOpen(true)}
- />
+
+
Advanced
+
+ Delete organization
+
+ }
+ variant="solid"
+ colorScheme="red"
+ isDisabled={!geEditorPermission(org.permission)}
+ aria-label=""
+ onClick={() => setIsDeleteModalOpen(true)}
+ />
+
-
-
- Delete permanently
-
- }
- variant="solid"
- colorScheme="red"
- isDisabled={!geEditorPermission(org.permission)}
- aria-label=""
- onClick={() => setIsDeleteModalOpen(true)}
- />
-
-
setIsNameModalOpen(false)}
- />
- setIsInviteMembersModalOpen(false)}
- />
- setIsLeaveModalOpen(false)}
- />
- setIsDeleteModalOpen(false)}
- />
+
setIsNameModalOpen(false)}
+ />
+ setIsInviteMembersModalOpen(false)}
+ />
+ setIsLeaveModalOpen(false)}
+ />
+ setIsDeleteModalOpen(false)}
+ />
>
)
}
diff --git a/ui/src/pages/workspace/workspace-settings-page.tsx b/ui/src/pages/workspace/workspace-settings-page.tsx
index 43fbd341d..910f0196f 100644
--- a/ui/src/pages/workspace/workspace-settings-page.tsx
+++ b/ui/src/pages/workspace/workspace-settings-page.tsx
@@ -108,9 +108,8 @@ const WorkspaceSettingsPage = () => {
>
) : null}
-
- Storage capacity
+ Capacity
{prettyBytes(workspace.storageCapacity)}
{
}}
/>
+
Advanced
- Delete permanently
+ Delete workspace
}