mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 13:38:49 +08:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user