mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-05 05:46:24 -04:00
* refactor job manager ui * huge improvements to job ui api * improve indexer errors * minor improvements * make icon bigger + improve styling * Update useJobInfo.tsx better * improve job status reporting * fix job indexer backend for ui responsiveness * attempt at debugging job.getRunning slow invalidation during indexer's walk phase * remove progress debounce, invalidate has its own throttle layer * hotfix ghost jobs * basic pause/resume * pause functionality immaculate * pause resume working for first job in group, testable on indexer phase two * WIP - refactored job manager - added better job api * fix merge issues * add throttle to job update events and correct index * improve front end job data handling * move subscription to job * wip active job indicator * minor tweak * Isolated subscriptions for job events + cleanup Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com> Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me> * mutable ctx * plz let me build rspc typesafe errors Jamie * fix merge * working job reporting * fix thumbnail text * faster tick speed * fix error --------- Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com> Co-authored-by: Oscar Beaumont <oscar@otbeaumont.me>
44 lines
1.5 KiB
TypeScript
44 lines
1.5 KiB
TypeScript
import { useBridgeQuery, useLibraryQuery } from '@sd/client';
|
|
import { CodeBlock } from '~/components/Codeblock';
|
|
|
|
// TODO: Bring this back with a button in the sidebar near settings at the bottom
|
|
export const Component = () => {
|
|
const { data: nodeState } = useBridgeQuery(['nodeState']);
|
|
const { data: libraryState } = useBridgeQuery(['library.list']);
|
|
// const { data: jobs } = useLibraryQuery(['jobs.getRunning']);
|
|
// const { data: jobHistory } = useLibraryQuery(['jobs.getHistory']);
|
|
// const { mutate: purgeDB } = useBridgeCommand('PurgeDatabase', {
|
|
// onMutate: () => {
|
|
// alert('Database purged');
|
|
// }
|
|
// });
|
|
// const { mutate: identifyFiles } = useLibraryMutation('jobs.identifyUniqueFiles');
|
|
return (
|
|
<div className="flex flex-col space-y-5 p-5 pb-7 pt-2">
|
|
<h1 className="text-lg font-bold ">Developer Debugger</h1>
|
|
{/* <div className="flex flex-row pb-4 space-x-2">
|
|
<Button
|
|
className="w-40"
|
|
variant="gray"
|
|
size="sm"
|
|
onClick={() => {
|
|
if (nodeState && appPropsContext?.onOpen) {
|
|
appPropsContext.onOpen(nodeState.data_path);
|
|
}
|
|
}}
|
|
>
|
|
Open data folder
|
|
</Button>
|
|
</div> */}
|
|
{/* <h1 className="text-sm font-bold ">Running Jobs</h1>
|
|
<CodeBlock src={{ ...jobs }} />
|
|
<h1 className="text-sm font-bold ">Job History</h1>
|
|
<CodeBlock src={{ ...jobHistory }} /> */}
|
|
<h1 className="text-sm font-bold ">Node State</h1>
|
|
<CodeBlock src={{ ...nodeState }} />
|
|
<h1 className="text-sm font-bold ">Libraries</h1>
|
|
<CodeBlock src={{ ...libraryState }} />
|
|
</div>
|
|
);
|
|
};
|