diff --git a/.github/workflows/dev-build.yaml b/.github/workflows/dev-build.yaml index aef9a6c35c..6d938af8ee 100644 --- a/.github/workflows/dev-build.yaml +++ b/.github/workflows/dev-build.yaml @@ -6,7 +6,7 @@ concurrency: on: push: - branches: ['encrypt-jwt-value'] # put your current branch to create a build. Core team only. + branches: ['chrome-extension'] # put your current branch to create a build. Core team only. paths-ignore: - '**.md' - 'cloud-deployments/*' diff --git a/.gitmodules b/.gitmodules index dfb4bfcaa7..a27e72e970 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,3 +2,6 @@ branch = main path = embed url = git@github.com:Mintplex-Labs/anythingllm-embed.git +[submodule "browser-extension"] + path = browser-extension + url = git@github.com:Mintplex-Labs/anythingllm-extension.git diff --git a/README.md b/README.md index 299ab9ea68..5c4e9cccb5 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,8 @@ This monorepo consists of three main sections: - `server`: A NodeJS express server to handle all the interactions and do all the vectorDB management and LLM interactions. - `collector`: NodeJS express server that process and parses documents from the UI. - `docker`: Docker instructions and build process + information for building from source. -- `embed`: Submodule specifically for generation & creation of the [web embed widget](https://github.com/Mintplex-Labs/anythingllm-embed). +- `embed`: Submodule for generation & creation of the [web embed widget](https://github.com/Mintplex-Labs/anythingllm-embed). +- `browser-extension`: Submodule for the [chrome browser extension](https://github.com/Mintplex-Labs/anythingllm-extension). ## 🛳 Self Hosting diff --git a/browser-extension b/browser-extension new file mode 160000 index 0000000000..d9b28cc1e2 --- /dev/null +++ b/browser-extension @@ -0,0 +1 @@ +Subproject commit d9b28cc1e23b64fdb4e666d5b5b49cc8e583aabd diff --git a/embed b/embed deleted file mode 160000 index 22a0848d58..0000000000 --- a/embed +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 22a0848d58e3a758d85d93d9204a72a65854ea94 diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 3737541f24..c6cac66db7 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -49,6 +49,9 @@ const GeneralVectorDatabase = lazy( () => import("@/pages/GeneralSettings/VectorDatabase") ); const GeneralSecurity = lazy(() => import("@/pages/GeneralSettings/Security")); +const GeneralBrowserExtension = lazy( + () => import("@/pages/GeneralSettings/BrowserExtensionApiKey") +); const WorkspaceSettings = lazy(() => import("@/pages/WorkspaceSettings")); const EmbedConfigSetup = lazy( () => import("@/pages/GeneralSettings/EmbedConfigs") @@ -157,6 +160,10 @@ export default function App() { path="/settings/api-keys" element={} /> + } + /> } diff --git a/frontend/src/components/SettingsSidebar/index.jsx b/frontend/src/components/SettingsSidebar/index.jsx index 9fa6fd6112..54cf9b4a13 100644 --- a/frontend/src/components/SettingsSidebar/index.jsx +++ b/frontend/src/components/SettingsSidebar/index.jsx @@ -332,6 +332,12 @@ const SidebarOptions = ({ user = null, t }) => ( flex: true, roles: ["admin"], }, + { + btnText: t("settings.browser-extension"), + href: paths.settings.browserExtension(), + flex: true, + roles: ["admin", "manager"], + }, ]} />