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

feat: add to embedded ui link to plan2svg converter #1619

Merged
merged 11 commits into from
Nov 15, 2024

Conversation

astandrik
Copy link
Collaborator

@astandrik astandrik commented Nov 13, 2024

Closes #1543

Stand

CI Results

Test Status: ⚠️ FLAKY

📊 Full Report

Total Passed Failed Flaky Skipped
134 133 0 1 0

Bundle Size: 🔺

Current: 66.07 MB | Main: 66.06 MB
Diff: +0.00 MB (0.01%)

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

@@ -33,6 +33,9 @@
"settings.usePaginatedTables.title": "Use paginated tables",
"settings.usePaginatedTables.description": " Use table with data load on scroll for Nodes and Storage tabs. It will increase performance, but could work unstable",

"settings.useShowPlanToSvg.title": "Use show plan to svg",
Copy link
Contributor

Choose a reason for hiding this comment

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

Use sounds strange...maybe Plan to svg will be enough?

const [getPlanToSvg, {isLoading, isUninitialized}] =
planToSvgQueryApi.usePlanToSvgQueryMutation();

React.useEffect(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to get rid of useEffect? What if we initialize mutation when PlanToSvgButton is clicked?

@astandrik astandrik requested a review from Raubzeug November 15, 2024 08:52
getPlanToSvg({plan, database})
.unwrap()
.then((result) => {
if (blobUrl) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets remove this check. blobUrl will be revoked in cleanup function of useEffect.

@astandrik astandrik requested a review from Raubzeug November 15, 2024 10:22
@astandrik astandrik added this pull request to the merge queue Nov 15, 2024
Merged via the queue into main with commit fb007a7 Nov 15, 2024
6 checks passed
@astandrik astandrik deleted the astandrik.link-to-plan2svg branch November 15, 2024 11:45
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.

Add to Embedded UI link to Plan2Svg converter
2 participants