Skip to content

feat(browser-starfish): add span description hovers for css and js - #58952

Merged
DominikB2014 merged 9 commits into
masterfrom
DominikB2014/add-hover-for-jcss-js
Oct 27, 2023
Merged

DominikB2014 merged 9 commits into
masterfrom
DominikB2014/add-hover-for-jcss-js

Conversation

@DominikB2014

@DominikB2014 DominikB2014 commented Oct 27, 2023 •

Copy link
Copy Markdown
Contributor

On hover, show an example resource description as per #58723

image

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 27, 2023
@DominikB2014
DominikB2014 marked this pull request as ready for review October 27, 2023 18:51
@DominikB2014
DominikB2014 requested a review from a team October 27, 2023 18:51
@DominikB2014
DominikB2014 marked this pull request as draft October 27, 2023 18:56
@DominikB2014

Copy link
Copy Markdown
Contributor Author

Converting to draft because there's an issue where the resource names now link to the db module query summary.

Comment on lines +15 to +19
export function ModulePageProviders({title, children, baseURL}: Props) {
const organization = useOrganization();

return (
<RoutingContextProvider value={{baseURL: '/performance/database'}}>
<RoutingContextProvider value={{baseURL: baseURL || '/performance/database'}}>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't think we should default to database here, but there are so many places that this is used (even places where it might not make sense to use database such as interactions module). We should probably go over and fix the baseUrl everywhere and not put a default in a seperate PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good idea, something def worth refactoring. cc @gggritso

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Agreed! We also could remove this altogether!

  1. Move all current "Starfish" initiatives under /performance/ routing, since /starfish/ never ships anyway. Delete "Database", and move "Interactions"
  2. Remove RoutingContext completely, also use /performance/ as the base, fix whatever code this breaks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah that makes sense to me @gggritso!

} = useFullSpanFromTrace(group, Boolean(group));

const description = fullSpan?.description ?? shortDescription;
const snippetLanguage = language ?? 'sql';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we remove this? We shouldn't default to sql.

@AbhiPrasad AbhiPrasad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for making the changes!

@DominikB2014
DominikB2014 merged commit a4786fe into master Oct 27, 2023
@DominikB2014
DominikB2014 deleted the DominikB2014/add-hover-for-jcss-js branch October 27, 2023 21:39
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 12, 2023

This branch was successfully deployed

1 active deployment
Preview — 51cad4e1 Deployed Oct 27, 2023 by vercel[bot]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants