From 15b302cb46bd6fe7c3e20148db8088c46caa62c4 Mon Sep 17 00:00:00 2001 From: Bob Date: Fri, 18 Sep 2026 10:17:58 +0000 Subject: [PATCH] fix(search,buckets): drop early-dev notice, case-insensitive search, relocate data-collection alert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Search view: - Remove the "This feature is still in early development" alert — the tool has been stable enough to ship without the caveat. - Search patterns are matched via the categorize() regex rule, which is case-sensitive by default. Set ignore_case: true (already supported by the Rule type and used elsewhere, e.g. classes.ts) so a search for "vlc" also matches "VLC". Buckets ("Raw Data") view: - Move the "Are you looking to collect more data?" alert from the top of the page to the bottom, after the import/export section. - The hr separating that section from the aw-devonly tools block was left dangling in production builds (aw-devonly renders nothing when PRODUCTION is true), so it appeared as a stray divider with nothing below it. Reuse it to separate the main content from the relocated alert instead. Fixes ActivityWatch/aw-webui#985 Git-Session-Id: c5e12cfc-abed-5ea8-a6e3-eb5ea6669462 --- src/views/Buckets.vue | 6 +++--- src/views/Search.vue | 5 +---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/views/Buckets.vue b/src/views/Buckets.vue index 590dd4d91..c1766f459 100644 --- a/src/views/Buckets.vue +++ b/src/views/Buckets.vue @@ -2,9 +2,6 @@ div h3 {{ $t('buckets.title') }} - b-alert(show) - | {{ $t('buckets.moreWatchers') }} #[a(href="https://docs.activitywatch.net/en/latest/watchers.html") {{ $t('buckets.docsLink') }}]. - b-card.bucket-card.mb-3( v-for="device in bucketsStore.bucketsByDevice", :key="device.hostname || device.device_id", @@ -149,6 +146,9 @@ div hr + b-alert(show) + | {{ $t('buckets.moreWatchers') }} #[a(href="https://docs.activitywatch.net/en/latest/watchers.html") {{ $t('buckets.docsLink') }}]. + aw-devonly(reason="This section is still under development") h4.p-2 {{ $t('buckets.tools') }} diff --git a/src/views/Search.vue b/src/views/Search.vue index 8283e379b..6fa27002e 100644 --- a/src/views/Search.vue +++ b/src/views/Search.vue @@ -2,9 +2,6 @@ div h3 Search - b-alert(variant="warning" show) - | This feature is still in early development. - b-alert(v-if="error" show variant="danger") | {{error}} @@ -75,7 +72,7 @@ export default { bid_window: 'aw-watcher-window_' + this.queryOptions.hostname, bid_afk: 'aw-watcher-afk_' + this.queryOptions.hostname, filter_afk: this.queryOptions.filter_afk, - categories: [[['searched'], { type: 'regex', regex: this.pattern }]], + categories: [[['searched'], { type: 'regex', regex: this.pattern, ignore_case: true }]], filter_categories: [['searched']], }); query += '; RETURN = events;';