Skip to content

Commit

Permalink
Enhance privacy and dog bark filter settings UI
Browse files Browse the repository at this point in the history
- Added new sections for enabling privacy filtering and configuring confidence thresholds for human voice detection.
- Improved tooltip handling and labeling for clarity in privacy and dog bark filter settings.
- Updated HTML structure for better maintainability and consistency across the settings interface.
- Enhanced user experience with clearer descriptions and improved layout for filter settings.
  • Loading branch information
tphakala committed Jan 13, 2025
1 parent ccd12dd commit 872ce03
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions views/settings/filtersSettings.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,34 @@
<!-- Privacy Filter Settings -->
<div class="text-lg font-medium pb-2">Privacy</div>

<!-- Privacy Filter Enabled -->
<div class="form-control relative">
<label class="label justify-start" for="privacyFilterEnabled">
<input type="checkbox" id="privacyFilterEnabled" name="realtime.privacyfilter.enabled" x-model="privacyFilter.enabled" class="checkbox checkbox-primary checkbox-xs mr-2">
<input type="hidden" name="realtime.privacyfilter.enabled" value="false">
<span class="label-text">Enable Privacy Filtering</span>
<span class="help-" @mouseenter="showTooltip = 'privacyFilter'" @mouseleave="showTooltip = null"></span>
<span class="help-icon" @mouseenter="showTooltip = 'privacyFilter'" @mouseleave="showTooltip = null"></span>
</label>
<div x-show="showTooltip === 'privacyFilter'" x-cloak class="tooltip">
Enables detection of human voices, if detected discards bird detection to protect privacy
</div>
</div>

<!-- Privacy Filter Settings -->
<div x-show="privacyFilter.enabled" class="grid grid-cols-1 md:grid-cols-2 gap-6">

<!-- Privacy Filter Confidence -->
<div class="form-control relative">
<label class="label justify-start" for="privacyFilterConfidence">
<span class="label-text">Confidence Threshold for Human Detection</span>
<span class="help-" @mouseenter="showTooltip = 'privacyConfidence'" @mouseleave="showTooltip = null"></span>
<span class="help-icon" @mouseenter="showTooltip = 'privacyConfidence'" @mouseleave="showTooltip = null"></span>
</label>
<input type="number" id="privacyFilterConfidence" name="realtime.privacyFilter.confidence" x-model="privacyFilter.confidence" step="0.01" min="0" max="1" class="input input-bordered input-sm w-full mb-4">
<div x-show="showTooltip === 'privacyConfidence'" x-cloak class="tooltip">
Set the confidence level for human voice detection, lower value makes filter more sensitive
</div>
</div>

</div>

</div>
Expand Down Expand Up @@ -164,13 +169,13 @@
</div>

<!-- Dog Bark Filter Settings -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6" x-show="dogBarkFilter.enabled">
<div x-show="dogBarkFilter.enabled" class="grid grid-cols-1 md:grid-cols-2 gap-6">

<!-- Dog Bark Filter Confidence Threshold -->
<div class="form-control relative">
<label class="label-text">
Confidence Threshold
<span class="help-icon"
@mouseenter="showTooltip = 'dogBarkConfidence'"
@mouseleave="showTooltip = null"></span>
<label class="label justify-start" for="dogBarkFilterConfidence">
<span class="label-text">Confidence Threshold</span>
<span class="help-icon" @mouseenter="showTooltip = 'dogBarkConfidence'" @mouseleave="showTooltip = null"></span>
</label>
<input type="number" id="dogBarkFilterConfidence" name="realtime.dogbarkfilter.confidence"
x-model="dogBarkFilter.confidence" step="0.01" min="0" max="1" class="input input-bordered input-sm w-full">
Expand All @@ -181,17 +186,16 @@

<!-- Dog Bark Expire Time (Minutes) -->
<div class="form-control relative">
<label class="label-text">
Dog Bark Expire Time (Minutes)
<span class="help-"
@mouseenter="showTooltip = 'dogBarkExpire'"
@mouseleave="showTooltip = null"></span>
<label class="label justify-start" for="dogBarkFilterRemember">
<span class="label-text">Dog Bark Expire Time (Minutes)</span>
<span class="help-icon" @mouseenter="showTooltip = 'dogBarkExpire'" @mouseleave="showTooltip = null"></span>
</label>
<input type="number" x-model="dogBarkFilter.remember" min="0" class="input input-bordered input-sm w-full" />
<div x-show="showTooltip === 'dogBarkExpire'" x-cloak class="tooltip">
Set how long to remember a detected dog bark
</div>
</div>

</div>

<!-- Dog Bark Species List -->
Expand Down

0 comments on commit 872ce03

Please sign in to comment.