Skip to content

feat: enable mini apps (devmode only) - #1882

Merged
ivokwee merged 8 commits into
develfrom
feat/enable-mini-apps
Sep 16, 2026
Merged

ivokwee merged 8 commits into
develfrom
feat/enable-mini-apps

Conversation

@ivokwee

@ivokwee ivokwee commented Sep 1, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Wire IDconvert and SmartPrism up to the launchModule()/nav_insert() pattern already used for Qsee/Across, so their Home page tiles actually launch the module on click instead of doing nothing (IDconvert/Prism servers were never attached) or selecting a static pre-rendered panel.
  • Drop the now-redundant static nav_panel_hidden() blocks for IDconvert/Prism from ui.R.
  • Add padding = 0 to Prism's and MOFA's bslib::page_fillable() roots (IDconvert/Qsee already had this) so bslib's default 1rem page padding doesn't render as a thick white border around the module.
  • Fix a crash-on-launch in prism_server.R: get_plotcode()'s eager observe() fired before the client sent back chartbot_user_input, so isolate(input$chartbot_user_input) == "" compared NULL == "", producing logical(0) and an if (argument is of length zero) error that killed the whole session. This was latent since prism_server() was never actually called before this PR.

Test plan

  • Reproduced the crash pre-fix by launching SmartPrism from Home (session disconnected with "Woops! You have been disconnected")
  • Verified the fix with shiny::testServer(prism_server, ...): initial reactive flush and an empty chartbot_user_input both complete without error
  • Manual click-through of IDconvert and SmartPrism tiles from Home in a running app session (DEVMODE=TRUE)

NOTE

This need first playbase PR bigomics/playbase#504 (bridge-ortholog) to be merged.

Home page tiles for IDconvert and SmartPrism previously either did nothing
in production (server gated on DEVMODE) or fell back to selecting a
pre-rendered hidden nav panel. Both are now launched on demand via
launchModule()/nav_insert(), matching the pattern already used for
Qsee and Across:

- server.R: add launch_idconvert()/launch_prism(), register them in
  app_launchers
- launcher_server.R: launch_idconvert/launch_prism handlers now call
  into app_launchers instead of bslib::nav_select() on a static panel
- ui.R: drop the now-redundant static nav_panel_hidden() blocks for
  IDconvert and Prism

Also, while wiring this up:
- prism_ui.R, board_mofa_ui.R: add padding = 0 to their
  bslib::page_fillable() roots (idconvert_ui.R/qsee_ui.R already did
  this) so bslib's default 1rem page padding doesn't show as a thick
  white border
- prism_server.R: fix a crash on first launch -- get_plotcode()'s
  eager observe() ran before the client had sent chartbot_user_input,
  so isolate(input$chartbot_user_input) == "" compared NULL == "" and
  threw "argument is of length zero"; this module's server was never
  actually wired up before now, so the bug was latent
@ivokwee
ivokwee marked this pull request as draft September 1, 2026 19:07
@ivokwee ivokwee changed the title feat: enable IDconvert and SmartPrism as dynamically-launched mini apps feat: enable IDconvert and SmartPrism mini apps Sep 1, 2026
@ivokwee
ivokwee requested review from ESCRI11 and phisanti September 1, 2026 21:39
@ivokwee
ivokwee marked this pull request as ready for review September 2, 2026 11:31
@ivokwee ivokwee changed the title feat: enable IDconvert and SmartPrism mini apps feat: enable IDconvert and SmartPrism mini apps (DEVMODE) Sep 3, 2026
@ivokwee ivokwee changed the title feat: enable IDconvert and SmartPrism mini apps (DEVMODE) feat: enable IDconvert and SmartPrism mini apps (devmode only) Sep 3, 2026
@ivokwee ivokwee changed the title feat: enable IDconvert and SmartPrism mini apps (devmode only) feat: enable mini apps (devmode only) Sep 3, 2026

@ESCRI11 ESCRI11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ivokwee looks good. please move target to devel instead of edgy + solve merge conflicts. after feel free to merge

@ivokwee
ivokwee changed the base branch from edgy to devel September 9, 2026 13:46
@ESCRI11
ESCRI11 self-requested a review September 10, 2026 07:38
ivokwee and others added 3 commits September 16, 2026 18:55
Server-side selectize defaults to maxOptions=1000, silently truncating
the ~1581 species list without this option.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ivokwee
ivokwee merged commit 2a27898 into devel Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants