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
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import {Fragment} from 'react';

import {FeatureBadge} from '@sentry/scraps/badge';

import normalizeUrl from 'sentry/utils/url/normalizeUrl';
import useOrganization from 'sentry/utils/useOrganization';
import {
CONVERSATIONS_LANDING_SUB_PATH,
CONVERSATIONS_LANDING_TITLE,
CONVERSATIONS_SIDEBAR_LABEL,
MODULES,
} from 'sentry/views/insights/pages/conversations/settings';
import {
DomainViewHeader,
type Props as HeaderProps,
} from 'sentry/views/insights/pages/domainViewHeader';
import {DOMAIN_VIEW_BASE_URL} from 'sentry/views/insights/pages/settings';

type Props = {
breadcrumbs?: HeaderProps['additionalBreadCrumbs'];
Expand All @@ -27,13 +31,19 @@ export function ConversationsPageHeader({
const organization = useOrganization();

const conversationsBaseUrl = normalizeUrl(
`/organizations/${organization.slug}/${DOMAIN_VIEW_BASE_URL}/${CONVERSATIONS_LANDING_SUB_PATH}/`
`/organizations/${organization.slug}/explore/${CONVERSATIONS_LANDING_SUB_PATH}/`
);

return (
<DomainViewHeader
domainBaseUrl={conversationsBaseUrl}
domainTitle={CONVERSATIONS_SIDEBAR_LABEL}
headerTitle={
<Fragment>
{CONVERSATIONS_LANDING_TITLE}
<FeatureBadge type="alpha" />
</Fragment>
}
modules={MODULES}
selectedModule={module}
additonalHeaderActions={headerActions}
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('LLM Conversations');
export const CONVERSATIONS_SIDEBAR_LABEL = t('LLM Conversations');
export const CONVERSATIONS_LANDING_TITLE = t('AI Conversations');
export const CONVERSATIONS_SIDEBAR_LABEL = t('Conversations');

export const MAX_PICKABLE_DAYS = 30;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {parseAsInteger, parseAsString, useQueryStates} from 'nuqs';

import normalizeUrl from 'sentry/utils/url/normalizeUrl';
import {CONVERSATIONS_LANDING_SUB_PATH} from 'sentry/views/insights/pages/conversations/settings';
import {DOMAIN_VIEW_BASE_URL} from 'sentry/views/insights/pages/settings';

export enum ConversationDrawerUrlParams {
SELECTED_CONVERSATION = 'conversation',
Expand Down Expand Up @@ -38,7 +37,7 @@ export function getConversationsUrl(
organizationSlug: string,
conversationId: number | string
): string {
const basePath = `/organizations/${organizationSlug}/${DOMAIN_VIEW_BASE_URL}/${CONVERSATIONS_LANDING_SUB_PATH}/`;
const basePath = `/organizations/${organizationSlug}/explore/${CONVERSATIONS_LANDING_SUB_PATH}/`;
const searchQuery = encodeURIComponent(`gen_ai.conversation.id:${conversationId}`);
const queryParams = `?query=${searchQuery}&${ConversationDrawerUrlParams.SELECTED_CONVERSATION}=${conversationId}`;
return `${window.location.origin}${normalizeUrl(basePath)}${queryParams}`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export function ExploreSecondaryNav() {
analyticsItemName="explore_conversations"
trailingItems={<FeatureBadge type="alpha" />}
>
{t('LLM Conversations')}
{t('Conversations')}
</SecondaryNav.Item>
</Feature>
</SecondaryNav.Section>
Expand Down
Loading