diff --git a/.gitmodules b/.gitmodules index eccc1b42f..e69de29bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "ee/intelligent_search/llama"] - path = ee/intelligent_search/llama - url = https://github.com/facebookresearch/llama.git diff --git a/ee/intelligent_search/llama b/ee/intelligent_search/llama deleted file mode 160000 index b00a461a6..000000000 --- a/ee/intelligent_search/llama +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b00a461a6582196d8f488c73465f6c87f384a052 diff --git a/frontend/app/components/Onboarding/Onboarding.tsx b/frontend/app/components/Onboarding/Onboarding.tsx index b82a41e5e..d2fb8fc4f 100644 --- a/frontend/app/components/Onboarding/Onboarding.tsx +++ b/frontend/app/components/Onboarding/Onboarding.tsx @@ -1,14 +1,16 @@ import React from 'react'; -import { Icon } from 'UI'; -import SideMenu from './components/SideMenu'; +import { Redirect, Route, RouteComponentProps, Switch } from 'react-router'; import { withRouter } from 'react-router-dom'; -import { Switch, Route, Redirect, RouteComponentProps } from 'react-router'; + import { OB_TABS, onboarding as onboardingRoute } from 'App/routes'; -import InstallOpenReplayTab from './components/InstallOpenReplayTab'; +import { withSiteId } from 'App/routes'; +import { Icon } from 'UI'; + import IdentifyUsersTab from './components/IdentifyUsersTab'; +import InstallOpenReplayTab from './components/InstallOpenReplayTab'; import IntegrationsTab from './components/IntegrationsTab'; import ManageUsersTab from './components/ManageUsersTab'; -import { withSiteId } from 'App/routes'; +import SideMenu from './components/SideMenu'; interface Props { match: { @@ -20,12 +22,10 @@ interface Props { history: RouteComponentProps['history']; } - const platformMap = { - 'ios': 'mobile', - 'web': 'web', -} - + ios: 'mobile', + web: 'web', +}; const Onboarding = (props: Props) => { const platforms = [ @@ -62,11 +62,9 @@ const Onboarding = (props: Props) => { }; return ( -
-
- -
-
+
+ +
{ platformMap={platformMap} /> - - + +
diff --git a/frontend/app/components/Onboarding/components/SideMenu.tsx b/frontend/app/components/Onboarding/components/SideMenu.tsx index d2176103d..93a742417 100644 --- a/frontend/app/components/Onboarding/components/SideMenu.tsx +++ b/frontend/app/components/Onboarding/components/SideMenu.tsx @@ -1,71 +1,128 @@ +import { Divider, Layout, Menu } from 'antd'; +import { observer } from 'mobx-react-lite'; import React from 'react'; -import stl from './sideMenu.module.css'; -import cn from 'classnames'; -import { SideMenuitem } from 'UI'; -import { OB_TABS, onboarding as onboardingRoute } from 'App/routes'; -import OnboardingMenu from './OnboardingMenu/OnboardingMenu'; -import { withRouter } from 'react-router'; + +import { OB_TABS } from 'App/routes'; +import { Icon } from 'UI'; + +import SupportModal from '../../../layout/SupportModal'; +import { useStore } from '../../../mstore'; interface Props { activeTab: string; onClick: (tab: string) => void; } function SideMenu(props: Props) { + const [supportOpen, setSupportOpen] = React.useState(false); + const { settingsStore } = useStore(); const { activeTab } = props; + + const handleClick = (item: any) => { + if (item.key === 'support') { + return setSupportOpen(true); + } + props.onClick(item.key); + }; return ( -
-
-
- PROJECT SETUP -
+ +
+ + + } + className={'!rounded hover-fill-teal'} + > + Setup OpenReplay + + + } + className={'!rounded hover-fill-teal'} + > + Identify Users + + + } + className={'!rounded hover-fill-teal'} + > + Invite Collaborators + + + } + className={'!rounded hover-fill-teal'} + > + Integrations + + + + } + className={'!rounded hover-fill-teal'} + > + Support + +
- - props.onClick(OB_TABS.INSTALLING)} + { + setSupportOpen(false); + }} + open={supportOpen} /> - props.onClick(OB_TABS.IDENTIFY_USERS)} - /> - props.onClick(OB_TABS.MANAGE_USERS)} - /> - props.onClick(OB_TABS.INTEGRATIONS)} - /> - -
- -
-
- Help -
-
- - window.open('https://docs.openreplay.com', '_blank')} - /> - - window.open('https://github.com/openreplay/openreplay/issues', '_blank')} - /> -
+
); } -export default SideMenu; +export default observer(SideMenu); diff --git a/frontend/app/layout/Layout.tsx b/frontend/app/layout/Layout.tsx index 4db4fb95b..92aa470d6 100644 --- a/frontend/app/layout/Layout.tsx +++ b/frontend/app/layout/Layout.tsx @@ -1,4 +1,4 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import { Layout as AntLayout } from 'antd'; import SideMenu from 'App/layout/SideMenu'; import TopHeader from 'App/layout/TopHeader'; @@ -9,7 +9,7 @@ import { init as initSite } from 'Duck/site'; import { connect } from 'react-redux'; -const { Header, Sider, Content } = AntLayout; +const { Sider, Content } = AntLayout; interface Props { children: React.ReactNode; diff --git a/frontend/app/layout/SideMenu.tsx b/frontend/app/layout/SideMenu.tsx index d35d1b2b3..ecbea406a 100644 --- a/frontend/app/layout/SideMenu.tsx +++ b/frontend/app/layout/SideMenu.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Divider, Menu, Tooltip, Typography } from 'antd'; +import { Divider, Menu, Typography } from 'antd'; import SVG from 'UI/SVG'; import * as routes from 'App/routes'; import { bookmarks, client, CLIENT_DEFAULT_TAB, CLIENT_TABS, fflags, notes, sessions, withSiteId } from 'App/routes'; diff --git a/frontend/app/layout/SupportModal.tsx b/frontend/app/layout/SupportModal.tsx index 4fd1b0466..a3238bedb 100644 --- a/frontend/app/layout/SupportModal.tsx +++ b/frontend/app/layout/SupportModal.tsx @@ -1,7 +1,8 @@ -import React from 'react'; -import { Icon } from 'UI'; -import { Button, Drawer, Space, Typography } from 'antd'; import { ArrowRightOutlined } from '@ant-design/icons'; +import { Button, Drawer, Space, Typography } from 'antd'; +import React from 'react'; + +import { Icon } from 'UI'; const { Text } = Typography; @@ -14,23 +15,38 @@ function SupportModal(props: Props) { const { onClose, open } = props; const WEBSITE_ID = window.env.CRISP_KEY; return ( - -
-
-
- + +
+
+
+
-
- Documentation - - Deploy, manage and customize OpenReplay through quick starts, tutorials, samples, and guides. + +
+ Documentation + + Deploy, manage and customize OpenReplay through quick starts, + tutorials, samples, and guides. -
-
-
- -
-
- +
+
+
-
- Slack Community - - Ask OpenReplay community and get quick resolution to your questions from 1000+ members. +
+ Slack Community + + Ask OpenReplay community and get quick resolution to your + questions from 1000+ members. -
-
-
+
+
+ +
+
+ Github Repository + + Report issues or request features and get quick updates from our + dev team. + +
+ +
+
{!!WEBSITE_ID && ( -
-