Skip to content

Commit

Permalink
Merge pull request #65 from CoralineAda/ux-updates
Browse files Browse the repository at this point in the history
Some small labeling changes
  • Loading branch information
CoralineAda authored Jul 31, 2024
2 parents 9dd271c + e9046b4 commit fcb805e
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
table {
width: 100%;
border: 3px solid var(--color-light-grey);
margin-top: 2em;
margin: 2em 0em;
}

tr.alt {
Expand Down
2 changes: 1 addition & 1 deletion app/models/question.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Question
pronouns_exp: "Experience with Pronouns",
pronouns_feel: "Pronoun Feelings",
affinity: "Identity Affinities",
notes: "Other Notes"
notes: "Identity Reflection"
}

def self.from(key)
Expand Down
2 changes: 1 addition & 1 deletion app/models/survey_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def permalink

def graph_query
{
explainer: "// Return the persona (and all of its relations) that corresponds to this survey response.",
explainer: "Access and explore this participant's response data (and all of its relationships) as an Interactive Persona in the TMI-Graph app.",
query: "MATCH (p:Persona)-[]-(n) WHERE p.permalink=\"#{permalink}\" RETURN p,n"
}
end
Expand Down
8 changes: 4 additions & 4 deletions app/views/questions/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<%- title "Responses to #{@question.label} Question" %>
<%- title "Participant Survey Responses to #{@question.label} Question" %>

<h1><%= @responses.count %> Responses to "<%= @question.label %>".</h1>
<h1><%= @responses.count %> Participant Survey Responses to "<%= @question.label %>".</h1>

<h2>Reference</h3>
<h2>Reference:</h3>
<ul class="word-cloud">
<li><%= link_to "Codes for #{@question.label}", codebook_path(@question.key), class: "jump-link" %></li>
</ul>

<table>
<thead>
<tr>
<th>Response</th>
<th>Survey Response</th>
<th>Answer</th>
<th><%= link_to "Codes", codebook_path(@question.key), class: "jump-link-light" %></th>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions app/views/survey_responses/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<%- title "Responses" %>
<%- title "Participant Survey Responses" %>

<h1>
<%= pluralize @responses.size, "survey response" %>.
<%= pluralize @responses.size, "participant survey response" %>.
</h1>

<ol class="nodes">
Expand Down
26 changes: 13 additions & 13 deletions app/views/survey_responses/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<%- title "Response #{@response.identifier}" %>
<%- title "Participant Survey Response #{@response.identifier}" %>

<h1>Response <%= @response.identifier %></h1>
<h1>Participant Survey Response <%= @response.identifier %></h1>

<% if @previous_response %>
<%= link_to "<", survey_response_path(@previous_response), class: "flip", id: "flip-left" %>
Expand All @@ -9,15 +9,6 @@
<%= link_to ">", survey_response_path(@next_response), class: "flip", id: "flip-right" %>
<% end %>

<% if @keywords.any? %>
<h2>Keywords:</h2>
<ul class="word-cloud">
<% @keywords.each do |keyword| %>
<li><%= keyword.name %></li>
<% end %>
</ul>
<% end %>

<h2>Derived categories of experiences:</h2>

<% if @categories.any? %>
Expand All @@ -30,9 +21,9 @@
<p>No derived categories could be found. Have you generated them from the <%= link_to "codebook", codebooks_path %>?</p>
<% end %>

<h2>TMI-Graph query:</h2>
<h2>Interactive persona:</h2>
<p><%= @response.graph_query[:explainer] %></p>
<p class="code">
<%= @response.graph_query[:explainer] %><br />
<a href="#query" id="copy-to-clipboard" onclick="copyToClipboard('copy-to-clipboard')"><%= @response.graph_query[:query] %></a>
</p>

Expand Down Expand Up @@ -66,3 +57,12 @@
</tbody>
</table>
<% end %>

<% if @keywords.any? %>
<h2>Identity Reflection Generated Keywords:</h2>
<ul class="word-cloud">
<% @keywords.each do |keyword| %>
<li><%= keyword.name %></li>
<% end %>
</ul>
<% end %>

0 comments on commit fcb805e

Please sign in to comment.