Skip to content

Commit

Permalink
UX improvements on facility views
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJackson-Oslo committed Apr 25, 2024
1 parent 3877bb3 commit 4148981
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
title: t("tooltips.facility_aggregated_experience.#{space_facility.experience}"),
class: 'unstyled-link inline-flex gap-2 items-center collapsable-wrapper' do %>

<h4 class="text-base <%= "line-through text-gray-600" if space_facility.experience == "impossible" %>"><%= facility.title %></h4>
<h4 class="text-base inline-flex items-baseline <%= "line-through text-gray-600" if space_facility.experience == "impossible" %>"><%= facility.title %></h4>

<%= inline_svg_tag "facility_status/#{space_facility.experience}", class: "#{" text-black " if space_facility.experience == "impossible" }" %>
<span class="text-sm font-normal items-center inline-flex gap-1">
<%= render 'facility_reviews/form_components/others_experience', space_facility: space_facility %>
</span>

<span class="edit-button edit-button--small collapsable collapsable--to-right">
<span class="text">
Expand All @@ -24,7 +26,7 @@
<% end %>
<% unless space_facility.description.nil? %>
<div class="text-gray-400 mb-1.5">
<div class="text-sm text-gray-500 mb-1.5">
<%= space_facility.description %>
</div>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
<%# locals: (space_facility:) %>
<%= inline_svg_tag "facility_status/#{space_facility.experience}", class: "#{" text-black " if space_facility.experience == "impossible" }" %>
<%= t("tooltips.others_experience.#{space_facility.experience}") %>
<span class=" <%=
case space_facility.experience
when "impossible"
"text-red-500"
when "likely"
"text-green-500"
when "unlikely"
"text-red-500"
when "maybe"
"text-yellow-500"
else "text-gray-400"
end
%>">
<%= t("tooltips.others_experience.#{space_facility.experience}") %>
</span>

0 comments on commit 4148981

Please sign in to comment.