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

feat(forms): Migrate to react-textarea-autosize #83357

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Jan 14, 2025

by the person that does emotion https://www.npmjs.com/package/react-textarea-autosize seems to work about the same. The previous package we were using is archived and last updated 4 years ago https://github.com/buildo/react-autosize-textarea

this new version drops the prop types package and has updated peer dependencies etc

by the person that does makes emotion https://www.npmjs.com/package/react-textarea-autosize seems to work about the same. The previous package we were using is archived 2024 https://github.com/buildo/react-autosize-textarea
@scttcper scttcper requested review from a team as code owners January 14, 2025 01:21
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 14, 2025
@@ -69,7 +69,6 @@ jest
.spyOn(performanceForSentry, 'VisuallyCompleteWithData')
.mockImplementation(props => props.children as ReactElement);
jest.mock('scroll-to-element', () => jest.fn());
jest.mock('sentry/utils/search/searchBoxTextArea');
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 don't think this is being used anymore?

Copy link
Member

Choose a reason for hiding this comment

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

yes it seems it is no longer used.

Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #83357      +/-   ##
==========================================
- Coverage   87.48%   81.91%   -5.58%     
==========================================
  Files        9406     9406              
  Lines      537275   537275              
  Branches    21158    21158              
==========================================
- Hits       470042   440088   -29954     
- Misses      66876    96830   +29954     
  Partials      357      357              

@@ -69,7 +69,6 @@ jest
.spyOn(performanceForSentry, 'VisuallyCompleteWithData')
.mockImplementation(props => props.children as ReactElement);
jest.mock('scroll-to-element', () => jest.fn());
jest.mock('sentry/utils/search/searchBoxTextArea');
Copy link
Member

Choose a reason for hiding this comment

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

yes it seems it is no longer used.

static/app/components/forms/controls/textarea.tsx Outdated Show resolved Hide resolved
Copy link

codecov bot commented Jan 14, 2025

Bundle Report

Changes will increase total bundle size by 43.57kB (0.14%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
app-webpack-bundle-array-push 31.06MB 43.57kB (0.14%) ⬆️

@scttcper scttcper merged commit a7d46f9 into master Jan 14, 2025
45 checks passed
@scttcper scttcper deleted the scttcper/migrate-textarea branch January 14, 2025 23:22
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