Remove old Scene, ThemeColor, StyledSpan types and hand-written scenes (litmus-kbzo)
Final cleanup once all consumers migrated to TermOutput:
- Delete scene.rs (ThemeColor, StyledSpan, SceneLine, Scene)
- Delete scenes.rs (hand-written scene definitions)
- Remove scene_id_to_fixture_id() mapping (no longer needed)
- Clean up any remaining references to old types
- Verify all tests pass
Depends on: web and CLI migrations, contrast validation update
Plan
- Add
term_readability_score(theme, fixtures)to contrast.rs - Make
fixtures::all_fixtures()pub in litmus-web - Update SceneMinimap to accept fixture metadata instead of Scene
- Update sidebar to pass fixture data to minimap
- Update all pages (theme_detail, scene_across, compare, theme_list) to iterate fixtures instead of scenes
- Remove SceneView/ScenePreview fallback calls
- Remove scene_renderer.rs module
- Remove scene-based contrast functions and tests
- Delete scene.rs and scenes.rs from litmus-model
- Clean up all remaining references
Summary of Changes
Removed all Scene/ThemeColor/StyledSpan types and hand-written scene definitions:
- Deleted
scene.rsandscenes.rsfrom litmus-model - Deleted
scene_renderer.rsfrom litmus-web - Removed
scene_id_to_fixture_id()mapping from screenshot_view.rs - Removed
ContrastIssue,validate_scene_contrast(),readability_score(),validate_theme_readability()and their tests from contrast.rs - Updated
scene_across.rsandcompare.rsto iterate fixtures directly - Updated
theme_list.rsto useterm_readability_score()and removed scene_renderer fallback - Updated
state.rsfilter to useterm_readability_score() - Removed unused
fixture_by_id()and its test - All 177 tests pass, zero compiler warnings