From ff4e6c95f9795ada174a6482dcdaafb37c92ec24 Mon Sep 17 00:00:00 2001 From: Vadser Date: Wed, 21 Aug 2024 11:35:46 +0200 Subject: [PATCH] Fix dark theme --- app/views/assertions/_assertion.html.erb | 6 +++--- app/views/assertions/_form.html.erb | 8 ++++---- app/views/assertions/index.html.erb | 2 +- app/views/assertions/new.html.erb | 2 +- app/views/compare/index.html.erb | 18 +++++++++--------- app/views/model_versions/_form.html.erb | 8 ++++---- .../model_versions/_model_version.html.erb | 12 ++++++------ app/views/model_versions/edit.html.erb | 2 +- app/views/model_versions/index.html.erb | 2 +- app/views/model_versions/new.html.erb | 2 +- app/views/models/_form.html.erb | 16 ++++++++-------- app/views/models/_model.html.erb | 4 ++-- app/views/models/edit.html.erb | 2 +- app/views/models/index.html.erb | 2 +- app/views/models/new.html.erb | 2 +- app/views/models/show.html.erb | 2 +- app/views/prompts/_form.html.erb | 4 ++-- app/views/prompts/_prompt.html.erb | 4 ++-- app/views/prompts/diff.html.erb | 2 +- app/views/prompts/edit.html.erb | 6 +++--- app/views/prompts/index.html.erb | 4 ++-- app/views/prompts/new.html.erb | 2 +- app/views/prompts/show.html.erb | 4 ++-- .../_test_model_version_run.html.erb | 10 +++++----- .../test_model_version_runs/show.html.erb | 2 +- .../test_results/_test_result.json.jbuilder | 2 +- app/views/test_results/index.html.erb | 2 +- app/views/test_results/show.html.erb | 13 +++++++------ app/views/test_runs/_form.html.erb | 12 ++++++------ app/views/test_runs/_test_run.html.erb | 6 +++--- app/views/test_runs/index.html.erb | 2 +- app/views/test_runs/new.html.erb | 2 +- app/views/test_runs/show.html.erb | 2 +- 33 files changed, 85 insertions(+), 84 deletions(-) diff --git a/app/views/assertions/_assertion.html.erb b/app/views/assertions/_assertion.html.erb index 7f0caaa..cad8b49 100644 --- a/app/views/assertions/_assertion.html.erb +++ b/app/views/assertions/_assertion.html.erb @@ -1,15 +1,15 @@
-

+

Name: <%= assertion.name %>

-

+

Assertion type: <%= assertion.assertion_type.humanize %>

-

+

Value: <%= assertion.value %>

diff --git a/app/views/assertions/_form.html.erb b/app/views/assertions/_form.html.erb index 162ed87..3f32675 100644 --- a/app/views/assertions/_form.html.erb +++ b/app/views/assertions/_form.html.erb @@ -12,22 +12,22 @@ <% end %>
- <%= form.label :name %> + <%= form.label :name, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_field :name, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :assertion_type %> + <%= form.label :assertion_type, class: "text-gray-900 dark:text-gray-100" %> <%= form.select :assertion_type, Assertion.assertion_types.keys.map { |w| [w.humanize, w] }, { include_blank: false }, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full", data: { action: "change->assertion#toggleModelVersion" } %>
- <%= form.label 'Select model version' %> + <%= form.label 'Select model version', class: "text-gray-900 dark:text-gray-100" %> <%= form.collection_select :model_version_id, @model_versions, :id, :full_name, { include_blank: true }, class: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" %>
- <%= form.label :value, "Write each expression on a separate row", 'data-assertion-target' => "valueLabel" %> + <%= form.label :value, "Write each expression on a separate row", 'data-assertion-target' => "valueLabel", class: "text-gray-900 dark:text-gray-100" %> <%= form.text_area :value, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
diff --git a/app/views/assertions/index.html.erb b/app/views/assertions/index.html.erb index c5360fa..e1fef0b 100644 --- a/app/views/assertions/index.html.erb +++ b/app/views/assertions/index.html.erb @@ -4,7 +4,7 @@ <% content_for :title, "Assertions" %>
-

Assertions

+

Assertions

<%= link_to "New assertion", new_assertion_path, class: "px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" %>
diff --git a/app/views/assertions/new.html.erb b/app/views/assertions/new.html.erb index db93d6c..7a16018 100644 --- a/app/views/assertions/new.html.erb +++ b/app/views/assertions/new.html.erb @@ -1,5 +1,5 @@
-

