-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): add create button (#3282)
- Loading branch information
Showing
18 changed files
with
116 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import {Button, ButtonProps} from 'antd'; | ||
import {withCustomization} from 'providers/Customization'; | ||
|
||
interface IProps extends ButtonProps {} | ||
|
||
const CreateButton = ({...props}: IProps) => <Button {...props} />; | ||
|
||
export default withCustomization(CreateButton, 'createButton'); |
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,2 @@ | ||
// eslint-disable-next-line no-restricted-exports | ||
export {default} from './CreateButton'; |
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
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 was deleted.
Oops, something went wrong.
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,36 @@ | ||
import {Button} from 'antd'; | ||
import Empty from 'components/Empty'; | ||
import {ADD_TEST_URL, OPENING_TRACETEST_URL} from 'constants/Common.constants'; | ||
import {withCustomization} from 'providers/Customization'; | ||
import * as S from './Home.styled'; | ||
|
||
interface IProps { | ||
onClick(): void; | ||
} | ||
|
||
const EmptyTestList = ({onClick}: IProps) => ( | ||
<Empty | ||
title="Haven't Created a Test Yet" | ||
message={ | ||
<> | ||
Hit the 'Create' button below to kickstart your testing adventure. Want to learn more about tests? | ||
Just click{' '} | ||
<S.Link href={ADD_TEST_URL} target="_blank"> | ||
here | ||
</S.Link> | ||
. If you don’t have an app that’s generating OpenTelemetry traces we have a demo for you. Follow these{' '} | ||
<S.Link href={OPENING_TRACETEST_URL} target="_blank"> | ||
instructions | ||
</S.Link> | ||
! | ||
</> | ||
} | ||
action={ | ||
<Button onClick={onClick} type="primary"> | ||
Create Your First Test | ||
</Button> | ||
} | ||
/> | ||
); | ||
|
||
export default withCustomization(EmptyTestList, 'emptyTestList'); |
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
Oops, something went wrong.