-
-
Notifications
You must be signed in to change notification settings - Fork 45
Resolved the file rename issue and matched with master file name #3089
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
Resolved the file rename issue and matched with master file name #3089
Conversation
📝 WalkthroughWalkthroughThis set of changes removes several unused or incorrectly named Android drawable XML resources and updates references to drawable resources throughout the app. Multiple layout files are modified to reference new or corrected drawable names, fixing typos and aligning with updated resource files. Drawable resources for backgrounds, icons, and UI elements are updated to use the correct or newly introduced files, ensuring consistent visual styling. No changes are made to the logic, control flow, or public API; all modifications are limited to resource management and layout configuration. Suggested labels
Suggested reviewers
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
app/res/layout/fragment_connect_delivery_details.xml (1)
202-202: Use drawableEnd or MaterialButtonapp:iconfor RTL support and tinting
The change to the 20px arrow is correct, but usingandroid:drawableRightcan lead to missing RTL support and may not respectapp:iconTint. Consider replacing it with:app:icon="@drawable/ic_connect_arrow_forward_20px" app:iconGravity="textEnd" app:iconTint="@color/cc_brand_color"or at a minimum switch to
android:drawableEndinstead ofdrawableRight.app/res/layout/fragment_connect_job_intro.xml (1)
110-110: Use drawableEnd or MaterialButtonapp:iconfor consistency and RTL
Similar to the delivery details layout, replaceandroid:drawableRightwithandroid:drawableEndor better use MaterialButton’sapp:icon+app:iconGravity="textEnd"+app:iconTintto ensure proper tinting and RTL support.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (18)
app/res/drawable/backup.xml(0 hunks)app/res/drawable/connect_rounded_corner_grey.xml(0 hunks)app/res/drawable/connect_rounded_corner_teslish_blue.xml(0 hunks)app/res/drawable/ic_connect_arrow_forward_24px.xml(0 hunks)app/res/drawable/ic_connect_message_editext_bg_24_border.xml(0 hunks)app/res/drawable/ic_connect_message_receiver_bg.xml(0 hunks)app/res/drawable/ic_connect_message_sender_bg.xml(0 hunks)app/res/drawable/ic_connect_payment_recevied_check.xml(0 hunks)app/res/drawable/shape_border_10px_blue.xml(0 hunks)app/res/layout/connect_payment_item.xml(1 hunks)app/res/layout/fragment_connect_delivery_details.xml(1 hunks)app/res/layout/fragment_connect_job_intro.xml(1 hunks)app/res/layout/fragment_connect_message.xml(1 hunks)app/res/layout/item_channel.xml(1 hunks)app/res/layout/item_chat_left_view.xml(1 hunks)app/res/layout/item_chat_right_view.xml(1 hunks)app/res/menu/menu_connect.xml(1 hunks)app/src/org/commcare/adapters/JobListConnectHomeAppsAdapter.java(1 hunks)
💤 Files with no reviewable changes (9)
- app/res/drawable/shape_border_10px_blue.xml
- app/res/drawable/ic_connect_message_receiver_bg.xml
- app/res/drawable/ic_connect_arrow_forward_24px.xml
- app/res/drawable/connect_rounded_corner_grey.xml
- app/res/drawable/ic_connect_message_editext_bg_24_border.xml
- app/res/drawable/ic_connect_message_sender_bg.xml
- app/res/drawable/backup.xml
- app/res/drawable/ic_connect_payment_recevied_check.xml
- app/res/drawable/connect_rounded_corner_teslish_blue.xml
🔇 Additional comments (8)
app/res/menu/menu_connect.xml (1)
11-11: Confirm updated drawable resource reference
Ensure that the new drawable fileic_backup.xmlexists underapp/res/drawableand matches the intended design. Verify that all other references to the oldbackup.xmlresource have been updated accordingly to prevent missing-resource errors at runtime.app/res/layout/item_chat_right_view.xml (1)
33-33: Consistent background resource update for sender chat bubble.The
android:backgroundattribute has been correctly updated to@drawable/shape_connect_message_sender_bg, replacing the oldic_connect_message_sender_bgand aligning with the new shape-based drawable resource naming.app/res/layout/item_chat_left_view.xml (1)
30-30: Consistent background resource update for receiver chat bubble.The
android:backgroundattribute has been correctly updated to@drawable/shape_connect_message_receiver_bg, replacing the oldic_connect_message_receiver_bgand ensuring consistency with the new shape-based drawable resources.app/res/layout/fragment_connect_message.xml (1)
29-29: Fixed typo in drawable resource reference.The background drawable for
cardMessagehas been corrected from the misspelledic_connect_message_editext_bg_24_bordertoic_connect_message_edittext_bg_24_border, matching the renamed resource file.app/res/layout/connect_payment_item.xml (1)
51-51: Corrected typo in payment received check icon.The
imgReceivedview’sandroid:srchas been updated to@drawable/ic_connect_payment_received_check, fixing the previous misspelling and aligning with the actual drawable resource name.app/res/layout/item_channel.xml (1)
79-86:Details
✅ Verification successful
Approve: Updated background drawable reference
The
tvUnreadCountTextView now correctly uses the renamed@drawable/shape_corner_10dp_blue, aligning the layout with the updated resource files. Please verify thatshape_corner_10dp_blue.xmlis present underres/drawableand that there are no remaining references to the oldshape_border_10px_blue.
🏁 Script executed:
#!/bin/bash # Verify no remnants of the old drawable reference rg -n "shape_border_10px_blue" . # Confirm the new drawable file exists rg -l "shape_corner_10dp_blue.xml" -n res/drawableLength of output: 136
🏁 Script executed:
#!/bin/bash # Locate the new drawable file anywhere in the repository find . -type f -iname "shape_corner_10dp_blue.xml" # Search for any references to it in XML/layout files rg -n "shape_corner_10dp_blue" . # List all drawable directories to confirm the resource path find . -type d | grep -E "res.*/drawable"Length of output: 519
Approve: Updated background drawable reference
- Confirmed new drawable
shape_corner_10dp_blue.xmlexists atapp/res/drawable/shape_corner_10dp_blue.xml.- Layout
app/res/layout/item_channel.xmlcorrectly references it on line 79.- No remaining usages of the old
shape_border_10px_blue.app/src/org/commcare/adapters/JobListConnectHomeAppsAdapter.java (2)
158-163:Details
✅ Verification successful
Verify updated learning-app drawable exists and old references removed
The background was updated toconnect_rounded_corner_tealish_blue. Please confirm the new asset is present and there are no lingering references to the oldconnect_rounded_corner_teslish_blue.
🏁 Script executed:
#!/bin/bash # Ensure no stale learning drawable references remain rg -n "connect_rounded_corner_teslish_blue"Length of output: 43
🏁 Script executed:
#!/bin/bash # Verify the new drawable asset exists and locate any references rg -n "connect_rounded_corner_tealish_blue" fd connect_rounded_corner_tealish_blue --type fLength of output: 299
Drawable Asset Verification Complete
The newconnect_rounded_corner_tealish_blueasset is present atapp/res/drawable/connect_rounded_corner_tealish_blue.xml, and there are no remaining references to the oldconnect_rounded_corner_teslish_blue.• Reference in code:
JobListConnectHomeAppsAdapter.java:159
• Asset file:app/res/drawable/connect_rounded_corner_tealish_blue.xml
164-170:Details
✅ Verification successful
Verify updated delivery-app drawable exists and old references removed
The finished-delivery background was changed toconnect_rounded_corner_lighter_grey. Confirm the drawable file is in place and thatconnect_rounded_corner_greyis no longer referenced anywhere.
🏁 Script executed:
#!/bin/bash # Ensure no stale delivery drawable references remain rg -n "connect_rounded_corner_grey"Length of output: 35
To confirm the new drawable is in place, let’s check for its file in the
res/drawabledirectories:
🏁 Script executed:
#!/bin/bash # Verify the new lighter grey drawable file exists under res/drawable find . -type f | rg "res/.*/connect_rounded_corner_lighter_grey"Length of output: 125
Verified updated delivery-app drawable exists and old references removed
- Found new drawable at
app/res/drawable/connect_rounded_corner_lighter_grey.xml.- No occurrences of the old
connect_rounded_corner_greyreference remain in the codebase.
Labels and Review