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(Profile flow): Respond to/review an incoming CR #13794

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

caybro
Copy link
Member

@caybro caybro commented Feb 29, 2024

What does the PR do

  • implement the new "Review contact request" popup & flow
  • adjust storybook

Fixes #13519

Affected areas

ProfileDialogView,ProfileContextMenu

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

image

}
onDiscarded: {
// FIXME should call `rootStore.contactStore.dismissContactRequest(publicKey, contactRequestId)` here?
Global.displaySuccessToastMessage(qsTr("Contact request ignored"))
Copy link
Member Author

Choose a reason for hiding this comment

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

One question here @MishkaRogachev: here we should just "ignore" the request but all the other popups (ActivityCenter, Settings/Contacts, etc) still call the dismissContactRequest; so what to do here?

Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if i get the problem. Maybe add an arg to openPopup(reviewContactRequestPopupComponent, ... in case ActivityCenter, Settings/Contacts and Profile uses the same component

Copy link
Member Author

Choose a reason for hiding this comment

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

No, my main question is more about the behavior, whether we should just ignore the CR everywhere, instead of calling the "dismiss" function (depending on what it does internally)

Copy link
Contributor

Choose a reason for hiding this comment

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

i'm not aware of latest requirements, but i can answer what dismissContactRequest does:

  • mark provided or latest CR as Dismissed
  • set contact's ContactRequestLocalState as ContactRequestStateDismissed. All subsequent CRs from this contact will not change the contact's status and trigger AC notifications

So my opinion is to use dismissContactRequest to ignore a contact

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, done

@caybro caybro linked an issue Feb 29, 2024 that may be closed by this pull request
@status-im-auto
Copy link
Member

status-im-auto commented Feb 29, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 796f00b #1 2024-02-29 21:22:30 ~6 min tests/nim 📄log
✔️ 796f00b #1 2024-02-29 21:22:40 ~6 min macos/aarch64 🍎dmg
✔️ 796f00b #1 2024-02-29 21:26:48 ~10 min tests/ui 📄log
✔️ 796f00b #1 2024-02-29 21:28:04 ~12 min macos/x86_64 🍎dmg
✔️ 796f00b #1 2024-02-29 21:32:35 ~16 min linux/x86_64 📦tgz
✔️ 796f00b #1 2024-02-29 21:49:41 ~33 min windows/x86_64 💿exe
✔️ 796f00b #2 2024-03-04 09:02:11 ~5 min macos/aarch64 🍎dmg
✔️ 796f00b #2 2024-03-04 09:02:46 ~5 min tests/nim 📄log
✔️ 796f00b #2 2024-03-04 09:04:26 ~7 min macos/x86_64 🍎dmg
✔️ 796f00b #2 2024-03-04 09:07:08 ~10 min tests/ui 📄log
✔️ 796f00b #2 2024-03-04 09:10:40 ~13 min linux/x86_64 📦tgz
✔️ 2f09802 #3 2024-03-04 09:15:42 ~4 min macos/aarch64 🍎dmg
✔️ 2f09802 #3 2024-03-04 09:17:23 ~6 min tests/nim 📄log
✔️ 2f09802 #3 2024-03-04 09:19:29 ~8 min macos/x86_64 🍎dmg
✔️ 2f09802 #3 2024-03-04 09:21:43 ~10 min tests/ui 📄log
✔️ 2f09802 #3 2024-03-04 09:25:34 ~14 min linux/x86_64 📦tgz
✔️ 2f09802 #3 2024-03-04 09:34:57 ~24 min windows/x86_64 💿exe

Copy link
Contributor

@alexjba alexjba left a comment

Choose a reason for hiding this comment

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

LGTM! Very nice storybook flow you've set-up there!
Minor questions inline

ui/app/mainui/Popups.qml Outdated Show resolved Hide resolved
ui/app/mainui/Popups.qml Show resolved Hide resolved
Base automatically changed from 13709-profile-flow-id-verification-flows-incomingoutgoing to master March 4, 2024 08:56
- implement the new "Reviewing contact request" popup & flow
- adjust storybook

Fixes #13519
@caybro caybro force-pushed the 13519-feat-review-incoming-cr branch from 796f00b to 2f09802 Compare March 4, 2024 09:10
@caybro caybro merged commit d12490a into master Mar 4, 2024
8 checks passed
@caybro caybro deleted the 13519-feat-review-incoming-cr branch March 4, 2024 09:56
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.

[Profile flow] Respond to/review an incoming CR
5 participants