refactor(statmodel): Put conditional logic in backend for comparison matrices#129
refactor(statmodel): Put conditional logic in backend for comparison matrices#129tonywu1999 merged 1 commit intodevelfrom
Conversation
WalkthroughRefactors contrast panel UI rendering from static conditional panels to dynamic rendering via a new Changes
Sequence DiagramsequenceDiagram
autonumber
actor User
participant Shiny as Shiny Server
participant Handler as get_contrast_panel_ui()
participant Builder as Panel Builder<br/>(build_*_panel)
participant UI as Rendered Panel
User->>Shiny: Select contrast_mode<br/>(custom/all_one/all_pair/custom_np)
activate Shiny
Shiny->>Handler: Call get_contrast_panel_ui(mode, ns)
activate Handler
Handler->>Handler: Map mode to builder function
Handler->>Builder: Call matched builder(ns)
activate Builder
Builder->>Builder: Construct tagList with<br/>UI elements (headers,<br/>buttons, inputs)
Builder-->>Handler: Return tagList UI
deactivate Builder
Handler-->>Shiny: Return panel UI
deactivate Handler
Shiny->>UI: Render to dynamic_contrast_panel<br/>output
deactivate Shiny
UI-->>User: Display appropriate<br/>contrast panel
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (7)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. 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. Comment |
|
Failed to generate code suggestions for PR |
Summary by CodeRabbit
New Features
Tests
✏️ Tip: You can customize this high-level summary in your review settings.