diff --git a/app/models/filter/summarized.rb b/app/models/filter/summarized.rb index 2d406dceb..b17937c9a 100644 --- a/app/models/filter/summarized.rb +++ b/app/models/filter/summarized.rb @@ -9,18 +9,18 @@ module Filter::Summarized private def index_summary - "#{indexed_by.humanize}" + indexed_by.humanize end def tag_summary if tags.any? - "tagged #{tags.map(&:hashtag).to_choice_sentence}" + "tagged #{tags.map(&:hashtag).to_choice_sentence}" end end def assignee_summary if assignees.any? - "assigned to #{assignees.pluck(:name).to_choice_sentence}" + "assigned to #{assignees.pluck(:name).to_choice_sentence}" elsif assignments.unassigned? "assigned to no one" end @@ -28,21 +28,21 @@ module Filter::Summarized def assigner_summary if assigners.any? - "assigned by #{assigners.pluck(:name).to_choice_sentence}" + "assigned by #{assigners.pluck(:name).to_choice_sentence}" end end def bucket_summary if buckets.any? - "in #{buckets.pluck(:name).to_choice_sentence}" + "in #{buckets.pluck(:name).to_choice_sentence}" else - "in all projects" + "in all projects" end end def terms_summary if terms.any? - "matching #{terms.map { |term| %Q("#{term}") }.to_sentence}" + "matching #{terms.map { |term| %Q("#{term}") }.to_sentence}" end end end diff --git a/app/views/buckets/_bucket.html.erb b/app/views/buckets/_bucket.html.erb index a82a067bd..ac6c37231 100644 --- a/app/views/buckets/_bucket.html.erb +++ b/app/views/buckets/_bucket.html.erb @@ -1,6 +1,6 @@ <% cache bucket do %>
  • - <%= link_to bubbles_path(bucket_ids: [ bucket ]), class: "windshield__container flex justify-center align-center position-relative" do %> + <%= link_to bubbles_path(bucket_ids: [ bucket ]), class: "border border-radius margin-block-end-half windshield__container flex justify-center align-center position-relative" do %>
    <% bucket.bubbles.ordered_by_activity.limit(10).each do |bubble| %>
    @@ -12,7 +12,7 @@
    <%= link_to bubbles_path(bucket_ids: [ bucket ]), class: "txt-ink flex flex-column" do %> - In <%= bucket.name %> + <%= bucket.name %> <% end %> <%= link_to edit_bucket_path(bucket), class: "btn txt-small" do %> diff --git a/app/views/buckets/index.html.erb b/app/views/buckets/index.html.erb index dc5ae2ad1..9da1c9fd1 100644 --- a/app/views/buckets/index.html.erb +++ b/app/views/buckets/index.html.erb @@ -14,7 +14,10 @@ <% end %> - - <%= render @filters %> +
    <%= render @buckets, cached: true %> -
    +
    +
    +
    + <%= render @filters %> +
    diff --git a/app/views/filters/_filter.html.erb b/app/views/filters/_filter.html.erb index 0fac6a8a8..cc2f782a6 100644 --- a/app/views/filters/_filter.html.erb +++ b/app/views/filters/_filter.html.erb @@ -1,6 +1,6 @@ <% cache_if filter.cacheable?, filter do %>
  • - <%= link_to bubbles_path(**filter.to_params), class: "windshield__container flex justify-center align-center position-relative" do %> + <%= link_to bubbles_path(**filter.to_params), class: "border border-radius margin-block-end-half windshield__container flex justify-center align-center position-relative" do %>
    <% filter.bubbles.ordered_by_activity.limit(10).each do |bubble| %>
    @@ -12,7 +12,7 @@
    <%= link_to bubbles_path(**filter.to_params), class: "txt-ink flex flex-column" do %> - <%= filter.summary.html_safe %> + <%= filter.summary %> <% end %> <%= button_to filter_path(filter), method: :delete, class: "btn txt-small btn--negative", data: { turbo_confirm: "Are you sure you want to delete this filter?" } do %> <%= image_tag "minus.svg", aria: { hidden: true }, size: 24 %>