Skip to content

Commit b3cd528

Browse files
authored
fix: update docs links in setup (#873)
1 parent 000458d commit b3cd528

File tree

3 files changed

+27
-42
lines changed

3 files changed

+27
-42
lines changed

packages/app/src/AppNav.components.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,13 @@ const useIsTeamHasNoData = () => {
162162
return Array.isArray(sources) && sources?.length > 0 ? false : true;
163163
};
164164

165-
export const AppNavHelpMenu = ({ version }: { version?: string }) => {
165+
export const AppNavHelpMenu = ({
166+
version,
167+
onAddDataClick,
168+
}: {
169+
version?: string;
170+
onAddDataClick?: () => void;
171+
}) => {
166172
const { isCollapsed } = React.useContext(AppNavContext);
167173

168174
const [
@@ -230,6 +236,12 @@ export const AppNavHelpMenu = ({ version }: { version?: string }) => {
230236
>
231237
Discord Community
232238
</Menu.Item>
239+
<Menu.Item
240+
leftSection={<Icon name="lightbulb" />}
241+
onClick={onAddDataClick}
242+
>
243+
Setup Instructions
244+
</Menu.Item>
233245
</Menu.Dropdown>
234246
</Menu>
235247
</Paper>

packages/app/src/AppNav.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,10 @@ export default function AppNav({ fixed = false }: { fixed?: boolean }) {
853853
pointerEvents: 'none',
854854
}}
855855
>
856-
<AppNavHelpMenu version={version} />
856+
<AppNavHelpMenu
857+
version={version}
858+
onAddDataClick={openInstallInstructions}
859+
/>
857860
<AppNavUserMenu
858861
userName={meData?.name}
859862
teamName={meData?.team?.name}

packages/app/src/InstallInstructionsModal.tsx

Lines changed: 10 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ export default function InstallInstructionModal({
8181
application.
8282
</div>
8383
<div className="fs-5 mb-2">Backend</div>
84-
<div className="fs-6.5 mb-2">
84+
<div className="fs-6 mb-2">
8585
<a
86-
href="https://hyperdx.io/docs/install/javascript"
86+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/nodejs"
8787
target="_blank"
8888
rel="noreferrer"
8989
>
@@ -93,7 +93,7 @@ export default function InstallInstructionModal({
9393
</div>
9494
<div className="fs-6 mb-2">
9595
<a
96-
href="https://hyperdx.io/docs/install/golang"
96+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/golang"
9797
target="_blank"
9898
rel="noreferrer"
9999
>
@@ -103,7 +103,7 @@ export default function InstallInstructionModal({
103103
</div>
104104
<div className="fs-6 mb-2">
105105
<a
106-
href="https://hyperdx.io/docs/install/python"
106+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/python"
107107
target="_blank"
108108
rel="noreferrer"
109109
>
@@ -113,7 +113,7 @@ export default function InstallInstructionModal({
113113
</div>
114114
<div className="fs-6 mb-2">
115115
<a
116-
href="https://hyperdx.io/docs/install/java"
116+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/java"
117117
target="_blank"
118118
rel="noreferrer"
119119
>
@@ -123,7 +123,7 @@ export default function InstallInstructionModal({
123123
</div>
124124
<div className="fs-6 mb-2">
125125
<a
126-
href="https://hyperdx.io/docs/install/elixir"
126+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/elixir"
127127
target="_blank"
128128
rel="noreferrer"
129129
>
@@ -133,7 +133,7 @@ export default function InstallInstructionModal({
133133
</div>
134134
<div className="fs-6 mb-2">
135135
<a
136-
href="https://hyperdx.io/docs/install/ruby"
136+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/ruby-on-rails"
137137
target="_blank"
138138
rel="noreferrer"
139139
>
@@ -144,27 +144,7 @@ export default function InstallInstructionModal({
144144
<div className="fs-5 mb-2 mt-4">Platform</div>
145145
<div className="fs-6 mb-2">
146146
<a
147-
href="https://hyperdx.io/docs/install/fly"
148-
target="_blank"
149-
rel="noreferrer"
150-
>
151-
Fly.io
152-
</a>
153-
<span className="ms-2 text-muted">(Logs)</span>
154-
</div>
155-
<div className="fs-6 mb-2">
156-
<a
157-
href="https://hyperdx.io/docs/install/cloudflare"
158-
target="_blank"
159-
rel="noreferrer"
160-
>
161-
Cloudflare Workers
162-
</a>
163-
<span className="ms-2 text-muted">(Logs + Traces)</span>
164-
</div>
165-
<div className="fs-6 mb-2">
166-
<a
167-
href="https://hyperdx.io/docs/install/kubernetes"
147+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/kubernetes"
168148
target="_blank"
169149
rel="noreferrer"
170150
>
@@ -175,7 +155,7 @@ export default function InstallInstructionModal({
175155
<div className="fs-5 mb-2 mt-4">Browser</div>
176156
<div className="fs-6 mb-2">
177157
<a
178-
href="https://hyperdx.io/docs/install/browser"
158+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/sdks/browser"
179159
target="_blank"
180160
rel="noreferrer"
181161
>
@@ -186,24 +166,14 @@ export default function InstallInstructionModal({
186166
<div className="fs-5 mb-2 mt-4">Data Collector</div>
187167
<div className="fs-6 mb-2">
188168
<a
189-
href="https://hyperdx.io/docs/install/opentelemetry"
169+
href="https://clickhouse.com/docs/use-cases/observability/clickstack/ingesting-data/opentelemetry#sending-otel-data"
190170
target="_blank"
191171
rel="noreferrer"
192172
>
193173
OpenTelemetry
194174
</a>
195175
<span className="ms-2 text-muted">(Logs + Traces)</span>
196176
</div>
197-
<div className="fs-6 mb-2">
198-
<a
199-
href="https://hyperdx.io/docs/install/fluentd"
200-
target="_blank"
201-
rel="noreferrer"
202-
>
203-
Fluentd
204-
</a>
205-
<span className="ms-2 text-muted">(Logs)</span>
206-
</div>
207177
<div className="mt-4">
208178
<Button variant="dark" onClick={() => onHide()}>
209179
Cancel

0 commit comments

Comments
 (0)