Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML block #154

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

HTML block #154

wants to merge 9 commits into from

Conversation

JohnCoene
Copy link
Member

HTML block output

@JohnCoene
Copy link
Member Author

Example:

devtools::load_all()
library(blockr.data)
library(shiny)

stack <- new_stack(
  data_block,
  select_block,
  head_block,
  html_block
)

ui <- fluidPage(
  "test",
  theme = bslib::bs_theme(5L),
  generate_ui(stack)
)

server <- function(input, output) {
  x <- generate_server(stack)
}

shinyApp(ui, server)

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 47 lines in your changes are missing coverage. Please review.

Comparison is base (286ca7c) 75.81% compared to head (3fd49e6) 74.14%.
Report is 4 commits behind head on main.

Files Patch % Lines
R/block.R 0.00% 45 Missing ⚠️
R/server.R 0.00% 1 Missing ⚠️
R/ui.R 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #154      +/-   ##
==========================================
- Coverage   75.81%   74.14%   -1.67%     
==========================================
  Files          16       16              
  Lines        1790     1845      +55     
==========================================
+ Hits         1357     1368      +11     
- Misses        433      477      +44     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DivadNojnarg
Copy link
Collaborator

How would you build a value box from this block?

test.R Outdated Show resolved Hide resolved
@JohnCoene
Copy link
Member Author

@DivadNojnarg you can try again, it can be made to resemble more like a valuebox~ish (default).

@JohnCoene JohnCoene marked this pull request as draft February 6, 2024 11:50
@JohnCoene
Copy link
Member Author

Converting to draft, there were quite a lot of conflicts to fix and I do not want to run the risk of breaking things now.

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