Skip to content

Conversation

@cmatzenbach
Copy link
Contributor

@cmatzenbach cmatzenbach commented Aug 27, 2025

Description

Third batch of the component conversion started in #25666 (please see PR for background details). This finishes converting all the components in the components/ folder from class components to function components, and with the other two PRs in this series, finishes converting all the class components in the application.

Motivation and Context

Resolves item 12 in #21062; function components are the new de-facto standard in react, and benefit from ongoing optimizations in current and future react versions.

Impact

UI

Test Plan

Tested the UI interface extensively, checking all refactored components and their interactions.

Components/interactions tested:

  • QueryDetail - including sparkline charts
  • QueryHeader
  • QueryList
  • OperatorSummary
  • OperatorStatistics
  • OperatorDetail
  • StageOperatorGraph
  • StageDetail

Contributor checklist

  • Please make sure your submission complies with our contributing guide, in particular code style and commit standards.
  • PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced.
  • Documented new properties (with its default value), SQL syntax, functions, or other functionality.
  • If release notes are required, they follow the release notes guidelines.
  • Adequate tests were added if applicable.
  • CI passed.

Release Notes

== NO RELEASE NOTE ==

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 27, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@cmatzenbach cmatzenbach marked this pull request as ready for review September 3, 2025 20:17
@cmatzenbach cmatzenbach requested review from a team and yhwang as code owners September 3, 2025 20:17
@yhwang
Copy link
Member

yhwang commented Sep 6, 2025

@sourcery-ai review

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Sorry @yhwang, your pull request is too large to review

@SourceryAI
Copy link

Hi @yhwang! 👋

Only authors and team members can run @sourcery-ai commands on public repos.

If you are a team member, install the @sourcery-ai bot to get access ✨

@johallar johallar mentioned this pull request Oct 16, 2025
6 tasks
@cmatzenbach cmatzenbach changed the title Convert class to components to function components, pt. 2 refactor: Convert class to components to function components, pt 2 Oct 23, 2025
Copy link
Member

@yhwang yhwang left a comment

Choose a reason for hiding this comment

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

finished my first run of review. phrew! nice changes and great effort!

@cmatzenbach cmatzenbach changed the title refactor: Convert class to components to function components, pt 2 refactor(ui): Convert class to components to function components, pt 2 Oct 30, 2025
Copy link
Member

@yhwang yhwang left a comment

Choose a reason for hiding this comment

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

great works
/LGTM

@yhwang yhwang merged commit 8c65c9a into prestodb:master Oct 31, 2025
113 of 115 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants