Repository navigation
fix(ui): improve long text display in rule hit details - #902
Merged
Merged
Conversation
Coverage report
Test suite run success2326 tests passing in 630 suites. Report generated by 🧪jest coverage report action from 78118f5 |
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.
Summary
rule_nameand Description displaysmessage.ActiontechTableand define stable column widths.Problem
The rule hit details table had no width, overflow, tooltip, or scrolling constraints. Long Rule and Description values could push columns outside the viewport, forcing users to zoom the page. The Rule column also preferred
message, which duplicated the Description column instead of showing the rule name.Solution
The table now uses the shared table and typography components. Rule and Description use fixed visual widths and single-line ellipsis based on rendered width rather than character count. Hovering truncated content exposes the complete value, while a minimum table width provides horizontal scrolling on smaller screens.
Test plan
pnpm checkerpnpm exec jest packages/sqle/src/page/SqlAudit/Detail/RuleHitDetails/index.test.tsx --runInBand --watchAll=falseFixes actiontech/dms-ee#996