Skip to content

Upgrade mui 8#556

Merged
mdfleury-wbd merged 18 commits intomainfrom
upgrade-mui-8
Oct 24, 2025
Merged

Upgrade mui 8#556
mdfleury-wbd merged 18 commits intomainfrom
upgrade-mui-8

Conversation

@mdfleury-wbd
Copy link
Copy Markdown
Contributor

@mdfleury-wbd mdfleury-wbd commented Oct 20, 2025

Upgrade to MUI 8

How Has This Been Tested?

Tested locally and in nonprod

Lots of changes, but most of them are pretty similar in several files.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation change

Checklist

  • My code follows conforms to the coding standards.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

mdfleury-wbd and others added 13 commits October 17, 2025 11:24
…ult (#549)

* Upgrade to pytest-cov v7.

* Don't print coverage report by default.

Removes the textual coverage report by default since it fills up the
screen when just trying to run unit tests.

The HTML coverage report is still generated, which is generally a more
useful format anyway.
* update trivy to 0.67.0

* update trivy version

* use empty object to avoid calling NoneType.get
Bumps the actions group with 1 update: [actions/cache](https://github.com/actions/cache).


Updates `actions/cache` from 4.2.4 to 4.3.0
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](actions/cache@0400d5f...0057852)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-version: 4.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
"@date-io/luxon": "^3.2.0",
"@emotion/react": "^11.14.0",
"@emotion/styled": "^11.14.1",
"@fontsource/roboto": "^5.2.8",
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved from deprecated roboto to current.

import { InputBaseProps } from "@mui/material";

// Formik wrapper for Material UI date/time pickers
// adapted from Material-UI picker Formik sample:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed broken linkl

field,
form,
getShouldDisableDateError,
onChange,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This was never used.

const inputProps: InputBaseProps["inputProps"] = {
id: props.id,
title: displayValue,
"data-testid": `${field.name}_date_input`,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added a testid to the input, the date field is no longer a single input, but it added a hidden input field to show the date, using this on tests.

await user.type(expiresField, "testme!");
});
await waitFor(() => {
expect(expiresField).toHaveValue("YYYY/MM/DD hh:mm"); // can't type invalid chars in field
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The input no longer has a value for the placeholder.

@mdfleury-wbd mdfleury-wbd marked this pull request as ready for review October 21, 2025 15:04
@mdfleury-wbd mdfleury-wbd requested a review from a team as a code owner October 21, 2025 15:04
ZoogieZork
ZoogieZork previously approved these changes Oct 21, 2025
Copy link
Copy Markdown
Collaborator

@ZoogieZork ZoogieZork left a comment

Choose a reason for hiding this comment

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

Looks good, just had a couple questions.

Comment on lines +663 to +668
const newLastPage = Math.max(0, Math.ceil(count / rowsPerPage) - 1);

let showPage = page;
if (newLastPage < page) {
showPage = 0;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this is a change in behavior or replicating the old behavior of MUI 8?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This fixes a warning that I was getting locally, but realized the warning is supposed to be there as part of the test (but only on dev) so I removed it.

Comment on lines -39 to +43
const AllTheProviders = ({ children }: AllTheProvidersProps) => {
const locale = "en";
i18n.load(locale, enMessages);
i18n.activate(locale);
const locale = "en";
i18n.load(locale, enMessages);
i18n.activate(locale);

const AllTheProviders = ({ children }: AllTheProvidersProps) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Was this initialization moved out due to a race condition or some other reason? If so, would be good to add a comment documenting the reasons so it doesn't accidentally get reverted.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to figure out why I moved this, and I can't. Moving it back.

@ZoogieZork ZoogieZork self-requested a review October 23, 2025 19:53
@mdfleury-wbd mdfleury-wbd merged commit 608f51b into main Oct 24, 2025
7 checks passed
@mdfleury-wbd mdfleury-wbd deleted the upgrade-mui-8 branch October 24, 2025 11:27
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.

4 participants