New assertion

+

New assertion

<%= render "form", assertion: @assertion %> diff --git a/app/views/compare/index.html.erb b/app/views/compare/index.html.erb index 6bf2477..f16385f 100644 --- a/app/views/compare/index.html.erb +++ b/app/views/compare/index.html.erb @@ -2,43 +2,43 @@
<% if @prompts.empty? || @model_versions.empty? %>
-

No prompts or model versions available.
Please create prompts and model versions to perform this action.

+

No prompts or model versions available.
Please create prompts and model versions to perform this action.

<% else %>
- + <%= select_tag 'prompt-id-select', grouped_options_for_select(options_with_versions(@prompts, @ancestor_prompts)), class: 'form-control w-full px-3 py-2 border border-gray-300 rounded-md mb-4', id: 'prompt-id-select' %>
- + <%= select_tag 'test-run-select', '', class: 'form-control w-full px-3 py-2 border border-gray-300 rounded-md mb-4', id: 'test-run-select' %>
-

Select Model Version for Left Panel

+

Select Model Version for Left Panel

<% if @model_versions.any? %> <%= select_tag 'left-panel-model', options_from_collection_for_select(@model_versions, 'id', 'full_name'), prompt: 'Select a model version', class: 'form-control w-full px-3 py-2 border border-gray-300 rounded-md' %> -
+
<% else %>
-

No model versions available.
Please create model versions to perform this action.

+

No model versions available.
Please create model versions to perform this action.

<% end %>
-

Select Model Version for Right Panel

+

Select Model Version for Right Panel

<% if @model_versions.any? %> <%= select_tag 'right-panel-model', options_from_collection_for_select(@model_versions, 'id', 'full_name'), prompt: 'Select a model version', class: 'form-control w-full px-3 py-2 border border-gray-300 rounded-md' %> -
+
<% else %>
-

No model versions available.
Please create model versions to perform this action.

+

No model versions available.
Please create model versions to perform this action.

<% end %>
diff --git a/app/views/model_versions/_form.html.erb b/app/views/model_versions/_form.html.erb index c831d6e..76e5c1c 100644 --- a/app/views/model_versions/_form.html.erb +++ b/app/views/model_versions/_form.html.erb @@ -12,22 +12,22 @@ <% end %>
- <%= form.label :configuration %> + <%= form.label :configuration, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_field :configuration, value: model_version&.configuration ? JSON::dump(model_version&.configuration) : default_configuration(@model.executor_type), class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :description %> + <%= form.label :description, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_area :description, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :built_on %> + <%= form.label :built_on, class: "text-gray-900 dark:text-gray-100" %> <%= form.date_field :built_on, value: model_version&.built_on || Date.today, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :build_name %> + <%= form.label :build_name, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_field :build_name, value: model_version&.build_name || "Version #{ @model.model_versions.count + 1 }", class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
diff --git a/app/views/model_versions/_model_version.html.erb b/app/views/model_versions/_model_version.html.erb index c3789ed..3a0d351 100644 --- a/app/views/model_versions/_model_version.html.erb +++ b/app/views/model_versions/_model_version.html.erb @@ -1,25 +1,25 @@
-

+

Model: <%= @model&.name %>

-

+

Configuration: -


+    

   

-

+

Description: <%= model_version.description %>

-

+

Built on: <%= model_version.built_on&.to_date || 'not specified' %>

-

+

Build name: <%= model_version.build_name %>

diff --git a/app/views/model_versions/edit.html.erb b/app/views/model_versions/edit.html.erb index 0df4b97..d6cd860 100644 --- a/app/views/model_versions/edit.html.erb +++ b/app/views/model_versions/edit.html.erb @@ -1,5 +1,5 @@
-

Editing model version

+

Editing model version

<%= render "form", model_version: @model_version %>
diff --git a/app/views/model_versions/index.html.erb b/app/views/model_versions/index.html.erb index 05d4fc4..39b951f 100644 --- a/app/views/model_versions/index.html.erb +++ b/app/views/model_versions/index.html.erb @@ -4,7 +4,7 @@ <% content_for :title, "Model versions" %>
-

Model versions

+

Model versions

<%= link_to "New model version", new_model_model_version_path(@model), class: "px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" %>
diff --git a/app/views/model_versions/new.html.erb b/app/views/model_versions/new.html.erb index 872294e..339ed8d 100644 --- a/app/views/model_versions/new.html.erb +++ b/app/views/model_versions/new.html.erb @@ -1,5 +1,5 @@
-

New model version

+

New model version

<%= render "form", model_version: @model_version %>
diff --git a/app/views/models/_form.html.erb b/app/views/models/_form.html.erb index 3dcbcac..4002a35 100644 --- a/app/views/models/_form.html.erb +++ b/app/views/models/_form.html.erb @@ -12,44 +12,44 @@ <% end %>
- <%= form.label :name %> + <%= form.label :name, class: "block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100" %> <%= form.text_field :name, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :url %> + <%= form.label :url, class: "block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100" %> <%= form.text_field :url, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :executor_type, class: "block text-gray-700 text-sm font-bold mb-2" %> + <%= form.label :executor_type, class: "block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100 block" %> <%= form.select :executor_type, Model.executor_types.keys.map { |w| [I18n.t("activerecord.attributes.model.executor_types.#{w}"), w] }, {}, class: "block appearance-none w-full bg-gray-200 border border-gray-200 text-gray-700 py-2 px-4 pr-8 rounded leading-tight focus:outline-none focus:bg-white focus:border-gray-500", id: "executor_type_selector", data: { action: "change->model#toggleConfiguration" } %>
- <%= form.label :api_key %> + <%= form.label :api_key, class: "block text-gray-700 text-sm font-bold mb-2 block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100" %> <%= form.text_field :api_key, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<% if model.new_record? %> <%= form.fields_for :model_versions, @model_version do |model_version_fields| %>
- <%= model_version_fields.label :configuration %> + <%= model_version_fields.label :configuration, class: "block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100" %> <%= model_version_fields.text_field :configuration, value: default_configuration(model.executor_type), 'data-model-target' => "configurationField", class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= model_version_fields.label :description %> + <%= model_version_fields.label :description, class: "block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100" %> <%= model_version_fields.text_area :description, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= model_version_fields.label :built_on %> + <%= model_version_fields.label :built_on, class: "block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100" %> <%= model_version_fields.date_field :built_on, value: Date.today, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= model_version_fields.label :build_name %> + <%= model_version_fields.label :build_name, class: "block text-gray-700 text-sm font-bold mb-2 text-gray-900 dark:text-gray-100" %> <%= model_version_fields.text_field :build_name, value: 'Version 1', class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
<% end %> diff --git a/app/views/models/_model.html.erb b/app/views/models/_model.html.erb index 3dc334f..d8c3dd2 100644 --- a/app/views/models/_model.html.erb +++ b/app/views/models/_model.html.erb @@ -1,11 +1,11 @@
-

+

Name: <%= model.name %>

<% if model.url.present? %> -

+

Url: <%= model.url %>

diff --git a/app/views/models/edit.html.erb b/app/views/models/edit.html.erb index fe36f9b..436963d 100644 --- a/app/views/models/edit.html.erb +++ b/app/views/models/edit.html.erb @@ -1,5 +1,5 @@
-

Editing model

+

Editing model

<%= render "form", model: @model %>
diff --git a/app/views/models/index.html.erb b/app/views/models/index.html.erb index bb2d6df..0b79312 100644 --- a/app/views/models/index.html.erb +++ b/app/views/models/index.html.erb @@ -4,7 +4,7 @@ <% content_for :title, "Models" %>
-

Models

+

Models

<%= link_to "New model", new_model_path, class: "px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" %>
diff --git a/app/views/models/new.html.erb b/app/views/models/new.html.erb index 8105b36..9fed4c8 100644 --- a/app/views/models/new.html.erb +++ b/app/views/models/new.html.erb @@ -1,5 +1,5 @@
-

New model

+

New model

<%= render "form", model: @model %>
diff --git a/app/views/models/show.html.erb b/app/views/models/show.html.erb index d6cbf02..7abecc7 100644 --- a/app/views/models/show.html.erb +++ b/app/views/models/show.html.erb @@ -11,7 +11,7 @@
-

Model versions

+

Model versions

diff --git a/app/views/prompts/_form.html.erb b/app/views/prompts/_form.html.erb index 8652753..2f786e0 100644 --- a/app/views/prompts/_form.html.erb +++ b/app/views/prompts/_form.html.erb @@ -12,12 +12,12 @@ <% end %>
- <%= form.label :name %> + <%= form.label :name, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_field :name, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :value %> + <%= form.label :value, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_area :value, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
diff --git a/app/views/prompts/_prompt.html.erb b/app/views/prompts/_prompt.html.erb index aa12498..70e9d24 100644 --- a/app/views/prompts/_prompt.html.erb +++ b/app/views/prompts/_prompt.html.erb @@ -1,10 +1,10 @@
-

