From de7204ffbb7255e0aa9cefb7efd06f5130b19038 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Thu, 6 Sep 2018 15:31:26 +0200 Subject: [PATCH] #refs tooltips Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- .../collection-panel-files/collection-panel-files.tsx | 6 ++++-- src/components/data-explorer/data-explorer.tsx | 6 ++++-- src/components/file-tree/file-tree-item.tsx | 8 +++++--- src/views/collection-panel/collection-panel.tsx | 4 +++- src/views/process-log-panel/process-log-main-card.tsx | 4 +++- src/views/process-panel/process-information-card.tsx | 4 +++- src/views/process-panel/process-subprocesses-card.tsx | 6 ++++-- src/views/trash-panel/trash-panel.tsx | 2 +- 8 files changed, 27 insertions(+), 13 deletions(-) diff --git a/src/components/collection-panel-files/collection-panel-files.tsx b/src/components/collection-panel-files/collection-panel-files.tsx index f9c18219..b037fcf4 100644 --- a/src/components/collection-panel-files/collection-panel-files.tsx +++ b/src/components/collection-panel-files/collection-panel-files.tsx @@ -6,7 +6,7 @@ import * as React from 'react'; import { TreeItem, TreeItemStatus } from '../tree/tree'; import { FileTreeData } from '../file-tree/file-tree-data'; import { FileTree } from '../file-tree/file-tree'; -import { IconButton, Grid, Typography, StyleRulesCallback, withStyles, WithStyles, CardHeader, Card, Button } from '@material-ui/core'; +import { IconButton, Grid, Typography, StyleRulesCallback, withStyles, WithStyles, CardHeader, Card, Button, Tooltip } from '@material-ui/core'; import { CustomizeTableIcon } from '../icon/icon'; export interface CollectionPanelFilesProps { @@ -54,7 +54,9 @@ export const CollectionPanelFiles = className={classes.cardSubheader} action={ - + + + } /> diff --git a/src/components/data-explorer/data-explorer.tsx b/src/components/data-explorer/data-explorer.tsx index 52ffd2e7..58507fb0 100644 --- a/src/components/data-explorer/data-explorer.tsx +++ b/src/components/data-explorer/data-explorer.tsx @@ -3,7 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; -import { Grid, Paper, Toolbar, StyleRulesCallback, withStyles, WithStyles, TablePagination, IconButton } from '@material-ui/core'; +import { Grid, Paper, Toolbar, StyleRulesCallback, withStyles, WithStyles, TablePagination, IconButton, Tooltip } from '@material-ui/core'; import MoreVertIcon from "@material-ui/icons/MoreVert"; import { ColumnSelector } from "../column-selector/column-selector"; import { DataTable, DataColumns } from "../data-table/data-table"; @@ -115,7 +115,9 @@ export const DataExplorer = withStyles(styles)( renderContextMenuTrigger = (item: T) => this.props.onContextMenu(event, item)}> - + + + diff --git a/src/components/file-tree/file-tree-item.tsx b/src/components/file-tree/file-tree-item.tsx index e2d6b26c..9b248e0c 100644 --- a/src/components/file-tree/file-tree-item.tsx +++ b/src/components/file-tree/file-tree-item.tsx @@ -5,7 +5,7 @@ import * as React from "react"; import { TreeItem } from "../tree/tree"; import { ProjectIcon, MoreOptionsIcon, DefaultIcon, CollectionIcon } from "../icon/icon"; -import { Typography, IconButton, StyleRulesCallback, withStyles, WithStyles } from "@material-ui/core"; +import { Typography, IconButton, StyleRulesCallback, withStyles, WithStyles, Tooltip } from '@material-ui/core'; import { formatFileSize } from "~/common/formatters"; import { ListItemTextIcon } from "../list-item-text-icon/list-item-text-icon"; import { FileTreeData } from "./file-tree-data"; @@ -50,7 +50,9 @@ export const FileTreeItem = withStyles(fileTreeItemStyle)( - + + + ; } @@ -61,7 +63,7 @@ export const FileTreeItem = withStyles(fileTreeItemStyle)( }); const getIcon = (item: TreeItem) => { - switch(item.data.type){ + switch (item.data.type) { case 'directory': return ProjectIcon; case 'file': diff --git a/src/views/collection-panel/collection-panel.tsx b/src/views/collection-panel/collection-panel.tsx index 748151c6..9672f306 100644 --- a/src/views/collection-panel/collection-panel.tsx +++ b/src/views/collection-panel/collection-panel.tsx @@ -81,7 +81,9 @@ export const CollectionPanel = withStyles(styles)( - + + + } title={item && item.name} diff --git a/src/views/process-log-panel/process-log-main-card.tsx b/src/views/process-log-panel/process-log-main-card.tsx index 29fd4ae2..66811f47 100644 --- a/src/views/process-log-panel/process-log-main-card.tsx +++ b/src/views/process-log-panel/process-log-main-card.tsx @@ -67,7 +67,9 @@ export const ProcessLogMainCard = withStyles(styles)( action={
- + + +
} diff --git a/src/views/process-panel/process-information-card.tsx b/src/views/process-panel/process-information-card.tsx index efabe22b..fea94b90 100644 --- a/src/views/process-panel/process-information-card.tsx +++ b/src/views/process-panel/process-information-card.tsx @@ -89,7 +89,9 @@ export const ProcessInformationCard = withStyles(styles, { withTheme: true })( onContextMenu(event)}> - + + + } diff --git a/src/views/process-panel/process-subprocesses-card.tsx b/src/views/process-panel/process-subprocesses-card.tsx index 8f6ccbc2..4226fefc 100644 --- a/src/views/process-panel/process-subprocesses-card.tsx +++ b/src/views/process-panel/process-subprocesses-card.tsx @@ -14,7 +14,7 @@ import { Process, getProcessStatus, getProcessRuntime } from '~/store/processes/ import { formatTime } from '~/common/formatters'; import { getProcessStatusColor } from '~/store/processes/process'; -export type CssRules = 'label' | 'value' | 'title' | 'content' | 'action' | 'options' | 'status' | 'rightSideHeader' | 'titleHeader'| 'header'; +export type CssRules = 'label' | 'value' | 'title' | 'content' | 'action' | 'options' | 'status' | 'rightSideHeader' | 'titleHeader' | 'header'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ label: { @@ -87,7 +87,9 @@ export const ProcessSubprocessesCard = withStyles(styles, { withTheme: true })( className={classes.options} aria-label="More options" onClick={onContextMenu}> - + + + } diff --git a/src/views/trash-panel/trash-panel.tsx b/src/views/trash-panel/trash-panel.tsx index 420d650d..4a1e197d 100644 --- a/src/views/trash-panel/trash-panel.tsx +++ b/src/views/trash-panel/trash-panel.tsx @@ -73,7 +73,7 @@ export const ResourceRestore = )); } }}> - + -- 2.30.2