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

raidboss: fix inconsistent "soon" timeline colors #5576

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

quisquous
Copy link
Owner

Largely the issue here is that each timeline bar has an id, and the timeout to recolor a bar to be "soon" was looking by id. If the timeline ever got adjusted due to syncs or jumps, then the soon timer would end up firing for bars at different times.

To fix this, instead have the soon timer refer to the html element directly rather than an indirect id.
Track and clear this (to avoid outstanding useless timeouts) if the bar is ever removed.

While we're here, also refactor the expiring timeout into the same structure.

Fixes #627.

Largely the issue here is that each timeline bar has an id,
and the timeout to recolor a bar to be "soon" was looking by
id.  If the timeline ever got adjusted due to syncs or jumps,
then the soon timer would end up firing for bars at different
times.

To fix this, instead have the soon timer refer to the
html element directly rather than an indirect id.
Track and clear this (to avoid outstanding useless timeouts)
if the bar is ever removed.

While we're here, also refactor the expiring timeout into
the same structure.

Fixes #627.
@quisquous
Copy link
Owner Author

If anybody has any time to just test this and make sure nothing looks weird with timelines, I'd appreciate it, otherwise I'll just run with this next week and land it after that if I don't see anything. It's probably ok, but this code doesn't get changed much and so just being careful about breaking things.

@JLGarber
Copy link
Collaborator

I'll try to check this for Tuesday evening assuming Ravahn gets things set up in time.

@JLGarber
Copy link
Collaborator

Everything looked fine tonight. Nothing went weird on jumps or duration windows that I noticed.

@quisquous quisquous merged commit 38f6742 into main Jun 21, 2023
@quisquous quisquous deleted the timeline_soon_coloring branch June 21, 2023 15:44
github-actions bot pushed a commit that referenced this pull request Jun 21, 2023
)

Largely the issue here is that each timeline bar has an id, and the
timeout to recolor a bar to be "soon" was looking by id. If the timeline
ever got adjusted due to syncs or jumps, then the soon timer would end
up firing for bars at different times.

To fix this, instead have the soon timer refer to the html element
directly rather than an indirect id.
Track and clear this (to avoid outstanding useless timeouts) if the bar
is ever removed.

While we're here, also refactor the expiring timeout into the same
structure.

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

Successfully merging this pull request may close these issues.

raidboss: inconsistent "soon" colorings
2 participants