fix(catalog): add fallback to local seed data for images and medicines
- Import `diseaseCatalogSeed` to use as a fallback data source in `catalog-page.tsx`. - Implement logic to merge backend API responses with local seed data, ensuring `imageUrl` and `medicineRecommendations` are populated. - Fix an issue where disease images and specific treatments were not rendering due to missing fields in the database payload. - Enhance UI resilience by displaying accurate visual and medical data without requiring immediate backend updates. - Convert static PNG image assets to WebP format and remove old PNG files to significantly reduce image payload size and improve page load performance. - Enhance overall UI resilience and frontend speed.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 57 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 320 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
Reference in New Issue
Block a user