LLM-Driven Extraction of Unstructured Data — Built for API Deployments & ETL Pipeline Workflows
Python ai-agentsdata-engineeringdocument-aigenerative-aiidpjson-extractionllmmcp-serverocrpdf-extractionprompt-engineeringstructured-output
UN-3003: Addition to navbar (#1659)
Athula748c9325322
diff --git a/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx b/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsxindex 3ca4d67c7..5c4b48f78 100644--- a/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx+++ b/frontend/src/components/navigations/top-nav-bar/TopNavBar.jsx@@ -16,6 +16,7 @@ import {FileProtectOutlined,LikeOutlined,LoginOutlined,+ SettingOutlined,} from "@ant-design/icons";import { useEffect, useState, useMemo, useCallback } from "react";import { useNavigate, useLocation } from "react-router-dom";@@ -162,6 +163,8 @@ function TopNavBar({ isSimpleLayout, topNavBarOptions }) {const isUnstract = !(selectedProduct && selectedProduct !== "unstract");const isAPIHub = selectedProduct && selectedProduct === "verticals";+ const isStaff = sessionDetails?.isStaff || sessionDetails?.is_staff;+ const isOpenSource = orgName === "mock_org";// Check user role and whether the onboarding is incompleteuseEffect(() => {@@ -349,6 +352,22 @@ function TopNavBar({ isSimpleLayout, topNavBarOptions }) {});}+ // Custom Plans+ if (isUnstract && isStaff && !isOpenSource) {+ menuItems.push({+ key: "8",+ label: (+ <Button+ onClick={() => navigate(`/${orgName}/admin/custom-plans`)}+ className="logout-button"+ type="text"+ >+ <SettingOutlined /> Custom Plans+ </Button>+ ),+ });+ }+const handleLogin = () => {const baseUrl = getBaseUrl();const newURL = baseUrl + "/api/v1/login";