Skip to content

Commit 8661748

Browse files
authored
update for new settings panel (#347)
* update for new settings panel
1 parent d6b027b commit 8661748

14 files changed

Lines changed: 26 additions & 40 deletions

File tree

extensions/chat-with-content/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ As a Posit Connect administrator, you need to configure the environment for this
2121

2222
1. **Publish the Extension**: Publish this application to Posit Connect.
2323

24-
2. **Configure Environment Variables**: In the "Vars" pane of the content settings, you need to set environment variables to configure the LLM provider. This extension uses the `chatlas` library, which supports various LLM providers like OpenAI, Azure OpenAI, Google Gemini, Anthropic, and Anthropic on AWS Bedrock.
24+
2. **Configure Environment Variables**: In the content settings, set the following environment variables to configure the LLM provider. This extension uses the `chatlas` library, which supports various LLM providers like OpenAI, Azure OpenAI, Google Gemini, Anthropic, and Anthropic on AWS Bedrock.
2525

2626
Set `CHATLAS_CHAT_PROVIDER_MODEL` to specify the provider and model in the format `provider/model`. You also need to provide the API key for the chosen service.
2727

@@ -52,7 +52,7 @@ As a Posit Connect administrator, you need to configure the environment for this
5252

5353
The application uses the [botocore](https://botocore.amazonaws.com/v1/documentation/api/latest/reference/credentials.html) credential chain for AWS authentication. If the Connect server is running on an EC2 instance with an IAM role that grants access to Bedrock, credentials are automatically detected and no configuration is needed. In this case, the application uses the `us.anthropic.claude-sonnet-4-20250514-v1:0` model by default.
5454

55-
To use Bedrock without an IAM role, set the standard AWS environment variables in the "Vars" pane:
55+
To use Bedrock without an IAM role, set the following environment variables in the content settings:
5656

5757
- `AWS_ACCESS_KEY_ID`: `<your-aws-access-key>`
5858
- `AWS_SECRET_ACCESS_KEY`: `<your-aws-secret-key>` (Set this as a secret)
@@ -61,7 +61,7 @@ As a Posit Connect administrator, you need to configure the environment for this
6161

6262
For more details on supported providers and their arguments, see the [chatlas documentation](https://posit-dev.github.io/chatlas/reference/ChatAuto.html).
6363

64-
3. **Enable Visitor API Key Integration**: This extension requires access to the Connect API on behalf of the visiting user to list their available content. In the "Access" pane of the content settings, add a "Connect Visitor API Key" integration.
64+
3. **Enable Visitor API Key Integration**: This extension requires access to the Connect API on behalf of the visiting user to list their available content. In the content settings, add a "Connect Visitor API Key" integration.
6565

6666
### User Setup
6767

extensions/chat-with-content/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def fetch_connect_content_list(client: connect.Client):
126126
ui.div(
127127
ui.HTML(
128128
"This app requires the <code>CHATLAS_CHAT_PROVIDER_MODEL</code> environment variable to be "
129-
"set along with an LLM API Key in the content access panel. Please set them in your environment before running the app. "
129+
"set along with an LLM API Key in the content settings. Please set them in your environment before running the app. "
130130
'See the <a href="https://posit-dev.github.io/chatlas/reference/ChatAuto.html" class="setup-link" target="_blank" rel="noopener">documentation</a> for more details on which arguments can be set for each Chatlas provider.'
131131
),
132132
class_="setup-description",
@@ -146,7 +146,7 @@ def fetch_connect_content_list(client: connect.Client):
146146
),
147147
ui.h2("Connect Visitor API Key", class_="setup-section-title"),
148148
ui.div(
149-
"Before you are able to use this app, you need to add a Connect Visitor API Key integration in the access panel.",
149+
"Before you are able to use this app, you need to add a Connect Visitor API Key integration in the content settings.",
150150
class_="setup-description",
151151
),
152152
class_="setup-card",

extensions/chat-with-content/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"tags": ["llm", "shiny", "chat", "python"],
2828
"minimumConnectVersion": "2025.04.0",
2929
"requiredFeatures": ["OAuth Integrations"],
30-
"version": "0.0.5"
30+
"version": "0.0.6"
3131
},
3232
"files": {
3333
"requirements.txt": {
@@ -37,10 +37,10 @@
3737
"checksum": "693ec79eaa892babde62587aaacf0d8b"
3838
},
3939
"README.md": {
40-
"checksum": "d41d8cd98f00b204e9800998ecf8427e"
40+
"checksum": "7b072eef923c062a0bf1667dde6c2b95"
4141
},
4242
"app.py": {
43-
"checksum": "c004da6cd26d590b19bc0a2efd486ddf"
43+
"checksum": "74b2cad1b559b06c306a1ee44ce00185"
4444
},
4545
"helpers.py": {
4646
"checksum": "b18f4bc0072b6e47864670a3174b0cea"

extensions/content-health-monitor/content_health_utils.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,9 @@ def get_env_var(var_name, state, description=""):
7878

7979
f"<h2>Step 2: Configure this report</h2>"
8080
f"{one_tab}• Return to this report<br>"
81-
f"{one_tab}• Click the <b>gear icon</b> at the top right of the screen to open <b>Content Settings</b><br>"
82-
f"{one_tab}<img src=\"images/settings-gear-icon.png\" alt=\"Content Settings button\" style=\"max-width: 30%; margin: 10px 0 10px 0; border: 1px solid #ddd;\"><br>"
83-
f"{one_tab}• Click the <b>Vars</b> tab<br>"
84-
f"{one_tab}• In the <b>Name</b> field enter <code>{var_name}</code><br>"
85-
f"{one_tab}• In the <b>Value</b> field paste the full address you copied in the previous step<br>"
86-
f"{one_tab}• It should look like the example below<br>"
87-
f"{one_tab}<img src=\"images/vars.png\" alt=\"Environment Variables tab\" style=\"max-width: 30%; margin: 10px 0 10px 0; border: 1px solid #ddd;\"><br>"
88-
f"{one_tab}• Click <b>Add Variable</b><br>"
89-
f"{one_tab}• Click <b>Save</b> at the top of the screen to save your changes<br><br>"
81+
f"{one_tab}• Open the content settings for this report<br>"
82+
f"{one_tab}• Set the environment variable <code>{var_name}</code> to the URL you copied in the previous step<br>"
83+
f"{one_tab}• Save your changes<br><br>"
9084

9185
f"<h2>Step 3: Run the report to execute the health check</h2>"
9286
f"{one_tab}• Click the <b>Refresh Report</b> button at the top right to run a health check against the monitored content<br>"
@@ -153,7 +147,7 @@ def extract_guid(input_string):
153147
f"The URL should contain a GUID like: <code>1d97c1ff-e56c-4074-906f-cb3557685b75</code><br><br>"
154148
f"The URL provided is: <a href=\"{input_string}\" target=\"_blank\" rel=\"noopener noreferrer\">{input_string}</a><br><br>"
155149
f"Please update your environment variable with a valid a URL containing a GUID.<br><br>"
156-
f"Or copy the GUID from the bottom of the Info tab. See the <a href=\"https://docs.posit.co/connect/user/content-settings/\" target=\"_blank\" rel=\"noopener noreferrer\">Connect Content Settings User Guide</a> instructions for more information.<br><br>"
150+
f"Or copy the GUID from the content settings. See the <a href=\"https://docs.posit.co/connect/user/content-settings/\" target=\"_blank\" rel=\"noopener noreferrer\">Connect Content Settings User Guide</a> for more information.<br><br>"
157151
)
158152
return input_string, error_message
159153

@@ -163,7 +157,7 @@ def extract_guid(input_string):
163157
f"A valid GUID looks like: <code>1d97c1ff-e56c-4074-906f-cb3557685b75</code><br><br>"
164158
f"The provided value was: <code>{input_string}</code><br><br>"
165159
f"Please update your environment variable with a valid GUID or a URL containing a GUID.<br><br>"
166-
f"The GUID can be found at the bottom of the Info tab. See the <a href=\"https://docs.posit.co/connect/user/content-settings/\" target=\"_blank\" rel=\"noopener noreferrer\">Connect Content Settings User Guide</a> instructions for more information.<br><br>"
160+
f"The GUID can be found in the content settings. See the <a href=\"https://docs.posit.co/connect/user/content-settings/\" target=\"_blank\" rel=\"noopener noreferrer\">Connect Content Settings User Guide</a> for more information.<br><br>"
167161
)
168162
return input_string, error_message
169163

-9.63 KB
Binary file not shown.
-25.9 KB
Binary file not shown.

extensions/content-health-monitor/manifest.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"category": "extension",
1313
"tags": [],
1414
"minimumConnectVersion": "2025.04.0",
15-
"version": "1.0.0"
15+
"version": "1.0.1"
1616
},
1717
"environment": {
1818
"python": {
@@ -44,13 +44,7 @@
4444
"checksum": "d108f54df865a66e2ac54a7fb3ac9772"
4545
},
4646
"content_health_utils.py": {
47-
"checksum": "5b7c8db239c4b9e0782060b1172b2456"
48-
},
49-
"images/vars.png": {
50-
"checksum": "9840b32e4adec7d5a3c70bb3373a63bb"
51-
},
52-
"images/settings-gear-icon.png": {
53-
"checksum": "e2bc43263eb8a9179b6e0e5ab3e22450"
47+
"checksum": "a7ffc1f7258a95b79a07032de96bac4d"
5448
},
5549
"images/address-bar.png": {
5650
"checksum": "993cc8f97996c68f30527abbcc63cf3c"

extensions/publisher-command-center/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
After deploying **Publisher Command Center**, you'll need to add a Visitor API Key integration.
88

9-
In Posit Connect go to the app's control panel on the right of the screen, in
10-
the Access tab, click **"Add integration"**, then select a **Visitor API Key**
11-
integration.
9+
In the content settings, add a **Visitor API Key** integration.
1210

1311
If you don't see one in the list, an administrator must enable this feature on your Connect server.
1412
See the [Admin Guide](https://docs.posit.co/connect/admin/integrations/oauth-integrations/connect/) for setup instructions.

extensions/publisher-command-center/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"homepage": "https://github.com/posit-dev/connect-extensions/tree/main/extensions/publisher-command-center",
2525
"minimumConnectVersion": "2025.04.0",
2626
"requiredFeatures": ["API Publishing", "OAuth Integrations"],
27-
"version": "0.0.6"
27+
"version": "0.0.7"
2828
},
2929
"files": {
3030
"requirements.txt": {

extensions/simple-shiny-chat-with-mcp/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Set the appropriate API key for your chosen provider:
4040
1. **Minimum Connect Version**: 2025.04.0 or later
4141
2. **Minimum Python Version**: 3.10 or later
4242
3. **OAuth Integrations**: Must be enabled on your Connect server
43-
4. **Connect Visitor API Key**: This extension requires access to the Connect API on behalf of the visiting user to list their available content. In the "Access" pane of the content settings, add a "Connect Visitor API Key" integration.
43+
4. **Connect Visitor API Key**: This extension requires access to the Connect API on behalf of the visiting user to list their available content. In the content settings, add a "Connect Visitor API Key" integration.
4444

4545
## Setup Examples
4646

@@ -79,7 +79,7 @@ Deploy this extension to your Connect server with the required environment varia
7979

8080
### 2. Configure Access
8181
In the Connect dashboard:
82-
1. Navigate to the content access panel
82+
1. Open the content settings
8383
2. Add a "Connect Visitor API Key" integration
8484
3. This enables the chat application to authenticate with MCP servers
8585

0 commit comments

Comments
 (0)