.vbw-planning/milestones/ui-fixes-and-smart-scraping/phases/01-ui-polish-and-bug-fixes/02-PLAN.md
Add mini_magick gem to the gemspec as a runtime dependency (or development dependency if it should be optional).
Files:
source_monitor.gemspec — add spec.add_dependency "mini_magick"Details:
defined?(MiniMagick) guardAfter the Discoverer downloads a favicon, detect if it's SVG and convert to PNG before returning the Result.
Files:
lib/source_monitor/favicons/discoverer.rb — add conversion step in download_favicon methodlib/source_monitor/favicons/svg_converter.rb — isolated conversion classtest/lib/source_monitor/favicons/svg_converter_test.rbDetails:
download_favicon, after validating content_type, check if content_type == "image/svg+xml"SvgConverter.call(io) which uses MiniMagick to convert to PNGcontent_type: "image/png", updated filename, and PNG ioimage/svg+xml in allowed_content_types so SVGs are downloaded, but always convert before returningWrite tests covering the SVG detection and conversion path.
Files:
test/lib/source_monitor/favicons/svg_converter_test.rbtest/lib/source_monitor/favicons/discoverer_test.rb — add SVG scenarioAcceptance: