-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* UI-7229 - Allow to optionally remove some widgets * CLI option * Add README * Enrich warning message * PR feedback * Simplification attempt * Update src/migrateUIFolder.test.ts Co-authored-by: Benjamin Amelot <[email protected]> * PR feedback * feedback in other place * Update src/migrateUIFolder.test.ts Co-authored-by: Benjamin Amelot <[email protected]> * other way of writing the assertion * Fix Co-authored-by: Benjamin Amelot <[email protected]> Co-authored-by: Benjamin Amelot <[email protected]>
- Loading branch information
1 parent
ec14799
commit d8d51c4
Showing
13 changed files
with
495 additions
and
42 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
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,15 @@ | ||
import { LegacyWidgetState } from "../migration.types"; | ||
|
||
/** | ||
* The widgetState of a legacy Page Filters widget, useful for unit tests. | ||
*/ | ||
export const legacyPageFilters: LegacyWidgetState = { | ||
name: "Page filters", | ||
value: { | ||
containerKey: "filters", | ||
showTitleBar: false, | ||
body: {}, | ||
}, | ||
type: "container", | ||
writable: false, | ||
}; |
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,10 @@ | ||
import { LegacyWidgetState } from "./migration.types"; | ||
|
||
/** | ||
* Returns the widget plugin key from an ActiveUI 4 widget state. | ||
*/ | ||
export function _getLegacyWidgetPluginKey( | ||
legacyWidgetState: LegacyWidgetState | ||
): string { | ||
return legacyWidgetState.value.containerKey; | ||
} |
Oops, something went wrong.