ATLAS-5373: Atlas React UI: Extremely long entity names break layout in Latest Entities Created widget - #728
Open
Brijesh619 wants to merge 4 commits into
Open
ATLAS-5373: Atlas React UI: Extremely long entity names break layout in Latest Entities Created widget#728Brijesh619 wants to merge 4 commits into
Brijesh619 wants to merge 4 commits into
Conversation
…in Latest Entities Created widget
Contributor
Author
…in Latest Entities Created widget
…in Latest Entities Created widget
Contributor
Author
…in Latest Entities Created widget
Contributor
Author
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.






What changes were proposed in this pull request?
ATLAS-5373: Atlas React UI: Refactor and stabilize layout in Latest Entities Created widget
This PR fixes styling, layout, and type-safety bugs in the "Latest Entities Created" widget and its underlying shared components. It migrates away from inline
sxobjects to strict, maintainable SCSS classes, and drastically improves the performance and strictness of shared UI components.sxstyles across theLatestEntitiesListcomponent and migrated them toLatestEntitiesList.scss, ensuring strict separation of concerns and eliminating React render overhead for styles.OverflowTooltipcomponent to elegantly handle long entity and type names. The flex layout was hardened so that the entity name shrinks responsively while keeping the type name visible, with tooltips automatically appearing on hover if truncation occurs.OverflowTooltipcomponent inmuiComponents.tsxto useResizeObserver(combined with anonMouseEnterfallback) for accurate, highly-performant DOM boundary detection that successfully handles subpixel truncation quirks.CustomButtonto rigorously enforce native@mui/material/ButtonProps, eliminating legacyanyescape hatches. Proactively cleaned up invalid props and event handlers across 6 downstream consumers (likeModal,AdvancedSearch, andShowMoreDrawer) to guarantee 100% type safety."Created "prefix on relative timestamps to maintain UX expectations.How was this patch tested?
..., the type name remains appropriately visible, and the tooltip appears precisely when fractional overflow occurs.LatestEntitiesList.test.tsxto validate the restored"Created "string prefix and fallback rendering.npm run test.npm run typecheck) across the entire dashboard with zero errors.