Skip to content
Open
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
Expand Up @@ -425,7 +425,7 @@ export function GlobalCommandPaletteActions() {
/>
{organization.features.includes('gen-ai-conversations') && (
<CMDKAction
display={{label: t('Conversations')}}
display={{label: t('Agents')}}
to={`${prefix}/explore/${CONVERSATIONS_LANDING_SUB_PATH}/?referrer=cmdk`}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {PageFiltersStore} from 'sentry/components/pageFilters/store';
import {TopBar} from 'sentry/views/navigation/topBar';

import ConversationDetailPage from './conversationDetail';
import {CONVERSATIONS_SIDEBAR_LABEL} from './settings';

const CONVERSATION_ID = 'conv-1';

Expand Down Expand Up @@ -150,7 +151,7 @@ describe('ConversationDetailPage breadcrumbs', () => {
const topBar = screen.getByRole('banner');

expect(
await within(topBar).findByRole('link', {name: 'Conversations'})
await within(topBar).findByRole('link', {name: CONVERSATIONS_SIDEBAR_LABEL})
).toBeInTheDocument();
// The conversation id is the top-bar identifier, owned by the TopBar title
// slot, alongside the copy affordance.
Expand Down
7 changes: 4 additions & 3 deletions static/app/views/explore/conversations/layout.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {PageFiltersStore} from 'sentry/components/pageFilters/store';
import {TopBar} from 'sentry/views/navigation/topBar';

import ConversationsLayout from './layout';
import {CONVERSATIONS_SIDEBAR_LABEL} from './settings';

const organization = OrganizationFixture({
features: ['performance-view', 'gen-ai-conversations'],
Expand Down Expand Up @@ -59,7 +60,7 @@ describe('ConversationsLayout', () => {

const topBar = screen.getByRole('banner');
expect(
await within(topBar).findByRole('link', {name: 'Conversations'})
await within(topBar).findByRole('link', {name: CONVERSATIONS_SIDEBAR_LABEL})
).toBeInTheDocument();
expect(within(topBar).getByText('My saved query')).toBeInTheDocument();
});
Expand All @@ -76,7 +77,7 @@ describe('ConversationsLayout', () => {

const topBar = screen.getByRole('banner');
expect(
await within(topBar).findByRole('link', {name: 'Conversations'})
await within(topBar).findByRole('link', {name: CONVERSATIONS_SIDEBAR_LABEL})
).toBeInTheDocument();
// The saved query title is the page heading, owned by the TopBar title slot.
expect(
Expand All @@ -97,7 +98,7 @@ describe('ConversationsLayout', () => {
const topBar = screen.getByRole('banner');
expect(within(topBar).queryByText('AI Conversations')).not.toBeInTheDocument();
expect(
within(topBar).queryByRole('link', {name: 'Conversations'})
within(topBar).queryByRole('link', {name: CONVERSATIONS_SIDEBAR_LABEL})
).not.toBeInTheDocument();
});
});
2 changes: 1 addition & 1 deletion static/app/views/explore/conversations/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import {t} from 'sentry/locale';

export const CONVERSATIONS_LANDING_SUB_PATH = 'conversations';
export const CONVERSATIONS_LANDING_TITLE = t('AI Conversations');
export const CONVERSATIONS_SIDEBAR_LABEL = t('Conversations');
export const CONVERSATIONS_SIDEBAR_LABEL = t('Agents');
Comment thread
cursor[bot] marked this conversation as resolved.

export const MAX_PICKABLE_DAYS = 30;
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export function ExploreSecondaryNavigation() {
analyticsItemName="explore_conversations"
trailingItems={<FeatureBadge type="beta" />}
>
{t('Conversations')}
{t('Agents')}
</SecondaryNavigation.Link>
</SecondaryNavigation.ListItem>
</Feature>
Expand Down
Loading