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> </h2>
<p class="text-gray-700"> <p class="text-gray-700">
Secrets are a safe way to share credentials and tokens with notebooks. Secrets are a safe way to allow notebooks to access
They are often used by Smart cells and can be read as credentials and tokens.
environment variables using the <code>LB_</code> prefix.
</p> </p>
<.live_component <.live_component

View file

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

View file

@ -187,7 +187,7 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do
<div class="mx-auto"> <div class="mx-auto">
<div class="rounded-lg bg-blue-600 py-1 px-4 shadow-sm"> <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 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 <.remix_icon
icon="error-warning-fill" icon="error-warning-fill"
class="align-middle text-2xl flex text-gray-100 rounded-lg py-2" 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"> <span class="ml-2 text-sm font-normal text-gray-100">
There is a secret named There is a secret named
<span class="font-semibold text-white"><%= @secret.name %></span> <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> </span>
</div> </div>
<.button <.button

View file

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