-
-
Notifications
You must be signed in to change notification settings - Fork 28
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 barcode screen glitch #2702
base: master
Are you sure you want to change the base?
Conversation
@avazirna I think the code looks good here, but a few points on the PR: 1- This PR is really two meaningful changes (or one change for two big reasons). One is eliminating legacy code that no longer has an execution path, the other is fixing a bug that happens to get fixed when that code is removed. I'd make sure that both of those intents are communicated here. If someone git blames back to this PR, it would be super confusing for them to see that the reason that 80 lines of code and a bunch of views were removed was to fix a bug where a view temporarily flickered and disappeared. 2 - You have the safety story checked but don't provide an explanation on why it's safe. I think that context does exist from our chats (IE: It's clear looking at Shubham's PR that there used to be a meaningful conditional where a bunch of code wasn't activated, and now there isn't), so it's good to include that background info here so a reviewer can see that this code couldn't possibly be used. Also good to confirm that you've tested the new view layouts on the two screens correctly and confirmed that they behave right still after eliminating the view (and needing to re-anchor on a new view) |
@ctsims thanks for the notes, I will update the PR to make sure this removal is well documented. As per the testing, it seems to be working as expected in newer versions of Android, but I still need to test on older versions. |
📝 WalkthroughWalkthroughThe pull request involves removing search-related UI components from multiple files in an Android application. In the XML layout file Sequence DiagramsequenceDiagram
participant UI as User Interface
participant Activity as FormRecordListActivity
participant SearchView as SearchView Component
UI->>Activity: User opens activity
Activity->>SearchView: Initialize search mechanism
Note over Activity, SearchView: Previous search footer and EditText removed
SearchView-->>Activity: Ready for search input
This sequence diagram illustrates the simplified search flow after removing the previous search components, showing a more streamlined approach to search functionality within the activity. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@damagatchi retest this please |
1 similar comment
@damagatchi retest this please |
Summary
This PR fixes an issue with the Case List screen in which a search bar is shown momentarily when the case list is being rendered (see image below).
Context
In versions prior to Android 3.0, the top bar was merely a title bar, it was only capable of holding text so search and navigation related actions (and others) had to be delegated to custom toolbars. CommCare has one such toolbar in case lists, searchfooter, to allow users to filter cases:
Safety Assurance
Safety story
This PR removes obsolete code and it is not expected to cause any regressions. I have had the opportunity to test this on both the minimum and highest versions of Android currently supported by CommCare and there were no issues.