mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(core): adjust new doc list filter style (#12629)
close AF-2678, AF-2677, AF-2674, AF-2655 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added customizable spacing for dividers. - Introduced a flexible filter value menu for easier filter editing. - Added options to control visibility of creation actions in empty document views. - **Improvements** - Enhanced menu components for filter values with a more declarative and simplified interface. - Improved vertical alignment in some UI containers. - Updated divider spacing for more consistent UI appearance. - **Bug Fixes** - Menu popups for filters now appear in correct positions. - **Removals** - Removed support for the "zotero" integration type from integration settings and filters. - **Style** - Updated CSS for better menu positioning and alignment. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -9,7 +9,7 @@ import { nanoid } from 'nanoid';
|
||||
|
||||
import type { WorkspacePropertyType } from '../../workspace-property';
|
||||
|
||||
const integrationType = f.enum('readwise', 'zotero');
|
||||
const integrationType = f.enum('readwise');
|
||||
|
||||
export const AFFiNE_WORKSPACE_DB_SCHEMA = {
|
||||
folders: {
|
||||
|
||||
@@ -13,7 +13,7 @@ import type { IntegrationProperty, IntegrationType } from './type';
|
||||
// name
|
||||
export const INTEGRATION_TYPE_NAME_MAP: Record<IntegrationType, I18nString> = {
|
||||
readwise: 'com.affine.integration.name.readwise',
|
||||
zotero: 'Zotero',
|
||||
// zotero: 'Zotero',
|
||||
};
|
||||
|
||||
// schema
|
||||
@@ -50,7 +50,7 @@ export const INTEGRATION_PROPERTY_SCHEMA: {
|
||||
icon: HistoryIcon,
|
||||
},
|
||||
},
|
||||
zotero: {},
|
||||
// zotero: {},
|
||||
};
|
||||
|
||||
// icon
|
||||
@@ -59,5 +59,5 @@ export const INTEGRATION_ICON_MAP: Record<
|
||||
React.ComponentType<SVGProps<SVGSVGElement>>
|
||||
> = {
|
||||
readwise: ReadwiseLogoDuotoneIcon,
|
||||
zotero: () => null,
|
||||
// zotero: () => null,
|
||||
};
|
||||
|
||||
@@ -9,7 +9,6 @@ export type IntegrationType = NonNullable<DocIntegrationRef['type']>;
|
||||
|
||||
export type IntegrationDocPropertiesMap = {
|
||||
readwise: ReadwiseDocProperties;
|
||||
zotero: never;
|
||||
};
|
||||
|
||||
export type IntegrationProperty<T extends IntegrationType> = {
|
||||
|
||||
Reference in New Issue
Block a user