update Ui
This commit is contained in:
		
							parent
							
								
									4ab40c3523
								
							
						
					
					
						commit
						5ea7d79c4c
					
				| 
						 | 
					@ -57,7 +57,7 @@ const data = [
 | 
				
			||||||
    link: '/tracking',
 | 
					    link: '/tracking',
 | 
				
			||||||
    label: 'Check in/out',
 | 
					    label: 'Check in/out',
 | 
				
			||||||
    icon: IconScan,
 | 
					    icon: IconScan,
 | 
				
			||||||
    group: 'normal',
 | 
					    group: 'admin',
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    link: '/worklogs',
 | 
					    link: '/worklogs',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3311,11 +3311,20 @@ const Allocation = () => {
 | 
				
			||||||
        <Box
 | 
					        <Box
 | 
				
			||||||
          style={{
 | 
					          style={{
 | 
				
			||||||
            display: !loading ? 'flex' : 'none',
 | 
					            display: !loading ? 'flex' : 'none',
 | 
				
			||||||
            // display: 'flex',
 | 
					            flexFlow: 'column',
 | 
				
			||||||
            flexWrap: 'wrap',
 | 
					 | 
				
			||||||
            justifyContent: 'space-evenly',
 | 
					 | 
				
			||||||
          }}
 | 
					          }}
 | 
				
			||||||
        >
 | 
					        >
 | 
				
			||||||
 | 
					          <Box>
 | 
				
			||||||
 | 
					          <Text fw={600} fz={'md'}>Admin/</Text>
 | 
				
			||||||
 | 
					          <Text fw={700} fz={'lg'}>Personnel Allocation</Text>
 | 
				
			||||||
 | 
					          <Text fw={600} fz={'sm'} c={'gray'} fs={'italic'} ml={'md'}>"P:" is the timspent/timeestimate number within the project itself</Text>
 | 
				
			||||||
 | 
					          <Text fw={600} fz={'sm'} c={'gray'} fs={'italic'} ml={'md'}>"A:" is the timspent/timeestimate of all projects</Text>
 | 
				
			||||||
 | 
					          </Box>
 | 
				
			||||||
 | 
					          <Box style={{
 | 
				
			||||||
 | 
					            display: 'flex',
 | 
				
			||||||
 | 
					            flexWrap: 'wrap',
 | 
				
			||||||
 | 
					            justifyContent: 'space-evenly',
 | 
				
			||||||
 | 
					          }}>
 | 
				
			||||||
          {!loading &&
 | 
					          {!loading &&
 | 
				
			||||||
            Object.keys(data?.projects).map((pro) => {
 | 
					            Object.keys(data?.projects).map((pro) => {
 | 
				
			||||||
              return (
 | 
					              return (
 | 
				
			||||||
| 
						 | 
					@ -3511,7 +3520,7 @@ const Allocation = () => {
 | 
				
			||||||
                  }
 | 
					                  }
 | 
				
			||||||
                />
 | 
					                />
 | 
				
			||||||
                <Text ml={'md'} fw={700} size="lg">
 | 
					                <Text ml={'md'} fw={700} size="lg">
 | 
				
			||||||
                  WARNING
 | 
					                  WARNING - NO ASSIGNMENT
 | 
				
			||||||
                </Text>
 | 
					                </Text>
 | 
				
			||||||
              </Card.Section>
 | 
					              </Card.Section>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3537,6 +3546,7 @@ const Allocation = () => {
 | 
				
			||||||
                })}
 | 
					                })}
 | 
				
			||||||
            </Card>
 | 
					            </Card>
 | 
				
			||||||
          </Box>
 | 
					          </Box>
 | 
				
			||||||
 | 
					          </Box>
 | 
				
			||||||
        </Box>
 | 
					        </Box>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -247,7 +247,7 @@ const LeaveManagement = () => {
 | 
				
			||||||
    <div>
 | 
					    <div>
 | 
				
			||||||
      <div className={classes.title}>
 | 
					      <div className={classes.title}>
 | 
				
			||||||
        <h3>
 | 
					        <h3>
 | 
				
			||||||
          <Text>Admin/</Text> Leave Management
 | 
					          Leave Management
 | 
				
			||||||
        </h3>
 | 
					        </h3>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <Drawer
 | 
					      <Drawer
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -323,7 +323,6 @@ const Tickets = () => {
 | 
				
			||||||
    <div>
 | 
					    <div>
 | 
				
			||||||
      <div className={classes.title}>
 | 
					      <div className={classes.title}>
 | 
				
			||||||
        <h3>
 | 
					        <h3>
 | 
				
			||||||
          <Text>Admin/</Text>
 | 
					 | 
				
			||||||
          Tickets
 | 
					          Tickets
 | 
				
			||||||
        </h3>
 | 
					        </h3>
 | 
				
			||||||
        <Button
 | 
					        <Button
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -437,7 +437,6 @@ const Timekeeping = () => {
 | 
				
			||||||
    <div>
 | 
					    <div>
 | 
				
			||||||
      <div className={classes.title}>
 | 
					      <div className={classes.title}>
 | 
				
			||||||
        <h3>
 | 
					        <h3>
 | 
				
			||||||
          <Text>Admin/</Text>
 | 
					 | 
				
			||||||
          Timekeeping
 | 
					          Timekeeping
 | 
				
			||||||
        </h3>
 | 
					        </h3>
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -214,7 +214,7 @@ const Worklogs = () => {
 | 
				
			||||||
    <div style={{ display: 'flex', flexFlow: 'column' }}>
 | 
					    <div style={{ display: 'flex', flexFlow: 'column' }}>
 | 
				
			||||||
      <div className={classes.title}>
 | 
					      <div className={classes.title}>
 | 
				
			||||||
        <h3>
 | 
					        <h3>
 | 
				
			||||||
          <Text>Admin/</Text>Worklogs
 | 
					          Worklogs
 | 
				
			||||||
          {!updating ? (
 | 
					          {!updating ? (
 | 
				
			||||||
            <Text fs={'italic'} fz={'xs'} c={'gray'}>
 | 
					            <Text fs={'italic'} fz={'xs'} c={'gray'}>
 | 
				
			||||||
              Updating data in the background ...
 | 
					              Updating data in the background ...
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -39,7 +39,7 @@ const mainRoutes = [
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    path: '/tracking',
 | 
					    path: '/tracking',
 | 
				
			||||||
    element: (
 | 
					    element: (
 | 
				
			||||||
      <ProtectedRoute mode="home" permission="staff">
 | 
					      <ProtectedRoute mode="home" permission="admin,hr">
 | 
				
			||||||
        <BasePage
 | 
					        <BasePage
 | 
				
			||||||
          main={
 | 
					          main={
 | 
				
			||||||
            <>
 | 
					            <>
 | 
				
			||||||
| 
						 | 
					@ -186,10 +186,12 @@ const mainRoutes = [
 | 
				
			||||||
              <Allocation />
 | 
					              <Allocation />
 | 
				
			||||||
            </>
 | 
					            </>
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
            ></BasePage>
 | 
					        ></BasePage>
 | 
				
			||||||
      </ProtectedRoute>
 | 
					      </ProtectedRoute>
 | 
				
			||||||
      )},
 | 
					    ),
 | 
				
			||||||
    {path: '/profile',
 | 
					  },
 | 
				
			||||||
 | 
					  {
 | 
				
			||||||
 | 
					    path: '/profile',
 | 
				
			||||||
    element: (
 | 
					    element: (
 | 
				
			||||||
      <ProtectedRoute mode="route" permission="admin,hr">
 | 
					      <ProtectedRoute mode="route" permission="admin,hr">
 | 
				
			||||||
        <BasePage
 | 
					        <BasePage
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue