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.
This commit is contained in:
Mike Dalessio
2025-03-24 17:11:58 -04:00
parent 48dea279c8
commit a66dc2a789
5 changed files with 4 additions and 4 deletions
@@ -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
@@ -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
@@ -1,5 +1,5 @@
<% cache [ bubble, Current.account ] do %>
<%= turbo_frame_tag bubble, :tag do %>
<%= turbo_frame_tag bubble, :tagging do %>
<dialog class="popup panel flex-column align-start justify-start fill-white shadow" data-dialog-target="dialog">
<strong class="popup__title margin-block-half pad-inline-half">Tag this…</strong>
+1 -1
View File
@@ -16,7 +16,7 @@
<span class="for-screen-reader">Add a tag</span>
</button>
<%= 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) %>
</div>
</div>
<% end %>