Skip to content

Commit

Permalink
add additional information regarding Populate, Render, and DESCRIPTIO…
Browse files Browse the repository at this point in the history
…N fields in form
  • Loading branch information
LiNk-NY committed May 13, 2024
1 parent 5a3bcfa commit 16c4f05
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 6 deletions.
48 changes: 42 additions & 6 deletions R/BiocWorkshopSubmit.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@ BiocWorkshopSubmit <- function(...) {
id = "prepop",
textInput(
inputId = "prepop",
label = "Existing GitHub Repository",
label = labelFormat(
"Existing GitHub Repository",
paste0(
"Pre-populate form with existing",
" workshop information from a",
" GitHub repository"
)
),
placeholder = "username/repository"
),
actionButton(
Expand Down Expand Up @@ -118,12 +125,19 @@ BiocWorkshopSubmit <- function(...) {
"description",
labelFormat(
"Description",
"A short secondary title, e.g., Integration of Multi-'Omics Experiments in Bioconductor"
)
paste0(
"Description field in the",
" DESCRIPTION file"
)
),
placeholder = "A short secondary title"
),
textInput(
"gitrepo",
label = "Git Repository URL",
labelFormat(
"GitHub Repository URL",
"Currently, only GitHub URLs supported"
),
placeholder = "https://github.com/username/repository"
),
textInput(
Expand All @@ -138,7 +152,7 @@ BiocWorkshopSubmit <- function(...) {
"url",
label = labelFormat(
"Container URL",
"URL of the container image, e.g., ghcr.io/username/repo"
"URL field in the DESCRIPTION file"
),
placeholder = "ghcr.io/username/repo"
),
Expand Down Expand Up @@ -170,7 +184,17 @@ BiocWorkshopSubmit <- function(...) {
"https://gist.githubusercontent.com/user/repo/vignettes/workshop.Rmd"
)
),
actionButton("render", "Render", class = "btn-primary")
actionButton("render", "Render", class = "btn-primary"),
bslib::tooltip(
bsicons::bs_icon(
"question-circle",
title = paste0(
"Generate the GitHub issue comment",
" text for workshop submission"
)
),
"Render"
)
),
hr(),
div(
Expand Down Expand Up @@ -204,6 +228,18 @@ BiocWorkshopSubmit <- function(...) {
"post", "Create Issue", icon("paper-plane"),
style = .ISSUE_BTN_CSS,
class = "btn-danger"
),
bslib::tooltip(
bsicons::bs_icon(
"question-circle",
title = paste0(
"Create a new issue in the",
" workshop-contributions",
" repository with the rendered",
" content"
)
),
"Create Issue"
)
)
),
Expand Down
11 changes: 11 additions & 0 deletions R/about.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ aboutPanel <- function() {
"https://github.com/Bioconductor/BiocWorkshopSubmit",
href="https://github.com/Bioconductor/BiocWorkshopSubmit"
)),
br(),
p(
strong("Note:"),
" Some tooltips make references to the workshop ",
code("DESCRIPTION"), " file.",
" The ", code("Populate"),
" button will make use of information from the",
" referenced fields to populate the issue template. Using a",
code("DESCRIPTION"), " file is the preferred way to declare",
" workshop dependencies and to pre-populate the form."
),
hr(),
"<details style='margin-bottom:10px;'>", "<summary>",
"&#9654; Session Info",
Expand Down

0 comments on commit 16c4f05

Please sign in to comment.