Skip to content

Commit

Permalink
feat: public projects workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
nicedexter committed Nov 14, 2023
1 parent de5418f commit ff733cc
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 233 deletions.
15 changes: 11 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ import './App.css'
import AppList from './components/Documentation/AppList'
import Dataset from './components/UI/BIDS/Dataset'
import CenterDatasets from './components/Center/Datasets'
import PublicDatasets from './components/Public/Datasets'
import Centers from './components/Centers'
import CenterWorkspace from './components/Center/Workspace'
import About from './components/Documentation/About'
import CreateProject from './components/Projects/Create'
import ProjectWorkspace from './components/Project/Workspace'
import ProjectDataset from './components/Project/Dataset'
import Projects from './components/Projects'
import Desktop from './components/Desktop/Desktop'
import CenterDesktops from './components/Center/Desktops'
import ProjectDesktops from './components/Project/Desktops'
Expand Down Expand Up @@ -89,7 +87,6 @@ const App = () => (
</Route>
</Route>
<Route path={'projects'} element={<Outlet />}>
<Route index element={<Projects />} />
<Route path={'create'} element={<CreateProject />} />
<Route path={':projectId'} element={<Project />}>
<Route index element={<ProjectWorkspace />} />
Expand All @@ -102,7 +99,17 @@ const App = () => (
</Route>
</Route>
</Route>
<Route path={'public'} element={<PublicDatasets />}></Route>
<Route path={'public'} element={<Outlet />}>
<Route path={':projectId'} element={<Project />}>
<Route index element={<ProjectWorkspace />} />
<Route path={'desktops'} element={<ProjectDesktops />} />
<Route path={'metadata'} element={<Files />} />
<Route path={'datasets'} element={<Outlet />}>
<Route index element={<ProjectDataset />} />
<Route path={':datasetId'} element={<ProjectDataset />} />
</Route>
</Route>
</Route>
<Route
path='*'
element={
Expand Down
2 changes: 1 addition & 1 deletion src/api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export interface HIPCenter {
export interface HIPProject {
name: string
title: string
isPublic: boolean
description?: string
acceptMembershipRequest?: boolean
isMember?: boolean
admins?: string[]
members?: string[]
Expand Down
2 changes: 1 addition & 1 deletion src/components/Center/Datasets/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const DatasetsIndex = () => {

return (
<>
<Datasets handleClickedDataset={handleClickedDataset} buttonTitle={'Make public'} />
<Datasets />
<Dialog open={open} onClose={handleCheckedClicked}>
<DialogTitle>Make Dataset Public</DialogTitle>
<DialogContent>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Projects/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ProjectCard = ({ project, users }: Props) => {

return (
<NavLink to={`${ROUTE_PREFIX}/projects/${project.name}`}>
<Card elevation={3} component={Paper} sx={{ width: 280 }}>
<Card elevation={3} component={Paper} sx={{ width: 280, minHeight: 320 }}>
<CardContent>
<Box
sx={{
Expand Down
64 changes: 0 additions & 64 deletions src/components/Projects/index.tsx

This file was deleted.

81 changes: 0 additions & 81 deletions src/components/Public/Data.tsx

This file was deleted.

52 changes: 0 additions & 52 deletions src/components/Public/Datasets.tsx

This file was deleted.

Loading

0 comments on commit ff733cc

Please sign in to comment.