Skip to content

Conversation

gadenbuie
Copy link
Collaborator

@gadenbuie gadenbuie commented Jul 16, 2024

This PR deprecates card(), card_body() and card_title() from shiny.experimental.

  • card() is now available from shiny.ui.card(), minus the wrapper argument. If we revisit that decision, we'll move forward with the API in shiny.ui.card().

  • feat: Export ui.card_body() #1506 will expose card_body() from shiny.ui. In anticipation, this PR deprecates the experimental version, which is currently a direct import of the unexposed code in shiny.ui.

  • experimental.ui.card_title() is simply a wrapper around a tags.h5(). I feel that leaving a copy in experimental isn't needed.

This leaves the experimental module with only card_image(). I personally feel that this function provides additional value and recently worked on improving its API in bslib. In a future PR (post 1.0 release) we can consider moving this function into shiny.ui.

TODO

@gadenbuie gadenbuie requested a review from schloerke July 16, 2024 21:10
@schloerke schloerke force-pushed the cleanup/experimental-card branch from 3ff0f6b to e89b154 Compare July 17, 2024 04:36
Copy link
Collaborator

@schloerke schloerke left a comment

Choose a reason for hiding this comment

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

LGTM once the card_body PR is merged.

I moved the api-example app changes to that PR

@gadenbuie gadenbuie marked this pull request as ready for review July 17, 2024 15:27
@gadenbuie gadenbuie added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit da6e957 Jul 17, 2024
@gadenbuie gadenbuie deleted the cleanup/experimental-card branch July 17, 2024 16:35
schloerke added a commit that referenced this pull request Jul 17, 2024
* main:
  `shiny.experimental`: Deprecate `card()`, `card_body()` and `card_title()` (#1543)
  Install shinylive assets instead of link
  Use venv for shinylive command line tool
  Use local build of shinylive for building doc site
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