mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
feat(core): embedding progress (#12367)
### TL;DR feat: show embedding progress in settings panel  ### What changed * show embedding progress in settings panel * polling embedding status based on RxJS <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added real-time embedding progress tracking and display in embedding settings, including a visual progress bar and status messages. - Introduced localized text for embedding progress statuses. - Added an optional test ID attribute to the progress bar component for improved testing. - **Style** - Added new styles for embedding progress UI elements. - **Tests** - Added an end-to-end test to verify embedding progress is displayed correctly in the settings UI. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -15,6 +15,7 @@ export interface ProgressProps {
|
||||
readonly?: boolean;
|
||||
className?: string;
|
||||
style?: React.CSSProperties;
|
||||
testId?: string;
|
||||
}
|
||||
|
||||
export const Progress = ({
|
||||
@@ -24,9 +25,14 @@ export const Progress = ({
|
||||
readonly,
|
||||
className,
|
||||
style,
|
||||
testId,
|
||||
}: ProgressProps) => {
|
||||
return (
|
||||
<div className={clsx(styles.root, className)} style={style}>
|
||||
<div
|
||||
className={clsx(styles.root, className)}
|
||||
style={style}
|
||||
data-testid={testId}
|
||||
>
|
||||
<RadixProgress.Root className={styles.progress} value={value}>
|
||||
<RadixProgress.Indicator
|
||||
className={styles.indicator}
|
||||
|
||||
Reference in New Issue
Block a user