Skip to content
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

Add 'Server day' and 'Server week' to the Time Periods dropdown #87

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tflo
Copy link

@tflo tflo commented Aug 12, 2024

The calendar week, starting with Monday/Sunday, and the day, starting with midnight, are largely irrelevant to me when playing WoW. So I think you’ve already done a great job by offering “last day” (last 24 hours) and “last week” (last 7 days) in the Time Period dropdown instead.

However, what is relevant to me in WoW, instead of the calendar day/week, is the server day and server week, i.e. the time since the daily server reset (currently 6:00 CEST) and the time since the weekly server reset (Wednesday, 6:00).

You have implemented these periods already in the minimap button tooltip, for the profit summaries.

What this PR does is add these periods also to the Time Period dropdown menu in the main window:

SCR-20240812-txra-2

In particular, I find the server day to be extremely useful. It allows me to see all my sales from what I perceive as “today”, without the overhang of yesterday’s entries that I get when using the “last day” (24h) time period.1

To keep it inexpensive, the last daily/weekly reset time is only calculated once per session. This is sufficient for me, since I rarely have a session that goes over the reset time. And a player who regularly starts a session just before the reset time will probably make better use of a different time period anyway. But YMMV.


I’ve been using this modification in (almost) identical form in my local copy for months, and it works fine and error-free in WoW Retail. But it is completely untested with other flavors like Classic, TBC, etc.!

Since I’m not very familiar with Journalator’s code structure, my implementation is probably suboptimal. So, if you like the idea, please take this PR as a mere suggestion and do it your/Journalator’s way.

Thanks for considering!

Footnotes

  1. About the wording: I originally called it “Since [daily|weekly] server reset”. This is more expressive, but considering the length of the other menu items, it seemed too long. Also, the “day”/”week” wording is more consistent with the rest of the menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant