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

Adding app for various tabpanel improvements with shinytest #135

Merged
merged 38 commits into from
Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d25df20
Adding app for PR https://github.com/rstudio/shiny/pull/3315 various …
shalutiwari Apr 13, 2021
ac0ffb1
Added shinycoreci function in shinytest.R
shalutiwari Apr 13, 2021
5b8f619
Removed expected folder
shalutiwari Apr 13, 2021
6570bf8
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
e7bc08a
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
d45a1fd
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
bcbb3e6
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
c7ffc35
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
0f29256
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
5638d10
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
66c4412
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
acc5cbc
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
a04c155
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
ca84d08
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
0d0e938
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
ade06e0
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
7b24321
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
ed60dd4
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
addf23e
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
59c4508
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
b863ff1
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
46fc9b6
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
1511d26
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
cbba937
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
8be1380
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
f633ca5
`sysinfo` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
f25cf9f
`shinytest` Changes - rstudio/shinycoreci@5b8f619
shalutiwari Apr 13, 2021
06a5a70
Merge branch 'gha-5b8f619-2021_04_13_16_14-3.5-Linux' into st-tabpanel
shalutiwari Apr 13, 2021
c5cdf02
Merge branch 'gha-5b8f619-2021_04_13_15_53-3.6-Linux' into st-tabpanel
shalutiwari Apr 13, 2021
1ed9dda
Merge branch 'gha-5b8f619-2021_04_13_15_52-4.0-Linux' into st-tabpanel
shalutiwari Apr 13, 2021
08c7e06
Merge branch 'gha-5b8f619-2021_04_13_16_39-3.4-macOS' into st-tabpanel
shalutiwari Apr 13, 2021
41639ef
Merge branch 'gha-5b8f619-2021_04_13_16_33-3.5-macOS' into st-tabpanel
shalutiwari Apr 13, 2021
de90039
Merge branch 'gha-5b8f619-2021_04_13_15_55-3.6-macOS' into st-tabpanel
shalutiwari Apr 13, 2021
05d55ef
Merge branch 'gha-5b8f619-2021_04_13_15_52-4.0-macOS' into st-tabpanel
shalutiwari Apr 13, 2021
d563fb4
Merge branch 'gha-5b8f619-2021_04_13_16_56-3.4-Windows' into st-tabpanel
shalutiwari Apr 13, 2021
5ddbde2
Merge branch 'gha-5b8f619-2021_04_13_16_48-3.5-Windows' into st-tabpanel
shalutiwari Apr 13, 2021
ce6739e
Merge branch 'gha-5b8f619-2021_04_13_15_57-3.6-Windows' into st-tabpanel
shalutiwari Apr 13, 2021
b74e4ed
Merge branch 'gha-5b8f619-2021_04_13_15_57-4.0-Windows' into st-tabpanel
shalutiwari Apr 13, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions apps/213-tab-panels/app.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#App to test insert tab and insert tab in dropdown Menu.
#Related to https://github.com/rstudio/shiny/pull/3315

library(shiny)
library(bslib)

ui <- fluidPage(
theme = bs_theme(),
sidebarLayout(
sidebarPanel(
actionButton("add", "Add 'Dynamic' tab"),
actionButton("remove", "Remove 'Foo' tab"),
actionButton("addFoo", "Add New 'Foo' tab")
),
mainPanel(
tabsetPanel(
id = "tabs",
tabPanel("Hello", "This is the hello tab"),
tabPanel("Foo", "This is the foo tab"),
navbarMenu(menuName = "Menu",
"Static",
tabPanel("Static 1", "Static 1", value = "s1"),
tabPanel("Static 2", "Static 2", value = "s2")
),
tabPanel("Footest", "This is the footest tab",value = "f")
)
)
)
)
server <- function(input, output, session) {
observeEvent(input$add, {
insertTab(
inputId = "tabs",
tabPanel("Dynamic", "Dynamic"),
target = "s2"
)
})
observeEvent(input$remove, {
removeTab(inputId = "tabs", target = "Foo")
})
observeEvent(input$addFoo, {
insertTab(
inputId = "tabs",
tabPanel("Foo", "This is the new foo tab"),
target = "Menu",
position = "before",
select = TRUE)
})

}

shinyApp(ui, server)
3 changes: 3 additions & 0 deletions apps/213-tab-panels/tests/shinytest.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
shinycoreci::test_shinytest_app()


Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 0,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 0,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 0,
"remove": 0,
"tabs": "Dynamic"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 0,
"remove": 1,
"tabs": "Dynamic"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 1,
"remove": 1,
"tabs": "Foo"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 1,
"remove": 1,
"tabs": "f"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 2,
"addFoo": 1,
"remove": 1,
"tabs": "f"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 2,
"addFoo": 2,
"remove": 1,
"tabs": "Foo"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 2,
"addFoo": 2,
"remove": 2,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 0,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 0,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 0,
"remove": 0,
"tabs": "Dynamic"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 0,
"remove": 1,
"tabs": "Dynamic"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 1,
"remove": 1,
"tabs": "Foo"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 1,
"addFoo": 1,
"remove": 1,
"tabs": "f"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 2,
"addFoo": 1,
"remove": 1,
"tabs": "f"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 2,
"addFoo": 2,
"remove": 1,
"tabs": "Foo"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 2,
"addFoo": 2,
"remove": 2,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 0,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"input": {
"add": 0,
"addFoo": 0,
"remove": 0,
"tabs": "Hello"
},
"output": {

},
"export": {

}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading