Change copy about the relationship of a notebook and secrets (#2575)

This commit is contained in:
Hugo Baraúna 2024-04-19 10:45:32 -03:00 committed by GitHub
parent 27c72f564f
commit f7728c6859
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 14 deletions

View file

@ -89,9 +89,8 @@ defmodule LivebookWeb.Hub.Edit.PersonalComponent do
</h2>
<p class="text-gray-700">
Secrets are a safe way to share credentials and tokens with notebooks.
They are often used by Smart cells and can be read as
environment variables using the <code>LB_</code> prefix.
Secrets are a safe way to allow notebooks to access
credentials and tokens.
</p>
<.live_component

View file

@ -162,10 +162,8 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
</h2>
<p class="text-gray-700">
Secrets are a safe way to share credentials and tokens with notebooks
across your whole team.
They are often used by Smart cells and can be read as
environment variables using the <code>LB_</code> prefix.
Secrets are a safe way to allow notebooks to access
credentials and tokens.
</p>
<.live_component

View file

@ -187,7 +187,7 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do
<div class="mx-auto">
<div class="rounded-lg bg-blue-600 py-1 px-4 shadow-sm">
<div class="flex flex-wrap items-center justify-between">
<div class="flex w-0 flex-1 items-center">
<div class="flex w-0 flex-1 items-center pr-1">
<.remix_icon
icon="error-warning-fill"
class="align-middle text-2xl flex text-gray-100 rounded-lg py-2"
@ -195,7 +195,7 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do
<span class="ml-2 text-sm font-normal text-gray-100">
There is a secret named
<span class="font-semibold text-white"><%= @secret.name %></span>
in <%= hub_label(@hub) %>. Allow this session to access it?
in the <%= hub_label(@hub) %> workspace. Allow this notebook to access it?
</span>
</div>
<.button

View file

@ -47,7 +47,7 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
<%= if @hub_secrets == [] do %>
No secrets stored in this hub so far
<% else %>
Toggle to share with this session
Toggle to allow access to a secret
<% end %>
</span>
</div>
@ -195,10 +195,10 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
class="tooltip bottom-left"
data-tooltip={
~S'''
Secrets are a safe way to share credentials
and tokens with notebooks. They are often
shared with Smart cells and can be read as
environment variables using the LB_ prefix.
Secrets are a safe way to allow notebooks
to access credentials and tokens.
Your notebook can read them as environment
variables using the LB_ prefix.
'''
}
>