{"action":"closed","number":157,"pull_request":{"url":"https://api.github.com/repos/rstudio/shinydashboard/pulls/157","id":85115296,"html_url":"https://github.com/rstudio/shinydashboard/pull/157","diff_url":"https://github.com/rstudio/shinydashboard/pull/157.diff","patch_url":"https://github.com/rstudio/shinydashboard/pull/157.patch","issue_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/157","number":157,"state":"closed","locked":false,"title":"Add ability to restore bookmarked tabs","user":{"login":"wch","id":86978,"avatar_url":"https://avatars.githubusercontent.com/u/86978?v=3","gravatar_id":"","url":"https://api.github.com/users/wch","html_url":"https://github.com/wch","followers_url":"https://api.github.com/users/wch/followers","following_url":"https://api.github.com/users/wch/following{/other_user}","gists_url":"https://api.github.com/users/wch/gists{/gist_id}","starred_url":"https://api.github.com/users/wch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wch/subscriptions","organizations_url":"https://api.github.com/users/wch/orgs","repos_url":"https://api.github.com/users/wch/repos","events_url":"https://api.github.com/users/wch/events{/privacy}","received_events_url":"https://api.github.com/users/wch/received_events","type":"User","site_admin":false},"body":"This closes #152.\r\n\r\nIt adds the ability to restore selected `menuItem`s and `menuSubItem`s in the sidebar if they have a corresponding `tabItem`. However, `menuSubItem`s still don't have the ability to start expanded at this time, so although the tab content will be visible, the `menuSubItem` itself will not be.\r\n\r\nSimple test app:\r\n\r\n```R\r\nlibrary(shiny)\r\n\r\nui <- function(request) {\r\n  sidebar <- dashboardSidebar(\r\n    sidebarMenu(id = \"sidebarmenu\",\r\n      menuItem(\"Dashboard\", tabName = \"dashboard\", icon = icon(\"dashboard\")),\r\n      menuItem(\"Subitems\",\r\n        menuSubItem(\"Subitem 1\", \"subitem1\"),\r\n        menuSubItem(\"Subitem 2\", \"subitem2\")\r\n      ),\r\n      menuItem(\"Widgets\", icon = icon(\"th\"), tabName = \"widgets\",\r\n               badgeLabel = \"new\", badgeColor = \"green\"),\r\n      bookmarkButton()\r\n    )\r\n  )\r\n  \r\n  body <- dashboardBody(\r\n    tabItems(\r\n      tabItem(tabName = \"dashboard\",\r\n        h2(\"Dashboard tab content\")\r\n      ),\r\n      tabItem(tabName = \"subitem1\",\r\n        h2(\"Subitem 1 tab content\")\r\n      ),\r\n      tabItem(tabName = \"subitem2\",\r\n        h2(\"Subitem 2 tab content\")\r\n      ),\r\n  \r\n      tabItem(tabName = \"widgets\",\r\n        h2(\"Widgets tab content\")\r\n      )\r\n    )\r\n  )\r\n  \r\n  dashboardPage(\r\n    dashboardHeader(title = \"Simple tabs\"),\r\n    sidebar,\r\n    body\r\n  )\r\n}\r\nserver <- function(input, output) { }\r\n\r\nshinyApp(ui, server, enableBookmarking = \"url\")\r\n```","created_at":"2016-09-13T20:03:14Z","updated_at":"2016-09-13T20:04:17Z","closed_at":"2016-09-13T20:04:17Z","merged_at":"2016-09-13T20:04:16Z","merge_commit_sha":"69b809a101fefd02678d8ed899f39dce79804c6a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rstudio/shinydashboard/pulls/157/commits","review_comments_url":"https://api.github.com/repos/rstudio/shinydashboard/pulls/157/comments","review_comment_url":"https://api.github.com/repos/rstudio/shinydashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/157/comments","statuses_url":"https://api.github.com/repos/rstudio/shinydashboard/statuses/5e71794edac4a0a3589df40c66bec6643937dddf","head":{"label":"rstudio:restore-tabs","ref":"restore-tabs","sha":"5e71794edac4a0a3589df40c66bec6643937dddf","user":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"repo":{"id":26501669,"name":"shinydashboard","full_name":"rstudio/shinydashboard","owner":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rstudio/shinydashboard","description":"Shiny Dashboarding framework","fork":false,"url":"https://api.github.com/repos/rstudio/shinydashboard","forks_url":"https://api.github.com/repos/rstudio/shinydashboard/forks","keys_url":"https://api.github.com/repos/rstudio/shinydashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rstudio/shinydashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rstudio/shinydashboard/teams","hooks_url":"https://api.github.com/repos/rstudio/shinydashboard/hooks","issue_events_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/events{/number}","events_url":"https://api.github.com/repos/rstudio/shinydashboard/events","assignees_url":"https://api.github.com/repos/rstudio/shinydashboard/assignees{/user}","branches_url":"https://api.github.com/repos/rstudio/shinydashboard/branches{/branch}","tags_url":"https://api.github.com/repos/rstudio/shinydashboard/tags","blobs_url":"https://api.github.com/repos/rstudio/shinydashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rstudio/shinydashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rstudio/shinydashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/rstudio/shinydashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rstudio/shinydashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/rstudio/shinydashboard/languages","stargazers_url":"https://api.github.com/repos/rstudio/shinydashboard/stargazers","contributors_url":"https://api.github.com/repos/rstudio/shinydashboard/contributors","subscribers_url":"https://api.github.com/repos/rstudio/shinydashboard/subscribers","subscription_url":"https://api.github.com/repos/rstudio/shinydashboard/subscription","commits_url":"https://api.github.com/repos/rstudio/shinydashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/rstudio/shinydashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/rstudio/shinydashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/rstudio/shinydashboard/contents/{+path}","compare_url":"https://api.github.com/repos/rstudio/shinydashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rstudio/shinydashboard/merges","archive_url":"https://api.github.com/repos/rstudio/shinydashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rstudio/shinydashboard/downloads","issues_url":"https://api.github.com/repos/rstudio/shinydashboard/issues{/number}","pulls_url":"https://api.github.com/repos/rstudio/shinydashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/rstudio/shinydashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/rstudio/shinydashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rstudio/shinydashboard/labels{/name}","releases_url":"https://api.github.com/repos/rstudio/shinydashboard/releases{/id}","deployments_url":"https://api.github.com/repos/rstudio/shinydashboard/deployments","created_at":"2014-11-11T19:55:03Z","updated_at":"2016-09-10T17:59:51Z","pushed_at":"2016-09-13T20:04:17Z","git_url":"git://github.com/rstudio/shinydashboard.git","ssh_url":"git@github.com:rstudio/shinydashboard.git","clone_url":"https://github.com/rstudio/shinydashboard.git","svn_url":"https://github.com/rstudio/shinydashboard","homepage":" http://rstudio.github.io/shinydashboard/","size":4293,"stargazers_count":229,"watchers_count":229,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":114,"mirror_url":null,"open_issues_count":70,"forks":114,"open_issues":70,"watchers":229,"default_branch":"master"}},"base":{"label":"rstudio:master","ref":"master","sha":"c28cf864bfebf1f64db4327457f0babff72a3898","user":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"repo":{"id":26501669,"name":"shinydashboard","full_name":"rstudio/shinydashboard","owner":{"login":"rstudio","id":513560,"avatar_url":"https://avatars.githubusercontent.com/u/513560?v=3","gravatar_id":"","url":"https://api.github.com/users/rstudio","html_url":"https://github.com/rstudio","followers_url":"https://api.github.com/users/rstudio/followers","following_url":"https://api.github.com/users/rstudio/following{/other_user}","gists_url":"https://api.github.com/users/rstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/rstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rstudio/subscriptions","organizations_url":"https://api.github.com/users/rstudio/orgs","repos_url":"https://api.github.com/users/rstudio/repos","events_url":"https://api.github.com/users/rstudio/events{/privacy}","received_events_url":"https://api.github.com/users/rstudio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rstudio/shinydashboard","description":"Shiny Dashboarding framework","fork":false,"url":"https://api.github.com/repos/rstudio/shinydashboard","forks_url":"https://api.github.com/repos/rstudio/shinydashboard/forks","keys_url":"https://api.github.com/repos/rstudio/shinydashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rstudio/shinydashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rstudio/shinydashboard/teams","hooks_url":"https://api.github.com/repos/rstudio/shinydashboard/hooks","issue_events_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/events{/number}","events_url":"https://api.github.com/repos/rstudio/shinydashboard/events","assignees_url":"https://api.github.com/repos/rstudio/shinydashboard/assignees{/user}","branches_url":"https://api.github.com/repos/rstudio/shinydashboard/branches{/branch}","tags_url":"https://api.github.com/repos/rstudio/shinydashboard/tags","blobs_url":"https://api.github.com/repos/rstudio/shinydashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rstudio/shinydashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rstudio/shinydashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/rstudio/shinydashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rstudio/shinydashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/rstudio/shinydashboard/languages","stargazers_url":"https://api.github.com/repos/rstudio/shinydashboard/stargazers","contributors_url":"https://api.github.com/repos/rstudio/shinydashboard/contributors","subscribers_url":"https://api.github.com/repos/rstudio/shinydashboard/subscribers","subscription_url":"https://api.github.com/repos/rstudio/shinydashboard/subscription","commits_url":"https://api.github.com/repos/rstudio/shinydashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/rstudio/shinydashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/rstudio/shinydashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/rstudio/shinydashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/rstudio/shinydashboard/contents/{+path}","compare_url":"https://api.github.com/repos/rstudio/shinydashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rstudio/shinydashboard/merges","archive_url":"https://api.github.com/repos/rstudio/shinydashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rstudio/shinydashboard/downloads","issues_url":"https://api.github.com/repos/rstudio/shinydashboard/issues{/number}","pulls_url":"https://api.github.com/repos/rstudio/shinydashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/rstudio/shinydashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/rstudio/shinydashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rstudio/shinydashboard/labels{/name}","releases_url":"https://api.github.com/repos/rstudio/shinydashboard/releases{/id}","deployments_url":"https://api.github.com/repos/rstudio/shinydashboard/deployments","created_at":"2014-11-11T19:55:03Z","updated_at":"2016-09-10T17:59:51Z","pushed_at":"2016-09-13T20:04:17Z","git_url":"git://github.com/rstudio/shinydashboard.git","ssh_url":"git@github.com:rstudio/shinydashboard.git","clone_url":"https://github.com/rstudio/shinydashboard.git","svn_url":"https://github.com/rstudio/shinydashboard","homepage":" http://rstudio.github.io/shinydashboard/","size":4293,"stargazers_count":229,"watchers_count":229,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":114,"mirror_url":null,"open_issues_count":70,"forks":114,"open_issues":70,"watchers":229,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rstudio/shinydashboard/pulls/157"},"html":{"href":"https://github.com/rstudio/shinydashboard/pull/157"},"issue":{"href":"https://api.github.com/repos/rstudio/shinydashboard/issues/157"},"comments":{"href":"https://api.github.com/repos/rstudio/shinydashboard/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/rstudio/shinydashboard/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/rstudio/shinydashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rstudio/shinydashboard/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/rstudio/shinydashboard/statuses/5e71794edac4a0a3589df40c66bec6643937dddf"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"wch","id":86978,"avatar_url":"https://avatars.githubusercontent.com/u/86978?v=3","gravatar_id":"","url":"https://api.github.com/users/wch","html_url":"https://github.com/wch","followers_url":"https://api.github.com/users/wch/followers","following_url":"https://api.github.com/users/wch/following{/other_user}","gists_url":"https://api.github.com/users/wch/gists{/gist_id}","starred_url":"https://api.github.com/users/wch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wch/subscriptions","organizations_url":"https://api.github.com/users/wch/orgs","repos_url":"https://api.github.com/users/wch/repos","events_url":"https://api.github.com/users/wch/events{/privacy}","received_events_url":"https://api.github.com/users/wch/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":146,"deletions":6,"changed_files":2}}
{"actor":{"display_login":"wch"}}