-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added filters and sorting options for job list, added tooltip for tas…
…ks filters (#3030) * Added filters & sorters for job list * Added tooltip * Updated version & changelog * Added tooltip for project search * Fixed eslint
- Loading branch information
Boris Sekachev
authored
Mar 31, 2021
1 parent
390ff3e
commit 8f426ab
Showing
8 changed files
with
198 additions
and
20 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,94 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
import React from 'react'; | ||
|
||
import Text from 'antd/lib/typography/Text'; | ||
import Paragraph from 'antd/lib/typography/Paragraph'; | ||
|
||
import './styles.scss'; | ||
import CVATTooltip from 'components/common/cvat-tooltip'; | ||
|
||
interface Props { | ||
instance: 'task' | 'project'; | ||
children: JSX.Element; | ||
} | ||
|
||
export default function SearchTooltip(props: Props): JSX.Element { | ||
const { instance, children } = props; | ||
const instances = ` ${instance}s `; | ||
|
||
return ( | ||
<CVATTooltip | ||
overlayClassName={`cvat-${instance}s-search-tooltip`} | ||
title={( | ||
<> | ||
<Paragraph> | ||
<Text strong>owner: admin</Text> | ||
<Text> | ||
all | ||
{instances} | ||
created by the user who has the substring | ||
<q>admin</q> | ||
in their username | ||
</Text> | ||
</Paragraph> | ||
<Paragraph> | ||
<Text strong>assignee: employee</Text> | ||
<Text> | ||
all | ||
{instances} | ||
which are assigned to a user who has the substring | ||
<q>admin</q> | ||
in their username | ||
</Text> | ||
</Paragraph> | ||
<Paragraph> | ||
<Text strong>name: training</Text> | ||
<Text> | ||
all | ||
{instances} | ||
with the substring | ||
<q>training</q> | ||
in its name | ||
</Text> | ||
</Paragraph> | ||
{instance === 'task' ? ( | ||
<Paragraph> | ||
<Text strong>mode: annotation</Text> | ||
<Text> | ||
annotation tasks are tasks with images, interpolation tasks are tasks with videos | ||
</Text> | ||
</Paragraph> | ||
) : null} | ||
<Paragraph> | ||
<Text strong>status: annotation</Text> | ||
<Text>annotation, validation, or completed</Text> | ||
</Paragraph> | ||
<Paragraph> | ||
<Text strong>id: 5</Text> | ||
<Text> | ||
the | ||
{` ${instance} `} | ||
with id 5 | ||
</Text> | ||
</Paragraph> | ||
<Paragraph> | ||
<Text> | ||
Filters can be combined (to the exclusion of id) using the keyword AND. Example: | ||
<Text type='warning'> | ||
<q>status: annotation AND owner: admin</q> | ||
</Text> | ||
</Text> | ||
</Paragraph> | ||
<Paragraph> | ||
<Text type='success'>Search within all the string fields by default</Text> | ||
</Paragraph> | ||
</> | ||
)} | ||
> | ||
{children} | ||
</CVATTooltip> | ||
); | ||
} |
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,16 @@ | ||
// Copyright (C) 2021 Intel Corporation | ||
// | ||
// SPDX-License-Identifier: MIT | ||
|
||
@import '../../base.scss'; | ||
|
||
.cvat-projects-search-tooltip, | ||
.cvat-tasks-search-tooltip { | ||
span { | ||
color: white; | ||
} | ||
|
||
strong::after { | ||
content: ' - '; | ||
} | ||
} |
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