Skip to content
Merged
Show file tree
Hide file tree
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
31 changes: 18 additions & 13 deletions static/app/router/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2101,20 +2101,10 @@ function buildRoutes(): RouteObject[] {
},
],
},
// Redirect old conversations links to the new explore location
{
path: `${CONVERSATIONS_LANDING_SUB_PATH}/`,
component: make(() => import('sentry/views/insights/pages/conversations/layout')),
children: [
{
index: true,
handle: {module: undefined},
component: make(
() => import('sentry/views/insights/pages/conversations/overview')
),
},
transactionSummaryRoute,
traceView,
],
path: `${CONVERSATIONS_LANDING_SUB_PATH}/*`,
redirectTo: `/explore/${CONVERSATIONS_LANDING_SUB_PATH}/`,
},
// Redirect old links to the new agents landing page
{
Expand Down Expand Up @@ -2347,6 +2337,21 @@ function buildRoutes(): RouteObject[] {
component: make(() => import('sentry/views/explore/metrics')),
children: metricsChildren,
},
{
path: `${CONVERSATIONS_LANDING_SUB_PATH}/`,
component: make(() => import('sentry/views/insights/pages/conversations/layout')),
children: [
{
index: true,
handle: {module: undefined},
component: make(
() => import('sentry/views/insights/pages/conversations/overview')
),
},
transactionSummaryRoute,
traceView,
],
},
{
path: 'saved-queries/',
component: make(() => import('sentry/views/explore/savedQueries')),
Expand Down
4 changes: 2 additions & 2 deletions static/app/views/insights/pages/conversations/settings.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {t} from 'sentry/locale';

export const CONVERSATIONS_LANDING_SUB_PATH = 'conversations';
export const CONVERSATIONS_LANDING_TITLE = t('Conversations');
export const CONVERSATIONS_SIDEBAR_LABEL = t('Conversations');
export const CONVERSATIONS_LANDING_TITLE = t('LLM Conversations');
export const CONVERSATIONS_SIDEBAR_LABEL = t('LLM Conversations');

export const MAX_PICKABLE_DAYS = 30;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import useOrganization from 'sentry/utils/useOrganization';
import useProjects from 'sentry/utils/useProjects';
import {useGetSavedQueries} from 'sentry/views/explore/hooks/useGetSavedQueries';
import {canUseMetricsUI} from 'sentry/views/explore/metrics/metricsFlags';
import {CONVERSATIONS_LANDING_SUB_PATH} from 'sentry/views/insights/pages/conversations/settings';
import {PRIMARY_NAV_GROUP_CONFIG} from 'sentry/views/nav/primary/config';
import {SecondaryNav} from 'sentry/views/nav/secondary/secondary';
import {ExploreSavedQueryNavItems} from 'sentry/views/nav/secondary/sections/explore/exploreSavedQueryNavItems';
Expand Down Expand Up @@ -144,6 +145,15 @@ export function ExploreSecondaryNav() {
>
{t('Releases')}
</SecondaryNav.Item>
<Feature features="gen-ai-conversations">
<SecondaryNav.Item
to={`${baseUrl}/${CONVERSATIONS_LANDING_SUB_PATH}/`}
analyticsItemName="explore_conversations"
trailingItems={<FeatureBadge type="alpha" />}
>
{t('LLM Conversations')}
</SecondaryNav.Item>
</Feature>
</SecondaryNav.Section>
<Feature features={['visibility-explore-view', 'performance-view']}>
<SecondaryNav.Section id="explore-all-queries">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ import {
BACKEND_LANDING_SUB_PATH,
BACKEND_SIDEBAR_LABEL,
} from 'sentry/views/insights/pages/backend/settings';
import {
CONVERSATIONS_LANDING_SUB_PATH,
CONVERSATIONS_SIDEBAR_LABEL,
} from 'sentry/views/insights/pages/conversations/settings';
import {
FRONTEND_LANDING_SUB_PATH,
FRONTEND_SIDEBAR_LABEL,
Expand Down Expand Up @@ -83,14 +79,6 @@ export function InsightsSecondaryNav() {
</SecondaryNav.Item>
</SecondaryNav.Section>
<SecondaryNav.Section id="insights-ai" title={t('AI')}>
<Feature features="gen-ai-conversations">
<SecondaryNav.Item
to={`${baseUrl}/${CONVERSATIONS_LANDING_SUB_PATH}/`}
analyticsItemName="insights_conversations"
>
{CONVERSATIONS_SIDEBAR_LABEL}
</SecondaryNav.Item>
</Feature>
<SecondaryNav.Item
to={`${baseUrl}/${AGENTS_LANDING_SUB_PATH}/`}
analyticsItemName="insights_agents"
Expand Down
Loading