Skip to content

Commit

Permalink
remove universal search
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Dec 27, 2023
1 parent c98b986 commit cfc2d01
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 268 deletions.
30 changes: 1 addition & 29 deletions frontend/src/layout/navigation/TopBar/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ import { useActions, useValues } from 'kea'
import { ActivationSidebarToggle } from 'lib/components/ActivationSidebar/ActivationSidebarToggle'
import { CommandPalette } from 'lib/components/CommandPalette/CommandPalette'
import { HelpButton } from 'lib/components/HelpButton/HelpButton'
import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'
import { UniversalSearchPopover } from 'lib/components/UniversalSearch/UniversalSearchPopover'
import { Link } from 'lib/lemon-ui/Link'
import { organizationLogic } from 'scenes/organizationLogic'

import { NotificationBell } from '~/layout/navigation-3000/sidepanel/panels/activity/NotificationBell'
import { groupsModel } from '~/models/groupsModel'
import { Logo } from '~/toolbar/assets/Logo'

import { navigationLogic } from '../navigationLogic'
Expand All @@ -23,25 +20,10 @@ import { topBarLogic } from './topBarLogic'
export function TopBar(): JSX.Element {
const { isSideBarShown, noSidebar, minimalTopBar, mobileLayout } = useValues(navigationLogic)
const { toggleSideBarBase, toggleSideBarMobile } = useActions(navigationLogic)
const { groupNamesTaxonomicTypes } = useValues(groupsModel)
const { currentOrganization } = useValues(organizationLogic)
const { isProjectSwitcherShown } = useValues(topBarLogic)
const { toggleProjectSwitcher, hideProjectSwitcher } = useActions(topBarLogic)

const groupTypes = [
TaxonomicFilterGroupType.Events,
TaxonomicFilterGroupType.Persons,
TaxonomicFilterGroupType.Actions,
TaxonomicFilterGroupType.Cohorts,
TaxonomicFilterGroupType.Insights,
TaxonomicFilterGroupType.FeatureFlags,
TaxonomicFilterGroupType.Plugins,
TaxonomicFilterGroupType.Experiments,
TaxonomicFilterGroupType.Dashboards,
TaxonomicFilterGroupType.Notebooks,
...groupNamesTaxonomicTypes,
]

return (
<>
<Announcement />
Expand All @@ -58,17 +40,7 @@ export function TopBar(): JSX.Element {
<Link to="/" className="TopBar__logo">
<Logo />
</Link>
{!minimalTopBar && (
<>
<div className="grow">
<UniversalSearchPopover
groupType={TaxonomicFilterGroupType.Events}
groupTypes={groupTypes}
/>
</div>
<ActivationSidebarToggle />
</>
)}
{!minimalTopBar && <ActivationSidebarToggle />}
</div>
<div className="TopBar__segment TopBar__segment--right">
{!minimalTopBar ? (
Expand Down
33 changes: 0 additions & 33 deletions frontend/src/lib/components/UniversalSearch/UniversalSearch.scss

This file was deleted.

206 changes: 0 additions & 206 deletions frontend/src/lib/components/UniversalSearch/UniversalSearchPopover.tsx

This file was deleted.

0 comments on commit cfc2d01

Please sign in to comment.