Skip to content

Commit c84e70e

Browse files
authored
Merge pull request #1245 from jembi/ocrvs-2199-2201-ui-inbox-controller
Ocrvs 2199 2201 ui inbox controller
2 parents e61b4ea + 515018b commit c84e70e

File tree

35 files changed

+2634
-516
lines changed

35 files changed

+2634
-516
lines changed

packages/client/src/applications/index.ts

Lines changed: 456 additions & 1 deletion
Large diffs are not rendered by default.

packages/client/src/components/form/ReviewActionComponent.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@ import {
1818
} from '@opencrvs/components/lib/buttons'
1919
import { injectIntl, WrappedComponentProps as IntlShapeProps } from 'react-intl'
2020
import { Upload, Check, Cross } from '@opencrvs/components/lib/icons'
21-
import { IApplication, IPayload, SUBMISSION_STATUS } from '@client/applications'
21+
import {
22+
IApplication,
23+
IPayload,
24+
SUBMISSION_STATUS,
25+
DOWNLOAD_STATUS
26+
} from '@client/applications'
2227
import { messages } from '@client/i18n/messages/views/review'
2328
import { buttonMessages, constantsMessages } from '@client/i18n/messages'
2429
import { ResponsiveModal } from '@opencrvs/components/lib/interface'
@@ -38,7 +43,8 @@ interface IReviewActionProps extends React.HTMLAttributes<HTMLDivElement> {
3843
application: IApplication,
3944
submissionStatus: string,
4045
action: string,
41-
payload?: IPayload
46+
payload?: IPayload,
47+
downloadStatus?: string
4248
) => void
4349
rejectApplicationAction?: () => void
4450
}
@@ -428,7 +434,9 @@ class ReviewActionComponent extends React.Component<
428434
? submitApplicationAction(
429435
application,
430436
SUBMISSION_STATUS.READY_TO_SUBMIT,
431-
Action.SUBMIT_FOR_REVIEW
437+
Action.SUBMIT_FOR_REVIEW,
438+
undefined,
439+
DOWNLOAD_STATUS.DOWNLOADED
432440
)
433441
: applicationToBeRegistered
434442
? submitApplicationAction(

packages/client/src/i18n/messages/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ interface IConstantsMessages {
3737
declared: MessageDescriptor
3838
dob: MessageDescriptor
3939
dod: MessageDescriptor
40+
downloading: MessageDescriptor
4041
eventDate: MessageDescriptor
4142
export: MessageDescriptor
4243
failedToSend: MessageDescriptor
@@ -208,6 +209,11 @@ const messagesToDefine: IConstantsMessages = {
208209
description: 'Label for DoD in work queue list item',
209210
id: 'constants.dod'
210211
},
212+
downloading: {
213+
defaultMessage: 'Downloading...',
214+
description: 'Label for application download status Downloading',
215+
id: 'constants.downloading'
216+
},
211217
eventDate: {
212218
defaultMessage: 'Date of event',
213219
description: 'Label for event date in list item',

packages/client/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,3 @@ ReactDOM.render(
9090

9191
registerServiceWorker(onNewContentAvailable)
9292
new SubmissionController(store).start()
93-
new InboxController(store).start()

0 commit comments

Comments
 (0)