fix(frontend): brain name (#2311)

# Description

Please include a summary of the changes and the related issue. Please
also include relevant motivation and context.

## Checklist before requesting a review

Please delete options that are not relevant.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented hard-to-understand areas
- [ ] I have ideally added tests that prove my fix is effective or that
my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged

## Screenshots (if appropriate):
This commit is contained in:
Antoine Dewez 2024-03-06 12:55:36 -08:00 committed by GitHub
parent efb8685c9c
commit 8b4206c0e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,7 @@ class IntegrationDescriptionEntity(BaseModel):
description: str description: str
max_files: int max_files: int
allow_model_change: bool allow_model_change: bool
integration_display_name: str
class IntegrationEntity(BaseModel): class IntegrationEntity(BaseModel):

View File

@ -91,6 +91,7 @@ export type IntegrationBrains = {
max_files: number; max_files: number;
tags: IntegrationBrainTag[]; tags: IntegrationBrainTag[];
information: string; information: string;
integration_display_name: string;
}; };
export type UpdateBrainInput = Partial<CreateBrainInput>; export type UpdateBrainInput = Partial<CreateBrainInput>;

View File

@ -53,7 +53,7 @@ export const BrainCatalogue = ({
height={50} height={50}
/> />
<span className={styles.brain_title}> <span className={styles.brain_title}>
{brain.integration_name} {brain.integration_display_name}
</span> </span>
<div className={styles.tag_wrapper}> <div className={styles.tag_wrapper}>
{brain.tags[0] && ( {brain.tags[0] && (

View File

@ -19,6 +19,7 @@ export type IntegrationDescription = {
integration_type: "custom" | "sync"; integration_type: "custom" | "sync";
max_files: number; max_files: number;
allow_model_change: boolean; allow_model_change: boolean;
integration_display_name: string;
}; };
export type Brain = { export type Brain = {

View File

@ -0,0 +1,3 @@
alter table "public"."integrations" add column "integration_display_name" text not null default 'Brain'::text;