ted
(Ted Johansson)
11. Mai 2026 um 03:38
7
@martin Hier ist ein erster Entwurf:
main ← Drenmi:feature/impersonation-countdown
opened 03:36AM - 11 May 26 UTC
### What is this change?
This PR adds a countdown to the impersonation banner… , corresponding to the time left out of the allotted time in the site setting. When the countdown reaches 0 impersonation ends.
As part of this change, I made the `impersonate#destroy` endpoint idempotent and visible to all admins, whether they are impersonating or not. This prevents any "unexpected errors" from happening if there's a race to end impersonation.
**Screenshot:**
<img width="537" height="79" alt="Screenshot 2026-05-11 at 11 26 08 AM" src="https://github.com/user-attachments/assets/e44f6ef0-30ec-4050-ad08-e555c0e9f80a" />
Ich habe mich dafür entschieden, dies zunächst im Frontend umzusetzen. Wir haben die benötigten Daten dort ohnehin bereits vorliegen. Es wäre besser, als sofort mit MessageBus herumzubasteln.
1 „Gefällt mir“