🔒 feat: RBAC for Multi-Convo Feature (#3964)

* fix: remove duplicate keys in German language translations

* wip: multi-convo role permissions

* ci: Update loadDefaultInterface tests due to MULTI_CONVO

* ci: update Role.spec.js with tests for MULTI_CONVO permission type

* fix: Update ContentParts component to handle undefined content array

* feat: render Multi-Convo based on UI permissions
This commit is contained in:
Danny Avila 2024-09-09 16:29:24 -04:00 committed by GitHub
parent d59b62174f
commit 748b41eda4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 302 additions and 56 deletions

View file

@ -3,7 +3,7 @@ import type { TMessageContentParts } from 'librechat-data-provider';
import Part from './Part';
type ContentPartsProps = {
content: Array<TMessageContentParts | undefined>;
content: Array<TMessageContentParts | undefined> | undefined;
messageId: string;
isCreatedByUser: boolean;
isLast: boolean;
@ -12,6 +12,9 @@ type ContentPartsProps = {
const ContentParts = memo(
({ content, messageId, isCreatedByUser, isLast, isSubmitting }: ContentPartsProps) => {
if (!content) {
return null;
}
return (
<>
{content