New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mobile): remove log message counter #6865
Conversation
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:
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. |
a600da2
to
bf5f990
Compare
I've change the subtitle to "at in " to make the timestamp at little bit more prominent (and because it has a pretty much stable width across messages). I have some further ideas, but I think I'll save them for another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@rovo89 Can you re-base your changes over the latest main branch? |
Sure, will do that later today. |
Previously, the items in the log page were numbered starting with `#0` and increasing from top to bottom. Being new to the app, this confused me because I would have expected that newer messages have a higher number than older messages. Removing the counter completely because it doesn't add any value - log messages are identified by their timestamp, text and other details.
bf5f990
to
fc0ad0e
Compare
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. |
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.