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

Hide completed and failed #1052

Merged
merged 4 commits into from
Aug 6, 2021
Merged

Conversation

hiqua
Copy link
Collaborator

@hiqua hiqua commented Aug 4, 2021

Not sure how much you'll like the first commit. I can split this PR in two if that requires more discussion. The behavior change itself is relatively small (see second commit).

See #1049.

@hiqua hiqua requested a review from iSoron August 4, 2021 15:45
@hiqua hiqua force-pushed the hide_completed_and_failed branch 2 times, most recently from e7d61b7 to 2725a27 Compare August 4, 2021 16:18
@hiqua hiqua marked this pull request as draft August 4, 2021 16:25
@hiqua hiqua force-pushed the hide_completed_and_failed branch from 2725a27 to daabfe8 Compare August 4, 2021 16:47
@hiqua hiqua marked this pull request as ready for review August 4, 2021 16:57
Copy link
Owner

@iSoron iSoron left a comment

Choose a reason for hiding this comment

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

Thank you for the PR, @hiqua.

  1. The refactoring is fine, but could you please submit it as a separate PR?
  2. Could you please add some tests for isFailedToday?
  3. If question marks are enabled, we also need to modify the menu message from "Hide completed" to "Hide entered" or something similar.

@hiqua hiqua marked this pull request as draft August 5, 2021 07:03
@hiqua
Copy link
Collaborator Author

hiqua commented Aug 5, 2021

  1. done
  2. should I have different tests for isFailed or should I just insert assertions in the isCompleted tests that are already in the codebase? I was copy-pasting the tests until I realized you might prefer that I just add assertions inside the existing tests.
  3. ok trying to do that

Edit:
a. we also need to think about any possible interaction with the skip option
b. just because the unknown option is disabled, does not mean that the last tick is not a "no", since it could have been ticked while the option was active and before the user deactivated it again. So maybe sticking to one phrasing would be better, but we can talk about this once I have some preliminary version working.

@iSoron
Copy link
Owner

iSoron commented Aug 6, 2021

should I have different tests for isFailed or should I just insert assertions in the isCompleted tests that are already in the codebase?

Either way is fine.

just because the unknown option is disabled, does not mean that the last tick is not a "no", since it could have been ticked while the option was active and before the user deactivated it again.

I don't think this is a big issue. Most users will probably not keep switching back and forth between "hide/show question marks". I'd like to keep "hide completed" for users that have question marks disabled because I think it's much more clear.

@hiqua hiqua force-pushed the hide_completed_and_failed branch from c8d77e7 to 9339ddc Compare August 6, 2021 05:58
@hiqua hiqua force-pushed the hide_completed_and_failed branch from 9339ddc to eedf6c2 Compare August 6, 2021 06:04
@hiqua hiqua marked this pull request as ready for review August 6, 2021 06:44
@hiqua hiqua requested a review from iSoron August 6, 2021 06:50
@iSoron iSoron merged commit 13e57b5 into iSoron:dev Aug 6, 2021
@iSoron
Copy link
Owner

iSoron commented Aug 6, 2021

Looks good now, thanks!

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