Skip to content

feat: add Core module and display formatting for Strategies#100

Merged
ocots merged 7 commits intomainfrom
display-options
Mar 15, 2026
Merged

feat: add Core module and display formatting for Strategies#100
ocots merged 7 commits intomainfrom
display-options

Conversation

@ocots
Copy link
Copy Markdown
Member

@ocots ocots commented Mar 15, 2026

  • Add Core module with exception handling and utilities
  • Implement display formatting for strategy options with pretty printing
  • Update module exports and includes across the codebase
  • Enhance strategy registry and contract metadata

- Add Core module with exception handling and utilities
- Implement display formatting for strategy options with pretty printing
- Update module exports and includes across the codebase
- Enhance strategy registry and contract metadata
ocots added 5 commits March 15, 2026 21:14
- Add v0.4.7-beta section to CHANGELOG.md with Core module and display formatting features
- Add v0.4.7-beta section to BREAKING.md (no breaking changes)
- Document improvements to module organization and strategy registry
- Fix test_metadata.jl to expect new format without spaces before :: in type annotations
- Fix test_coverage_abstract_strategy.jl to expect NotImplemented errors for missing contract methods
- Tests now properly validate the enhanced display formatting and error handling
…ry display

- Add describe(id::Symbol, registry::StrategyRegistry) function
  - Display strategy family, parameters, and default parameter
  - Group options into common vs computed categories
  - Show computed option values per parameter
  - Handle ExtensionError gracefully with red display

- Improve StrategyRegistry show formatting
  - Remove duplicate strategy IDs in display
  - Group strategies by ID with parameterized variants
  - Show full type names with parameters
  - Clear tree structure with proper indentation

- Add comprehensive tests for describe functionality
  - Test single and multi-parameter strategies
  - Test extension-dependent strategies
  - Test error handling for unknown IDs

- Add visual separator between parameters and options sections
- Display extension names in red when metadata unavailable
- Document new registry-aware describe function
- Document enhanced StrategyRegistry display improvements
- Document visual formatting enhancements
- Document extension error display improvements
- Document comprehensive test suite additions
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 15, 2026

Codecov Report

❌ Patch coverage is 89.34426% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.63%. Comparing base (bda001d) to head (a0226da).

Files with missing lines Patch % Lines
src/Strategies/api/describe_registry.jl 84.33% 26 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #100      +/-   ##
==========================================
- Coverage   93.13%   92.63%   -0.51%     
==========================================
  Files          46       49       +3     
  Lines        1137     1330     +193     
==========================================
+ Hits         1059     1232     +173     
- Misses         78       98      +20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

- Add vertical separator │ between family and options for strategies without parameters
- Ensures visual consistency across all strategy displays
- Maintains tree structure formatting for better readability
@ocots ocots merged commit 3e6d9e7 into main Mar 15, 2026
7 checks passed
@ocots ocots deleted the display-options branch March 15, 2026 21:55
@ocots ocots mentioned this pull request Apr 1, 2026
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