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

363: Selects the next non-hidden category to display when the currently-displayed category is hidden #533

Conversation

cinadia
Copy link
Contributor

@cinadia cinadia commented May 23, 2024

Description:
When a user hides the currently-displayed category, looks for and select the next non-hidden category. Displays the Category label and Phrases of the newly-selected, non-hidden category.

Defaults to looking for the next non-hidden category to the "right".

Addresses #363

  • Acceptance Criteria satisfied
  • Regression Testing

@cinadia cinadia self-assigned this May 23, 2024
@cinadia cinadia marked this pull request as ready for review May 23, 2024 21:06
Copy link
Collaborator

@PaulKlauser PaulKlauser left a comment

Choose a reason for hiding this comment

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

Can you add some automated test cases for this new logic to PresetsViewModelTest?

@cinadia cinadia requested a review from PaulKlauser May 24, 2024 21:57
Copy link
Collaborator

@PaulKlauser PaulKlauser left a comment

Choose a reason for hiding this comment

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

As huddled on, please add some test cases to PresetsViewModelTest. Once we have those, decide if you think the UI automation is still valuable, considering that it can be more costly to run and maintain.

@cinadia cinadia requested a review from PaulKlauser June 3, 2024 23:49
category
)

}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Heck yea!

Copy link
Collaborator

Choose a reason for hiding this comment

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

THESE 👏 ARE 👏 SO 👏 GOOD

category = it
}
}
job.cancel()
Copy link
Collaborator

Choose a reason for hiding this comment

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

I just brought in Turbine to make this less obnoxious, could be fun to refactor this later and see how much nicer turbine makes things

@PaulKlauser PaulKlauser merged commit 97e88ce into willowtreeapps:main Jun 4, 2024
5 checks passed
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.

2 participants