mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 12:39:01 +00:00
Fix: tour flow and update the mock data (#15002)
This commit is contained in:
parent
968f146fe7
commit
0d001c31d3
@ -108,7 +108,7 @@ const LineageProvider = ({ children }: LineageProviderProps) => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
const { fqn: decodedFqn } = useFqn();
|
||||
const { isTourOpen } = useTourProvider();
|
||||
const { isTourOpen, isTourPage } = useTourProvider();
|
||||
const [reactFlowInstance, setReactFlowInstance] =
|
||||
useState<ReactFlowInstance>();
|
||||
const [isDrawerOpen, setIsDrawerOpen] = useState(false);
|
||||
@ -169,7 +169,7 @@ const LineageProvider = ({ children }: LineageProviderProps) => {
|
||||
config?: LineageConfig
|
||||
) => {
|
||||
if (isTourOpen) {
|
||||
setEntityLineage(mockDatasetData.entityLineage);
|
||||
return;
|
||||
} else {
|
||||
setLoading(true);
|
||||
setInit(false);
|
||||
@ -1065,6 +1065,16 @@ const LineageProvider = ({ children }: LineageProviderProps) => {
|
||||
onAddPipelineClick,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isTourOpen || isTourPage) {
|
||||
setInit(true);
|
||||
setLoading(false);
|
||||
setEntityLineage(
|
||||
mockDatasetData.entityLineage as unknown as EntityLineageReponse
|
||||
);
|
||||
}
|
||||
}, [isTourOpen, isTourPage]);
|
||||
|
||||
return (
|
||||
<LineageContext.Provider value={activityFeedContextValues}>
|
||||
<div
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -286,6 +286,6 @@ export const getTourSteps = ({
|
||||
</p>
|
||||
),
|
||||
stepInteraction: false,
|
||||
selector: '#lineageDetails',
|
||||
selector: `[data-testid="lineage-details"]`,
|
||||
},
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user