SteamDatabase / BrowserExtension

💻 SteamDB's extension for Steam websites
https://steamdb.info/extension/
BSD 3-Clause "New" or "Revised" License
762 stars 55 forks source link

Add relative date to historical lowest price display #87

Closed qs-arno closed 3 years ago

qs-arno commented 3 years ago

Currently, the historical lowest price notification looks like this:

steamdb-historical-lowest-price-before

It would be nice if it included the date of SteamDB's first recorded price, like so:

steamdb-historical-lowest-price-after

The way I like to do "fuzzy durations" is to pick the largest single unit in the duration (in this case, years), and just report that with a decimal value (such as what's in the "after" example). As opposed to something like "3 years, 6 months, 2 weeks, and 5 days" etc. which is only slightly more precise but much more wordy. That said, I don't really care about the formatting/precision as long as I can get a reasonable ballpark value.

qs-arno commented 3 years ago

The reasoning behind having this extra information to assist with differentiating betweeen:

  1. The item is on sale for x% but it's only been out for a month and it's not reeeally my cup of tea, so I can toss it back in the pond and see if it goes on sale for x+y% later, and
  2. The item is on sale for x%, and x% is the lowest it's ever been for a year. This is realistically the best it's gonna get unless I want to try waiting a really long time.

...or...

  1. The item is on sale for x%, has been tracked for three years, and the first instance of x% is from two months after release. At this point, it's pretty clear the publisher has decided on a lower boundary, and
  2. The item is on sale for x%, has been tracked for three years, and the first instance of x% is yesterday. Clearly the publisher is reevaluating their pricing strategy.

I mean, at the end of the day, the ideal scenario would be to just have the entire price history graph embedded right there, but I assume that's impractical or it'd already be there. 🙂

xPaw commented 3 years ago

Looks like you put two separate ideas into this issue, which makes it confusing.

  1. You want relative dates
  2. You want to see when the game went on sale (aka the release date?)
qs-arno commented 3 years ago

Yeah, I probably should have phrased that more clearly. 🙂 The date that I'm looking to be added is the "release date", which is more specifically defined as "the date of SteamDB's oldest historical price value" (that's any price, not just a sale price). I'm assuming that's very soon after the game's Steam release, except for games that are old enough to have been released before SteamDB existed.

The "duration" ("3.5 years" in the example) is simply the amount of time that's passed since that initial price value, until today. In other words, it's been "3.5 years" since November 9, 2017.

xPaw commented 3 years ago

To be honest your suggested example reads very confusingly, and there's limited value in that as far as I can see.

(Side note, I do have to tweak the text/styling of the banner after adding last seen dates).

qs-arno commented 3 years ago

If you think the wording is confusing, maybe just take the duration out since it's redundant data-wise anyway?

SteamDB lowest recorded price since Nov 9, 2017 (3.5 years ago) is $0.59 at -80% on 25 Jun 2020 (2 times, first on 20 Mar 2019)

...becomes:

SteamDB lowest recorded price since Nov 9, 2017 is $0.59 at -80% on 25 Jun 2020 (2 times, first on 20 Mar 2019)

That way all you're adding is since Nov 9, 2017.

xPaw commented 3 years ago

That's still very overloaded. Besides, what advantage does this have since you can see release date on the page already?

qs-arno commented 3 years ago

Yeah, that's true. I mean, I guess there's a potential discrepancy between the actual Steam release date and SteamDB's first sampling of the price, but in practical terms I imagine it's very rare that there's any meaningful difference between the two.

xPaw commented 3 years ago

You'd be right to assume that, and games older than SteamDB have mostly gone on sale by now for us to record a lower discount.