-
Notifications
You must be signed in to change notification settings - Fork 267
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
Update Carbon #3493
Comments
Results of first pass at updating the Dashboard to Carbon 11 (most styling is expected to be broken / missing for now):
This was just to get a baseline status and a better feel for the amount of work required to migrate fully. ~10% of unit tests (55/581) are failing in this state, affecting ~25% of the test suites (19/73). The next step is to go through the longer / more detailed manual migration guide at https://github.com/carbon-design-system/carbon/blob/main/docs/migration/v11.md to resolve the styling and functional issues. There are a number of breaking changes to components such as notifications and tooltips that will need to be addressed, as well as changes to the structure of tabs, etc. My hope is that the bulk of the issues will be resolved by changes to common components that are reused in multiple places. Once the issues with the core app and components are resolved we'll also need to address any issues with the experimental / WIP components and utils such as the graph components. |
Getting closer, still some colour, typography, and spacing tokens to migrate but this should be the bulk of the big styling issues resolved. Next, move onto the functional issues, starting with the tab components as they're not currently rendering the tab list. Once the main functionality is roughly working, we can focus on getting the tests passing again and deal with any remaining issues as we find them. |
Starting to look a lot better now, tabs are rendered correctly and hooked up to the URL again. Most major styling issues resolved, working through remaining cleanup and functional fixes. There are still some minor issues with the actions menu button and the log toolbar buttons but everything on this page appears to be functional at least 😸 |
With the addition of 01b9c37 the E2E tests are now passing again 🎉 There are still some styling and accessibility issues to be resolved, as well as some remaining functional issues not currently covered by E2E tests. |
a11y issues with Accordion component:
There's also an issue with the ActionableNotification component's close button trapping focus. ComboBox behaviour has changed in v11 too, no longer firing the onChange handler when the 'clear' button is clicked. Worked around it on the global NamespacesDropdown by listening for the underlying DownShift state change events but would be nice to have a cleaner solution similar to the one we had with Carbon v10. Slack thread open with the Carbon folks discussing options. Also noticed the ComboBox clear behaviour is not quite as expected on the 'create' pages, even though the event is being handled and the URL is updated as expected, the input is not cleared consistently. Blurring, re-focusing / opening, and closing the listbox again seems to trigger it to update correctly, so something's interfering with the first update. Warnings in the console with details of the underlying DownShift component changing from uncontrolled to controlled, may not be related, but should also be resolved. There's some odd behaviour with the actions menu on the run details pages too. Keyboard nav of the items in the open menu is causing the page to scroll. Not seeing the same behaviour in the Carbon storybook or our own for that matter, so likely something else on the page contributing to the problem. Some good news is that most of the unit tests are now passing again, current status:
and we've reduced the size of the build output by disabling unused fonts. |
Carbon team have confirmed the 3 remaining issues are valid bugs:
Once the fix for the MenuButton is released we can update Carbon to the latest version and mark #3501 ready for merge. I don't consider the other issues blockers at this time as they're either purely cosmetic or have workarounds. |
Carbon patch release expected today with fixes for the MenuButton scroll issue and the Firefox tab styles. |
Update to Carbon 11.
Carbon 10 is being sunset and will no longer be supported as of 1st October 2024.
Announcements:
We have already done quite a bit of preparation for this, including simplification of the data / API layers which allowed us to reduce the number of custom page containers used in the app in #2452 and related issues.
So far it looks like React 18 should not be required for this effort 🤞 If it is, see #3492 for details.
Migration guide: https://carbondesignsystem.com/migrating/guide/overview/
Initially we'll migrate to the new versions keeping the design as close as possible to existing. This is to minimise the impact / overhead on tests, developer experience, and user experience during the migration process.
Some changes will be required, particularly around use of notifications and tooltips. Details in the migration guide.
Once the initial migration is complete we can consider adopting some of the new components and behaviours provided to enhance the experience.
The text was updated successfully, but these errors were encountered: