fixed conflicts + link to ssh-keys panel
authorPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Wed, 21 Nov 2018 11:37:51 +0000 (12:37 +0100)
committerPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Wed, 21 Nov 2018 11:37:51 +0000 (12:37 +0100)
Feature #13865

Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>

1  2 
src/routes/route-change-handlers.ts
src/routes/routes.ts
src/services/services.ts
src/store/navigation/navigation-action.ts
src/store/workbench/workbench-actions.ts
src/validators/validators.tsx
src/views-components/main-app-bar/account-menu.tsx
src/views/repositories-panel/repositories-panel.tsx
src/views/workbench/workbench.tsx

index a4a53d7022300540721a961339888a7e786c87ee,fb6f5e2022d07d2febdf49e4b64d7c5f10a63ed2..c7f3555bcf79db6f64448b330cb4132392a913cb
@@@ -4,8 -4,8 +4,8 @@@
  
  import { History, Location } from 'history';
  import { RootStore } from '~/store/store';
- import { matchProcessRoute, matchProcessLogRoute, matchProjectRoute, matchCollectionRoute, matchFavoritesRoute, matchTrashRoute, matchRootRoute, matchSharedWithMeRoute, matchRunProcessRoute, matchWorkflowRoute, matchSearchResultsRoute, matchRepositoriesRoute } from './routes';
- import { loadProject, loadCollection, loadFavorites, loadTrash, loadProcess, loadProcessLog, loadRepositories } from '~/store/workbench/workbench-actions';
 -import { matchProcessRoute, matchProcessLogRoute, matchProjectRoute, matchCollectionRoute, matchFavoritesRoute, matchTrashRoute, matchRootRoute, matchSharedWithMeRoute, matchRunProcessRoute, matchWorkflowRoute, matchSearchResultsRoute, matchSshKeysRoute } from './routes';
 -import { loadProject, loadCollection, loadFavorites, loadTrash, loadProcess, loadProcessLog, loadSshKeys } from '~/store/workbench/workbench-actions';
++import { matchProcessRoute, matchProcessLogRoute, matchProjectRoute, matchCollectionRoute, matchFavoritesRoute, matchTrashRoute, matchRootRoute, matchSharedWithMeRoute, matchRunProcessRoute, matchWorkflowRoute, matchSearchResultsRoute, matchSshKeysRoute, matchRepositoriesRoute } from './routes';
++import { loadProject, loadCollection, loadFavorites, loadTrash, loadProcess, loadProcessLog, loadSshKeys, loadRepositories } from '~/store/workbench/workbench-actions';
  import { navigateToRootProject } from '~/store/navigation/navigation-action';
  import { loadSharedWithMe, loadRunProcess, loadWorkflow, loadSearchResults } from '~//store/workbench/workbench-actions';
  
@@@ -23,11 -23,11 +23,12 @@@ const handleLocationChange = (store: Ro
      const trashMatch = matchTrashRoute(pathname);
      const processMatch = matchProcessRoute(pathname);
      const processLogMatch = matchProcessLogRoute(pathname);
 +    const repositoryMatch = matchRepositoriesRoute(pathname); 
      const searchResultsMatch = matchSearchResultsRoute(pathname);
      const sharedWithMeMatch = matchSharedWithMeRoute(pathname);
      const runProcessMatch = matchRunProcessRoute(pathname);
      const workflowMatch = matchWorkflowRoute(pathname);
+     const sshKeysMatch = matchSshKeysRoute(pathname);
  
      if (projectMatch) {
          store.dispatch(loadProject(projectMatch.params.id));
@@@ -51,7 -51,7 +52,9 @@@
          store.dispatch(loadWorkflow);
      } else if (searchResultsMatch) {
          store.dispatch(loadSearchResults);
 +    } else if(repositoryMatch) {
 +        store.dispatch(loadRepositories);
+     } else if (sshKeysMatch) {
+         store.dispatch(loadSshKeys);
      }
  };
diff --combined src/routes/routes.ts
index 5dbecb45245f566d83e1fbb63cb45c43edeca3df,b00b9fe23f66d43e2d82f1acd2d94ee4049e8cda..c9c2ae20e1eff73e55ae7d76b6e52aa3c2658f00
@@@ -16,11 -16,11 +16,12 @@@ export const Routes = 
      FAVORITES: '/favorites',
      TRASH: '/trash',
      PROCESS_LOGS: `/process-logs/:id(${RESOURCE_UUID_PATTERN})`,
 +    REPOSITORIES: '/repositories',
      SHARED_WITH_ME: '/shared-with-me',
      RUN_PROCESS: '/run-process',
      WORKFLOWS: '/workflows',
-     SEARCH_RESULTS: '/search-results'
+     SEARCH_RESULTS: '/search-results',
+     SSH_KEYS: `/ssh-keys`
  };
  
  export const getResourceUrl = (uuid: string) => {
@@@ -71,12 -71,12 +72,15 @@@ export const matchSharedWithMeRoute = (
  
  export const matchRunProcessRoute = (route: string) =>
      matchPath(route, { path: Routes.RUN_PROCESS });
 -    
 +
  export const matchWorkflowRoute = (route: string) =>
      matchPath<ResourceRouteParams>(route, { path: Routes.WORKFLOWS });
  
  export const matchSearchResultsRoute = (route: string) =>
      matchPath<ResourceRouteParams>(route, { path: Routes.SEARCH_RESULTS });
  
-     matchPath<ResourceRouteParams>(route, { path: Routes.REPOSITORIES });
 +export const matchRepositoriesRoute = (route: string) =>
 -    matchPath(route, { path: Routes.SSH_KEYS });
++    matchPath<ResourceRouteParams>(route, { path: Routes.REPOSITORIES });
++    
+ export const matchSshKeysRoute = (route: string) =>
++    matchPath(route, { path: Routes.SSH_KEYS });
diff --combined src/services/services.ts
index 2bc955f24c71ca8599f15127ae3a5b94d97662b7,aeeb9556cb5de0786a37f3b916e406775cb76ff0..308505c5abdbf1ef625b1ff49e038096dad829d5
@@@ -24,7 -24,7 +24,8 @@@ import { ApiActions } from "~/services/
  import { WorkflowService } from "~/services/workflow-service/workflow-service";
  import { SearchService } from '~/services/search-service/search-service';
  import { PermissionService } from "~/services/permission-service/permission-service";
 +import { RepositoriesService } from '~/services/repositories-service/repositories-service';
+ import { AuthorizedKeysService } from '~/services/authorized-keys-service/authorized-keys-service';
  
  export type ServiceRepository = ReturnType<typeof createServices>;
  
@@@ -35,6 -35,7 +36,7 @@@ export const createServices = (config: 
      const webdavClient = new WebDAV();
      webdavClient.defaults.baseURL = config.keepWebServiceUrl;
  
+     const authorizedKeysService = new AuthorizedKeysService(apiClient, actions);
      const containerRequestService = new ContainerRequestService(apiClient, actions);
      const containerService = new ContainerService(apiClient, actions);
      const groupsService = new GroupsService(apiClient, actions);
@@@ -43,7 -44,6 +45,7 @@@
      const logService = new LogService(apiClient, actions);
      const permissionService = new PermissionService(apiClient, actions);
      const projectService = new ProjectService(apiClient, actions);
 +    const repositoriesService = new RepositoriesService(apiClient, actions);
      const userService = new UserService(apiClient, actions);
      const workflowService = new WorkflowService(apiClient, actions);
  
@@@ -59,6 -59,7 +61,7 @@@
          ancestorsService,
          apiClient,
          authService,
+         authorizedKeysService,
          collectionFilesService,
          collectionService,
          containerRequestService,
@@@ -70,7 -71,6 +73,7 @@@
          logService,
          permissionService,
          projectService,
 +        repositoriesService,
          searchService,
          tagService,
          userService,
index ce5996997d02a0d22036f15466c9d69a69b57c75,57967c7dda977f0d3feec3bb8424b43917eed4c4..fc08f3ac495403949d4aa2fc6f32a82e18db3bba
@@@ -62,4 -62,4 +62,6 @@@ export const navigateToRunProcess = pus
  
  export const navigateToSearchResults = push(Routes.SEARCH_RESULTS);
  
 -export const navigateToSshKeys= push(Routes.SSH_KEYS);
 +export const navigateToRepositories = push(Routes.REPOSITORIES);
++
++export const navigateToSshKeys= push(Routes.SSH_KEYS);
index c6440fd9593b66dc8cce94d9128d9e2587044eaf,5cc9ea348f5efbde93db27701d8385e88599dd44..5e33661cfff12f9c0442de7f09011f3381e7a1a0
@@@ -3,23 -3,23 +3,23 @@@
  // SPDX-License-Identifier: AGPL-3.0
  
  import { Dispatch } from 'redux';
 -import { RootState } from "../store";
 +import { RootState } from "~/store/store";
  import { loadDetailsPanel } from '~/store/details-panel/details-panel-action';
 -import { snackbarActions } from '../snackbar/snackbar-actions';
 -import { loadFavoritePanel } from '../favorite-panel/favorite-panel-action';
 +import { snackbarActions } from '~/store/snackbar/snackbar-actions';
 +import { loadFavoritePanel } from '~/store/favorite-panel/favorite-panel-action';
  import { openProjectPanel, projectPanelActions, setIsProjectPanelTrashed } from '~/store/project-panel/project-panel-action';
 -import { activateSidePanelTreeItem, initSidePanelTree, SidePanelTreeCategory, loadSidePanelTreeProjects } from '../side-panel-tree/side-panel-tree-actions';
 -import { loadResource, updateResources } from '../resources/resources-actions';
 +import { activateSidePanelTreeItem, initSidePanelTree, SidePanelTreeCategory, loadSidePanelTreeProjects } from '~/store/side-panel-tree/side-panel-tree-actions';
 +import { loadResource, updateResources } from '~/store/resources/resources-actions';
  import { favoritePanelActions } from '~/store/favorite-panel/favorite-panel-action';
  import { projectPanelColumns } from '~/views/project-panel/project-panel';
  import { favoritePanelColumns } from '~/views/favorite-panel/favorite-panel';
  import { matchRootRoute } from '~/routes/routes';
 -import { setSidePanelBreadcrumbs, setProcessBreadcrumbs, setSharedWithMeBreadcrumbs, setTrashBreadcrumbs } from '../breadcrumbs/breadcrumbs-actions';
 -import { navigateToProject } from '../navigation/navigation-action';
 +import { setSidePanelBreadcrumbs, setProcessBreadcrumbs, setSharedWithMeBreadcrumbs, setTrashBreadcrumbs, setBreadcrumbs } from '~/store/breadcrumbs/breadcrumbs-actions';
 +import { navigateToProject } from '~/store/navigation/navigation-action';
  import { MoveToFormDialogData } from '~/store/move-to-dialog/move-to-dialog';
  import { ServiceRepository } from '~/services/services';
 -import { getResource } from '../resources/resources';
 -import { getProjectPanelCurrentUuid } from '../project-panel/project-panel-action';
 +import { getResource } from '~/store/resources/resources';
 +import { getProjectPanelCurrentUuid } from '~/store/project-panel/project-panel-action';
  import * as projectCreateActions from '~/store/projects/project-create-actions';
  import * as projectMoveActions from '~/store/projects/project-move-actions';
  import * as projectUpdateActions from '~/store/projects/project-update-actions';
@@@ -27,21 -27,22 +27,22 @@@ import * as collectionCreateActions fro
  import * as collectionCopyActions from '~/store/collections/collection-copy-actions';
  import * as collectionUpdateActions from '~/store/collections/collection-update-actions';
  import * as collectionMoveActions from '~/store/collections/collection-move-actions';
 -import * as processesActions from '../processes/processes-actions';
 +import * as processesActions from '~/store/processes/processes-actions';
  import * as processMoveActions from '~/store/processes/process-move-actions';
  import * as processUpdateActions from '~/store/processes/process-update-actions';
  import * as processCopyActions from '~/store/processes/process-copy-actions';
  import { trashPanelColumns } from "~/views/trash-panel/trash-panel";
  import { loadTrashPanel, trashPanelActions } from "~/store/trash-panel/trash-panel-action";
 -import { initProcessLogsPanel } from '../process-logs-panel/process-logs-panel-actions';
 +import { initProcessLogsPanel } from '~/store/process-logs-panel/process-logs-panel-actions';
  import { loadProcessPanel } from '~/store/process-panel/process-panel-actions';
  import { sharedWithMePanelActions } from '~/store/shared-with-me-panel/shared-with-me-panel-actions';
 -import { loadSharedWithMePanel } from '../shared-with-me-panel/shared-with-me-panel-actions';
 +import { loadSharedWithMePanel } from '~/store/shared-with-me-panel/shared-with-me-panel-actions';
  import { CopyFormDialogData } from '~/store/copy-dialog/copy-dialog';
  import { loadWorkflowPanel, workflowPanelActions } from '~/store/workflow-panel/workflow-panel-actions';
+ import { loadSshKeysPanel } from '~/store/auth/auth-action';
  import { workflowPanelColumns } from '~/views/workflow-panel/workflow-panel-view';
  import { progressIndicatorActions } from '~/store/progress-indicator/progress-indicator-actions';
 -import { getProgressIndicator } from '../progress-indicator/progress-indicator-reducer';
 +import { getProgressIndicator } from '~/store/progress-indicator/progress-indicator-reducer';
  import { ResourceKind, extractUuidKind } from '~/models/resource';
  import { FilterBuilder } from '~/services/api/filter-builder';
  import { GroupContentsResource } from '~/services/groups-service/groups-service';
@@@ -53,7 -54,6 +54,7 @@@ import { collectionPanelActions } from 
  import { CollectionResource } from "~/models/collection";
  import { searchResultsPanelActions, loadSearchResultsPanel } from '~/store/search-results-panel/search-results-panel-actions';
  import { searchResultsPanelColumns } from '~/views/search-results-panel/search-results-panel-view';
 +import { loadRepositoriesPanel } from '~/store/repositories/repositories-actions';
  
  export const WORKBENCH_LOADING_SCREEN = 'workbenchLoadingScreen';
  
@@@ -391,12 -391,11 +392,17 @@@ export const loadSearchResults = handle
          await dispatch(loadSearchResultsPanel());
      });
  
 +export const loadRepositories = handleFirstTimeLoad(
 +    async (dispatch: Dispatch<any>) => {
 +        await dispatch(loadRepositoriesPanel());
 +        dispatch(setBreadcrumbs([{ label: 'Repositories' }]));
 +    });
 +
+ export const loadSshKeys = handleFirstTimeLoad(
+     async (dispatch: Dispatch<any>) => {
+         await dispatch(loadSshKeysPanel());
+     });
  const finishLoadingProject = (project: GroupContentsResource | string) =>
      async (dispatch: Dispatch<any>) => {
          const uuid = typeof project === 'string' ? project : project.uuid;
index 37c1bd37458dc50cd293d4f9c9bf85ad2cb7311f,1980ed802eb15ef57a64d04667e1ae7ede3fe2fe..c601df17416d8711be048d51144684703fa4fe8c
@@@ -4,6 -4,7 +4,7 @@@
  
  import { require } from './require';
  import { maxLength } from './max-length';
+ import { isRsaKey } from './is-rsa-key';
  
  export const TAG_KEY_VALIDATION = [require, maxLength(255)];
  export const TAG_VALUE_VALIDATION = [require, maxLength(255)];
@@@ -21,4 -22,5 +22,7 @@@ export const MOVE_TO_VALIDATION = [requ
  
  export const PROCESS_NAME_VALIDATION = [require, maxLength(255)];
  
- export const REPOSITORY_NAME_VALIDATION = [require, maxLength(255)];
++export const REPOSITORY_NAME_VALIDATION = [require, maxLength(255)];
++
+ export const SSH_KEY_PUBLIC_VALIDATION = [require, isRsaKey, maxLength(1024)];
 -export const SSH_KEY_NAME_VALIDATION = [require, maxLength(255)];
++export const SSH_KEY_NAME_VALIDATION = [require, maxLength(255)];
index c643fef2583db913c8b2584ce58a9dacb923a8ff,ee863a29c6e37c2323b7992591720e174935d832..f00c678e15c573abe0572c6e729bafd887edff3d
@@@ -8,10 -8,10 +8,11 @@@ import { User, getUserFullname } from "
  import { DropdownMenu } from "~/components/dropdown-menu/dropdown-menu";
  import { UserPanelIcon } from "~/components/icon/icon";
  import { DispatchProp, connect } from 'react-redux';
- import { logout } from "~/store/auth/auth-action";
+ import { logout } from '~/store/auth/auth-action';
  import { RootState } from "~/store/store";
 -import { openCurrentTokenDialog } from '../../store/current-token-dialog/current-token-dialog-actions';
 +import { openCurrentTokenDialog } from '~/store/current-token-dialog/current-token-dialog-actions';
 +import { openRepositoriesPanel } from "~/store/repositories/repositories-actions";
+ import { navigateToSshKeys } from '~/store/navigation/navigation-action';
  
  interface AccountMenuProps {
      user?: User;
@@@ -31,8 -31,8 +32,9 @@@ export const AccountMenu = connect(mapS
                  <MenuItem>
                      {getUserFullname(user)}
                  </MenuItem>
 +                <MenuItem onClick={() => dispatch(openRepositoriesPanel())}>Repositories</MenuItem>
                  <MenuItem onClick={() => dispatch(openCurrentTokenDialog)}>Current token</MenuItem>
+                 <MenuItem onClick={() => dispatch(navigateToSshKeys)}>Ssh Keys</MenuItem>
                  <MenuItem>My account</MenuItem>
                  <MenuItem onClick={() => dispatch(logout())}>Logout</MenuItem>
              </DropdownMenu>
index 262f3cc346934922d977198847f45f30f26805e2,0000000000000000000000000000000000000000..cfe59f0d26d772c0ddf9f227e2b5a6cc60d8ea2d
mode 100644,000000..100644
--- /dev/null
@@@ -1,153 -1,0 +1,154 @@@
-                                         In order to clone git repositories using SSH, <Link to='' className={classes.link}>add an SSH key to your account</Link> and clone the git@ URLs.
 +// Copyright (C) The Arvados Authors. All rights reserved.
 +//
 +// SPDX-License-Identifier: AGPL-3.0
 +
 +import * as React from 'react';
 +import { connect } from 'react-redux';
 +import { Grid, Typography, Button, Card, CardContent, TableBody, TableCell, TableHead, TableRow, Table, Tooltip, IconButton } from '@material-ui/core';
 +import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles';
 +import { ArvadosTheme } from '~/common/custom-theme';
 +import { Link } from 'react-router-dom';
 +import { Dispatch, compose } from 'redux';
 +import { RootState } from '~/store/store';
 +import { HelpIcon, AddIcon, MoreOptionsIcon } from '~/components/icon/icon';
 +import { loadRepositoriesData, openRepositoriesSampleGitDialog, openRepositoryCreateDialog } from '~/store/repositories/repositories-actions';
 +import { RepositoryResource } from '~/models/repositories';
 +import { openRepositoryContextMenu } from '~/store/context-menu/context-menu-actions';
++import { Routes } from '~/routes/routes';
 +
 +
 +type CssRules = 'link' | 'button' | 'icon' | 'iconRow' | 'moreOptionsButton' | 'moreOptions' | 'cloneUrls';
 +
 +const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
 +    link: {
 +        textDecoration: 'none',
 +        color: theme.palette.primary.main,
 +        "&:hover": {
 +            color: theme.palette.primary.dark,
 +            transition: 'all 0.5s ease'
 +        }
 +    },
 +    button: {
 +        textAlign: 'right',
 +        alignSelf: 'center'
 +    },
 +    icon: {
 +        cursor: 'pointer',
 +        color: theme.palette.grey["500"],
 +        "&:hover": {
 +            color: theme.palette.common.black,
 +            transition: 'all 0.5s ease'
 +        }
 +    },
 +    iconRow: {
 +        paddingTop: theme.spacing.unit * 2,
 +        textAlign: 'right'
 +    },
 +    moreOptionsButton: {
 +        padding: 0
 +    },
 +    moreOptions: {
 +        textAlign: 'right',
 +        '&:last-child': {
 +            paddingRight: 0
 +        }
 +    },
 +    cloneUrls: {
 +        whiteSpace: 'pre-wrap'
 +    }
 +});
 +
 +const mapStateToProps = (state: RootState) => {
 +    return {
 +        repositories: state.repositories.items
 +    };
 +};
 +
 +const mapDispatchToProps = (dispatch: Dispatch): Pick<RepositoriesActionProps, 'onOptionsMenuOpen' | 'loadRepositories' | 'openRepositoriesSampleGitDialog' | 'openRepositoryCreateDialog'> => ({
 +    loadRepositories: () => dispatch<any>(loadRepositoriesData()),
 +    onOptionsMenuOpen: (event, index, repository) => {
 +        dispatch<any>(openRepositoryContextMenu(event, index, repository));
 +    },
 +    openRepositoriesSampleGitDialog: () => dispatch<any>(openRepositoriesSampleGitDialog()),
 +    openRepositoryCreateDialog: () => dispatch<any>(openRepositoryCreateDialog())
 +});
 +
 +interface RepositoriesActionProps {
 +    loadRepositories: () => void;
 +    onOptionsMenuOpen: (event: React.MouseEvent<HTMLElement>, index: number, repository: RepositoryResource) => void;
 +    openRepositoriesSampleGitDialog: () => void;
 +    openRepositoryCreateDialog: () => void;
 +}
 +
 +interface RepositoriesDataProps {
 +    repositories: RepositoryResource[];
 +}
 +
 +
 +type RepositoriesProps = RepositoriesDataProps & RepositoriesActionProps & WithStyles<CssRules>;
 +
 +export const RepositoriesPanel = compose(
 +    withStyles(styles),
 +    connect(mapStateToProps, mapDispatchToProps))(
 +        class extends React.Component<RepositoriesProps> {
 +            componentDidMount() {
 +                this.props.loadRepositories();
 +            }
 +            render() {
 +                const { classes, repositories, onOptionsMenuOpen, openRepositoriesSampleGitDialog, openRepositoryCreateDialog } = this.props;
 +                return (
 +                    <Card>
 +                        <CardContent>
 +                            <Grid container direction="row">
 +                                <Grid item xs={8}>
 +                                    <Typography variant="body2">
 +                                        When you are using an Arvados virtual machine, you should clone the https:// URLs. This will authenticate automatically using your API token. <br />
++                                        In order to clone git repositories using SSH, <Link to={Routes.SSH_KEYS} className={classes.link}>add an SSH key to your account</Link> and clone the git@ URLs.
 +                                    </Typography>
 +                                </Grid>
 +                                <Grid item xs={4} className={classes.button}>
 +                                    <Button variant="contained" color="primary" onClick={openRepositoryCreateDialog}>
 +                                        <AddIcon /> NEW REPOSITORY
 +                                    </Button>
 +                                </Grid>
 +                            </Grid>
 +                            <Grid item xs={12}>
 +                                <div className={classes.iconRow}>
 +                                    <Tooltip title="Sample git quick start">
 +                                        <IconButton className={classes.moreOptionsButton} onClick={openRepositoriesSampleGitDialog}>
 +                                            <HelpIcon className={classes.icon} />
 +                                        </IconButton>
 +                                    </Tooltip>
 +                                </div>
 +                            </Grid>
 +                            <Grid item xs={12}>
 +                                {repositories && <Table>
 +                                    <TableHead>
 +                                        <TableRow>
 +                                            <TableCell>Name</TableCell>
 +                                            <TableCell>URL</TableCell>
 +                                            <TableCell />
 +                                        </TableRow>
 +                                    </TableHead>
 +                                    <TableBody>
 +                                        {repositories.map((repository, index) =>
 +                                            <TableRow key={index}>
 +                                                <TableCell>{repository.name}</TableCell>
 +                                                <TableCell className={classes.cloneUrls}>{repository.cloneUrls.join("\n")}</TableCell>
 +                                                <TableCell className={classes.moreOptions}>
 +                                                    <Tooltip title="More options" disableFocusListener>
 +                                                        <IconButton onClick={event => onOptionsMenuOpen(event, index, repository)} className={classes.moreOptionsButton}>
 +                                                            <MoreOptionsIcon />
 +                                                        </IconButton>
 +                                                    </Tooltip>
 +                                                </TableCell>
 +                                            </TableRow>)}
 +                                    </TableBody>
 +                                </Table>}
 +                            </Grid>
 +                        </CardContent>
 +                    </Card>
 +                );
 +            }
 +        }
 +    );
index eee9911c163006d78a0ad200a4095ec252c328a9,3a63ea3730b1e36116dc6ca647afdc1e18d2228a..ebdf57c3a7a9ac9f2adbb9a944fd3a472db7fc08
@@@ -44,15 -44,12 +44,17 @@@ import { RunProcessPanel } from '~/view
  import SplitterLayout from 'react-splitter-layout';
  import { WorkflowPanel } from '~/views/workflow-panel/workflow-panel';
  import { SearchResultsPanel } from '~/views/search-results-panel/search-results-panel';
+ import { SshKeyPanel } from '~/views/ssh-key-panel/ssh-key-panel';
  import { SharingDialog } from '~/views-components/sharing-dialog/sharing-dialog';
  import { AdvancedTabDialog } from '~/views-components/advanced-tab-dialog/advanced-tab-dialog';
  import { ProcessInputDialog } from '~/views-components/process-input-dialog/process-input-dialog';
  import { ProjectPropertiesDialog } from '~/views-components/project-properties-dialog/project-properties-dialog';
 +import { RepositoriesPanel } from '~/views/repositories-panel/repositories-panel';
 +import { RepositoriesSampleGitDialog } from '~/views-components/repositories-sample-git-dialog/repositories-sample-git-dialog';
 +import { RepositoryAttributesDialog } from '~/views-components/repository-attributes-dialog/repository-attributes-dialog';
 +import { CreateRepositoryDialog } from '~/views-components/dialog-forms/create-repository-dialog';
 +import { RemoveRepositoryDialog } from '~/views-components/repository-remove-dialog/repository-remove-dialog';
+ import { CreateSshKeyDialog } from '~/views-components/dialog-forms/create-ssh-key-dialog';
  
  type CssRules = 'root' | 'container' | 'splitter' | 'asidePanel' | 'contentWrapper' | 'content';
  
@@@ -122,7 -119,7 +124,8 @@@ export const WorkbenchPanel 
                                  <Route path={Routes.RUN_PROCESS} component={RunProcessPanel} />
                                  <Route path={Routes.WORKFLOWS} component={WorkflowPanel} />
                                  <Route path={Routes.SEARCH_RESULTS} component={SearchResultsPanel} />
 +                                <Route path={Routes.REPOSITORIES} component={RepositoriesPanel} />
+                                 <Route path={Routes.SSH_KEYS} component={SshKeyPanel} />
                              </Switch>
                          </Grid>
                      </Grid>
              <CopyProcessDialog />
              <CreateCollectionDialog />
              <CreateProjectDialog />
 +            <CreateRepositoryDialog />
+             <CreateSshKeyDialog />
              <CurrentTokenDialog />
              <FileRemoveDialog />
              <FilesUploadCollectionDialog />
              <ProcessInputDialog />
              <ProjectPropertiesDialog />
              <RemoveProcessDialog />
 +            <RemoveRepositoryDialog />
              <RenameFileDialog />
 +            <RepositoryAttributesDialog />
 +            <RepositoriesSampleGitDialog />
              <RichTextEditorDialog />
              <SharingDialog />
              <Snackbar />