Skip to content

feat(webserver): map UX improvements - #67

Merged
cchwala merged 3 commits into
mainfrom
feat/map-ux-improvements
Oct 21, 2026
Merged

cchwala merged 3 commits into
mainfrom
feat/map-ux-improvements

Conversation

@cchwala

@cchwala cchwala commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Map UX improvements

First batch of low-effort items from user feedback (backlog for the rest: docs/ui-ux-improvements.md).

Changes

  • Easier line selection: canvas renderer with 8 px click tolerance for CML lines.
  • Scale bar: metric scale next to the zoom buttons (user and admin map).
  • CML metadata in popups: length, frequency (GHz) and polarization per sublink.
    • /api/cml-map and /api/admin/cml-map now return length and sublinks.
    • Admin map: the hover tooltip is replaced by a click popup with the same content.
  • Grafana dropdown to map: picking a CML in the dashboard dropdown opens its popup (user and admin map).
    • The iframe URL is polled every 500 ms.
    • The map pans only if the line is out of view or hidden behind the chart.
  • Selected CML highlight: thicker, opaque line on both maps; hover no longer overrides it.
  • Default refresh 1 min: Grafana dashboards (cml-realtime, cml-admin-realtime) and iframe URLs.

Notes

  • Popup assumes cml_metadata.length is in metres and frequency in MHz (as in the archive CSV). The other_mno_csv parser maps length_km directly, so that source may need normalising.
  • Docs: docs/ui-ux-improvements.md lists remaining suggestions with effort estimates.

Testing

  • pytest webserver/tests: 119 passed, 1 skipped; CI green.
  • Manually checked in the local stack (user and admin map): popup content, dropdown-to-map link, selected-line highlight, scale bar.

- Larger click tolerance for CML lines (canvas renderer)
- Metric scale bar on map
- Show length, frequency and polarization in map popup
- Default Grafana refresh 1m
- Document remaining UI/UX suggestions
@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.65%. Comparing base (ae41b24) to head (8d6b490).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #67      +/-   ##
==========================================
+ Coverage   85.78%   86.65%   +0.86%     
==========================================
  Files          41       37       -4     
  Lines        3911     3424     -487     
==========================================
- Hits         3355     2967     -388     
+ Misses        556      457      -99     
Flag Coverage Δ
mno_simulator 86.12% <ø> (ø)
parser 90.14% <ø> (ø)
scripts ?
webserver 77.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

…ale bar

- Highlight selected CML on user and admin maps
- Admin map: metadata popup, opens when CML chosen in Grafana dropdown
- Scale bar next to zoom buttons (user and admin map)
@cchwala cchwala changed the title feat(webserver): map UX improvements and 1m default refresh feat(webserver): map UX improvements Oct 21, 2026
@cchwala
cchwala merged commit c0f5a7d into main Oct 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant