diff --git a/web/app.js b/web/app.js
index adbe789..9a24b48 100644
--- a/web/app.js
+++ b/web/app.js
@@ -17,6 +17,9 @@
const PAGE_SIZE = 50;
const INTENT_HINTS = { grab: 'scan + copy', read: 'expand + study', fill: 'templates only' };
+ const READ_TYPES = ['note', 'link', 'decision'];
+ const FILL_TYPES = ['template', 'checklist'];
+ const GRAB_TYPES = ['snippet'];
const state = {
view: 'stream',
@@ -363,7 +366,7 @@
html += '
intent
';
for (const k of ['grab', 'read', 'fill']) {
const on = state.intent === k ? ' on' : '';
- const count = k === 'grab' ? state.entities.length : k === 'read' ? state.entities.filter(e => e.card_data).length : state.entities.filter(e => e.body && /\$\{.+\}/.test(e.body)).length;
+ const count = k === 'grab' ? state.entities.filter(e => !e.card_type || GRAB_TYPES.includes(e.card_type)).length : k === 'read' ? state.entities.filter(e => READ_TYPES.includes(e.card_type)).length : state.entities.filter(e => FILL_TYPES.includes(e.card_type)).length;
html += `