Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(replay): Remove browser from table if all mobile replays #74796

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

c298lee
Copy link
Member

@c298lee c298lee commented Jul 23, 2024

Fixes #74747

@c298lee c298lee requested a review from a team July 23, 2024 22:51
@c298lee c298lee requested review from a team as code owners July 23, 2024 22:51
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 23, 2024
Copy link

codecov bot commented Jul 23, 2024

Bundle Report

Changes will decrease total bundle size by 7.25kB ⬇️

Bundle name Size Change
app-webpack-bundle-array-push 28.18MB 7.25kB ⬇️

@@ -80,7 +88,7 @@ function GroupReplays({group}: Props) {
isFetching={isFetching}
replays={[]}
sort={undefined}
visibleColumns={VISIBLE_COLUMNS}
visibleColumns={allMobileProj ? VISIBLE_COLUMNS_MOBILE : VISIBLE_COLUMNS}
Copy link
Member

Choose a reason for hiding this comment

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

this ternary seems to be used a lot throughout this file, can we make it a constant up top?

@c298lee c298lee requested a review from michellewzhang July 23, 2024 23:12
@@ -52,6 +62,7 @@ function GroupReplays({group}: Props) {
location,
organization,
});
const {allMobileProj} = useAllMobileProj();
Copy link
Member

@michellewzhang michellewzhang Jul 23, 2024

Choose a reason for hiding this comment

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

oo sorry, i meant, can we move the visibleColumns definition to under here? that way we don't need a function (we don't need to pass in allMobileProj then, can just case directly on allMobileProj)

Copy link
Member

Choose a reason for hiding this comment

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

actually, what do you think is better🤔 because i see with that method we'd have to define the const twice

Copy link
Member Author

@c298lee c298lee Jul 23, 2024

Choose a reason for hiding this comment

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

there's three functional components using VISIBLE_COLUMNS in this file so I don't think we can do it better without a function :(

@c298lee c298lee merged commit 25e3c5f into master Jul 23, 2024
42 checks passed
@c298lee c298lee deleted the cl/issue-replay-hide-browser branch July 23, 2024 23:28
@github-actions github-actions bot locked and limited conversation to collaborators Aug 8, 2024
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.

[Mobile Replay] Issue Detail Tab: Browser showing as null null with <> icon.
3 participants