Make reprocess texts more neutral (#2105)

This commit is contained in:
José Valim 2023-07-24 21:52:47 +02:00 committed by GitHub
parent 1c98a2a360
commit 01b2c31659
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View file

@ -189,8 +189,8 @@ defmodule LivebookWeb.AppSessionLive do
class="tooltip left"
data-tooltip={
~S'''
Some inputs have changed since they were last processed.
Click this button to reprocess with latest values.
Some inputs have changed.
Click this button to process with latest values.
'''
}
>

View file

@ -266,11 +266,7 @@ defmodule LivebookWeb.Output.InputComponent do
<.label help={@help}>
<div class="flex items-center justify-between gap-1">
<span><%= @label %></span>
<span
:if={@changed}
class="cursor-pointer tooltip top"
data-tooltip="This input has changed since it was last processed."
>
<span :if={@changed} class="cursor-pointer tooltip top" data-tooltip="This input has changed.">
<.remix_icon icon="error-warning-line text-gray-500" />
</span>
</div>

View file

@ -749,12 +749,12 @@ defmodule LivebookWeb.SessionLiveTest do
{:ok, view, _} = live(conn, ~p"/sessions/#{session.id}")
refute render(view) =~ "This input has changed since it was last processed."
refute render(view) =~ "This input has changed."
Session.set_input_value(session.pid, input.id, 10)
wait_for_session_update(session.pid)
assert render(view) =~ "This input has changed since it was last processed."
assert render(view) =~ "This input has changed."
end
end