[GH-ISSUE #6] The "Profiles" ordering is inconsistent during first save #4

Open
opened 2026-10-15 12:54:15 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @HashimHS on GitHub (Jan 24, 2026).
Original GitHub issue: https://github.com/games-on-whales/wolf-den/issues/6

I have two users named "Hashim" and "Tester"

When first time launching Wolf-Den, the users were ordered 1. Hashim, 2. Tester
Image

After editing "Hashim" profile as saving, the users suddenly swap places while the pop up message on top right corner says "Updating Tester".
Image

After saving the first time and refreshing the page it looks fine. Although the users are ordered 1. Tester 2. Hashim now. The correct user "Hashim" is edited though.

In my original .toml file, I had "Hashim" as the first profile with the user id "user". Tester has a user id "tester". I think the issue is that Wolf-Den reorders users by user id and this causes this weird inconsistency.

I was able to reproduce the issue when restoring my old .toml wolf config file.

Originally created by @HashimHS on GitHub (Jan 24, 2026). Original GitHub issue: https://github.com/games-on-whales/wolf-den/issues/6 I have two users named "Hashim" and "Tester" When first time launching Wolf-Den, the users were ordered 1. Hashim, 2. Tester <img width="2559" height="1265" alt="Image" src="https://github.com/user-attachments/assets/92245edc-17ff-4da1-80b3-9e7748a16dd2" /> After editing "Hashim" profile as saving, the users suddenly swap places while the pop up message on top right corner says "Updating Tester". <img width="2559" height="1191" alt="Image" src="https://github.com/user-attachments/assets/497c7082-2186-405f-bc40-a36c323835fe" /> After saving the first time and refreshing the page it looks fine. Although the users are ordered 1. Tester 2. Hashim now. The correct user "Hashim" is edited though. In my original .toml file, I had "Hashim" as the first profile with the user id "user". Tester has a user id "tester". I think the issue is that Wolf-Den reorders users by user id and this causes this weird inconsistency. I was able to reproduce the issue when restoring my old .toml wolf config file.
Author
Owner

@Skerga commented on GitHub (Jan 24, 2026):

This is a side effect that occurs because there is no update endpoint in the Api. So the way that is currently handled is by storing the current state of the profile -> modifying the profile -> deleting the profile -> adding the modified profile.

So Wolf would first need a UpdateProfile endpoint, until then it will sadly move the last edited at the end of the list.

<!-- gh-comment-id:3794803728 --> @Skerga commented on GitHub (Jan 24, 2026): This is a side effect that occurs because there is no update endpoint in the Api. So the way that is currently handled is by storing the current state of the profile -> modifying the profile -> deleting the profile -> adding the modified profile. So Wolf would first need a UpdateProfile endpoint, until then it will sadly move the last edited at the end of the list.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/wolf-den#4
No description provided.