immich
immich copied to clipboard
fix(mobile): remove log message counter
Previously, the items in the log page were numbered starting with #0 and increasing from top (newest) to bottom (oldest). Being new to the app, this confused me because I would have expected that newer messages have a higher number than older messages.
Initially, I had planned to just start counting from the bottom (i.e. the oldest message would be #0), but I guess the auto-increment ID of the message would be even better as it isn't reused after clearing the logs. That is, if a number is needed at all...
Since the numbers are no longer related to the total log count, I removed the same from the title. Instead, I added the message ID to the details page title.
I'm okay with changing the order of the logs, but using the autoIncrement ID from Isar results in the following scenario where if you open the log page immediately, it will display a very large ID until you reopen the log page and then it would be fine.
Can you check if you can reproduce this from your end as well?
Edit: Kindly check and handle the analyzer issue as well to make the PR checks pass
Ah, I briefly saw this just once and then never again... but now that you're pointing to it, I understand where it's coming from.
I see four options:
- Guess the next IDs by counting further from the last known ID (but we might not have the latter, or might guess wrong).
- Show a placeholder (e.g.
#-1or#...). - Go back to simple counting of the messages, but starting with the oldest instead of the newest one.
- Remove the message numbers from display because they don't really add any value. The timestamp is much more helpful to understand the order and relevance of messages. Potentially, the order of timestamp and "from" could be reversed to further highlight it. The date might also be helpful as well if it's an older message.
If you have any preference, please let me know, otherwise I'd give option 4 a shot.
If you have any preference, please let me know, otherwise I'd give option 4 a shot.
I don't have an actual preference but won't 3 be actually easier to implement? We already have the total number of logs and the current index, and so, it is just a matter of taking a difference between them and displaying it instead of directly displaying the index?
Removing the index completely would be even easier as it's just about deleting some (parts of) lines. 😉
@alextran1502 / @fyfrey Thoughts on how we can handle the log message numbering in the log page?
We might just not show any number at all. Logs have a timestamp and their message+data. That should be enough.
@rovo89 We can remove the numbering completely. Can you update your PR with the required change?
Sure, I have already done that locally. Will try tonight if moving the timestamp to the front looks better, then I'll push it.
I've change the subtitle to "at
@rovo89 Can you re-base your changes over the latest main branch?
Sure, will do that later today.
Looks like @jrasm91 already rebased, thanks! I'm a bit confused though. Aren't you guys using squash merges anyway, so why rebase when there's no conflict?
Looks like @jrasm91 already rebased, thanks! I'm a bit confused though. Aren't you guys using squash merges anyway, so why rebase when there's no conflict?
In this case there are github action workflow changes on main that were missing in the branch. Required actions weren't passing because they didn't exist. Rebase was to make sure the required actions actually passed with your code changes.