11-Dec-2025 — Migration: 4 features #102
Commit 6e468c1
New Features
migration: Phase 7 unit test fixes and turn off logging
migration: Phase 7 fixes for Points of Interest
- unit test fixes
migration: Phase 7 fixes for Points of Interest
- works except headings in this section are filtered out
migration: Phase 7 related to migration improvements - implement robust location extraction and conditional map rendering (delivers #97 phase 7)
This commit introduces significant improvements to location extraction during page migration and ensures maps are only rendered when valid location data is available.
- Enhanced Location Extraction (DRY Refactor):
- Created a shared module in to centralize location parsing logic, including grid references, postcodes, and natural language phrases like "from X to Y" and "start at X".
- Refactored both the frontend and the backend to consume this shared module, eliminating code duplication.
- Configured Angular project files (, ) with mapping ( and ) to correctly resolve imports to the shared server-side module.
- Updated to reflect the refined content extraction patterns for narrative and points of interest sections.
- Conditional Map Rendering:
- Modified in the frontend to only render the map component if valid coordinates (latitude and longitude) are present. This prevents displaying empty map placeholders.