Skip to content

Conversation

@ryan953
Copy link
Member

@ryan953 ryan953 commented Jan 5, 2023

This is a bit more than just saving the sort config into the url, most things related to the network table are refactored, but that's one of the few behavior changes.
Other behavior changes relate to the current/hover state of the table. I've made sure the hover state is works correctly when the table is sorted by the startTimestamp column (in either direction). Also when the table is sorted by any other column, I've added a background on hover, so it's easier to see what row you're looking at (there is no hoverTime border).

I also refactored to create <NetworkTableCell>, which is similar to <NetworkHeaderCell> i guess. Inside of there I cleaned up some things, mostly converting that array of react elements into an array of element-factories; and also looking at the css for background-color, border, and color props of each row.

Fixes #38948

@ryan953 ryan953 requested a review from a team as a code owner January 5, 2023 00:11
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 5, 2023

size-limit report 📦

Path Size
src/sentry/static/sentry/dist/entrypoints/app.js 19.88 KB (-0.02% 🔽)
src/sentry/static/sentry/dist/entrypoints/sentry.css 33.02 KB (0%)

DEFAULT_ASC
);
const {getParamValue: getSortBy, setParamValue: setSortBy} = useUrlParams(
's_n_by',
Copy link
Member

Choose a reason for hiding this comment

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

These strings are kind of cryptic

@ryan953 ryan953 merged commit 97fd7de into master Jan 6, 2023
@ryan953 ryan953 deleted the ryan953/replay-ref-network branch January 6, 2023 19:10
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2023
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.

Consistent hover states and row background for Network, Console, DOM Events tabs and Breadcrumbs

3 participants