Merge pull request #1015 from basecamp/filter-by-draft-status

Filter to just drafts
This commit is contained in:
Jason Zimdars
2025-09-02 19:34:53 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -25,6 +25,7 @@ class Card < ApplicationRecord
when "falling_back_soon" then falling_back_soon
when "closed" then closed.recently_closed_first
when "golden" then golden
when "draft" then drafted
else all
end
end
+1 -1
View File
@@ -1,7 +1,7 @@
module Filter::Fields
extend ActiveSupport::Concern
INDEXES = %w[ all stalled closing_soon falling_back_soon golden ]
INDEXES = %w[ all stalled closing_soon falling_back_soon golden draft ]
SORTED_BY = %w[ newest oldest latest ]
delegate :default_value?, to: :class