+

Name: <%= prompt.name %>

-

+

Value: <%= prompt.value %>

diff --git a/app/views/prompts/diff.html.erb b/app/views/prompts/diff.html.erb index 2d7a1ed..24a2248 100644 --- a/app/views/prompts/diff.html.erb +++ b/app/views/prompts/diff.html.erb @@ -1,6 +1,6 @@
-

+

Value: <%= Diffy::Diff.new(@previous_prompt_version.value, @prompt.value).to_s(:html).html_safe %>

diff --git a/app/views/prompts/edit.html.erb b/app/views/prompts/edit.html.erb index 7916199..ff6d935 100644 --- a/app/views/prompts/edit.html.erb +++ b/app/views/prompts/edit.html.erb @@ -1,5 +1,5 @@
-

Edit prompt

+

Edit prompt

<%= form_with(url: prompt_path(@parent_prompt), method: :patch, class: "contents") do |form| %> <% if @prompt.errors.any? %> @@ -15,12 +15,12 @@ <% end %>
- <%= form.label :name %> + <%= form.label :name, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_field 'prompt[name]', value: "#{@parent_prompt.name.gsub(/ Version \d+/, '')} Version #{@parent_prompt.ancestor_ids.size + 2}", class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :value %> + <%= form.label :value, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_area 'prompt[value]', value: @parent_prompt.value, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
diff --git a/app/views/prompts/index.html.erb b/app/views/prompts/index.html.erb index 58a238f..b253e56 100644 --- a/app/views/prompts/index.html.erb +++ b/app/views/prompts/index.html.erb @@ -4,8 +4,8 @@ <% content_for :title, "Prompts" %>
-

Prompts

-
+

Prompts

+
<%= link_to "New prompt", new_prompt_path, class: "px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" %>
diff --git a/app/views/prompts/new.html.erb b/app/views/prompts/new.html.erb index a2a92b3..a97f525 100644 --- a/app/views/prompts/new.html.erb +++ b/app/views/prompts/new.html.erb @@ -1,5 +1,5 @@
-

New prompt

+

New prompt

<%= render "form", prompt: @prompt %>
diff --git a/app/views/prompts/show.html.erb b/app/views/prompts/show.html.erb index 7f04ca2..562b936 100644 --- a/app/views/prompts/show.html.erb +++ b/app/views/prompts/show.html.erb @@ -19,7 +19,7 @@
-

Test Runs

+

Test Runs

@@ -66,7 +66,7 @@ <% if @previous_versions.present? %>
-

Previous Versions

+

Previous Versions

diff --git a/app/views/test_model_version_runs/_test_model_version_run.html.erb b/app/views/test_model_version_runs/_test_model_version_run.html.erb index 511a683..29be422 100644 --- a/app/views/test_model_version_runs/_test_model_version_run.html.erb +++ b/app/views/test_model_version_runs/_test_model_version_run.html.erb @@ -1,23 +1,23 @@
-

+

Model: <%= link_to test_model_version_run.model_version.model.name, test_model_version_run.model_version.model, class: "text-blue-500 underline-link" %>

-

+

Model version: <%= link_to test_model_version_run.model_version.build_name, [test_model_version_run.model_version.model, test_model_version_run.model_version], class: "text-blue-500 underline-link" %>

-

+

Prompt: <%= link_to test_model_version_run.test_run.prompt.value, test_model_version_run.test_run.prompt, class: "text-blue-500 underline-link" %>

-

+

Assertions: <% test_model_version_run.test_run.assertions.each_with_index do |assertion, index| %> <%= ", " if index > 0 %><%= link_to assertion.name, assertion, class: "text-blue-500 underline-link" %> <% end %>

-

+

State: <% state = test_model_version_run.state %>

-

Test Results

+

Test Results

diff --git a/app/views/test_results/_test_result.json.jbuilder b/app/views/test_results/_test_result.json.jbuilder index d320e22..dd20b88 100644 --- a/app/views/test_results/_test_result.json.jbuilder +++ b/app/views/test_results/_test_result.json.jbuilder @@ -1,4 +1,4 @@ # frozen_string_literal: true -json.extract! test_result, :id, :result, :time, :rating, :status, :created_at, :updated_at +json.extract! test_result, :id, :result, :time, :rating, :status, :content, :created_at, :updated_at json.url test_result_url(test_result, format: :json) diff --git a/app/views/test_results/index.html.erb b/app/views/test_results/index.html.erb index 98bccc2..77bfd0a 100644 --- a/app/views/test_results/index.html.erb +++ b/app/views/test_results/index.html.erb @@ -1,6 +1,6 @@
-

