Skip to content

Address DREF Imminent changes feedback #1799

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

Merged
merged 2 commits into from
May 5, 2025

Conversation

frozenhelium
Copy link
Member

@frozenhelium frozenhelium commented Apr 25, 2025

Summary

  • Update styling of Proposed Actions table
    2025-04-25-114638
  • Add a confirmation while creating Operational Update from Imminent DREF application
    2025-04-25-134617
  • Add a popup to show and force change type of DREF to Response for existing Imminent Ops. Update
    2025-04-25-173813

Addresses

Copy link

changeset-bot bot commented Apr 25, 2025

⚠️ No Changeset found

Latest commit: 42f3153

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@frozenhelium frozenhelium force-pushed the fix/imminent-changes-feedback branch from 6b10772 to 793b5ab Compare April 25, 2025 05:51
@frozenhelium frozenhelium force-pushed the fix/imminent-changes-feedback branch from 793b5ab to a4029ca Compare April 25, 2025 06:04
@frozenhelium frozenhelium force-pushed the fix/imminent-changes-feedback branch from 7579b94 to 2aa0b76 Compare April 25, 2025 08:02
@frozenhelium frozenhelium force-pushed the fix/imminent-changes-feedback branch from 2aa0b76 to 6dd41cb Compare April 25, 2025 11:52
@@ -13,6 +13,8 @@
"drefApprovalInProgressTitle": "Approval in progress...",
"drefAccountCouldNotCreate": "Could not create new operational update",
"drefAccountCouldNotCreateFinalReport": "Could not create final report",
"drefAccountConfirmMessage": "You're about to Approve this DREF. Once approved, it can no longer be edited. Are you sure, you want to Approve?"
"drefAccountConfirmMessage": "You're about to Approve this DREF. Once approved, it can no longer be edited. Are you sure, you want to Approve?",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"drefAccountConfirmMessage": "You're about to Approve this DREF. Once approved, it can no longer be edited. Are you sure, you want to Approve?",
"drefAccountConfirmMessage": "You're about to Approve this DREF. Once approved, it can no longer be edited. Are you sure you want to Approve?",

@barshathakuri
Copy link
Collaborator

barshathakuri commented Apr 28, 2025

@frozenhelium Handle for empty Proposed Actions:
image

@barshathakuri
Copy link
Collaborator

@frozenhelium The list of activities is displaying in a row.
image

@barshathakuri
Copy link
Collaborator

barshathakuri commented Apr 28, 2025

@frozenhelium I don't see this confirmation as well as popup Add a confirmation while creating Operational Update from Imminent DREF application.

@frozenhelium frozenhelium requested a review from AdityaKhatri May 5, 2025 08:15
Comment on lines +150 to +151
response?.type_of_dref === DREF_TYPE_IMMINENT
// FIXME: add translations
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use translation.

response?.type_of_dref_display === 'Imminent'
// FIXME: can't compare imminent with Imminent Crisis directly
response?.type_of_dref === DREF_TYPE_IMMINENT
// FIXME: add translations
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use translation.

<img
className={styles.icon}
src={proposedAction.icon}
alt=""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add alert text.

{activity.activity}
</div>
{i === 0 && (
<div
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we write index here instead of i?

@frozenhelium frozenhelium force-pushed the fix/imminent-changes-feedback branch from 04aa0c2 to 42f3153 Compare May 5, 2025 11:14
@barshathakuri barshathakuri merged commit 8a16367 into project/dref-imminent May 5, 2025
17 checks passed
@barshathakuri barshathakuri deleted the fix/imminent-changes-feedback branch May 5, 2025 11:18
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