feat: Added Search support in Trace details#730
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #730 +/- ##
==========================================
- Coverage 31.96% 31.86% -0.11%
==========================================
Files 92 95 +3
Lines 5834 5951 +117
Branches 118 118
==========================================
+ Hits 1865 1896 +31
- Misses 3969 4055 +86 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
BYK
left a comment
There was a problem hiding this comment.
I wanna follow up with some UX improvements:
- Should make the search bar sticky at the top for long/deep trees.
- We should have an actual filtering functionality, not just highlight
- We may wanna look into creating a query language of sorts or at least chaining filters with negation etc.
All that said, I think this is a great start and addition. Thanks and thanks for the speedy patch!
packages/overlay/src/integrations/sentry/hooks/useSearchInput.ts
Outdated
Show resolved
Hide resolved
| useEffect(() => { | ||
| debouncedSearch(inputValue); | ||
| }, [inputValue, debouncedSearch]); |
There was a problem hiding this comment.
Maybe useCallback here? Not exactly sure what we are after to be honest
There was a problem hiding this comment.
This is just calling the debounced function every time inputvalue changes.
Co-authored-by: Burak Yigit Kaya <byk@sentry.io>
added these in a new issue. Thanks for the review. |
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @spotlightjs/astro@3.1.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) - Updated dependencies \[[`9ca9ed1b97119757d8b1ec6de24d781aefe8b76c`](9ca9ed1), [`c39cfb3622fe19ccc5df822d30d16298f254cb17`](c39cfb3), [`f731d9171ead5aea21152f1d3bfa89e473a7272c`](f731d91), [`97dfa768846c76da47521f551b1bb45c683a23d9`](97dfa76), [`79506149f545487e67cdff7eab7393c619c8afd9`](7950614)]: - @spotlightjs/spotlight@2.12.0 ## @spotlightjs/electron@1.6.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) - Updated dependencies \[[`9ca9ed1b97119757d8b1ec6de24d781aefe8b76c`](9ca9ed1), [`c39cfb3622fe19ccc5df822d30d16298f254cb17`](c39cfb3), [`f731d9171ead5aea21152f1d3bfa89e473a7272c`](f731d91), [`97dfa768846c76da47521f551b1bb45c683a23d9`](97dfa76), [`448062fd45799832fc3240656d543696d438d5ab`](448062f), [`79506149f545487e67cdff7eab7393c619c8afd9`](7950614)]: - @spotlightjs/overlay@2.13.0 ## @spotlightjs/overlay@2.13.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) - Added Search support in Trace details ([#730](#730)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) ## @spotlightjs/spotlight@2.12.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) - Updated dependencies \[[`9ca9ed1b97119757d8b1ec6de24d781aefe8b76c`](9ca9ed1), [`c39cfb3622fe19ccc5df822d30d16298f254cb17`](c39cfb3), [`f731d9171ead5aea21152f1d3bfa89e473a7272c`](f731d91), [`97dfa768846c76da47521f551b1bb45c683a23d9`](97dfa76), [`448062fd45799832fc3240656d543696d438d5ab`](448062f), [`79506149f545487e67cdff7eab7393c619c8afd9`](7950614)]: - @spotlightjs/overlay@2.13.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
<!-- Tick these boxes if they're applicable to your PR. - Changesets are only required for PRs to Spotlight library packages (e.g. @spotlightjs/overlay). Not for the website/docs or demo app contributions. - Typo correction or small bugfix PRs don't require an issue. If you're making a bigger change, please open an issue first. --> Before opening this PR: - [x] I added a [Changeset Entry](https://spotlightjs.com/contribute/changesets/) with `pnpm changeset:add` - [ ] I referenced issues that this PR addresses - Added back Search input - used context for search query(related #424 (comment)) - we can extend this and make a context only for trace detail. - added a hook for search input --------- Co-authored-by: Burak Yigit Kaya <byk@sentry.io>
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @spotlightjs/astro@3.1.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) - Updated dependencies \[[`9ca9ed1b97119757d8b1ec6de24d781aefe8b76c`](9ca9ed1), [`c39cfb3622fe19ccc5df822d30d16298f254cb17`](c39cfb3), [`f731d9171ead5aea21152f1d3bfa89e473a7272c`](f731d91), [`97dfa768846c76da47521f551b1bb45c683a23d9`](97dfa76), [`79506149f545487e67cdff7eab7393c619c8afd9`](7950614)]: - @spotlightjs/spotlight@2.12.0 ## @spotlightjs/electron@1.6.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) - Updated dependencies \[[`9ca9ed1b97119757d8b1ec6de24d781aefe8b76c`](9ca9ed1), [`c39cfb3622fe19ccc5df822d30d16298f254cb17`](c39cfb3), [`f731d9171ead5aea21152f1d3bfa89e473a7272c`](f731d91), [`97dfa768846c76da47521f551b1bb45c683a23d9`](97dfa76), [`448062fd45799832fc3240656d543696d438d5ab`](448062f), [`79506149f545487e67cdff7eab7393c619c8afd9`](7950614)]: - @spotlightjs/overlay@2.13.0 ## @spotlightjs/overlay@2.13.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) - Added Search support in Trace details ([#730](#730)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) ## @spotlightjs/spotlight@2.12.0 ### Minor Changes - Make event id a link to raw envelope on envelope details page ([#729](#729)) ### Patch Changes - Fix envelope sorting and local classification ([#727](#727)) - Fix UI issues when we get a bare span envelope ([#726](#726)) - Fix span details modal resetting trace view tree state on close (for reals this time) ([#728](#728)) - Fixes detection of Sentry SDK frames in Vite projects ([#718](#718)) - Updated dependencies \[[`9ca9ed1b97119757d8b1ec6de24d781aefe8b76c`](9ca9ed1), [`c39cfb3622fe19ccc5df822d30d16298f254cb17`](c39cfb3), [`f731d9171ead5aea21152f1d3bfa89e473a7272c`](f731d91), [`97dfa768846c76da47521f551b1bb45c683a23d9`](97dfa76), [`448062fd45799832fc3240656d543696d438d5ab`](448062f), [`79506149f545487e67cdff7eab7393c619c8afd9`](7950614)]: - @spotlightjs/overlay@2.13.0 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Before opening this PR:
I added a Changeset Entry with
pnpm changeset:addI referenced issues that this PR addresses
Added back Search input
used context for search query(related Added Search in Trace detail #424 (comment))
added a hook for search input