Ask before deleting a tab, and test the categories page in a browser

The delete form had Turbo switched off, which is what asks Turbo's
confirm question — so a tab and its filing went at one click. It goes
through Turbo now, as the account list's delete does.

The tab card is headed "Tabs": the sorting card's first switch is
already called "Inbox tabs".

inbox-categories.spec.ts makes a tab, moves it with the buttons and
reloads to the same order, and switches Forums off and finds no Forums
tab in the inbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Paul LütznerandClaude Opus 5.5 committed 2026-10-14 11:52:09 +02:00
1 parent 637e964408
commit ab15ccc762
6 files changed
+99 -5

No files matched your search

+4 -1
View File
@@ -117,8 +117,11 @@ Accepts:
</button>
</form>
{# Through Turbo, unlike the forms above: data-turbo-confirm is
Turbo's, and with Turbo off the tab was deleted without
the question being asked. #}
<form method="post" action="{{ path('app_settings_categories_delete', { id: tab.categoryId }) }}"
data-turbo="false" class="shrink-0"
class="shrink-0"
data-turbo-confirm="{{ 'settings.categories.delete_confirm'|trans({ '%name%': tab.name }) }}">
<input type="hidden" name="_token" value="{{ csrf_token('settings-categories') }}">
<button type="submit"