Skip to content

deps(ui): Upgrade react aria April 2025 #87821

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

Merged
merged 27 commits into from
Jun 2, 2025
Merged

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Mar 24, 2025

fixes DE-22

Takes us from the September 30, 2024 Release to the May 19, 2025 Release. Some fixes for mergeProps and others might be the most interesting for us.

changelog

Takes us from the September 30, 2024 Release to the March 5, 2025 Release. Some fixes for mergeProps and others might be the most interesting for us.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 24, 2025
Copy link

codecov bot commented Mar 24, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
10419 1 10418 9
View the top 1 failed test(s) by shortest run time
useReplayCount getOne & hasOne should return undefined to start, then the count after data is loaded
Stack Traces | 0.639s run time
Error: expect(received).toBe(expected) // Object.is equality

Expected: 5
Received: undefined
    at Object.<anonymous> (.../utils/replayCount/useReplayCount.spec.tsx:57:45)

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@scttcper scttcper changed the title deps(ui): Upgrade react aria March 2025 deps(ui): Upgrade react aria April 2025 Apr 16, 2025
@TkDodo
Copy link
Contributor

TkDodo commented May 7, 2025

This update will also fix:

let me know if you need any help to get this over the finish line 🙏

Copy link
Contributor

@TkDodo TkDodo left a comment

Choose a reason for hiding this comment

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

I left some suggestions on how to fix the new type errors without introducing a non-null assertion. I’ve basically taken them from here:

Comment on lines -215 to +210
const focusedItem = state.collection.getItem(state.selectionManager.focusedKey)?.props
const focusedItem = state.collection.getItem(state.selectionManager.focusedKey!)?.props
Copy link
Contributor

Choose a reason for hiding this comment

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

in the other PR I opened, I had fixed this differently without a no-null assertion:

  const focusedItem: string | undefined = state.selectionManager.focusedKey
    ? state.collection.getItem(state.selectionManager.focusedKey)?.props?.value
    : undefined;

Copy link
Contributor

Choose a reason for hiding this comment

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

this isn’t resolved yet, we’re still using the no-null assertion here even though this is fixable with a runtime check

@scttcper scttcper requested a review from a team May 29, 2025 01:12
@scttcper scttcper marked this pull request as ready for review May 29, 2025 01:12
@scttcper scttcper requested review from a team as code owners May 29, 2025 01:12
# Conflicts:
#	static/app/components/searchQueryBuilder/tokens/filterKeyListBox/index.tsx
scttcper and others added 2 commits June 2, 2025 08:38
…ox/useFilterKeyListBox.tsx

Co-authored-by: Dominik Dorfmeister <dominik.dorfmeister@sentry.io>
@TkDodo
Copy link
Contributor

TkDodo commented Jun 2, 2025

Ah, we just merged these two little changes in:

https://github.com/getsentry/sentry/pull/92298/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519

I think this means we need to update @react-aria/textfield and @react-stately/form here now too?

Copy link
Contributor

@TkDodo TkDodo left a comment

Choose a reason for hiding this comment

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

🚀

@scttcper scttcper merged commit 354722a into master Jun 2, 2025
42 checks passed
@scttcper scttcper deleted the scttcper/react-aria-upgrade branch June 2, 2025 16:39
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
fixes DE-22

Takes us from the September 30, 2024 Release to the May 19, 2025
Release. Some fixes for mergeProps and others might be the most
interesting for us.

[changelog](https://react-spectrum.adobe.com/releases/index.html)

---------

Co-authored-by: Malachi Willey <malwilley@gmail.com>
Co-authored-by: Dominik Dorfmeister <dominik.dorfmeister@sentry.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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