Fixes reporter bug where buttons would appear in other tabs when reporter is NULL - #1738
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Scope the reporter-control removal to the current server instance to avoid affecting other instances.
Get a fresh assessment by requesting another Copilot review.
Pull request overview
Fixes reporter UI cleanup when reporter = NULL, with regression tests and NEWS documentation.
Changes:
- Remove reporter controls across module tabs.
- Add end-to-end coverage.
- Document the fix.
File summaries
| File | Summary |
|---|---|
tests/testthat/test-shinytest2-init.R |
Adds coverage for reporter control visibility. |
R/module_teal.R |
Removes reporter controls, but the unscoped selector can affect other ui_teal() instances. |
NEWS.md |
Documents the bug fix. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Unit Tests Summary 1 files 36 suites 2m 40s ⏱️ Results for commit 61f9359. ♻️ This comment has been updated with latest results. |
Unit Test Performance DifferenceAdditional test case details
Results for commit 7dd038b ♻️ This comment has been updated with latest results. |
Code Coverage SummaryDiff against mainResults for commit: 61f9359 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: André Veríssimo <211358+averissimo@users.noreply.github.com>
osenan
left a comment
There was a problem hiding this comment.
Good job! Honestly I do not perceive a visual improvement in the alternative approach
|
@osenan You can see on this video, the menu and "add to report" disappear at the start of the app |
I tried myself both PR versions on my machine, but it is only my perception. By the way, did you forget to add a link to a video? The solution works, here and in the alternative approach, I checked myself it works. |
|
I did @osenan here it is, you can notice that the buttons are rendered in the UI once I refresh the page Any teal app with teal::init(
data = teal.data::teal_data() |> within(IRIS <- iris),
reporter = NULL,
modules = list(
teal::example_module(),
teal::example_module(),
teal::example_module()
)
) |> shiny::runApp()Screencast.From.2026-09-16.14-41-53.mp4 |
Pull Request
Fixes #1727
Alternative approach: #1737
Changes description