From 17666b51c213a9702ea256fc86cabaecd0044a55 Mon Sep 17 00:00:00 2001 From: bruno Date: Wed, 15 Jul 2026 07:56:21 -0400 Subject: [PATCH] fix: two UX issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. Settings X button: closeSettings() goes back, skipping hash-only navigation → No more double-click to close 2. Workspaces page: Connect Gitea link now includes &mode=link → Same link as Settings → Integrations (was missing mode=link) --- app/templates/settings.html | 11 ++++++++++- app/templates/workspaces.html | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/templates/settings.html b/app/templates/settings.html index 2aef013..6e8d413 100644 --- a/app/templates/settings.html +++ b/app/templates/settings.html @@ -81,7 +81,7 @@
- +
@@ -798,6 +798,15 @@ document.addEventListener('alpine:init', function() { if (r.ok) { this.githubLinked = false; } } catch(e) {} }, + closeSettings() { + // Go back to previous page, skipping any hash-only navigation + if (document.referrer && document.referrer.includes('/settings')) { + // Came from another settings tab — use history until we leave settings + history.go(-2); + } else { + history.back(); + } + }, }; }); }); diff --git a/app/templates/workspaces.html b/app/templates/workspaces.html index ed97241..508e107 100644 --- a/app/templates/workspaces.html +++ b/app/templates/workspaces.html @@ -88,7 +88,7 @@
Connect your Gitea account to see your projects.
- 🔗 Connect Gitea + 🔗 Connect Gitea or 📝 Register with Gitea