Skip to content

Commit

Permalink
Merge branch 'develop2' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikvirendrar authored Dec 27, 2024
2 parents dbbf903 + 87837ff commit 6ec88a1
Show file tree
Hide file tree
Showing 21 changed files with 1,301 additions and 188 deletions.
132 changes: 132 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"react-dom": "^18.2.0",
"react-draggable": "^4.4.5",
"react-joyride": "^2.5.3",
"react-json-tree": "^0.19.0",
"react-material-ui-carousel": "^3.4.2",
"react-mui-dropzone": "^4.0.7",
"react-paginate": "^8.1.4",
Expand Down
6 changes: 4 additions & 2 deletions src/common/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ const Header = () => {
Tasks
</NavLink>
</Typography>
{userData?.role == "ADMIN" && <Typography variant="body1">
{(userData?.role === "ADMIN" || userData?.role==="ORG_OWNER") && (
<Typography variant="body1">
<NavLink
to={`/admin`}
className={({ isActive }) =>
Expand All @@ -241,7 +242,8 @@ const Header = () => {
>
Admin
</NavLink>
</Typography>}
</Typography>
)}
</>
{/* <Typography variant="body1">
<NavLink
Expand Down
6 changes: 5 additions & 1 deletion src/config/apiendpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ const endpoints = {

//Video
video: "/video/",
getVideoTasks: '/video/list_tasks',
listVideosTasks:'/video/get_listings',
transcript: "/transcript/",
GetAllTranscriptions:"/transcript/retrieve_all_transcriptions/",
GetAllTranslations:"/translation/retrieve_all_translations/",
translation: "/translation/",
voiceover: "/voiceover/",
videoSubtitle: "/transcript/get_word_aligned_json/?video_id",
Expand All @@ -45,4 +49,4 @@ const endpoints = {
glossary: "/glossary/",
};

export default endpoints;
export default endpoints;
1 change: 1 addition & 0 deletions src/config/reportConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const languagelevelStats = [
{ lable: "Transcript", value: "transcript_stats" },
{ lable: "Translation", value: "translation_stats" },
{ lable: "Voiceover", value: "voiceover_stats" },
{ lable: "Translation Voiceover", value: "translation_voiceover_stats" },
];

export const projectReportLevels = [
Expand Down
23 changes: 23 additions & 0 deletions src/config/tableColumns.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ export const videoTaskListColumns = [
},
},
},
{
name: "eta",
label: "ETA",
options: {
customBodyRender: (value) => {
return <Box>{moment(value).format("DD/MM/YYYY HH:mm:ss")}</Box>;
},
},
},
{
name: "status",
label: "Status",
Expand Down Expand Up @@ -338,6 +347,20 @@ export const taskListColumns = [
},
},
},
{
name: "eta",
label: "ETA",
options: {
customBodyRender: (value) => {
if (value) {
const formattedETA = new Date(value).toLocaleString();
return <Box>{formattedETA}</Box>;
}
return <Box>N/A</Box>;
},
},
},

{
name: "time_spent",
label: "Time Spent",
Expand Down
Loading

0 comments on commit 6ec88a1

Please sign in to comment.