Merge pull request #2829 from basecamp/remove-tag-attachable

Remove dead Tag::Attachable code and tags prompt
This commit is contained in:
Stanko Krtalić
2026-04-10 09:05:48 +02:00
committed by GitHub
9 changed files with 8 additions and 54 deletions
@@ -1,9 +0,0 @@
class Prompts::TagsController < ApplicationController
def index
@tags = Current.account.tags.all.alphabetically
if stale? etag: @tags
render layout: false
end
end
end
-4
View File
@@ -7,10 +7,6 @@ module RichTextHelper
content_tag "lexxy-prompt", "", trigger: "@", src: prompts_users_path, name: "mention"
end
def tags_prompt
content_tag "lexxy-prompt", "", trigger: "#", src: prompts_tags_path, name: "tag"
end
def cards_prompt
content_tag "lexxy-prompt", "", trigger: "#", src: prompts_cards_path, name: "card", "insert-editable-text": true, "remote-filtering": true, "supports-space-in-searches": true
end
+1 -1
View File
@@ -1,5 +1,5 @@
class Tag < ApplicationRecord
include Attachable, Filterable
include Filterable
belongs_to :account, default: -> { Current.account }
has_many :taggings, dependent: :destroy
-11
View File
@@ -1,11 +0,0 @@
module Tag::Attachable
extend ActiveSupport::Concern
included do
include ActionText::Attachable
def attachable_plain_text_representation(...)
"##{title}"
end
end
end
-8
View File
@@ -1,8 +0,0 @@
<lexxy-prompt-item search="<%= tag.title %>" sgid="<%= tag.attachable_sgid %>">
<template type="menu">
#<%= tag.title %>
</template>
<template type="editor">
#<%= tag.title %>
</template>
</lexxy-prompt-item>
-1
View File
@@ -1 +0,0 @@
<%= render partial: "prompts/tags/tag", collection: @tags %>