diff --git a/autogpt_platform/backend/backend/api/features/builder/db.py b/autogpt_platform/backend/backend/api/features/builder/db.py index dabca5d34f..a7925610d9 100644 --- a/autogpt_platform/backend/backend/api/features/builder/db.py +++ b/autogpt_platform/backend/backend/api/features/builder/db.py @@ -42,9 +42,11 @@ MIN_SCORE_FOR_FILTERED_RESULTS = 10.0 BLOCK_SCORE_BOOST = 50.0 # Block IDs to exclude from search results -EXCLUDED_BLOCK_IDS = frozenset({ - "e189baac-8c20-45a1-94a7-55177ea42565", # AgentExecutorBlock -}) +EXCLUDED_BLOCK_IDS = frozenset( + { + "e189baac-8c20-45a1-94a7-55177ea42565", # AgentExecutorBlock + } +) SearchResultItem = BlockInfo | library_model.LibraryAgent | store_model.StoreAgent diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx index a5f18d6ef6..29ac12252d 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/Block.tsx @@ -57,7 +57,10 @@ export const Block: BlockComponent = ({ // preview when user drags it const dragPreview = document.createElement("div"); dragPreview.style.cssText = blockDragPreviewStyle; - dragPreview.textContent = beautifyString(title || "").replace(/ Block$/, ""); + dragPreview.textContent = beautifyString(title || "").replace( + / Block$/, + "", + ); document.body.appendChild(dragPreview); e.dataTransfer.setDragImage(dragPreview, 0, 0); @@ -90,7 +93,10 @@ export const Block: BlockComponent = ({ "line-clamp-1 font-sans text-sm font-medium leading-[1.375rem] text-zinc-800 group-disabled:text-zinc-400", )} > - {highlightText(beautifyString(title).replace(/ Block$/, ""), highlightedText)} + {highlightText( + beautifyString(title).replace(/ Block$/, ""), + highlightedText, + )} )} {description && ( diff --git a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/IntergrationBlock.tsx b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/IntergrationBlock.tsx index f69ae0cadf..79020ba0d9 100644 --- a/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/IntergrationBlock.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/build/components/NewControlPanel/NewBlockMenu/IntergrationBlock.tsx @@ -61,7 +61,10 @@ export const IntegrationBlock: IntegrationBlockComponent = ({ // preview when user drags it const dragPreview = document.createElement("div"); dragPreview.style.cssText = blockDragPreviewStyle; - dragPreview.textContent = beautifyString(title || "").replace(/ Block$/, ""); + dragPreview.textContent = beautifyString(title || "").replace( + / Block$/, + "", + ); document.body.appendChild(dragPreview); e.dataTransfer.setDragImage(dragPreview, 0, 0); @@ -100,7 +103,10 @@ export const IntegrationBlock: IntegrationBlockComponent = ({ "line-clamp-1 font-sans text-sm font-medium leading-[1.375rem] text-zinc-800 group-disabled:text-zinc-400", )} > - {highlightText(beautifyString(title).replace(/ Block$/, ""), highlightedText)} + {highlightText( + beautifyString(title).replace(/ Block$/, ""), + highlightedText, + )} )} {description && (