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: add close button to adjudicate notification #564

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

chen-yanlong
Copy link
Collaborator

Summary

add close button to adjudicate notification

Linked Issue

close #559

Details

  • Add a close button on the adjudication floating button.
  • Popup the confirm dialog when click the close button.
  • Hide the floating button if confirmed, but still show the floating button if there is a new report to adjudicate.

Impacted Areas

packages/frontend/src/features/reporting/components/AdjudicateNotification

Verification Steps

close button of notification

  1. press close button of the adjudication notification
  2. should pop out an dialog of confirmation

confirmation
4. close if pressed confirmed(also closes the notification)
5. jump to adjudication if pressed cancel(also closes the notification)
6. close if pressed close button(does not closes the notification)

@github-actions github-actions bot added feature new feature frontend contracts and removed feature new feature labels Oct 30, 2024
}
}, [activeAdjudication])

const closeAdjudicate = () => {
toggle(false)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

The button should be visible again when closing adjudication dialog.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The button's visibility depends on buttonVisible, so it should be visible again when closing adjudication dialog now. Please let me know if i misunderstood.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The floating button becomes invisible if I close adjudication dialog. You should make it visible again.

Screen.Recording.2024-11-05.at.12.51.20.PM.mov

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Got it ! Solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UST-249] [Frontend] Users should be able to close the floating button of adjudication
2 participants