Skip to content

fix warnings on ui server startup#8599

Merged
petemoore merged 2 commits into
mainfrom
pmoore/ui-dev-warnings
May 19, 2026
Merged

fix warnings on ui server startup#8599
petemoore merged 2 commits into
mainfrom
pmoore/ui-dev-warnings

Conversation

@petemoore
Copy link
Copy Markdown
Member

Reduces some of the noise on ui server startup.

@petemoore petemoore self-assigned this May 8, 2026
@petemoore petemoore requested a review from a team as a code owner May 8, 2026 12:58
@petemoore petemoore requested review from Eijebong, lotas and matt-boris and removed request for a team May 8, 2026 12:59
@github-project-automation github-project-automation Bot moved this to Backlog / Inbox in TC intake board May 8, 2026
@petemoore petemoore moved this from Backlog / Inbox to In progress in TC intake board May 8, 2026
spanProps={{ className: classes.resetButtonSpan }}
tooltipProps={{ title: 'Reset Form & File' }}
variant="round"
variant="circular"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Before/After on /quickstart

Image

I'm actually surprised you're not getting warnings about this because:

variant: oneOf(['text', 'outlined', 'contained', 'round', 'extended']),

This also changes the component because of

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

> rg variant=\"circul | wc -l
1
> rg variant=\"round | wc -l
29

This is also inconsistent with the rest of the codebase which uses round everywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

OK, the warning was coming from:
https://github.com/mui/material-ui/blob/a9715056ab92595f3e62b045837edbeddc359579/packages/material-ui/src/Fab/Fab.js#L221-L229

we have this wrapper:

const MuiComponent =
variant === 'round' || variant === 'extended' ? Fab : MuiButton;

so when i updated to use the newer term, we ended up with the default MuiButton. 🙄

I've fixed the wrapper now to respect the new term, and visually checked the UI that it now renders properly, and can confirm the warning has disappeared. Thanks for the review!

@petemoore petemoore force-pushed the pmoore/ui-dev-warnings branch from 988cac3 to 63913ef Compare May 8, 2026 19:36
@petemoore petemoore requested a review from Eijebong May 8, 2026 20:08
@petemoore petemoore moved this from In progress to In review in TC intake board May 8, 2026
lotas
lotas previously approved these changes May 19, 2026
Copy link
Copy Markdown
Contributor

@lotas lotas left a comment

Choose a reason for hiding this comment

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

LGTM also tested locally, didn't notice any major issues

@petemoore petemoore force-pushed the pmoore/ui-dev-warnings branch from cc55f5f to 61f9a72 Compare May 19, 2026 13:49
@petemoore petemoore requested a review from lotas May 19, 2026 14:02
@petemoore petemoore merged commit bfa19fa into main May 19, 2026
76 checks passed
@petemoore petemoore deleted the pmoore/ui-dev-warnings branch May 19, 2026 14:05
@github-project-automation github-project-automation Bot moved this from In review to Done in TC intake board May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants