-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: adds FullPageNotFoundView view for completed task #26634
Fix: adds FullPageNotFoundView view for completed task #26634
Conversation
@eVoloshchak Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
uploading videos shortly |
I've used this error message notOpen: 'Only open task can be edited', Please let me know if this needs to be changed |
I think it should be |
There are three states for task - open, completed and canceled. I will ask on slack what message to show here |
Right, the task can be cancelled also |
I have changed the condition to - If we are showing that task is not editable, first reason should be closed task and then if the user has permission to edit. The code that was there before, didn't handle this well |
…tps://github.com/BhuvaneshPatil/App into 22451-disallow-changing-title-for-completed-task
Note - I messed up while resolving conflicts that's why changed the base branch to other branch and then again to master |
^^ @thienlnam We are waiting for reply here - |
I was able to solve to solve this bug, posting solution. |
^^ @eVoloshchak updated the code. |
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.
LGTM
^^ @thienlnam |
Approving, but holding for the merge freeze |
@thienlnam Thank you |
…sallow-changing-title-for-completed-task
code is breaking after changes, checking it. |
@thienlnam Safe to merge |
Looks good, thanks! |
Congrats, that’s your 5th PR merged! 🎉 Do you know about the ContributorPlus role? It’s an opportunity to earn more in the Expensify Open Source community. Keep up the great work - thanks! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.69-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.69-2 🚀
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 1.3.70-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.70-8 🚀
|
Details
We can open the page to edit title, description and assignee of completed task
Fixed Issues
$ #22451
PROPOSAL: #22451 (comment)
Tests
Create a task/ existing task would also work
copy url of task for description
http://localhost:8082/r/<taskId>/description
Complete that task(mark as done)
Paste the URL in browser
We show full page not found view
Similar for title -
http://localhost:8082/r/<taskId>/title
Similar for assignee -
http://localhost:8082/r/<taskId>/assignee
Verify that no errors appear in the JS console
Offline tests
QA Steps
Create a task/ existing task would also work
copy url of task for description
https://staging.new.expensify.com/r/<taskId>/description
Complete that task(mark as done)
Paste the URL in browser
Verify that user is presented with full page not found view
Similar for title -
https://staging.new.expensify.com/r/<taskId>/title
Similar for assignee -
https://staging.new.expensify.com/r/<taskId>/assignee
Verify that no errors appear in the JS console
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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)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
Web
Screen.Recording.2023-09-04.at.9.44.41.AM.mov
Mobile Web - Chrome
Screen.Recording.2023-09-04.at.11.07.17.AM.mov
Mobile Web - Safari
Screen.Recording.2023-09-04.at.10.50.51.AM.mov
Desktop
Screen.Recording.2023-09-04.at.11.18.49.AM.mov
iOS
Screen.Recording.2023-09-04.at.10.42.57.AM.mov
Android
Screen.Recording.2023-09-04.at.9.42.15.AM.mov