add clarity around assistants and names (#2663)

This commit is contained in:
pablodanswer 2024-10-02 11:00:06 -07:00 committed by GitHub
parent af187c6cfe
commit 457d32fef0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,12 +20,16 @@ import { UserRole, User } from "@/lib/types";
import { useUser } from "@/components/user/UserProvider";
function PersonaTypeDisplay({ persona }: { persona: Persona }) {
if (persona.is_default_persona) {
if (persona.builtin_persona) {
return <Text>Built-In</Text>;
}
if (persona.is_default_persona) {
return <Text>Default</Text>;
}
if (persona.is_public) {
return <Text>Global</Text>;
return <Text>Public</Text>;
}
if (persona.groups.length > 0 || persona.users.length > 0) {