Skip to content

Commit

Permalink
Evaluation only
Browse files Browse the repository at this point in the history
  • Loading branch information
jnakaso committed Oct 8, 2024
1 parent ca884df commit 64c7e1e
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 39 deletions.
48 changes: 24 additions & 24 deletions src/menu-items/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ const radiator = {
title: 'Navigation',
type: 'group',
children: [
{
id: 'dashboard',
title: 'Dashboard',
type: 'item',
url: '/',
icon: icons.DashboardOutlined,
breadcrumbs: false
},
{
id: 'ventures',
title: 'Ventures',
type: 'item',
url: '/ventures',
icon: icons.FileOutlined,
breadcrumbs: false
},
// {
// id: 'dashboard',
// title: 'Dashboard',
// type: 'item',
// url: '/',
// icon: icons.DashboardOutlined,
// breadcrumbs: false
// },
// {
// id: 'ventures',
// title: 'Ventures',
// type: 'item',
// url: '/ventures',
// icon: icons.FileOutlined,
// breadcrumbs: false
// },
{
id: 'evaluations',
title: 'Evaluation',
Expand All @@ -61,14 +61,14 @@ const radiator = {
icon: icons.QuestionOutlined,
breadcrumbs: false
},
{
id: 'contributors',
title: 'Contributors',
type: 'item',
url: '/contributors',
icon: icons.FileOutlined,
breadcrumbs: false
}
// {
// id: 'contributors',
// title: 'Contributors',
// type: 'item',
// url: '/contributors',
// icon: icons.FileOutlined,
// breadcrumbs: false
// }
]
}

Expand Down
23 changes: 12 additions & 11 deletions src/pages/evaluation/meetingsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,18 @@ export const MeetingsPanel: React.FC<VentureProps> = ({ venture }) => {
}, [taskGroup]);


const handleEditClick = (id: GridRowId) => async () => {
const selected: Meeting = pageInfo.rows.find(m => m.id === id)
// const selected = pageInfo.rows.find(m => m.id === id)
Promise.all(selected.attendanceIds
.map(async attId => dasAttendanceService.getById(attId)))
.then(attendances => {
console.log('attendances', attendances)
selected.attendances = attendances;
setSelectedMeeting(selected)
setShowCreateDialog(true)
})
const handleEditClick = (_id: GridRowId) => async () => {
alert('Not ready ')
// const selected: Meeting = pageInfo.rows.find(m => m.id === id)
// // const selected = pageInfo.rows.find(m => m.id === id)
// Promise.all(selected.attendanceIds
// .map(async attId => dasAttendanceService.getById(attId)))
// .then(attendances => {
// console.log('attendances', attendances)
// selected.attendances = attendances;
// setSelectedMeeting(selected)
// setShowCreateDialog(true)
// })
};

const handleAddClick = () => {
Expand Down
5 changes: 3 additions & 2 deletions src/pages/evaluation/staffingPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ export const StaffingPanel: React.FC<VentureProps> = ({ venture }) => {
// }
// }, [volunteers, taskGroup])

const handleEditClick = (id: GridRowId) => () => {
console.log(id)
const handleEditClick = (_id: GridRowId) => () => {
alert('Not ready ')
};

const handleAddClick = () => {
alert('Not ready ')
};

const getColumns = (): GridColDef[] => {
Expand Down
8 changes: 6 additions & 2 deletions src/pages/routes.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { redirect } from 'react-router';
import MainLayout from '../layout/MainLayout';
import MinimalLayout from '../layout/MinimalLayout';
import PrivacyPage from './PrivacyPage';
Expand All @@ -17,6 +18,10 @@ const routes = [
children: [
{
path: "",
element: <EvaluationsPage />,
},
{
path: "dashboard",
element: <DashboardDefault />,
},
{
Expand All @@ -38,8 +43,7 @@ const routes = [
{
path: "evaluations",
element: <EvaluationsPage />,
}
,
},
{
path: "evaluation/:id",
element: <EvaluationPage />,
Expand Down

0 comments on commit 64c7e1e

Please sign in to comment.