-
-
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 Case detail tab title #2953
base: master
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThe changes introduce a new public method in the Sequence Diagram(s)sequenceDiagram
participant TDV as TabbedDetailView
participant ADP as EntityDetailPagerAdapter
participant D as Detail Object
TDV->>ADP: refresh() calls getPageTitle(position)
ADP->>D: Determine title (compound check)
D-->>ADP: Return evaluated title text
ADP-->>TDV: Return page title
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (2)
✨ Finishing Touches
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 (
|
@@ -59,6 +59,11 @@ public Fragment createFragment(int position) { | |||
return fragment; | |||
} | |||
|
|||
public CharSequence getPageTitle(int position) { |
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.
is there a reason this method is here and not in TabbedDetailView
itself ?
Product Description
This PR fixes an issue in the Case details which causes a mismatch between tab items and their respective content when a display condition is set. The fix is basically to restore a method that was removed during the migration to ViewPager2 that retrieves the title of the page from the visible tabs.
Ticket: https://dimagi.atlassian.net/browse/SAAS-16528
Safety Assurance
Safety story
This was tested locally and with different configurations, all seems fine.
Labels and Review