Comments (2)
HIG-4647 Don't show CTA to set up traces if already configured
from highlight.
To resolve the issue of not showing the CTA for setting up traces if already configured, follow these steps:
- In
/frontend/src/pages/Setup/SetupRouter/SetupRouter.tsx
, locate the section where the CTA for traces setup is rendered. - Utilize the
useTracesIntegration
hook from/frontend/src/util/integrated.tsx
to check if traces integration is already configured. This hook checks for traces integration data and returns a boolean indicating whether traces are integrated. - Before rendering the CTA, add a conditional check using the value returned by
useTracesIntegration
. If traces are already integrated (localStorageIntegrated
is true for traces), do not render the CTA.
Example code snippet for the conditional rendering:
const { localStorageIntegrated: tracesIntegrated } = useTracesIntegration();
if (!tracesIntegrated) {
// Render the CTA for setting up traces
}
This approach ensures the CTA is only shown to users who have not yet configured traces integration.
References
/frontend/src/pages/Setup/SetupRouter/SetupRouter.tsx
/frontend/src/util/integrated.tsx
from highlight.
Related Issues (20)
- Single select has no loading state HOT 2
- Sorting on tables HOT 2
- Add a button on each graph to allow for moving them around HOT 2
- Time Picker Bugs HOT 2
- metrics group by session attributes does not count session for each matching group value HOT 2
- hide empty groups by default HOT 2
- count distinct multiplying by sampling rate HOT 2
- support all excluded reasons in sessions ui HOT 2
- Add exclusion reasons to frontend end HOT 2
- Consolidate @highlight-run/client and @highlight-run/firstload HOT 2
- Configure OTEL propagation in all SDKs HOT 2
- Ensure DataSyncQueue is working correctly HOT 2
- E2E tests for session deletion HOT 2
- Better monitoring for long running jobs HOT 2
- use `traces_sampling_new` HOT 2
- New Hover Card Design HOT 2
- Cooldown logic for alert evaluation HOT 2
- Perf improvements for long running logs/traces queries HOT 2
- session has_error:false filtering does not work as expected HOT 1
- How can stop the session replay ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highlight.