HSTracker icon indicating copy to clipboard operation
HSTracker copied to clipboard

Battlegrounds UX clarity

Open Humeian opened this issue 6 months ago • 5 comments

Cleans up Battlegrounds Hero & Trinket picking overlays to use the same new SwiftUi view: Old: Screenshot 2025-06-20 at 11 46 33 AM Screenshot 2025-06-20 at 11 38 52 AM

New: Screenshot 2025-06-25 at 4 13 30 PM Screenshot 2025-06-25 at 4 25 26 PM

Additionally adds some text bolding to the battlegrounds session headers for increased clarity

Humeian avatar Jun 25 '25 20:06 Humeian

This looks so much better! I can't give constructive feedback on the added code, but the visuals are much closer to HDT. @fmoraes74 would you be able to peek at the code and see if anything jumps out to you? Thanks!

@Humeian I think one more pass on a few of the sizes, and then we should merge this ASAP:

I've created a split view for the different elements (HDT is the right one and HSTracker the left one, respectively): image

Based on that, here's some visual feedback:

  • the Avg Placement and Pick Rate boxes can generally shrink:
    • the text size is fine, it's really just the layout around it
    • the purple header sections can be a little smaller (leading to less padding for the text)
    • less padding around the placement/pick rate number itself
  • the tier box can loose a few pixels in all directions (to keep the top aligned)
  • the tier letter can be a tiny bit larger, so that it closer in width to the "TIER" txt

Here's the full screenshot from HDT for direct comparison: image

beheh avatar Jul 01 '25 15:07 beheh

I am curious why I don't see this difference with the existing code. I am worried about the duplication of UIs with this solution as I'd not have two different ways to handle the same UI.

The choice is to either figure out what's wrong with the AppKit version or make HST require 10.15 and above, even though Hearthstone still has a minimum requirement of 10.14.

Also, there is duplicate code for the Color extension as there is one already that pretty much does the same thing. I will take a closer look at this tonight but I'd rather not have duplicate UIs

fmoraes74 avatar Jul 01 '25 15:07 fmoraes74

I looked at the code and in general I don't have a problem except for having duplicate code. So, I would vote for picking one or the other as the way to go. So, either we figure out why AppKit is not working on other systems or we raise the minimum HST version to 10.15 which I assume Hearthstone will do next time they update Unity

fmoraes74 avatar Jul 02 '25 00:07 fmoraes74

I have updated the visuals to match more closely with HDT: Screenshot 2025-07-03 at 11 23 49 AM

As far as the duplicate code, I left the existing AppKit implementation there as a fallback to not take away existing functionality from 10.14 users. I definitely agree that we should not be actively maintaining both, and if we want to go forward with additional development in swiftUI we should likely just increase the minimum requirement to match

Humeian avatar Jul 03 '25 15:07 Humeian

Let's just hold on this until we can chat more on Discord with fmoraes74 about how we want to proceed with SwiftUI/10.15 vs continuing to support 10.14.

beheh avatar Jul 03 '25 21:07 beheh