Skip to content

Conversation

@priscilawebdev
Copy link
Member

Preview

Screen.Recording.2025-06-03.at.09.38.45.mov

closes TET-363

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 3, 2025
@priscilawebdev priscilawebdev marked this pull request as ready for review June 3, 2025 09:01
@priscilawebdev priscilawebdev requested a review from a team as a code owner June 3, 2025 09:01
@priscilawebdev priscilawebdev requested a review from a team June 3, 2025 09:01
to={{
pathname: `/settings/projects/${projectSlug}/source-maps/`,
query: {
query: debugId,
Copy link
Contributor

Choose a reason for hiding this comment

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

can we just do something like debugId! here to get rid of the unnecessary case above?

Copy link
Member Author

@priscilawebdev priscilawebdev Jun 4, 2025

Choose a reason for hiding this comment

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

we can. but I usually avoid the usage of !

Comment on lines +1291 to +1293
aria-label={t('View source map Debug ID %(debugId)s in project settings', {
debugId,
})}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
aria-label={t('View source map Debug ID %(debugId)s in project settings', {
debugId,
})}
aria-label={t('View source map Debug ID %(debugId)s in project settings', {
debugId,
})}

can we just use tct here or is t preferred?

Copy link
Member Author

Choose a reason for hiding this comment

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

we need to always have a string for aria-labels, and tct returns a React Node

)}
<DebugIdMismatchMessage
projectSlug={projectSlug}
debugId={sourceResolutionResults.stackFrameDebugId}
Copy link
Member

Choose a reason for hiding this comment

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

add sourceResolutionResults.stackFrameDebugId to the if and make debugId non-nullable

Copy link
Member Author

Choose a reason for hiding this comment

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

I want to ensure this part of the code always renders, even if debugID is null - which shouldn't happen, but just in case. That's why we need to fix the types.

Comment on lines +1265 to +1277
debugId: string | null;
projectSlug?: string;
}) {
// At this point debugId is always defined. The types need to be fixed
if (!debugId) {
return (
<Fragment>
{t(
"You already uploaded artifacts with Debug IDs but none of the uploaded source files had a Debug ID matching this stack frame's Debug ID"
)}
</Fragment>
);
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
debugId: string | null;
projectSlug?: string;
}) {
// At this point debugId is always defined. The types need to be fixed
if (!debugId) {
return (
<Fragment>
{t(
"You already uploaded artifacts with Debug IDs but none of the uploaded source files had a Debug ID matching this stack frame's Debug ID"
)}
</Fragment>
);
}
debugId: string;
projectSlug?: string;
}) {

@priscilawebdev priscilawebdev merged commit 52224a6 into master Jun 4, 2025
43 checks passed
@priscilawebdev priscilawebdev deleted the priscila/feat/source-maps/add-links-to-debug-ids-in-debugger-modal branch June 4, 2025 09:16
@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2025
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.

5 participants