Skip to content

Commit 7386f19

Browse files
authored
Adjust add OAuth Integration messaging to be more friendly (#149)
* Change add integration text for cmd center * Change add integration text for metrics dashboard
1 parent 9357067 commit 7386f19

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

extensions/publisher-command-center/src/components/UnauthorizedView.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ const UnauthorizedView = {
5959
m("p", [
6060
"This content uses a ",
6161
m("strong", "Visitor API Key"),
62-
" integration to show users the content they have access to. A compatible integration is displayed below."
62+
" integration to show users the content they have access to.",
63+
" A compatible integration is already available; use it below."
6364
]),
6465
m("p", [
6566
"For more information, see ",
@@ -73,7 +74,7 @@ const UnauthorizedView = {
7374
onclick: () => this.addIntegration(vnode)
7475
}, [
7576
m("i.fas.fa-plus.me-2"),
76-
"Add the ",
77+
"Use the ",
7778
m("strong", vnode.state.integration.title || vnode.state.integration.name || "Connect API"),
7879
" Integration"
7980
])

extensions/usage-metrics-dashboard/app.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ server <- function(input, output, session) {
323323
message <- paste0(
324324
"This content uses a <strong>Visitor API Key</strong> ",
325325
"integration to show users the content they have access to. ",
326-
"A compatible integration is displayed below.",
326+
"A compatible integration is already available; use it below.",
327327
"<br><br>",
328328
"For more information, see ",
329329
"<a href='https://docs.posit.co/connect/user/oauth-integrations/#obtaining-a-visitor-api-key' ",
@@ -358,7 +358,7 @@ server <- function(input, output, session) {
358358

359359
footer <- if (nrow(selected_integration) == 1) {
360360
button_label <- HTML(paste0(
361-
"Add the ",
361+
"Use the ",
362362
"<strong>'",
363363
selected_integration$name,
364364
"'</strong> ",
@@ -367,7 +367,8 @@ server <- function(input, output, session) {
367367
actionButton(
368368
"auto_add_integration",
369369
button_label,
370-
icon = icon("plus")
370+
icon = icon("plus"),
371+
class = "btn btn-primary"
371372
)
372373
} else if (nrow(selected_integration) == 0) {
373374
NULL

0 commit comments

Comments
 (0)