From a66dc2a7898274dc6f6b0cb86ce9d6fe797ad5d2 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 24 Mar 2025 17:11:58 -0400 Subject: [PATCH] Move tags and assignments partials out of "bubbles/sidebar" They're part of the card now, let's name them that way. Also, rename the "tag" partial to "tagging", following the naming convention established by the controller. --- app/controllers/assignments/toggles_controller.rb | 2 +- app/controllers/taggings/toggles_controller.rb | 2 +- app/views/bubbles/{sidebar => }/_assignment.html.erb | 0 app/views/bubbles/{sidebar/_tag.html.erb => _tagging.html.erb} | 2 +- app/views/bubbles/_tags.html.erb | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename app/views/bubbles/{sidebar => }/_assignment.html.erb (100%) rename app/views/bubbles/{sidebar/_tag.html.erb => _tagging.html.erb} (97%) diff --git a/app/controllers/assignments/toggles_controller.rb b/app/controllers/assignments/toggles_controller.rb index 08562dde4..7882b8a15 100644 --- a/app/controllers/assignments/toggles_controller.rb +++ b/app/controllers/assignments/toggles_controller.rb @@ -2,7 +2,7 @@ class Assignments::TogglesController < ApplicationController include BubbleScoped, BucketScoped def new - render partial: "bubbles/sidebar/assignment", locals: { bubble: @bubble } + render partial: "bubbles/assignment", locals: { bubble: @bubble } end def create diff --git a/app/controllers/taggings/toggles_controller.rb b/app/controllers/taggings/toggles_controller.rb index 786271c41..f77df9e5c 100644 --- a/app/controllers/taggings/toggles_controller.rb +++ b/app/controllers/taggings/toggles_controller.rb @@ -2,7 +2,7 @@ class Taggings::TogglesController < ApplicationController include BubbleScoped, BucketScoped def new - render partial: "bubbles/sidebar/tag", locals: { bubble: @bubble, tags: Current.account.tags } + render partial: "bubbles/tagging", locals: { bubble: @bubble, tags: Current.account.tags } end def create diff --git a/app/views/bubbles/sidebar/_assignment.html.erb b/app/views/bubbles/_assignment.html.erb similarity index 100% rename from app/views/bubbles/sidebar/_assignment.html.erb rename to app/views/bubbles/_assignment.html.erb diff --git a/app/views/bubbles/sidebar/_tag.html.erb b/app/views/bubbles/_tagging.html.erb similarity index 97% rename from app/views/bubbles/sidebar/_tag.html.erb rename to app/views/bubbles/_tagging.html.erb index 59223ccc6..ded9eae50 100644 --- a/app/views/bubbles/sidebar/_tag.html.erb +++ b/app/views/bubbles/_tagging.html.erb @@ -1,5 +1,5 @@ <% cache [ bubble, Current.account ] do %> - <%= turbo_frame_tag bubble, :tag do %> + <%= turbo_frame_tag bubble, :tagging do %> Tag this… diff --git a/app/views/bubbles/_tags.html.erb b/app/views/bubbles/_tags.html.erb index 4c3072285..82c52772c 100644 --- a/app/views/bubbles/_tags.html.erb +++ b/app/views/bubbles/_tags.html.erb @@ -16,7 +16,7 @@ Add a tag - <%= turbo_frame_tag bubble, :tag, src: new_bucket_bubble_tagging_toggle_path(bubble.bucket, bubble) %> + <%= turbo_frame_tag bubble, :tagging, src: new_bucket_bubble_tagging_toggle_path(bubble.bucket, bubble) %> <% end %>