Skip to content

Ability to have custom footers #696

Open

Description

@lcolladotor

Is your feature request related to a problem? Please describe.

I might have missed this, but AFAIK there's no way to have custom footer HTML code on iSEE apps. Similar to https://github.com/LieberInstitute/spatialLIBD/blob/devel/inst/app/www/footer.html used internally by spatialLIBD at https://github.com/LieberInstitute/spatialLIBD/blob/aff00dbd3c8deebf377190817f06b2e8ffe03bff/R/app_ui.R#L1197-L1201 that is part of the documentation files spatialLIBD users can customize through spatialLIBD::run_app(docs_path) https://research.libd.org/spatialLIBD/reference/run_app.html.

Describe the solution you'd like

I would like to be able to provide custom footer HTML code to include Google Analytics, clustrmaps, and other info that we could be useful to track number of users for a given app. This information is useful when we need to justify to our finance team why we are spending $ on a shinyapps.io account (or maybe a Posit Connect license in the future).

Our marketing team is also interested in displaying a banner image at the bottom. Likely with a link back to a central page for our institute.

Describe alternatives you've considered

We could have a central page with links to all of our shiny apps and use link click tracking tools, but that won't work if users bookmark specific app URLs.

#681 seems a bit related, but that's custom HTML on the title.

Additional context

We currently have a little over 80 apps on libd.shinyapps.io. My guess is that about a fourth or a third of them are iSEE apps.

Activity

  1. federicomarini commented on Jul 8, 2025

    @federicomarini
    Contributor

    I am experimenting around a bit

    Image

    That would be added just below the uiOutput allPanels, but there might be some better ways also that could validate the entry. The footer = approach you were showing can be a bit fragmented by the way we create the UI elements, that's at least a guess from the top of my head, but I can dig in a bit more.

    And yes, I would also love to document a bit more on the usage/impact :)

  2. federicomarini commented on Jul 8, 2025

    @federicomarini
    Contributor

    I was considering a couple of aspects and just a few logic & logical options.
    In my first draft I came up with

    Image
    • If provided as HTML tags, "as one wishes", renders as is
    • If just a string, enforce it to make it look like a footer
    • If none of them, consider not valid and give no footer

    Looks like...

    iSEE(sce, appFooter = fluidRow(
        shinydashboard::box(
            width = 12L,
            footer = p("This is an example footer for Leo, WITH THE PARAMETER. ",
                       "Possibly a good place to put meaningful trackers and links.",
                       style="text-align: center;")
        )
    ))
    
    
    iSEE(sce, appFooter = list()) # for example...
    
    Image Image Image

    These would BTW work nicely also if iSEE is launched without any object to explore right away.

    Thoughts?

  3. federicomarini commented on Jul 9, 2025

    @federicomarini
    Contributor

    If you want to give it a spin @lcolladotor you can find a working implementation in the branch https://github.com/iSEE/iSEE/tree/footer_adventures, happy to hear back if that would do it 😉

  4. kevinrue commented on Jul 9, 2025

    @kevinrue
    Member

    Catching up. I think Fede is on it. I just wanted to mention that I've implemented custom headers and footers in iSEEindex
    https://isee.github.io/iSEEindex/articles/header.html

    Though admittedly it's for a different purpose!

  5. federicomarini commented on Jul 9, 2025

    @federicomarini
    Contributor

    Purpose might be different but in the end the trick is the same, by allowing any (possibly well written) HTML content to be displayed.
    The only thing I did on top is to simplify "footerify" any content provided as plain text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions