Skip to content

feat(Preview): add preview for topics #2292

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

Merged
merged 8 commits into from
May 21, 2025
Merged

feat(Preview): add preview for topics #2292

merged 8 commits into from
May 21, 2025

Conversation

Raubzeug
Copy link
Contributor

@Raubzeug Raubzeug commented May 16, 2025

Closes #1943
Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
318 317 0 1 0

😟 No changes in tests. 😕

Bundle Size: 🔺

Current: 83.58 MB | Main: 83.57 MB
Diff: +0.02 MB (0.02%)

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

@Raubzeug
Copy link
Contributor Author

@artemmufazalov @astandrik design review passed.

export function PreviewContainer(props: PreviewContainerProps) {
const {type} = props;
const isTable = isTableType(type);
const isTopic = type === EPathType.EPathTypePersQueueGroup;
Copy link
Member

Choose a reason for hiding this comment

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

Please, rebase you PR and check whether it works for topics inside CDC. If it doesn't work, create an issue and disable preview for them

Copy link
Member

Choose a reason for hiding this comment

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

I mean EPathSubType.EPathSubTypeStreamImpl, I restored them here: #2281

@Raubzeug Raubzeug force-pushed the topic-preview branch 2 times, most recently from 98e2a1b to 285f8db Compare May 20, 2025 14:58
@@ -71,7 +74,7 @@ export const getSchemaControls =
column_table: openPreview,

index_table: undefined,
topic: undefined,
topic: isTopicPreviewAvailable && !meta?.subType ? openPreview : undefined,
Copy link
Member

Choose a reason for hiding this comment

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

You should also turn off preview in preview table component. Currently there are not preview button for topic, but if I open preview and then try to navigate from table to cdc impl topic, I will receive an error

Screenshot 2025-05-21 at 15 50 47

@Raubzeug
Copy link
Contributor Author

@artemmufazalov fixed, stand redeployed

if (isTopic && isTopicPreviewAvailable) {

// preview is not available for topics inside CDC (has subtype)
if (isTopic && !subType && isTopicPreviewAvailable) {
Copy link
Member

Choose a reason for hiding this comment

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

You turned off preview for every topic.

Every element has subtype, in most cases it is EPathSubTypeEmpty, so you should check EPathSubTypeStreamImpl explicitly

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Fixed

@Raubzeug Raubzeug added this pull request to the merge queue May 21, 2025
Merged via the queue into main with commit c4a4abf May 21, 2025
5 checks passed
@Raubzeug Raubzeug deleted the topic-preview branch May 21, 2025 15:44
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.

Topic Data Preview (by "eye" in navigation panel)
2 participants