chore: update package versions and add user config sync API

- Bump version to 4.8.0 and update dependencies in package.json
- Implement user config sync API for cross-device settings persistence
- Add resolution badge auto-hide hook for improved user experience
- Create useConfigSync hook to manage user settings synchronization with the server
This commit is contained in:
kuekhaoyang
2026-03-18 12:44:05 +08:00
parent 54c1d353d7
commit 3564ce1ede
27 changed files with 721 additions and 215 deletions
+13 -1
View File
@@ -8,6 +8,7 @@ interface SearchLoadingAnimationProps {
totalSources?: number;
isPaused?: boolean;
onComplete?: (checkedSources: number, totalSources: number) => void;
onCancel?: () => void;
}
export function SearchLoadingAnimation({
@@ -16,6 +17,7 @@ export function SearchLoadingAnimation({
totalSources = 16,
isPaused = false,
onComplete,
onCancel,
}: SearchLoadingAnimationProps) {
const [dots, setDots] = useState('');
const dotIntervalRef = useRef<NodeJS.Timeout | null>(null);
@@ -123,7 +125,17 @@ export function SearchLoadingAnimation({
</span>
)}
</span>
<span className="font-medium">{Math.round(progress)}%</span>
<span className="flex items-center gap-2">
<span className="font-medium">{Math.round(progress)}%</span>
{!isComplete && onCancel && (
<button
onClick={onCancel}
className="px-2 py-0.5 rounded-[var(--radius-full)] bg-[var(--glass-bg)] hover:bg-red-500/20 text-[10px] transition-colors cursor-pointer"
>
</button>
)}
</span>
</div>
</div>
</div>