Test Results

+

Test Results

diff --git a/app/views/test_results/show.html.erb b/app/views/test_results/show.html.erb index 45eaccc..c3148bd 100644 --- a/app/views/test_results/show.html.erb +++ b/app/views/test_results/show.html.erb @@ -1,14 +1,14 @@
-

+

Model: <%= link_to @test_result.model_version.model.name, @test_result.model_version.model, class: "text-blue-500 underline-link" %>

-

+

Model version: <%= link_to @test_result.model_version.build_name, [@test_result.model_version.model, @test_result.model_version], class: "text-blue-500 underline-link" %>

-

+

Status:

- Result: -

+  Result:
+  

   
-

Assertions

+

Assertions

@@ -29,6 +29,7 @@ > +
- <%= form.label :name %> + <%= form.label :name, class: "text-gray-900 dark:text-gray-100" %> <%= form.text_field :name, value: test_run&.name || Time.zone.now.strftime("%b %d, %Y %I:%M %p"), class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :prompt_id %> + <%= form.label :prompt_id, class: "text-gray-900 dark:text-gray-100" %> <%= form.select :prompt_id, grouped_options_for_select(options_with_versions(@prompts, @ancestor_prompts), @prompt&.id), {}, { class: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" } %>
- <%= form.label :calls %> + <%= form.label :calls, class: "text-gray-900 dark:text-gray-100" %> <%= form.number_field :calls, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
- <%= form.label :assertions %> + <%= form.label :assertions, class: "text-gray-900 dark:text-gray-100" %> <%= form.collection_select :assertion_ids, @assertions, :id, :name, {}, { multiple: true, class: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" } %>
- <%= form.label :model_versions %> + <%= form.label :model_versions, class: "text-gray-900 dark:text-gray-100" %> <%= form.collection_select :model_version_ids, @model_versions, :id, :full_name, {}, { multiple: true, class: "mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" } %>
- <%= form.label 'Passing threshold in %' %> + <%= form.label 'Passing threshold in %', class: "text-gray-900 dark:text-gray-100" %> <%= form.number_field :passing_threshold, step: '0.01', max: 100, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
diff --git a/app/views/test_runs/_test_run.html.erb b/app/views/test_runs/_test_run.html.erb index 5f43ae2..fcaf3cc 100644 --- a/app/views/test_runs/_test_run.html.erb +++ b/app/views/test_runs/_test_run.html.erb @@ -1,11 +1,11 @@
-

+

Name: <%= test_run.name %>

-

+

Calls: <%= test_run.calls %>

-

+

Prompt: <%= link_to test_run.prompt.name, test_run.prompt, class: "text-blue-500 underline-link" %>

diff --git a/app/views/test_runs/index.html.erb b/app/views/test_runs/index.html.erb index 68892b3..586acf9 100644 --- a/app/views/test_runs/index.html.erb +++ b/app/views/test_runs/index.html.erb @@ -4,7 +4,7 @@ <% content_for :title, "Test Runs" %>
-

Test Runs

+

Test Runs

<%= link_to "New test run", new_test_run_path, class: "px-4 py-2 text-sm font-medium leading-5 text-white transition-colors duration-150 bg-purple-600 border border-transparent rounded-lg active:bg-purple-600 hover:bg-purple-700 focus:outline-none focus:shadow-outline-purple" %>
diff --git a/app/views/test_runs/new.html.erb b/app/views/test_runs/new.html.erb index 076cb87..48f1d4b 100644 --- a/app/views/test_runs/new.html.erb +++ b/app/views/test_runs/new.html.erb @@ -1,5 +1,5 @@
-

New test run

+

New test run

<%= render "form", test_run: @test_run %>
diff --git a/app/views/test_runs/show.html.erb b/app/views/test_runs/show.html.erb index efd2e02..1461655 100644 --- a/app/views/test_runs/show.html.erb +++ b/app/views/test_runs/show.html.erb @@ -4,7 +4,7 @@ <%= render @test_run %>
-

Models Runs

+

Models Runs

Assertion Result