[openstreetmap/openstreetmap-website] Show valid username in header when renaming (PR #5896)

Anton Khorev notifications at github.com
Sat Apr 5 19:23:11 UTC 2025


When trying to rename a user account to an invalid name, the invalid name is shown in the upper right corner as if the rename already happened:
![image](https://github.com/user-attachments/assets/319ac66a-6f2b-4c41-b1e5-67dc9410ce21)

This PR shows the name before the invalid change:
![image](https://github.com/user-attachments/assets/1e502034-88a3-4e24-b5af-d37837b6bff6)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5896

-- Commit Summary --

  * Show valid username in header when renaming

-- File Changes --

    M app/views/layouts/_header.html.erb (2)
    A test/system/account_rename_test.rb (19)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5896.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5896.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5896
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5896 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250405/401e7bea/attachment.htm>


More information about the rails-dev mailing list