Skip to content

Commit

Permalink
fix(insights): fix ai domain view padding (#79364)
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikB2014 authored Oct 18, 2024
1 parent cf4c2cd commit bd3a215
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,22 +147,20 @@ export function LLMMonitoringPage({params}: Props) {
)}

{isInDomainView && (
<Layout.Header>
<AiHeader
headerTitle={
<Fragment>
{spanDescription}
<FeatureBadge type={RELEASE_LEVEL} />
</Fragment>
}
breadcrumbs={[
{
label: t('Pipeline Summary'),
},
]}
module={ModuleName.AI}
/>
</Layout.Header>
<AiHeader
headerTitle={
<Fragment>
{spanDescription}
<FeatureBadge type={RELEASE_LEVEL} />
</Fragment>
}
breadcrumbs={[
{
label: t('Pipeline Summary'),
},
]}
module={ModuleName.AI}
/>
)}
<Layout.Body>
<Layout.Main fullWidth>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,18 @@ export function LLMMonitoringPage() {
</Layout.Header>
)}
{isInDomainView && (
<Layout.Header>
<AiHeader
headerTitle={
<Fragment>
{MODULE_TITLE}
<PageHeadingQuestionTooltip
title={t('View analytics and information about your AI pipelines')}
docsUrl={MODULE_DOC_LINK}
/>
</Fragment>
}
module={ModuleName.AI}
/>
</Layout.Header>
<AiHeader
headerTitle={
<Fragment>
{MODULE_TITLE}
<PageHeadingQuestionTooltip
title={t('View analytics and information about your AI pipelines')}
docsUrl={MODULE_DOC_LINK}
/>
</Fragment>
}
module={ModuleName.AI}
/>
)}
<Layout.Body>
<Layout.Main fullWidth>
Expand Down
4 changes: 1 addition & 3 deletions static/app/views/insights/pages/ai/aiOverviewPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@ function AiOverviewPage() {
organization={organization}
renderDisabled={NoAccess}
>
<Layout.Header>
<AiHeader headerTitle={AI_LANDING_TITLE} />
</Layout.Header>
<AiHeader headerTitle={AI_LANDING_TITLE} />
<Layout.Body>
<Layout.Main fullWidth>
<ModuleLayout.Layout>
Expand Down
1 change: 0 additions & 1 deletion static/app/views/insights/pages/ai/aiPageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type Props = {
module?: HeaderProps['selectedModule'];
};

// TODO - add props to append to breadcrumbs and change title
export function AiHeader({module, headerTitle, headerActions, breadcrumbs}: Props) {
const {slug} = useOrganization();

Expand Down

0 comments on commit bd3a215

Please sign in to comment.