-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Changes for introducing disabled states for package pull in ap…
…plication (#38222) ## Description This PR introduces certain changes to facilitate disabled states when package pull is in progress. EE PR -> #37841 ## Automation /ok-to-test tags="@tag.Git" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/12425304652> > Commit: 3c3aed7 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=12425304652&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Git` > Spec: > <hr>Fri, 20 Dec 2024 04:56:17 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a `GitActionsWrapper` component for wrapping child elements. - Added a new function for improved error messaging during package upgrades. - Implemented a selector to check package upgrading status. - Enhanced the `Header` component to manage deployment state based on package upgrades. - Updated the `Disabler` component to visually indicate a disabled state. - **Bug Fixes** - Improved tooltip functionality for the deploy button when disabled. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
1 parent
e9ac154
commit 398f631
Showing
6 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// This function is used to wrap the children in a disabled container if the package is upgrading | ||
// It's implemented in EE, but not in CE | ||
function GitActionsWrapper({ children }: { children: React.ReactElement }) { | ||
return children; | ||
} | ||
|
||
export default GitActionsWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from "ce/components/BottomBar/GitActionsWrapper"; | ||
import { default as CE_GitActionsWrapper } from "ce/components/BottomBar/GitActionsWrapper"; | ||
export default CE_GitActionsWrapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters