From 610db7d20334251935394e203d27165b807e2bf3 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 2 Oct 2025 17:57:09 -0500 Subject: [PATCH] Make The Stream expandable --- .../collections/columns/streams_controller.rb | 2 +- .../collections/columns/streams/show.html.erb | 39 ++++++++++++++----- app/views/collections/show/_stream.html.erb | 4 ++ 3 files changed, 35 insertions(+), 10 deletions(-) diff --git a/app/controllers/collections/columns/streams_controller.rb b/app/controllers/collections/columns/streams_controller.rb index 16a2bf671..cc1fc2f67 100644 --- a/app/controllers/collections/columns/streams_controller.rb +++ b/app/controllers/collections/columns/streams_controller.rb @@ -1,5 +1,5 @@ class Collections::Columns::StreamsController < ApplicationController - include CollectionScoped + include CollectionScoped, FilterScoped def show set_page_and_extract_portion_from @collection.cards.awaiting_triage.reverse_chronologically.with_golden_first diff --git a/app/views/collections/columns/streams/show.html.erb b/app/views/collections/columns/streams/show.html.erb index 1eb93e74a..0758168a5 100644 --- a/app/views/collections/columns/streams/show.html.erb +++ b/app/views/collections/columns/streams/show.html.erb @@ -1,11 +1,32 @@ -<%= turbo_frame_tag :stream_column do %> - <% if @page.used? %> - <%= with_manual_pagination :stream_column, @page do %> - <%= render "collections/columns/list", cards: @page.records, draggable: true %> +<% @page_title = "Column: The Stream" %> + +<% content_for :header do %> + <%= render "filters/menu", user_filtering: @user_filtering %> + +
+ <%= link_to @collection, class: "btn borderless txt-medium", data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click" } do %> + + ← + <%= @collection.name %> + <% end %> - <% else %> -
-

Drag cards here

-
- <% end %> +
+ +

+ <%= @page_title %> +

<% end %> + +
+ <%= turbo_frame_tag :stream_column do %> + <% if @page.used? %> + <%= with_manual_pagination :stream_column, @page do %> + <%= render "collections/columns/list", cards: @page.records, draggable: true %> + <% end %> + <% else %> +
+

Drag cards here

+
+ <% end %> + <% end %> +
\ No newline at end of file diff --git a/app/views/collections/show/_stream.html.erb b/app/views/collections/show/_stream.html.erb index b48c90bb7..544bd726e 100644 --- a/app/views/collections/show/_stream.html.erb +++ b/app/views/collections/show/_stream.html.erb @@ -5,6 +5,10 @@ data-drag-and-drop-url="<%= columns_card_drops_stream_path("__id__") %>">
+
+

The Stream

+ <%= render "collections/show/menu/expand", column_path: collection_columns_stream_path(collection) %> +
<%= render "columns/show/add_card_button", collection: collection %> <% if page.used? %>