update some UI

This commit is contained in:
JOSEPH LE 2024-09-24 16:03:28 +07:00
parent a9e93d84d1
commit efd2e0b6b7
2 changed files with 18 additions and 13 deletions

View File

@ -478,7 +478,9 @@ const SprintReview = () => {
criteriaSprint.length == 0 || loading ? { display: 'none' } : {} criteriaSprint.length == 0 || loading ? { display: 'none' } : {}
} }
> >
Criteria for Sprint: Criteria for Sprint: <Box fs={'italic'} fz={'sm'}>
<a href={`/test-report?projectID=${filter.projectID}&sprintID=${filter.sprintID}`} target='_blank'>Sprint test report</a>
</Box>
</Title> </Title>
<Box <Box
style={{ style={{
@ -506,17 +508,17 @@ const SprintReview = () => {
> >
<Table.Thead> <Table.Thead>
<Table.Tr bg="#228be66b" style={rowStyle}> <Table.Tr bg="#228be66b" style={rowStyle}>
<Table.Th style={{ textAlign: 'center', width: '250px' }}> <Table.Th style={{ textAlign: 'center', width: '15%' }}>
Criteria Criteria
</Table.Th> </Table.Th>
<Table.Th style={{ textAlign: 'center', width: '250px' }}> <Table.Th style={{ textAlign: 'center', width: '25%' }}>
Expect Result Expect Result
</Table.Th> </Table.Th>
<Table.Th style={{ textAlign: 'center', width: '250px' }}> <Table.Th style={{ textAlign: 'center', width: '25%' }}>
Actual Result Actual Result
</Table.Th> </Table.Th>
<Table.Th style={{ textAlign: 'center' }}>Note</Table.Th> <Table.Th style={{ textAlign: 'center', width: '30%' }}>Note</Table.Th>
<Table.Th style={{ textAlign: 'center', width: '100px' }}> <Table.Th style={{ textAlign: 'center', width: '5%' }}>
Point Point
</Table.Th> </Table.Th>
</Table.Tr> </Table.Tr>
@ -599,6 +601,7 @@ const SprintReview = () => {
value={finalPoint} value={finalPoint}
onChange={(value) => setFinalPoint(value ?? '')} onChange={(value) => setFinalPoint(value ?? '')}
size="xs" size="xs"
w={'40%'}
styles={() => ({ styles={() => ({
input: { input: {
color: 'red', color: 'red',
@ -639,17 +642,17 @@ const SprintReview = () => {
> >
<Table.Thead> <Table.Thead>
<Table.Tr bg="#228be66b" style={rowStyle}> <Table.Tr bg="#228be66b" style={rowStyle}>
<Table.Th style={{ textAlign: 'center', width: '250px' }}> <Table.Th style={{ textAlign: 'center', width: '15%' }}>
User User
</Table.Th> </Table.Th>
<Table.Th style={{ textAlign: 'center', width: '250px' }}> <Table.Th style={{ textAlign: 'center', width: '25%' }}>
Criteria Criteria
</Table.Th> </Table.Th>
<Table.Th style={{ textAlign: 'center' }}>Note</Table.Th> <Table.Th style={{ textAlign: 'center', width: '40%' }}>Note</Table.Th>
<Table.Th style={{ textAlign: 'center', width: '250px' }}> <Table.Th style={{ textAlign: 'center', width: '15%' }}>
Created by Created by
</Table.Th> </Table.Th>
<Table.Th style={{ textAlign: 'center', width: '100px' }}> <Table.Th style={{ textAlign: 'center', width: '5%' }}>
Point Point
</Table.Th> </Table.Th>
</Table.Tr> </Table.Tr>

View File

@ -297,10 +297,11 @@ const StaffEvaluation = () => {
User: User:
</Text> </Text>
<Select <Select
style={{ width: '50%' }} style={{ width: '30%' }}
label={''} label={''}
placeholder="Select user" placeholder="Select user"
maxLength={255} maxLength={255}
size={'xs'}
required required
data={listUsers.map((i: User) => ({ data={listUsers.map((i: User) => ({
value: i.id.toString(), value: i.id.toString(),
@ -331,7 +332,6 @@ const StaffEvaluation = () => {
w="100%" w="100%"
display={'flex'} display={'flex'}
mt={15} mt={15}
style={{ justifyContent: 'space-evenly' }}
> >
<Box display={'flex'} mr={10}> <Box display={'flex'} mr={10}>
<Text <Text
@ -346,6 +346,7 @@ const StaffEvaluation = () => {
<DateInput <DateInput
placeholder="Select date" placeholder="Select date"
clearable clearable
size='xs'
required required
label={''} label={''}
value={filter.fromDate ? new Date(filter.fromDate) : null} value={filter.fromDate ? new Date(filter.fromDate) : null}
@ -366,6 +367,7 @@ const StaffEvaluation = () => {
<DateInput <DateInput
placeholder="Select date" placeholder="Select date"
clearable clearable
size='xs'
required required
label={''} label={''}
value={filter.toDate ? new Date(filter.toDate) : null} value={filter.toDate ? new Date(filter.toDate) : null}