Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AB testing for activity logs #4093

Merged
merged 1 commit into from
Nov 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions frontend/src/admin/AdminPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { UserList } from './UserList'

import { ErrorFallbackMessage } from '../components/ErrorFallbackMessage'
import { AuditLogTable } from './AuditLogTable'
import { ABTestingWrapper } from '../app/ABTestWrapper'
import { ABTestVariant } from '../app/ABTestVariant'

export function AdminPanel({ activeMenu, orgSlug, permission, orgId }) {
return (
Expand All @@ -28,9 +30,13 @@ export function AdminPanel({ activeMenu, orgSlug, permission, orgId }) {
<Tab borderTopWidth="4px">
<Trans>Users</Trans>
</Tab>
<Tab borderTopWidth="4px">
<Trans>Activity</Trans>
</Tab>
<ABTestingWrapper insiderVariantName="B">
<ABTestVariant name="B">
<Tab borderTopWidth="4px">
<Trans>Activity</Trans>
</Tab>
</ABTestVariant>
</ABTestingWrapper>
</TabList>

<TabPanels>
Expand All @@ -54,11 +60,15 @@ export function AdminPanel({ activeMenu, orgSlug, permission, orgId }) {
/>
</ErrorBoundary>
</TabPanel>
<TabPanel>
<ErrorBoundary FallbackComponent={ErrorFallbackMessage}>
<AuditLogTable orgId={orgId} />
</ErrorBoundary>
</TabPanel>
<ABTestingWrapper insiderVariantName="B">
<ABTestVariant name="B">
<TabPanel>
<ErrorBoundary FallbackComponent={ErrorFallbackMessage}>
<AuditLogTable orgId={orgId} />
</ErrorBoundary>
</TabPanel>
</ABTestVariant>
</ABTestingWrapper>
</TabPanels>
</Tabs>
</Stack>
Expand Down