Skip to content

Add support for Labs Merit Badges#2

Merged
dasevilla merged 1 commit intomainfrom
labs-support
Jan 2, 2026
Merged

Add support for Labs Merit Badges#2
dasevilla merged 1 commit intomainfrom
labs-support

Conversation

@dasevilla
Copy link
Owner

@dasevilla dasevilla commented Dec 31, 2025

Add support for a new "Lab" attribute to merit badges, allowing badges to be marked as part of the test lab and displaying this information in the generated Anki cards. The changes include schema updates, data normalization, and enhancements to both the card model and note creation to reflect the new attribute.

Merit Badge Schema and Data Normalization:

  • Added a new is_lab boolean attribute to the MeritBadge class and updated the normalize_badge_data function to extract and set this attribute from input data.

Anki Card Model and Note Enhancements:

  • Updated the Anki model in create_merit_badge_model to include a new LabNote field and render it in the card template if present. Also added corresponding CSS styling for the lab note.
  • Modified note creation in create_merit_badge_note to populate the LabNote field and add a "test-lab" tag to lab-related badges.

@dasevilla dasevilla merged commit 795dd28 into main Jan 2, 2026
4 checks passed
@dasevilla dasevilla deleted the labs-support branch January 2, 2026 18:28
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.

1 participant