From 68c2fad906fc76578d8326c8f5d99a3acbf19644 Mon Sep 17 00:00:00 2001 From: Guillem Arias Date: Fri, 22 May 2026 08:54:13 +0200 Subject: [PATCH] refactor(goals): migrate archived
to DS::Disclosure :inline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #1858's :inline variant landed (commit 8de14ed2), so the goals index archived-section toggle can move off the raw
and onto the shared primitive. Behaviour and look unchanged — the custom summary content (chevron + uppercase heading + tabular count) passes through the `summary_content` slot; the `:inline` variant adds nothing on top besides the focus-visible ring shared with the other DS::Disclosure variants. Addresses the third sure-design DS Drift finding on #1798 (the other two — DS::SearchInput + ring-gray-500 — already landed earlier). --- app/views/goals/index.html.erb | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/app/views/goals/index.html.erb b/app/views/goals/index.html.erb index db53a2fb6..3c3e69b95 100644 --- a/app/views/goals/index.html.erb +++ b/app/views/goals/index.html.erb @@ -170,19 +170,21 @@ <% if @archived_goals.any? %>
-
- - <%= icon("chevron-right", size: "sm") %> - <%= t(".archived_section.heading") %> - · - <%= @archived_goals.size %> - + <%= render DS::Disclosure.new(variant: :inline) do |disclosure| %> + <% disclosure.with_summary_content do %> + + <%= icon("chevron-right", size: "sm") %> + <%= t(".archived_section.heading") %> + · + <%= @archived_goals.size %> + + <% end %>
<% @archived_goals.each do |goal| %> <%= render Goals::CardComponent.new(goal: goal, filterable: false) %> <% end %>
-
+ <% end %>
<% end %> <% end %>