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:
1 parent
bc58b16ddd
commit
8d342e1269
8 files changed
+344
-205
No files matched your search
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: 321 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 103 KiB |
Reference in new issue
Block a user