Repository navigation
ATLAS-5373: Atlas React UI: Extremely long entity names break layout in Latest Entities Created widget - #728
Open
Brijesh619 wants to merge 6 commits into
Open
Brijesh619 wants to merge 6 commits into
Brijesh619 wants to merge 6 commits into
Conversation
Contributor
Author
Contributor
Author
Contributor
Author
Contributor
Author
Brijesh619
force-pushed
the
ATLAS-5373
branch
from
September 3, 2026 10:26
0b2f658 to
48928cd
Compare
Contributor
Author
Contributor
Author
…in Latest Entities Created widget
…in Latest Entities Created widget
…in Latest Entities Created widget
…in Latest Entities Created widget
…in Latest Entities Created widget
…in Latest Entities Created widget
Brijesh619
force-pushed
the
ATLAS-5373
branch
from
September 21, 2026 07:24
3718ff1 to
9a9ed9d
Compare
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 completely migrates away from inline
sxobjects to strict, maintainable SCSS classes, and drastically improves the performance, layout resilience, test coverage, and type safety of shared UI components.sxlayout styles (includingdisplay,width, and truncation rules) from the genericOverflowTooltipand theLatestEntitiesListcomponent. Migrated all layout responsibilities strictly toLatestEntitiesList.scss. Hardened flex layout rules (flex: 1 1 auto; min-width: 0) and addedflex: 0 0 auto/max-width: 45%constraints on.latest-entities-type-wrapperto prevent long entity names from squishing the type label.OverflowTooltipcomponent to elegantly handle long entity and type names. Centralized explicit CSS truncation rules (overflow: hidden,text-overflow: ellipsis,white-space: nowrap) across.latest-entities-entity-name,.latest-entities-name-wrapper, and.latest-entities-type-wrapperin SCSS for guaranteed visual consistency and layout separation of concerns.OverflowTooltipinmuiComponents.tsxto useResizeObserver(combined with anonMouseEnterfallback) for accurate DOM boundary detection. Added inline documentation explaining the subpixel arithmetic (clientWidthvsgetBoundingClientRect().width) and observer patterns.LightTooltipinmuiComponents.tsxto strictly useTooltipPropsinstead ofany.CustomButtonto enforce native@mui/material/ButtonProps, eliminating legacyanyescape hatches. Proactively cleaned up invalid props and event handlers across downstream consumers to guarantee 100% type safety."Created "prefix on relative timestamps to maintain UX expectations and cleaned up formatting/blank line inconsistencies between helpers and component definitions. Standardized SCSS formatting to a strict 4-space indent.How was this patch tested?
..., long type names remain appropriately visible without collapsing into(, and tooltips appear precisely when fractional overflow occurs.LatestEntitiesList.test.tsxback to strict/^Created /regex matchers (lines 190, 331, 537, 603) for strong regression protection.nameandtypeName('B'.repeat(300)) simultaneously rendering without layout breakdown.fireEventand fake timer advancements (jest.advanceTimersByTime) to verify overflow hover states.anycasts with strictly typed test mocks (as unknown as typeof ResizeObserver) inmuiComponents.test.tsx.OverflowTooltiptest suite to verifyResizeObserver.disconnect()on unmount,wrapperClassNameapplication, and re-evaluation upontitleprop updates.npm run test).npm run typecheck) across the entire dashboard with zero errors.