Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add filters to profiles view

Blue Mouse8144ad0c8a47
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsx
index 87897c422..1032d6858 100644
--- a/web/app/pages/Project/View/ViewProject.tsx
+++ b/web/app/pages/Project/View/ViewProject.tsx
@@ -1247,7 +1247,7 @@ const ViewProjectContent = () => {
{activeTab === PROJECT_TABS.performance ? <PerformanceView tnMapping={tnMapping} /> : null}
{activeTab === PROJECT_TABS.funnels ? <FunnelsView /> : null}
{activeTab === PROJECT_TABS.alerts ? <ProjectAlertsView /> : null}
- {activeTab === PROJECT_TABS.profiles ? <ProfilesView /> : null}
+ {activeTab === PROJECT_TABS.profiles ? <ProfilesView tnMapping={tnMapping} /> : null}
{activeTab === PROJECT_TABS.sessions ? (
<SessionsView tnMapping={tnMapping} rotateXAxis={rotateXAxis} />
) : null}
diff --git a/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx b/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx
index 41e8e0fa7..7879867b8 100644
--- a/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx
+++ b/web/app/pages/Project/tabs/Profiles/ProfilesView.tsx
@@ -17,9 +17,15 @@ import { useCurrentProject, useProjectPassword } from '~/providers/CurrentProjec
import Loader from '~/ui/Loader'
import LoadingBar from '~/ui/LoadingBar'
+import Filters from '../../View/components/Filters'
+
const SESSIONS_TAKE = 30
-const ProfilesView = () => {
+interface ProfilesViewProps {
+ tnMapping: Record<string, string>
+}
+
+const ProfilesView = ({ tnMapping }: ProfilesViewProps) => {
const { id, project } = useCurrentProject()
const projectPassword = useProjectPassword(id)
const { timezone, period, dateRange, filters, timeFormat, profilesRefreshTrigger } = useViewProjectContext()
@@ -344,6 +350,7 @@ const ProfilesView = () => {
<>
<DashboardHeader showLiveVisitors />
{profilesLoading && !_isEmpty(profiles) ? <LoadingBar /> : null}
+ {!_isEmpty(profiles) ? <Filters className='mb-3' tnMapping={tnMapping} /> : null}
<ProfilesFilter
profileType={profileTypeFilter}
onProfileTypeChange={(type) => {