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

[BUILD-974] feat: Add config options for MH steps #1076

Merged
merged 11 commits into from
Jan 16, 2025

Conversation

RisingOrange
Copy link
Collaborator

@RisingOrange RisingOrange commented Jan 14, 2025

We want to allow users to select for which USMLE step they want to see BB/FA resources in the sidebar.

Related issues

https://ankihub.atlassian.net/jira/software/c/projects/BUILD/boards/1?selectedIssue=BUILD-914

Proposed changes

How to reproduce

  • Change the options in the config dialog and check that only resources for the enabled USMLE steps are shown in the reviewer sidebar

Screenshot

@RisingOrange RisingOrange changed the title feat: Add config options for MH steps [BUILD-974] feat: Add config options for MH steps Jan 14, 2025
@RisingOrange RisingOrange requested a review from a team January 14, 2025 19:59
abdnh
abdnh previously approved these changes Jan 15, 2025
@@ -3055,62 +3059,80 @@ def test_send_daily_review_summaries_without_data(mocker):
mock_anki_hub_client.send_daily_card_review_summaries.assert_not_called()


def url_mh_integrations_preview(slug: str) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use settings.url_mh_integrations_preview() instead of this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, because the config.app_url is not initialized when the parametrization data is initialized. I'll add a comment


def update_main_checkbox() -> None:
main_checkbox.blockSignals(True)
main_checkbox.setChecked(
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can set Qt.CheckState.PartiallyChecked if only one step is enabled?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good idea!

@RisingOrange RisingOrange requested a review from abdnh January 16, 2025 11:25
@RisingOrange RisingOrange merged commit 0f77455 into main Jan 16, 2025
7 checks passed
@RisingOrange RisingOrange deleted the add-config-options-for-mh-steps branch January 16, 2025 12:30
@pedroven pedroven restored the add-config-options-for-mh-steps branch January 17, 2025 17:28
@pedroven pedroven deleted the add-config-options-for-mh-steps branch January 17, 2025 18:06
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