-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix/27634: Improve private notes flow #31344
Fix/27634: Improve private notes flow #31344
Conversation
@DylanDylann Please update the branch with the latest main, testing... |
@DylanDylann, I have noticed an issue. When we try to delete some private notes by setting them to empty and then save, it unexpectedly redirects back to edit mode. Could you please look into this? cc: @techievivek, what expected behaviour should be in this case? Nagranie.z.ekranu.2023-11-16.o.13.24.06.mov |
We would take them to the details page or profile page, whichever page they came from? CC @trjExpensify for cross-checking. |
Yeah, interesting. I say return to the profile page if there's no notes to preview upon deleting one. |
@ArekChr Just updated the PR. Please help check.
|
@DylanDylann, I've encountered a new regression issue. When accessing Private Notes via a deep link, the app unexpectedly re-opens the Private Notes after entering and saving a note. Steps to Reproduce:
After these steps, the input field for Private Notes appears again, which seems unintended. This issue is not reproducible on staging. Nagranie.z.ekranu.2023-11-20.o.11.22.11.mov |
@ArekChr Updated PR to fix the issue you`ve mentioned.
Screencast.from.21-11-2023.11.54.32.webm |
@DylanDylann Can we do this instead?
Assuming that undefined private notes are not initialised or not fetched, are we skipping navigation until private notes will load. That is much more readable and less hacky. This might require changing the initial value to undefined if it is an empty array. |
@ArekChr Currently, the initial private note is something like {123456: {note: ''}}. So, I am not sure whether changing the initial value to undefined leads to regression or not |
@ArekChr Please help review this one in case you miss it |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid.movAndroid: mWeb ChromeiOS: Nativeios.moviOS: mWeb Safarimweb.safari.movMacOS: Chrome / Safariweb.deeplink.test.movweb.empty.notes.case.workspace.movweb.existing.notes.workspace.movweb.editing.removing.movMacOS: Desktopdesktop.mov |
@DylanDylann please update with latest main |
@ArekChr Fixed all your comments and merge latest main, please help check |
@DylanDylann, after removing private notes and opening other private notes that are not empty, the app redirects us to edit private notes, but should it redirect us to the private notes list? Nagranie.z.ekranu.2023-11-27.o.10.53.30.mov |
@ArekChr It seems that I cannot reproduce the bug that you mentioned #31344 (comment). Here is the steps:
|
Retesting |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After retesting all good, thanks for PR!
Will test this today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and tests well with multiple notes.
Screen.Recording.2023-11-30.at.2.26.42.PM.mov
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Issue found here while testing. Can you fix the code for this case @DylanDylann? More details here. |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.6-2 🚀
|
I don't believe it was a bug per se, however, we resolved an issue that seems to be present since the update of PrivateNotesListPage.js here, where it was added |
Details
Fixed Issues
$ #27634
PROPOSAL: #27634 (comment)
Tests
a. Case 1: User did not have not in report yet
b. Case 2: User already had a note in report
Offline tests
QA Steps
a. Case 1: User did not have not in report yet
b. Case 2: User already had a note in report
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Screencast.from.15-11-2023.18.11.41.webm
Android: mWeb Chrome
Screencast.from.15-11-2023.16.57.26.webm
iOS: Native
iOS: mWeb Safari
Screencast.from.15-11-2023.18.03.45.webm
MacOS: Chrome / Safari
Screencast.from.15-11-2023.15.28.20.webm
MacOS: Desktop
Screencast.from.15-11-2023.17.23.43.webm