fix: update BUNDLES_SIDEBAR_FOLDER_NAMES constant to include "Notion" (#3651)

* chore: update BUNDLES_SIDEBAR_FOLDER_NAMES constant to include "Notion"

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
anovazzi1 2024-09-02 14:18:47 -03:00 • committed by GitHub
commit 076f4f0772
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 2 deletions

View file

@ -728,7 +728,7 @@ export const PRIORITY_SIDEBAR_ORDER = [
"embeddings", "embeddings",
]; ];
export const BUNDLES_SIDEBAR_FOLDER_NAMES = ["notion"]; export const BUNDLES_SIDEBAR_FOLDER_NAMES = ["notion", "Notion"];
export const AUTHORIZED_DUPLICATE_REQUESTS = [ export const AUTHORIZED_DUPLICATE_REQUESTS = [
"/health", "/health",

View file

@ -256,7 +256,11 @@ export default function ExtraSidebar(): JSX.Element {
> >
{Object.keys(dataFilter) {Object.keys(dataFilter)
.sort(sortKeys) .sort(sortKeys)
.filter((x) => !PRIORITY_SIDEBAR_ORDER.includes(x)) .filter(
(x) =>
!PRIORITY_SIDEBAR_ORDER.includes(x) &&
!BUNDLES_SIDEBAR_FOLDER_NAMES.includes(x),
)
.map((SBSectionName: keyof APIObjectType, index) => .map((SBSectionName: keyof APIObjectType, index) =>
Object.keys(dataFilter[SBSectionName]).length > 0 ? ( Object.keys(dataFilter[SBSectionName]).length > 0 ? (
<SidebarCategoryComponent <SidebarCategoryComponent

View file

@ -287,6 +287,7 @@ export const nodeColors: { [char: string]: string } = {
toolkits: "#DB2C2C", toolkits: "#DB2C2C",
wrappers: "#E6277A", wrappers: "#E6277A",
notion: "#000000", notion: "#000000",
Notion: "#000000",
helpers: "#31A3CC", helpers: "#31A3CC",
prototypes: "#E6277A", prototypes: "#E6277A",
astra_assistants: "#272541", astra_assistants: "#272541",
@ -314,6 +315,7 @@ export const nodeNames: { [char: string]: string } = {
prompts: "Prompts", prompts: "Prompts",
models: "Models", models: "Models",
notion: "Notion", notion: "Notion",
Notion: "Notion",
model_specs: "Model Specs", model_specs: "Model Specs",
chains: "Chains", chains: "Chains",
agents: "Agents", agents: "Agents",
@ -410,6 +412,7 @@ export const nodeIconsLucide: iconsType = {
MongoDB: MongoDBIcon, MongoDB: MongoDBIcon,
MongoDBChatMessageHistory: MongoDBIcon, MongoDBChatMessageHistory: MongoDBIcon,
notion: NotionIcon, notion: NotionIcon,
Notion: NotionIcon,
NotionDirectoryLoader: NotionIcon, NotionDirectoryLoader: NotionIcon,
NVIDIA: NvidiaIcon, NVIDIA: NvidiaIcon,
ChatOpenAI: OpenAiIcon, ChatOpenAI: OpenAiIcon,