-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from salesforce/release-assistants
CSS for releasing Assistants
- Loading branch information
Showing
10 changed files
with
91 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
<div id="<%= dom_id assistant %>" class="w-full"> | ||
<!-- Assistant Name Heading --> | ||
<!-- User Prompt --> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Description</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="10" disabled><%= assistant.description %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Quip URL</strong> | ||
<p class="text-gray-700"><%= assistant.quip_url %></p> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Confluence Spaces</strong> | ||
<p class="text-gray-700"><%= assistant.confluence_spaces %></p> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Libraries</strong> | ||
<p class="text-gray-700"><%= assistant.libraries %></p> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Input</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="10" disabled><%= assistant.input %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Output</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="10" disabled><%= assistant.output %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Instructions</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="10" disabled><%= assistant.instructions %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-lg font-semibold text-gray-800 mb-2">Context</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="10" disabled><%= assistant.context %></textarea> | ||
</div> | ||
<% cache assistant do %> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Description</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="5" disabled><%= assistant.description %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Quip URL</strong> | ||
<p class="text-gray-700"><%= assistant.quip_url %></p> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Confluence Spaces</strong> | ||
<p class="text-gray-700"><%= assistant.confluence_spaces %></p> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Libraries</strong> | ||
<p class="text-gray-700"><%= assistant.libraries %></p> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Input</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="5" disabled><%= assistant.input %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Output</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="5" disabled><%= assistant.output %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Instructions</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="5" disabled><%= assistant.instructions %></textarea> | ||
</div> | ||
<div class="my-5"> | ||
<strong class="block text-xl font-semibold text-gray-800 mb-2">Context</strong> | ||
<textarea class="w-full p-3 border border-gray-300 rounded-lg bg-gray-100 text-gray-700" rows="5" disabled><%= assistant.context %></textarea> | ||
</div> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
<div class=""> | ||
<h1 class="font-bold text-4xl">Hello, I am the <span class="bg-stone-800 text-amber-300 px-2 py-1 rounded"><%= @chat.assistant.name %></span> assistant. </h1> | ||
|
||
<!-- Breadcrumbs --> | ||
<nav class="mb-4"> | ||
<ul class="flex space-x-2 text-gray-600"> | ||
<li> | ||
<%= link_to "Assistants", assistants_path, class: "text-sky-500 hover:text-sky-800" %> | ||
</li> | ||
<li>/</li> | ||
<li> | ||
<%= link_to @chat.assistant.name, assistant_path(@chat.assistant), class: "text-sky-500 hover:text-sky-800" %> | ||
</li> | ||
</ul> | ||
</nav> | ||
<h1 class="font-bold text-4xl">Hello, I am the <span class="bg-gray-800 text-sky-300 px-2 py-1 rounded-lg"><%= @chat.assistant.name %></span> assistant. </h1> | ||
<%= render "form", chat: @chat, assistant: @chat.assistant %> | ||
<%= link_to "Back to chats", chats_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-300 inline-block font-medium" %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters