openhuman icon indicating copy to clipboard operation
openhuman copied to clipboard

Notifications page: filter alerts by category

Open obchain opened this issue 5 months ago • 1 comments

Summary

The Notifications page (system-events list) tags every alert with a category — messages, agents, skills, system, meetings, reminders, important — and shows it as a badge on each row. But there is no way to filter the list by category. Users with a busy feed cannot focus on, say, just messages or just important.

The data and labels already exist (NotificationCategory, categoryLabel() in app/src/pages/Notifications.tsx); only the filter UI is missing.

Problem

A long, mixed notification feed is hard to triage. There is no affordance to narrow it down, even though each item already knows its category.

Solution

Add a horizontal category-chip row above the system-events list (the same pattern the Skills page already uses with selectedCategory):

  • An All chip (default) plus one chip per category actually present in the feed.
  • Clicking a chip filters the list live; All clears the filter.
  • Chip labels reuse the existing notifications.category.* i18n keys; one new key for All.
  • The filter row hides entirely when there are no notifications.

Acceptance criteria

  • [ ] Chip row renders above the system-events notifications list
  • [ ] Selecting a category filters the list to that category; All shows everything
  • [ ] Only categories present in the feed get a chip (no dead chips)
  • [ ] Labels localized; parity passes pnpm i18n:check
  • [ ] Unit test covers chip render + filter behaviour

obchain avatar Jun 16 '26 12:06 obchain

Picking this one up. Will add a category chip row above the alerts list so you can narrow the feed down to one type.

obchain avatar Jun 16 '26 12:06 obchain