Repository navigation
migrate mui to bui - #10283
migrate mui to bui#10283amitkumar489 wants to merge 11 commits into
Conversation
Signed-off-by: amitkumar489 <[email protected]>
Changed Packages
|
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
10542cc to
7e4c5cd
Compare
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
Signed-off-by: amitkumar489 <[email protected]>
|
@04kash pls review |
|
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
04kash
left a comment
There was a problem hiding this comment.
Hey, left a few comments. Menus look good. Main gaps are native widgets instead of BUI, a few color tokens, and the changeset not calling out the break.
| '@backstage-community/plugin-ilert': minor | ||
| --- | ||
|
|
||
| Migrate plugin from mui to bui |
There was a problem hiding this comment.
This is a breaking change for consumers (they now need Backstage UI). Mind calling that out? Minor is fine since the plugin is still pre-1.0.
| Migrate plugin from mui to bui | |
| **BREAKING** Migrated from Material UI (MUI) to Backstage UI (BUI). Backstage UI is now required for this plugin, see the [installation docs](https://ui.backstage.io/get-started/installation). |
| "@material-ui/lab": "4.0.0-alpha.61", | ||
| "@material-ui/pickers": "^3.3.10", | ||
| "@backstage/ui": "backstage:^", | ||
| "@remixicon/react": "^4.2.0", |
There was a problem hiding this comment.
Can we pin this to >=4.6.0 <4.9.0? 4.9 changed its license, and that's the range the other BUI migrations are using.
| */ | ||
| @layer components { | ||
| .alertInfo { | ||
| background-color: var(--bui-bg-surface-2); |
There was a problem hiding this comment.
--bui-bg-surface-* is deprecated. Can we use --bui-bg-neutral-* here (and --bui-border-1 / --bui-border-2 for the borders)? Same in the other new css modules.
| */ | ||
| @layer components { | ||
| .resolved { | ||
| background-color: #4caf50; |
There was a problem hiding this comment.
These hardcoded colors won't follow the theme. Tag with the status tokens (--bui-positive-bg, --bui-warning-bg, --bui-negative-bg) would match the other migrations.
| <label htmlFor="user-select" className={styles.label}> | ||
| User | ||
| </label> | ||
| <select |
There was a problem hiding this comment.
Could this be a BUI Combobox, and DatePicker for the start/end fields below, instead of a native select and datetime-local? toISOString().slice(0, 16) also shows UTC in a local input. Same pattern in the assign and create-alert modals.
| {/* eslint-disable-next-line react/forbid-elements */} | ||
| <div className={styles.selectContainer}> | ||
| {/* eslint-disable-next-line react/forbid-elements */} | ||
| <button |
There was a problem hiding this comment.
The forbid-elements disables are a smell. A BUI Select or Checkbox should cover the status filter without a custom dropdown.
| @@ -28,14 +27,6 @@ import { TableTitle } from './TableTitle'; | |||
| import { Table, TableColumn } from '@backstage/core-components'; | |||
There was a problem hiding this comment.
This is still the core-components table, which is MUI under the hood. Mind switching it to the BUI Table? Same for the services and status page tables.
| </Link> | ||
| </Typography> | ||
| <MenuTrigger> | ||
| <ButtonIcon icon={<RiMore2Line size={16} />} variant="secondary" /> |
There was a problem hiding this comment.
ButtonIcon needs an aria-label here (the alert menu uses aria-label="more"). Same on the status page actions menu.
| <PhoneIcon color="secondary" /> | ||
| </IconButton> | ||
| </Tooltip> | ||
| <a href={`tel:${phoneNumber}`} title="Call to user"> |
There was a problem hiding this comment.
A ButtonIcon inside an <a> is a button nested in a link, and it has no accessible name. Could this be a ButtonLink with an aria-label instead of title? Same for the email action below.
Hey, I just made a Pull Request!
migrate ilert from mui to bui
✔️ Checklist
Signed-off-byline in the message. (more info)