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:
Cats Juice
2025-06-23 18:34:00 +08:00
committed by GitHub
parent 24b205ae83
commit ea92e2291d
27 changed files with 197 additions and 238 deletions

View File

@@ -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: {

View File

@@ -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,
};

View File

@@ -9,7 +9,6 @@ export type IntegrationType = NonNullable<DocIntegrationRef['type']>;
export type IntegrationDocPropertiesMap = {
readwise: ReadwiseDocProperties;
zotero: never;
};
export type IntegrationProperty<T extends IntegrationType> = {