From 0747eadb816f9c1865b64c43c9c9651280ba8ee2 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 21 Nov 2025 14:10:46 -0600 Subject: [PATCH 01/12] For some reason 1pw wants to fill this field, avoid overflow --- app/assets/stylesheets/steps.css | 3 ++- app/views/cards/display/perma/_steps.html.erb | 4 ++-- app/views/cards/steps/edit.html.erb | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/steps.css b/app/assets/stylesheets/steps.css index 3e271137f..f106859ac 100644 --- a/app/assets/stylesheets/steps.css +++ b/app/assets/stylesheets/steps.css @@ -33,7 +33,7 @@ transform-origin: center; transition: 150ms transform ease-in-out; } - + &:checked::before { transform: scale(1) rotate(10deg); } @@ -73,6 +73,7 @@ @supports (field-sizing: content) { field-sizing: content; + max-inline-size: 100%; min-inline-size: 15ch; } } diff --git a/app/views/cards/display/perma/_steps.html.erb b/app/views/cards/display/perma/_steps.html.erb index 6cca251d2..f65892324 100644 --- a/app/views/cards/display/perma/_steps.html.erb +++ b/app/views/cards/display/perma/_steps.html.erb @@ -3,8 +3,8 @@
  • - <%= form_with model: [card, Step.new], url: card_steps_path(card), data: { controller: "form", action: "submit->form#preventEmptySubmit turbo:submit-end->form#reset" } do |form| %> - <%= form.text_field :content, class: "input step__content hide-focus-ring", placeholder: "Add a step…", autocomplete: "off", data: { form_target: "input" }, aria: { label: "Add a step" } %> + <%= form_with model: [card, Step.new], url: card_steps_path(card), class: "min-width", data: { controller: "form", action: "submit->form#preventEmptySubmit turbo:submit-end->form#reset" } do |form| %> + <%= form.text_field :content, class: "input step__content hide-focus-ring", placeholder: "Add a step…", autocomplete: "off", data: { form_target: "input", "1p-ignore": "true" }, aria: { label: "Add a step" } %> <% end %>
  • diff --git a/app/views/cards/steps/edit.html.erb b/app/views/cards/steps/edit.html.erb index 7114c1c5e..9784fe6ac 100644 --- a/app/views/cards/steps/edit.html.erb +++ b/app/views/cards/steps/edit.html.erb @@ -3,7 +3,7 @@ <%= form_with model: [@card, @step], class: "step", data: { controller: "form" } do |form| %> <%= form.check_box :completed, { class: "step__checkbox", checked: @step.completed?, disabled: true } %> <%= form.text_field :content, class: "input step__content step__content--edit hide-focus-ring", placeholder: "Name this step…", required: true, autofocus: true, autocomplete: "off", - data: { action: "keydown.esc->form#cancel focus->form#select" } %> + data: { action: "keydown.esc->form#cancel focus->form#select", "1p-ignore": "true" } %> <%= form.button type: "submit", class: "btn btn--positive txt-xx-small" do %> <%= icon_tag "check" %> Save changes From 5aaaeab5eab2c94f0d3f204d8d1deff0a8b1b960 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 21 Nov 2025 14:17:41 -0600 Subject: [PATCH 02/12] Try the edit button on the bottom line --- app/views/cards/container/_closure.html.erb | 19 +++++++++++++------ app/views/cards/container/_title.html.erb | 5 ----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/app/views/cards/container/_closure.html.erb b/app/views/cards/container/_closure.html.erb index 941122578..0093fc664 100644 --- a/app/views/cards/container/_closure.html.erb +++ b/app/views/cards/container/_closure.html.erb @@ -7,12 +7,19 @@ <% end %> <% else %> - <%= button_to card_closure_path(card), class: "btn borderless", - data: { controller: "hotkey", form_target: "submit", action: "keydown.d@document->hotkey#click" }, - form: { data: { controller: "form" } } do %> - Mark as Done - d - <% end %> +
    + <%= link_to edit_card_path(card), class: "btn borderless", data: { controller: "hotkey", action: "keydown.e@document->hotkey#click" } do %> + Edit + e + <% end %> + + <%= button_to card_closure_path(card), class: "btn borderless", + data: { controller: "hotkey", form_target: "submit", action: "keydown.d@document->hotkey#click" }, + form: { data: { controller: "form" } } do %> + Mark as Done + d + <% end %> +
    <% if card.entropic? && card.open? && !card.postponed? %> diff --git a/app/views/cards/container/_title.html.erb b/app/views/cards/container/_title.html.erb index 15f1ed856..179659d71 100644 --- a/app/views/cards/container/_title.html.erb +++ b/app/views/cards/container/_title.html.erb @@ -10,11 +10,6 @@ <%= card.description %>
    <% end %> - - <%= link_to edit_card_path(card), class: "btn fit-content txt-small", data: { controller: "hotkey", action: "keydown.e@document->hotkey#click" } do %> - Edit - e - <% end %> <% end %> <% else %> From c8012ef4d4728e6c29ba00e0b5ca8c225e182ef9 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 21 Nov 2025 14:29:22 -0600 Subject: [PATCH 03/12] Improve assignments picker when few/short names --- app/views/cards/assignments/new.html.erb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/views/cards/assignments/new.html.erb b/app/views/cards/assignments/new.html.erb index 07ad6531b..ee7f38c2d 100644 --- a/app/views/cards/assignments/new.html.erb +++ b/app/views/cards/assignments/new.html.erb @@ -1,5 +1,5 @@ <%= turbo_frame_tag @card, :assignment do %> - <%= tag.div class: "max-width", data: { + <%= tag.div class: "max-width full-width", data: { action: "turbo:before-cache@document->dialog#close dialog:show@document->navigable-list#reset keydown->navigable-list#navigate filter:changed->navigable-list#reset", controller: "filter navigable-list", dialog_target: "dialog", @@ -11,10 +11,8 @@ a - <% if @users.many? %> - <%= text_field_tag :search, nil, placeholder: "Filter…", class: "input input--transparent txt-small margin-block-half", autofocus: true, - type: "search", autocorrect: "off", autocomplete: "off", data: { "1p-ignore": "true", filter_target: "input", action: "input->filter#filter" } %> - <% end %> + <%= text_field_tag :search, nil, placeholder: "Filter…", class: "input input--transparent txt-small margin-block-half", autofocus: true, + type: "search", autocorrect: "off", autocomplete: "off", data: { "1p-ignore": "true", filter_target: "input", action: "input->filter#filter" } %>