-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1409 from jdi-testing/issue_1144
Issue 1144 Empty state for Locators List
- Loading branch information
Showing
8 changed files
with
66 additions
and
12 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
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
25 changes: 25 additions & 0 deletions
25
src/features/locators/components/LocatorsEmptyListInfo.tsx
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,25 @@ | ||
import { EmptyListInfo } from "../../../common/components/emptyListInfo/EmptyListInfo"; | ||
import React from "react"; | ||
import { Button } from "antd"; | ||
import { OnboardingPopup } from "../../onboarding/components/OnboardingPopup"; | ||
|
||
interface LocatorsEmptyListInfoProps { | ||
setIsEditModalOpen: (isOpen: boolean) => void; | ||
} | ||
|
||
export const LocatorsEmptyListInfo = ({ setIsEditModalOpen }: LocatorsEmptyListInfoProps): JSX.Element => ( | ||
<EmptyListInfo> | ||
You can either create a{" "} | ||
<Button type="link" onClick={() => setIsEditModalOpen(true)}> | ||
Custom locator | ||
</Button>{" "} | ||
or refer to our{" "} | ||
<OnboardingPopup> | ||
<Button type="link" size="small"> | ||
Onboarding tutorial | ||
</Button> | ||
. | ||
</OnboardingPopup>{" "} | ||
to understand the JDN features | ||
</EmptyListInfo> | ||
); |
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,6 @@ | ||
export const enum EmptyListModal { | ||
Title = "Unable to Identify Elements", | ||
Contents = "Unfortunately, we can't identify any elements. Please make sure that the correct library is " + | ||
"selected and that general settings are properly configured.", | ||
OkButtonTitle = "Open Settings", | ||
} |