Skip to content

Conversation

@Raubzeug
Copy link
Contributor

@Raubzeug Raubzeug commented Dec 6, 2025

Stand

closes #1952

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
378 375 0 1 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: 62.48 MB | Main: 62.34 MB
Diff: +0.14 MB (0.23%)

⚠️ Bundle size increased. Please review.

ℹ️ 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.

Copilot AI review requested due to automatic review settings December 6, 2025 08:41
@Raubzeug
Copy link
Contributor Author

Raubzeug commented Dec 6, 2025

@greptile-review

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 migrates from a custom unipika implementation to the @gravity-ui/react-unipika library (v0.5.0), significantly simplifying the codebase by removing ~1000 lines of custom code. The migration affects the JsonViewer component and all its consumers across the application.

Key Changes:

  • Replaced custom unipika implementation with @gravity-ui/react-unipika library
  • Refactored JsonViewer component to use ReactUnipika component as wrapper
  • Added scrollContainerRef prop to JsonViewer and threading it through component hierarchies

Reviewed changes

Copilot reviewed 25 out of 26 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
package.json Added @gravity-ui/react-unipika v0.5.0 dependency
package-lock.json Lock file update for new dependency
src/components/JsonViewer/JsonViewer.tsx Major refactor to use ReactUnipika library, simplified from ~370 to ~140 lines
src/components/JsonViewer/JsonViewer.scss Updated styles to work with library's class names (g-ru-cell)
src/components/JsonViewer/i18n/en.json Removed unused i18n keys, added new error message key
src/components/JsonViewer/unipika/* Deleted custom unipika implementation files (~500 lines)
src/components/JsonViewer/components/* Deleted custom components replaced by library (Cell, ToggleCollapseButton, etc.)
src/components/JsonViewer/utils.ts Deleted helper utilities no longer needed
src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.tsx Added scrollRef for JsonViewer integration
src/containers/Tenant/Diagnostics/Describe/Describe.tsx Passed scrollContainerRef to JsonViewer
src/containers/Tenant/Diagnostics/TopicData/* Threading scrollContainerRef through TopicData component hierarchy
src/containers/Configs/components/Config/Config.tsx Added wrapper structure and scrollContainerRef for JsonViewer
src/containers/Configs/components/Config/Config.scss New styles for Config wrapper container
src/containers/Configs/Configs.scss Removed unused CSS variable
src/containers/Tenant/Diagnostics/TopicData/FullValue.tsx Deleted unused component

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

24 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

24 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

24 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

"description_search": "Search...",
"description_matched-rows": "Matched rows",
"description_full-value": "Full value",
"context_case-sensitive-search": "Case sensitive search enadled",
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax: typo: "enadled" should be "enabled"

Suggested change
"context_case-sensitive-search": "Case sensitive search enadled",
"context_case-sensitive-search": "Case sensitive search enabled",
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/components/JsonViewer/i18n/en.json
Line: 8:8

Comment:
**syntax:** typo: "enadled" should be "enabled"

```suggestion
  "context_case-sensitive-search": "Case sensitive search enabled",
```

How can I resolve this? If you propose a fix, please make it concise.

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.

JSON viewer - search in collapsed nodes

2 participants