Skip to content

VSN-2118 : Integration of circuits initial generation & fetching markers of validated passengers in the circuits map & dynamising existing markers attribution based on preparation part in the MapMarker component.

yassine.elazami a demandé de fusionner VSN-2118 vers develop

Merge Request Description

Title

VSN-2118: Enhanced Circuit Map Visualization, Dynamic Popovers, and Markers API Integration


Overview

This merge request focuses on improving circuit map visualization and interaction, with a strong emphasis on dynamic markers, enriched popover content, and clearer separation of preparation contexts. It introduces new backend endpoints and frontend integrations to support validated passengers markers, initial circuits generation, and customized map rendering, while also enhancing visual clarity through additional color schemes.


Detailed Changes

1. Circuit Marker Enrichment

  • Refactor (3e8ad372):
    • Added user name reference directly into the circuit marker model.
    • This allows map markers to display clearer contextual information about the associated user, improving traceability and UX.

2. Dynamic Popover Data

  • Feature (ac0de849):
    • Implemented logic to calculate custom popover data dynamically based on circuit context.
    • Popover content is now constructed at runtime, allowing richer and more accurate information display.
  • Feature (37dd5165):
    • Added a separation flag to distinguish between:
      • Passenger preparation data
      • Usager preparation data
    • This ensures the popover renders the correct dataset depending on the active workflow.

3. Map Styling Enhancements

  • Feature (72954fba):
    • Introduced additional map colors to increase visual diversity and readability.
    • Helps differentiate circuits and markers more clearly, especially in dense map views.

4. Validated Passengers Markers API

  • Feature (f53219ff):
    • Added a new backend endpoint dedicated to fetching markers for validated prepared passengers.
  • Feature (fb379565):
    • Implemented the corresponding API call on the client side.
    • Enables real-time retrieval and rendering of validated passengers markers on the map.

5. Initial Circuits Generation Integration

  • Feature (c926c377):
    • Added endpoint responsible for initial circuits generation.
  • Feature (417d215d):
    • Implemented the API call logic for triggering and retrieving initial circuits generation.
  • Feature (9ba844b8):
    • Integrated the initial circuits generation flow into the relevant frontend component, ensuring seamless interaction between UI and backend.

Benefits

  • Richer map interaction: Markers now carry more contextual information (user name, preparation type).
  • Improved UX: Dynamic popovers adapt to the active workflow and display only relevant data.
  • Better visual clarity: Additional map colors enhance readability and differentiation.
  • Stronger API coverage: Dedicated endpoints for validated passengers markers and initial circuits generation.
  • Cleaner separation of concerns: Clear distinction between passengers preparation and usagers preparation logic.

Impact & Compatibility

  • No breaking changes to existing endpoints.
  • New endpoints and flags are additive and backward-compatible.
  • Frontend components gracefully integrate new APIs without affecting existing flows.

Conclusion

This MR significantly enhances the map-based circuit visualization experience by combining backend API extensions with frontend dynamic rendering improvements. It lays a solid foundation for scalable map interactions, clearer data presentation, and future extensions around circuit and passenger visualization.

Closes VSN-2118

Rapports de requête de fusion