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

Highlight items in build queue on hover #931

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

Conversation

fredden
Copy link
Contributor

@fredden fredden commented Jul 5, 2023

When I have many items in the build queue, I sometimes end up adding to the queue in duplicate, as I miss that I've already queued a particular building. This pull request highlights items already in the build queue when hovered in the main pane.

I've recycled an existing colour for 'has text advanced', but this can be swapped for something more specific if preferred.

Fixes #1130
Closes #1129

Copy link

@Randoom97 Randoom97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Figured since I tried to do the same thing I'd leave my two cents. Feel free to ignore.

From the README

Pull requests should not contain the JS/CSS files generated by the build.

That means you'll need to remove the changes to evolve.css and main.js.

I also highly recommend using git rebase so you don't need to add merge commits every time there's conflicts.

mouse_enter () {
const title = this.title;
$('.buildList .queued span[class^="res-"]').each(function () {
if (this.innerText === title) {
Copy link

@Randoom97 Randoom97 May 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you wanted to have this if be part of the selector, I found [id^=q${id}] span:first-child could replace .queued span[class^="res-"]

},
mouse_enter () {
$('.buildList .queued span').each(function () {
if (this.innerText === title) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar selector suggestion here but slightly different. [id^=qarpa${project}] span:first-child

@fredden
Copy link
Contributor Author

fredden commented May 11, 2024

From the README

Pull requests should not contain the JS/CSS files generated by the build.

Somehow I missed this line. Thanks for pointing it out. I'll update all my open pull requests accordingly.

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.

Suggestion: Building Queue highlights buildings you're hovering over.
2 participants