Repository navigation
[No QA] Update ProposalPolice edit timestamp on every substantive edit - #100764
Conversation
The banner was only prepended once because already-bannered comments skipped the edit check. Strip the existing banner on both sides of the comparison, replace it instead of stacking, and refresh the timestamp whenever the proposal actually changed.
|
@mananjadhav 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] |
|
@mananjadhav I don't think we need C+ review here |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 chuckdries has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/chuckdries in version: 9.4.76-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.76-1 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
ProposalPolice prepended an edit-timestamp banner on the first substantive edit, then skipped the edit check on every later edit of that comment. Reviewers therefore kept seeing the time of the first rewrite even after later ones.
This removes that early return. Both sides of the edit comparison have the existing banner stripped so the model grades proposal text against proposal text, and a new banner replaces the old one instead of stacking. The recorded duplicate-check copy is still refreshed on later edits of an already-bannered comment.
Fixed Issues
$ #100731
Tests
Added automated tests.
Offline tests
None.
QA Steps
None.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari