mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 05:48:59 +08:00
feat(core): workspace embedding settings (#11801)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced "Indexer & Embedding" workspace settings to manage AI embedding for local content, including document ignoring and attachment uploads. - Added UI components for embedding settings, attachments, and ignored documents with pagination and deletion capabilities. - Provided comprehensive file-type icons for attachments. - **Improvements** - Added a new tab for indexing and embedding in workspace settings navigation. - Included test identifiers on key UI elements to enhance automated testing. - **Localization** - Added English localization strings covering all embedding-related UI text and actions. - **Bug Fixes** - Enabled previously skipped end-to-end tests for embedding settings to improve reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -44,9 +44,10 @@ export const SelectorLayout = ({
|
||||
);
|
||||
|
||||
return (
|
||||
<div className={styles.root}>
|
||||
<div className={styles.root} data-testid="doc-selector-layout">
|
||||
<header className={styles.header}>
|
||||
<RowInput
|
||||
data-testid="doc-selector-search-input"
|
||||
className={styles.search}
|
||||
placeholder={searchPlaceholder}
|
||||
onChange={onSearchChange}
|
||||
@@ -73,10 +74,15 @@ export const SelectorLayout = ({
|
||||
<div className={styles.footerAction}>
|
||||
{actions ?? (
|
||||
<>
|
||||
<Button onClick={onCancel} className={styles.actionButton}>
|
||||
<Button
|
||||
data-testid="doc-selector-cancel-button"
|
||||
onClick={onCancel}
|
||||
className={styles.actionButton}
|
||||
>
|
||||
{t['Cancel']()}
|
||||
</Button>
|
||||
<Button
|
||||
data-testid="doc-selector-confirm-button"
|
||||
onClick={onConfirm}
|
||||
className={styles.actionButton}
|
||||
variant="primary"
|
||||
|
||||
Reference in New Issue
Block a user