Refactor code structure for improved readability and maintainability
CI/CD / test-and-build (push) Waiting to run
CI/CD / deploy (push) Blocked by required conditions

This commit is contained in:
Najjar\NajjarV02
2026-05-21 15:53:21 +04:00
parent d8502292bc
commit 1967ae5402
10 changed files with 480 additions and 32 deletions
+14 -1
View File
@@ -68,6 +68,9 @@ Used by the Industries grid (`IndustryUseCases` component) and the home-page Ind
| `cards/education.jpg` | YS Lootah library | internal |
| `cards/security-surveillance.jpg` | YS Lootah library | internal |
| `cards/warehouses-logistics.webp` | YS Lootah library | internal |
| `cards/events.webp` | YS Lootah library | internal |
| `cards/smart-buildings.webp` | YS Lootah library | internal |
| `cards/government.jpg` | YS Lootah library | internal |
## Industry page heroes (`/industries/pages/`)
@@ -86,6 +89,15 @@ Used by the `[slug]` detail page hero. May reuse internal library or brand refer
---
## Known production-hotlink issues (outside `/industries/`)
These files still hotlink directly to brand CDNs and should be migrated to local copies before public launch:
- `src/data/robots.ts` — multiple `unitree.com/images/...` and `oss-global-cdn.unitree.com/...` references
- `src/data/accessories.ts` — multiple `unitree.com/images/...` references
Track separately from this folder's asset list.
## TODO before public launch
1. Replace every `needs-approval` asset with either:
@@ -93,4 +105,5 @@ Used by the `[slug]` detail page hero. May reuse internal library or brand refer
- Original YS Lootah photography / commissioned renders.
2. Convert remaining `.jpg` / `.png` heroes to `.webp` once final assets are locked.
3. Audit alt text for accuracy after any image swap.
4. Keep this file in sync with `src/data/industries.ts` and `src/data/industry-pages.ts`.
4. Migrate the brand-CDN hotlinks listed above to local files.
5. Keep this file in sync with `src/data/industries.ts` and `src/data/industry-pages.ts`.