Skip to content

feat: implement confidence score slider#79

Merged
drduhe merged 1 commit intomainfrom
feat/implement-confidence-slider
Feb 25, 2026
Merged

feat: implement confidence score slider#79
drduhe merged 1 commit intomainfrom
feat/implement-confidence-slider

Conversation

@drduhe
Copy link
Copy Markdown
Collaborator

@drduhe drduhe commented Feb 18, 2026

Issue #, if available: n/a

Summary

  • Added confidence-based filtering for GeoJSON detections in the layer panel UI.
  • Kept full detection loading intact; filtering now updates visibility in place by toggling entity display state.
  • Added a global minimum-confidence slider (0.001.00) and per-layer display counts (shown / total) to make filter impact clear.

Implementation Notes

  • Introduced featureConfidence utilities to:
    • extract confidence/score values from nested feature properties,
    • normalize values from either 0..1 or 0..100,
    • apply threshold filtering to loaded entities.
  • Extended resource context with confidenceThreshold and setConfidenceThreshold, and applied filtering:
    • when threshold changes,
    • when feature collections are added,
    • when collection visibility is toggled.

Checklist

Before you submit a pull request, please make sure you have the following:

  • Code changes are compact and well-structured to facilitate easy review
  • Changes are documented in the README.md and other relevant documentation pages
  • PR title and description accurately reflect the changes and are detailed enough for historical tracking
  • PR contains tests that cover all new code and the code has been manual tested
  • All new dependencies are declared (if any), and no unnecessary libraries are added
  • Performance impacts (if any) of the changes are evaluated and documented
  • Security implications of the changes (if any) are reviewed and addressed
  • I have read the Contributing Guidelines and agree to follow the Code of Conduct

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Copy Markdown

@devinglauner devinglauner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@drduhe drduhe merged commit 34e4abb into main Feb 25, 2026
4 checks passed
@drduhe drduhe deleted the feat/implement-confidence-slider branch February 25, 2026 18:09
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.

2 participants