Skip to content
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

fix: do not hide pdisk and vdisk popups if mouse on popup content #1435

Merged
merged 4 commits into from
Oct 11, 2024

Conversation

astandrik
Copy link
Contributor

@astandrik astandrik commented Oct 10, 2024

Closes #1360

Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
128 123 0 5 0

Bundle Size: ✅

Current: 78.97 MB | Main: 78.97 MB
Diff: +0.00 MB (0.00%)

✅ Bundle size unchanged.

ℹ️ CI Information
  • Test recordings for failed tests are available in the full report.
  • Bundle size is measured for the entire 'dist' directory.
  • 📊 indicates links to detailed reports.
  • 🔺 indicates increase, 🔽 decrease, and ✅ no change in bundle size.

@artemmufazalov
Copy link
Member

Please, change PR title prefix to fix:, so it will appear in Changelog

artemmufazalov
artemmufazalov previously approved these changes Oct 10, 2024
@astandrik
Copy link
Contributor Author

@artemmufazalov added debounce cancelation to prevent appearing not needed popups on fast mast movement

@astandrik astandrik changed the title chore: do not hide pdisk and vdisk popups if mouse on popup content fix: do not hide pdisk and vdisk popups if mouse on popup content Oct 10, 2024
artemmufazalov
artemmufazalov previously approved these changes Oct 10, 2024
@astandrik
Copy link
Contributor Author

@Raubzeug added delay for table cells as discussed

@astandrik
Copy link
Contributor Author

Deployed stand for testing

@@ -70,6 +70,14 @@ export const PDiskPopup = ({data, ...props}: PDiskPopupProps) => {
const nodeHost = valueIsDefined(data.NodeId) ? nodeHostsMap?.get(data.NodeId) : undefined;
const info = React.useMemo(() => preparePDiskData(data, nodeHost), [data, nodeHost]);

const [isPopupOpen, setIsPopupOpen] = React.useState(props.open);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not stick to props value as initial. Let it be separate property lets say [isPopupHovered, setIsPopupHovered] = React.useState(false)

@@ -136,6 +136,13 @@ interface VDiskPopupProps extends PopupProps {

export const VDiskPopup = ({data, ...props}: VDiskPopupProps) => {
const isFullData = isFullVDiskData(data);
const [isPopupOpen, setIsPopupOpen] = React.useState(props.open);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@astandrik astandrik added this pull request to the merge queue Oct 11, 2024
Merged via the queue into main with commit ac70e8d Oct 11, 2024
6 checks passed
@astandrik astandrik deleted the astandrik.do-not-hide-pdisk-and-vdisk-popups-1360 branch October 11, 2024 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not hide PDisk and VDisk popups if mouse on popup content
3 participants