Skip to content

Conversation

@artemmufazalov
Copy link
Member

@artemmufazalov artemmufazalov commented Sep 3, 2025

Stand: https://nda.ya.ru/t/rNCLFY_v7JT8iT

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
378 373 0 3 2
Test Changes Summary ⏭️2

⏭️ Skipped Tests (2)

  1. Scroll to row, get shareable link, navigate to URL and verify row is scrolled into view (tenant/diagnostics/tabs/queries.test.ts)
  2. Copy result button copies to clipboard (tenant/queryEditor/queryEditor.test.ts)

Bundle Size: ✅

Current: 85.39 MB | Main: 85.39 MB
Diff: +2.13 KB (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.

@@ -1,20 +1,22 @@
.ydb-fullscreen {
--ydb-fullscreen-z-index: 1000;
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed a bug with overlay - drawer is above fullscreen
Screenshot 2025-09-03 at 09 18 13

Comment on lines 25 to 28
const fullscreenRoot = React.useMemo(
() => document.getElementById('fullscreen-root') ?? undefined,
[],
);
Copy link
Member Author

@artemmufazalov artemmufazalov Sep 3, 2025

Choose a reason for hiding this comment

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

In dev mode root sometimes was not found - it's undefined, fullscreen doesn't work. Now it should always be present
Screenshot 2025-09-03 at 09 23 41

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the Fullscreen component and its dependencies to improve code organization and reliability. The changes convert default exports to named exports and fix potential issues with DOM element access.

Key changes:

  • Convert default exports to named exports for Fullscreen and EnableFullscreenButton components
  • Move fullscreen root element access inside the component with proper memoization
  • Use CSS custom properties for z-index values instead of hardcoded numbers

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/components/Fullscreen/Fullscreen.tsx Convert to named export, move DOM access inside component with memoization, add fullscreenRoot to effect dependencies
src/components/EnableFullscreenButton/EnableFullscreenButton.tsx Convert default export to named export
src/components/Fullscreen/Fullscreen.scss Replace hardcoded z-index values with CSS custom properties
src/containers/Tenant/TenantDrawerHealthcheck.tsx Update import to use named export
src/containers/Tenant/Query/QueryResult/QueryResultViewer.tsx Update imports to use named exports
src/containers/Tenant/Query/Preview/components/PreviewView.tsx Update imports to use named exports
src/containers/Tenant/Healthcheck/Healthcheck.tsx Update import to use named export
src/containers/Tenant/Diagnostics/TopicData/TopicData.tsx Update imports to use named exports

@artemmufazalov artemmufazalov marked this pull request as ready for review September 3, 2025 07:44
const isFullscreen = useTypedSelector((state) => state.fullscreen);
const dispatch = useTypedDispatch();

const fullscreenRoot = React.useMemo(
Copy link
Collaborator

@astandrik astandrik Sep 3, 2025

Choose a reason for hiding this comment

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

Could we use ref instead of low-level dom manipulations?
Cursor suggests two options for this

Image

Copy link
Member Author

Choose a reason for hiding this comment

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

Added ref and context

@artemmufazalov artemmufazalov added this pull request to the merge queue Sep 3, 2025
Merged via the queue into main with commit 9e18128 Sep 3, 2025
10 of 11 checks passed
@artemmufazalov artemmufazalov deleted the fix-fullscreen branch September 3, 2025 15:30
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.

3 participants