feat(core): add default filter rules for all docs (#12197)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Introduced a filter to exclude empty journals from document collections.
  - Added a live-updating list of non-trashed document IDs for improved document management.

- **Improvements**
  - Default filters in the document explorer have been updated to show all items, including trashed ones, unless filters are applied.
  - Enhanced filtering in workspace views to automatically exclude empty journals and trashed documents.
  - Increased the responsiveness of grouped document updates for a smoother user experience.

- **Bug Fixes**
  - Removed unnecessary debug output from the document synchronization, member search, session management, and member selector components.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
EYHN
2025-05-12 02:05:11 +00:00
parent 6fb7f51ea2
commit a6394b7988
11 changed files with 71 additions and 16 deletions
@@ -27,14 +27,7 @@ export const createDocExplorerContext = () =>
selectMode$: new LiveData<boolean>(false),
selectedDocIds$: new LiveData<string[]>([]),
prevCheckAnchorId$: new LiveData<string | null>(null),
filters$: new LiveData<ExplorerPreference['filters']>([
{
type: 'system',
key: 'trash',
value: 'false',
method: 'is',
},
]),
filters$: new LiveData<ExplorerPreference['filters']>([]),
groupBy$: new LiveData<ExplorerPreference['groupBy']>(undefined),
orderBy$: new LiveData<ExplorerPreference['orderBy']>(undefined),
displayProperties$: new LiveData<ExplorerPreference['displayProperties']>(
@@ -90,7 +90,6 @@ export const MemberSelector = ({
if (value.length > 0) {
setFocusedInlineIndex(selected.length);
}
console.log('onInputChange', value);
debouncedSearch(value.trim());
},
[debouncedSearch, selected.length]