Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(j-s): Table for reviewed cases #14778

Merged
merged 9 commits into from
May 14, 2024
Prev Previous commit
Next Next commit
cleanup
unakb committed May 14, 2024
commit 5954313fc27d1f7973b81277b418fc9e2af0ecda
4 changes: 2 additions & 2 deletions apps/judicial-system/web/messages/Core/tables.ts
Original file line number Diff line number Diff line change
@@ -94,7 +94,7 @@ export const tables = defineMessages({
},
reviewDecision: {
id: 'judicial.system.core:tables.review_decision',
defaultMessage: 'Tillaga',
description: 'Notaður sem titill fyrir tillögu dálk í lista yfir mál.',
defaultMessage: 'Ákvörðun',
description: 'Notaður sem titill fyrir ákvörðun dálk í lista yfir mál.',
},
})
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ export const strings = defineMessages({
},
infoContainerMessage: {
id: 'judicial.system.core:public_prosecutor.tables.cases_reviewed.info_container_message',
defaultMessage: 'Engin yfirlsin mál.',
defaultMessage: 'Engin yfirlesin mál.',
description:
'Notaður sem skilaboð í upplýsingaglugga ef engin yfirlesin mál eru til.',
},
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import React, { FC } from 'react'
import { useIntl } from 'react-intl'
import { AnimatePresence } from 'framer-motion'

@@ -27,7 +27,7 @@ interface Props {
cases: CaseListEntry[]
}

const CasesReviewed: React.FC<Props> = ({ loading, cases }) => {
const CasesReviewed: FC<Props> = ({ loading, cases }) => {
const { formatMessage } = useIntl()
const { openCaseInNewTabMenuItem } = useContextMenu()


Unchanged files with check annotations Beta

return presignedPost
}
const promises = files.map(async (file, idx) => {

Check warning on line 270 in apps/judicial-system/web/src/utils/hooks/useS3Upload/useS3Upload.ts

GitHub Actions / linting (judicial-system-api,judicial-system-web)

'idx' is defined but never used. Allowed unused args must match /^_[a-zA-Z0-9]*$/u
try {
updateFile({ ...file, status: 'uploading' })
'desember',
]
function formatDate(date) {

Check warning on line 28 in apps/judicial-system/backend/migrations/20210608081018-update-case.js

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
return `${dayOfWeek[date.getDay()]} ${date.getDate()}. ${
month[date.getMonth()]
} ${date.getFullYear()}, kl. ${('0' + date.getHours()).substr(-2)}:${(
).substr(-2)}`
}
function formatProsecutorDemands(

Check warning on line 36 in apps/judicial-system/backend/migrations/20210608081018-update-case.js

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
type,
accusedNationalId,
accusedName,
'desember',
]
function formatDate(date) {

Check warning on line 28 in apps/judicial-system/backend/migrations/20210831141153-update-case.js

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
return `${dayOfWeek[date.getDay()]} ${date.getDate()}. ${
month[date.getMonth()]
} ${date.getFullYear()}, kl. ${('0' + date.getHours()).substr(-2)}:${(
).substr(-2)}`
}
function formatAccusedByGender(accusedGender) {

Check warning on line 36 in apps/judicial-system/backend/migrations/20210831141153-update-case.js

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
switch (accusedGender) {
case 'MALE':
return 'kærði'
}
}
function formatConclusion(

Check warning on line 64 in apps/judicial-system/backend/migrations/20210831141153-update-case.js

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
type,
accusedNationalId,
accusedName,
_115_1: '1. mgr. 115. gr. útll.',
}
function formatLegalBases(custodyProvisions, legal_basis) {

Check warning on line 9 in apps/judicial-system/backend/migrations/20210915100238-update-case.js

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
if (!custodyProvisions?.length > 0) {
return legal_basis ?? ''
}
)
}
function reduceCustodyProvisions(custody_provisions) {

Check warning on line 25 in apps/judicial-system/backend/migrations/20210915100238-update-case.js

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
return custody_provisions
? "'{" +
custody_provisions.reduce(
onError: jest.fn,
}).formatMessage
function fn(startDate?: Date, endDate?: Date) {

Check warning on line 12 in apps/judicial-system/backend/src/app/formatters/courtRecord.spec.ts

GitHub Actions / linting (judicial-system-backend)

Expected a function expression
return formatCourtEndDate(formatMessage, startDate, endDate)
}