Use Case

Swap one component on a page for another based on instructions in the Gradial ticket. This is commonly used for migrating away from deprecated components or switching to updated component designs.

Supported Actions

Gradial supports the following:
  • Replace deprecated or legacy components with newer equivalents
  • Swap component types (e.g. carousel → accordion) while preserving content
  • Maintain existing content wherever possible during the swap

Input

  • Prompt from the Gradial ticket
  • List of components to replace and their updated equivalents

Example Prompt

Swapping Out Deprecated Components
Swap the following deprecated components to their COPE equivalents: /legacy/components/content/genericText → /gradial-core/components/content/text
/legacy/components/content/buttonComponent → /gradial-core/components/content/button
Switch Component Type
Replace the carousel on the homepage with an accordion using the same content.