Merge branch 'main' into ui-ux/debug-tab

This commit is contained in:
Dustin Loring
2024-12-15 11:07:41 -05:00
committed by GitHub
18 changed files with 274 additions and 108 deletions

View File

@@ -1,6 +1,7 @@
import React, { useCallback, useEffect, useState } from 'react';
import { useSettings } from '~/lib/hooks/useSettings';
import commit from '~/commit.json';
import { toast } from 'react-toastify';
interface ProviderStatus {
name: string;
@@ -313,8 +314,9 @@ export default function DebugTab() {
Version: versionHash,
Timestamp: new Date().toISOString(),
};
navigator.clipboard.writeText(JSON.stringify(debugInfo, null, 2)).then(() => {
alert('Debug information copied to clipboard!');
toast.success('Debug information copied to clipboard!');
});
}, [activeProviders, systemInfo]);