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

Change ppp iframe link,display error message in surge pages #445

Closed

Conversation

utsukta1
Copy link
Contributor

Addresses:

Changes

  • On three-w/projects the PPP iframe link changed in Global Three W
  • Add error message in Rapid response Personnel table

This PR doesn't introduce:

  • typos
  • conflict markers
  • unwanted comments
  • temporary files, auto-generated files or secret keys
  • console.log meant for debugging
  • codegen errors

urlParams: { countryId: item.country_from?.id },
}),
(item) => {
if (item.country_from?.id) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use isDefined or isNotDefined from fujs

Comment on lines +136 to +140
if (isDefined(item.country_from?.record_type === 3)) {
return {
to: undefined,
};
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a NOTE here.
// NOTE: we don't have the correct mapping for region

@@ -8,6 +8,7 @@
"personnelTableType": "Type",
"personnelTableDeployedTo": "Deploying To",
"personnelTableDeployedParty": "Deploying Party",
"deployedPersonnelViewAll": "View All Deployed Personnel"
"deployedPersonnelViewAll": "View All Deployed Personnel",
"emergencySurgePartyNotFound": "sorry, this party has no one matching country to be shown"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this

Comment on lines +143 to +147
(item) => {
if (isDefined(item.country_from?.record_type === 3)) {
return {
to: undefined,
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a note

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use a constant to denote region type.
For example
export const TYPE_IMMINENT = 0 satisfies TypeOfDrefEnum;

@samshara samshara closed this Jan 16, 2024
@samshara samshara deleted the fix/ppp-dashboard-link branch January 16, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants