Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ui: show deploy/create button on right info pane #10814

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

Draft
wants to merge 2 commits into
base: 4.20
Choose a base branch
from

Conversation

shwstppr
Copy link
Contributor

@shwstppr shwstppr commented May 5, 2025

Description

Move Deploy/Create and Cancel button to right info panel in deploy wizards for VM, autoscale grou, vnf appliance

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • build/CI
  • test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

image

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Signed-off-by: Abhishek Kumar <[email protected]>
@shwstppr shwstppr force-pushed the deploy-create-infocard-btn branch from 7e77c73 to 8282aa5 Compare May 5, 2025 12:04
@shwstppr
Copy link
Contributor Author

shwstppr commented May 5, 2025

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

Copy link

codecov bot commented May 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 16.13%. Comparing base (f6d0590) to head (8c1fbd0).

Additional details and impacted files
@@            Coverage Diff            @@
##               4.20   #10814   +/-   ##
=========================================
  Coverage     16.13%   16.13%           
  Complexity    13220    13220           
=========================================
  Files          5651     5652    +1     
  Lines        496740   496750   +10     
  Branches      60183    60184    +1     
=========================================
+ Hits          80148    80152    +4     
+ Misses       407674   407673    -1     
- Partials       8918     8925    +7     
Flag Coverage Δ
uitests 4.00% <ø> (-0.01%) ⬇️
unittests 16.98% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/10814 (QA-JID-610)

Signed-off-by: Abhishek Kumar <[email protected]>
@shwstppr
Copy link
Contributor Author

shwstppr commented May 6, 2025

@blueorangutan ui

@blueorangutan
Copy link

@shwstppr a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress.

@blueorangutan
Copy link

UI build: ✔️
Live QA URL: https://qa.cloudstack.cloud/simulator/pr/10814 (QA-JID-611)

@vishesh92 vishesh92 requested a review from Copilot May 6, 2025 12:28
Copy link

@Copilot 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 moves the Deploy/Create and Cancel buttons to the right-hand info panel in the deploy wizards for VM, autoscale groups, and VNF appliances. The changes introduce a new DeployButtons component, update view templates to conditionally render buttons based on device type, and enhance the InfoCard component with a footer slot for the buttons.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ui/src/views/compute/wizard/DeployButtons.vue New component that encapsulates deploy button logic and UI
ui/src/views/compute/DeployVnfAppliance.vue Replaces inline buttons with DeployButtons in mobile and desktop layouts
ui/src/views/compute/DeployVM.vue Updates button rendering to use DeployButtons within the info panel and footer slot
ui/src/views/compute/CreateAutoScaleVmGroup.vue Adopts the DeployButtons component for a consistent deploy button UI
ui/src/components/view/InfoCard.vue Adds a footer slot to support embedded DeployButtons in desktop views

},
deployButtonText: {
type: String,
default: () => this.$t('label.create')
Copy link
Preview

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Avoid using an arrow function to reference 'this' in the default value for the deployButtonText prop since the component instance context may not be bound. Instead, use a regular function to ensure 'this' correctly references the component instance.

Suggested change
default: () => this.$t('label.create')
default: function () {
return 'label.create'; // Replace with the actual default value or logic
}

Copilot uses AI. Check for mistakes.

Copy link
Member

@vishesh92 vishesh92 left a comment

Choose a reason for hiding this comment

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

clgtm. just one minor change.

Comment on lines +1246 to +1247
:deep(.ant-card-body) { padding: 0;
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
:deep(.ant-card-body) { padding: 0;
}
:deep(.ant-card-body) {
padding: 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants