All 10 Users (each adds a comment)
Green = included in filter (5 users) | Red = excluded from filter (5 users). After login, filters are automatically applied to show only comments from the green users plus yourself.
Alice Johnson
user-1
SHOW
Bob Smith
user-2
SHOW
Charlie Brown
user-3
SHOW
Diana Prince
user-4
SHOW
Ethan Hunt
user-5
SHOW
Fiona Gallagher
user-6
HIDE
George Lucas
user-7
HIDE
Hannah Montana
user-8
HIDE
Ivan Drago
user-9
HIDE
Julia Roberts
user-10
HIDE
Comment Area
This is the area where comments are placed on the DOM. Use the Velt comment tool to add comments. When filtering is applied, only comments from the 5 selected users and the currently logged-in user will be visible both on the DOM and in the sidebar.
How to test:
1. Login as each of the 10 users (one at a time) and leave a comment on this area.
2. After all 10 users have commented, login as any user - filters are applied automatically.
3. Comments from the 5 filtered users (user-1 through user-5) plus your own will be visible automatically.
4. Click "Clear Filter" to show all comments again.
The filter uses two mechanisms together:
-
setCommentSidebarFilters({ people: [...] })to filter the sidebar-
enableFilterCommentsOnDom()to sync DOM visibility with sidebar filter