Now I need to find the requiredByMap which has the info about which object requires this dependency. Let me also check if Tooltip is imported in both files:
I need to add the Tooltip import. Let me also check the requiredByMap to see how to get the parent object name:
Now let me add Tooltip imports and wrap the Required Dependency badges with tooltips. First, selective migration review:
Now I need to find which object requires this dependency. Let me check the requiredByMap logic and update the badge. The requiredByMap maps dependency ID to array of parent object names. Let me find and update the badge:
Now let me update the incremental review page. First add the Tooltip import:
Now update the baseline objects badge in incremental review:
Now update the non-baseline objects badge in incremental review:
Added tooltips to all "Required Dependency" badges in both Selective and Incremental Migration review pages. On hover, the tooltip displays "Required by: <Object Name(s)>" showing which parent object(s) require this dependency. Multiple parent objects are joined with commas if applicable.
There might be objects that are present in source but not present in target. Such objects cannot be migrated through incremental migration. So if such objects present in the list, it shoud be disabled for selection. And show an alert banner inside the card that "Object is not present in the target, so cannot be included in the incremental migration. To migrate, use Selective Migration" - Draft it properly..
Now I understand the interface. I need to add a presentInTarget property to IncrementalDataObject. Let me update the interface and mock data, then update the selection page to disable objects not present in target:
Now let me find the buildIncrementalDataObjects function to update it:
Now let me update the incremental migration selection page to disable objects not present in target and show an alert:
Now let me find the card rendering for baseline and non-baseline objects:
Let me read the card rendering for non-baseline objects:
Now I need to update the non-baseline card rendering to check for presentInTarget and show an alert when false. Also need to update the checkbox to be disabled:
Now I should also add a toggle in the dev console to simulate the "not in target" scenario:
I see there are two dev consoles (for the "no baseline" state and for the main view). Let me add a toggle for "simulate object not in target" to both dev consoles. First, let me add a state variable and update the mock data logic:
Now let me find the incrementalObjects initialization and update it to use the dev toggle:
I need to apply the dev toggle to override the presentInTarget property. Let me update the nonBaselineObjects memo to apply the dev toggle:
Now let me add the toggle to the dev console. Let me find the dev console content:
Now let me add the "Not In Target" toggle to the main dev console:
Added the "Not in Target" feature for incremental migration. Objects that exist in the source but not in the target organization are now:
The dev console includes a "Show Object Not In Target" toggle to simulate this scenario (User Profile is configured as the demo object not present in target).