Skip to content
Open
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
8 changes: 8 additions & 0 deletions app/platform-redirect/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default async function Page(props: {
}

const pathname = sanitizeNext(next);
const isTracingAutomatedInstrumentation =
pathname === '/tracing/instrumentation/automatic-instrumentation';
const rootNode = await getDocsRootNode();
const defaultTitle = 'Platform Specific Content';
let description = '';
Expand Down Expand Up @@ -149,6 +151,12 @@ export default async function Page(props: {
return (
<DocPage frontMatter={frontMatter}>
<Alert>{platformInfo}</Alert>
{isTracingAutomatedInstrumentation && (
<Alert>
This page lists only platforms with automated tracing instrumentation. Some
platforms may be omitted due to technical limitations.
</Alert>
)}
Comment on lines 153 to +159
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<Alert>{platformInfo}</Alert>
{isTracingAutomatedInstrumentation && (
<Alert>
This page lists only platforms with automated tracing instrumentation. Some
platforms may be omitted due to technical limitations.
</Alert>
)}
<Alert>
{platformInfo}
{isTracingAutomatedInstrumentation && (
<>
<br />
<br />
This page lists only platforms with automated tracing instrumentation. Some
platforms may be omitted due to technical limitations.
</>
)}
</Alert>

Maybe make this one alert so there's not alert fatigue? Or, if you want to keep them separate, let's change the color of the second:

{isTracingAutomatedInstrumentation && (
  <Alert level="warning">
    This page lists only platforms with automated tracing instrumentation. Some
    platforms may be omitted due to technical limitations.
  </Alert>
)}```

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep let's change the color.


<ul>
{platformOrGuideList.map(p => (
Expand Down
Loading