-
Notifications
You must be signed in to change notification settings - Fork 55
feat: remove duplication between EnvTrigger and TriggerView regarding Deploy and Bulk Deploy #2850
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
Conversation
…shboard into fix/cd-trigger
…shboard into fix/cd-trigger
…te components - Added ImageSelectionCTA component for handling image selection logic and UI. - Introduced MaterialListEmptyState component to manage and display empty states for material lists. - Updated DeployImageModal to integrate new components and improve state management. - Refactored utility functions to support new features and enhance code readability. - Improved type definitions for better TypeScript support and maintainability.
…avigation and layout
…state management and improve code readability
…nd responsiveness
- Added support for bulk deployment of images, including new tag selection options. - Introduced constants for bulk deployment image tags. - Updated DeployImageContent to handle bulk trigger scenarios and render appropriate UI elements. - Enhanced DeployImageHeader to accept a custom title prop for better flexibility. - Refactored rendering logic in DeployImageContent to improve readability and maintainability. - Added new types for better type safety and clarity in props. - Implemented error handling and empty state management for various deployment scenarios.
…sary loading states and props
…rror handling, prop defaults, and layout adjustments
…derImages functionality and enhance error handling
…ent handling and error messaging
…e tag handling and remove unused constants
…ageContent for improved image selection handling
…DeployImageContent for enhanced empty state handling
…e initialization and streamline image selection handling
…loyment handling and state management - Refactored BulkDeployModal to streamline image selection and deployment logic. - Integrated new utility functions for better handling of deployment window metadata and bulk CD details. - Updated service functions to fetch deployment window maps and handle API responses more effectively. - Improved type definitions for better clarity and maintainability. - Adjusted BulkTriggerSidebar to reflect changes in error handling for unauthorized access. - Cleaned up unused constants and imports across the affected files.
…nt and update dependency in DeployImageModal
…ployImageContent layout for better filter handling
… material handling and error management
… in deployment utilities
fix: issues modal not opening on click
…hboard into feat/common-cd-material
feat: common out render cd material from trigger view and env trigger…
…nto fix/cd-trigger
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP }404).\n |
…board into test/cd-trigger
… fix/cd-trigger
Some linked issues are invalid. Please update the issue links:\nIssue # in is not found or invalid (HTTP 404).\n |
…board into test/cd-trigger
…nto fix/cd-trigger
|
Description
This PR refactors the CD trigger view components by removing duplication between CDMaterial and BulkCD components in EnvTriggerView and TriggerView. The main goal is to consolidate shared functionality into a new
DeployImageModal
component that can handle both individual and bulk deployment triggers.DeployImageModal
component structure to replace the duplicated CDMaterial componentFixes https://github.com/devtron-labs/sprint-tasks/issues/2502
Type of change
How Has This Been Tested?
QA
Checklist: