Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.
Ruby agplai-assistantdockerdsgvogdprhotwireissue-trackerjira-alternativeknowledge-basellmmcp-servermeeting-notesopen-sourceproject-managementredmine-alternativeruby-on-railsself-hostedticketingtime-tracking
Make the ticket description plain text again
Guido Boyke0f8f280d582e
diff --git a/app/javascript/controllers/ticket_inline_edit_controller.js b/app/javascript/controllers/ticket_inline_edit_controller.jsdeleted file mode 100644index e359622..0000000--- a/app/javascript/controllers/ticket_inline_edit_controller.js+++ /dev/null@@ -1,30 +0,0 @@-import { Controller } from "@hotwired/stimulus"--// Click-to-edit for the ticket title and description (designer round 8a,-// 05.09.2026): a click on the text opens the same editor the pencil button-// opens, loaded into the writing_surface turbo frame. The pencil stays for-// those who look for it; nobody has to find it to fix a typo.-//-// Clicks that mean something else keep their meaning: interactive elements-// (links, lightbox images, buttons, disclosure summaries) and an actual-// text selection never trigger the editor.-export default class extends Controller {- static values = {- url: String,- frame: { type: String, default: "writing_surface" },- }-- open(event) {- if (event.target.closest("a, button, img, summary, input, textarea, video, audio")) return-- const selection = window.getSelection()- if (selection && selection.type === "Range") return-- const frame = document.getElementById(this.frameValue)- if (frame) {- frame.src = this.urlValue- } else {- window.Turbo?.visit(this.urlValue)- }- }-}diff --git a/app/views/organisations/tickets/_ticket_header_show.html.erb b/app/views/organisations/tickets/_ticket_header_show.html.erbindex e425941..15371af 100644--- a/app/views/organisations/tickets/_ticket_header_show.html.erb+++ b/app/views/organisations/tickets/_ticket_header_show.html.erb@@ -149,17 +149,13 @@<%# Description body - clamped to two lines while collapsed. Themeasure is 70ch (user mockup 05.09.2026): every running-textsurface on this page sits in it, only the heading and the- attribute row run wider. Editing at the object (designer round- 8a): a click on the text opens the editor; clicks that mean- something else (links, images, a text selection) keep their- meaning - ticket_inline_edit_controller guards them. %>+ attribute row run wider. Plain text, deliberately: the+ description had a click-to-edit with a hover surface (designer+ round 8a) and lost it again on user decision (10.09.2026) - the+ hover made the whole text read as one big button. Editing+ stays with the pencil and the title link above. %><div data-ticket-description-collapse-target="body"- <% if can_edit_ticket %>- data-controller="ticket-inline-edit"- data-ticket-inline-edit-url-value="<%= edit_ticket_url %>"- data-action="click->ticket-inline-edit#open"- <% end %>- class="prose max-w-[70ch] text-[15px] leading-relaxed text-cream-800 <%= 'line-clamp-2' if collapsed %> <%= 'rounded-md transition-colors hover:bg-cream-200/40' if can_edit_ticket %>"><%= ticket.content %></div>+ class="prose max-w-[70ch] text-[15px] leading-relaxed text-cream-800 <%= 'line-clamp-2' if collapsed %>"><%= ticket.content %></div><%# The attachment DATA first, on its own line; the ACTIONS("Einklappen", "Datei anhaengen") on the line below - data and@@ -223,14 +219,9 @@<% end %></div><% else %>- <%# Not collapsible (new ticket / no own comment yet) - full content.- Click-to-edit like the collapsible branch above. %>- <div class="mt-4 prose max-w-[70ch] text-[15px] leading-relaxed text-cream-800 <%= 'rounded-md transition-colors hover:bg-cream-200/40' if can_edit_ticket %>"- <% if can_edit_ticket %>- data-controller="ticket-inline-edit"- data-ticket-inline-edit-url-value="<%= edit_ticket_url %>"- data-action="click->ticket-inline-edit#open"- <% end %>><%= ticket.content %></div>+ <%# Not collapsible (new ticket / no own comment yet) - full content,+ plain text like the collapsible branch above. %>+ <div class="mt-4 prose max-w-[70ch] text-[15px] leading-relaxed text-cream-800"><%= ticket.content %></div><% end %><% end %>diff --git a/config/importmap.rb b/config/importmap.rbindex d25a141..18ee952 100644--- a/config/importmap.rb+++ b/config/importmap.rb@@ -256,7 +256,6 @@ elsepin 'controllers/ticket_description_collapse_controller', to: 'controllers/ticket_description_collapse_controller.js'pin 'controllers/ticket_direct_navigation_controller', to: 'controllers/ticket_direct_navigation_controller.js'pin 'controllers/ticket_group_controller', to: 'controllers/ticket_group_controller.js'- pin 'controllers/ticket_inline_edit_controller', to: 'controllers/ticket_inline_edit_controller.js'pin 'controllers/ticket_meeting_panel_controller', to: 'controllers/ticket_meeting_panel_controller.js'pin 'controllers/ticket_pane_links_controller', to: 'controllers/ticket_pane_links_controller.js'pin 'controllers/ticket_relation_modal_controller', to: 'controllers/ticket_relation_modal_controller.js'diff --git a/spec/requests/organisations/tickets_header_actions_spec.rb b/spec/requests/organisations/tickets_header_actions_spec.rbindex be98df3..5369dcf 100644--- a/spec/requests/organisations/tickets_header_actions_spec.rb+++ b/spec/requests/organisations/tickets_header_actions_spec.rb@@ -8,9 +8,11 @@ require 'rails_helper'# (pencil, spark, dots) with the 6px radius, a divider, then the exit in the# SAME rank. Icon only - words above the title would compete with the title,# so every surface carries a title attribute instead. And editing happens at-# the object too: a click on the title or the description opens the same-# editor the pencil opens (writing_surface frame) - the pencil stays for-# those who look for it.+# the object too: a click on the title opens the same editor the pencil+# opens (writing_surface frame) - the pencil stays for those who look for+# it. The description does NOT take part: it had the same click-to-edit+# with a hover surface and lost it on user decision (10.09.2026), because+# the hover made the whole text read as one big button.RSpec.describe 'Ticket header actions', type: :request dolet(:organisation) { create(:organisation) }let(:user) { create(:user) }@@ -79,13 +81,13 @@ RSpec.describe 'Ticket header actions', type: :request doexpect(title_link['title']).to eq(header_t('edit_ticket'))end- it 'puts the inline-edit controller with the edit url on the description' do- body = document.at_css('[data-controller~="ticket-inline-edit"]')+ it 'leaves the description plain text: no click handler, no hover surface' do+ body = document.css('div.prose').find { |div| div.text.include?('Beschreibungstext im Kopf') }expect(body).to be_present- expect(body.text).to include('Beschreibungstext im Kopf')- expect(body['data-ticket-inline-edit-url-value'])- .to eq(edit_organisation_project_ticket_path(organisation, project, ticket))- expect(body['data-action']).to include('click->ticket-inline-edit#open')+ expect(body['data-controller']).to be_nil+ expect(body['data-action']).to be_nil+ expect(body[:class]).not_to match(/hover:/)+ expect(response.body).not_to include('ticket-inline-edit')endend