Skip to content

Commit

Permalink
feat(applicant): display chat icon in app view for statuses "accepted…
Browse files Browse the repository at this point in the history
…", "rejected" (hl-1292) (#3046)

* feat: seed a few messages to "handling" applications

* feat: display chat bubble even if app is accepted or rejected
  • Loading branch information
sirtawast authored May 30, 2024
1 parent b9b3810 commit fe856be
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/benefit/applicant/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@
"isSecure": "Messages are encrypted",
"noMessages": "No messages",
"close": "Close",
"cannotWriteNewMessages": "Your application is being processed. You cannot write a new message right now. Please wait for your application to be processed."
"cannotWriteNewMessages": "Your application has progressed to the decision-making stage or it has already been processed. You can no longer write a new message."
},
"application": {
"tooltipShowInfo": "Show information"
Expand Down
2 changes: 1 addition & 1 deletion frontend/benefit/applicant/public/locales/fi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@
"isSecure": "Viestit ovat salattuja",
"noMessages": "Ei viestejä",
"close": "Sulje",
"cannotWriteNewMessages": "Hakemuksesi käsittely on käynnissä. Et voi kirjoittaa uutta viestiä juuri nyt. Ole hyvä ja odota hakemuksesi käsittelyä."
"cannotWriteNewMessages": "Hakemuksesi käsittely on edennyt päätöksentekoon tai se on jo käsitelty. Et voi enää kirjoittaa uutta viestiä."
},
"application": {
"tooltipShowInfo": "Näytä info"
Expand Down
2 changes: 1 addition & 1 deletion frontend/benefit/applicant/public/locales/sv/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@
"isSecure": "Meddelandena är skyddade",
"noMessages": "Inga meddelanden",
"close": "Stäng",
"cannotWriteNewMessages": "Din ansökan behandlas. Du kan inte skriva ett nytt meddelande just nu. Vänta tills din ansökan behandlas."
"cannotWriteNewMessages": "Din ansökan har gått vidare till beslutsfattandet eller har redan behandlats. Du kan inte längre skriva ett nytt meddelande."
},
"application": {
"tooltipShowInfo": "Visa information"
Expand Down
8 changes: 6 additions & 2 deletions frontend/benefit/applicant/src/components/header/useHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ const useHeader = (): ExtendedComponentProps => {
);
useEffect(() => {
setHasMessenger(
status === APPLICATION_STATUSES.INFO_REQUIRED ||
status === APPLICATION_STATUSES.HANDLING
[
APPLICATION_STATUSES.INFO_REQUIRED,
APPLICATION_STATUSES.HANDLING,
APPLICATION_STATUSES.REJECTED,
APPLICATION_STATUSES.ACCEPTED,
].includes(status)
);
}, [status, setHasMessenger]);

Expand Down

0 comments on commit fe856be

Please sign in to comment.