Skip to content

Chore: More UI improvement, add unsupported state and file size #194

Chore: More UI improvement, add unsupported state and file size

Chore: More UI improvement, add unsupported state and file size #194

Triggered via pull request November 8, 2024 08:04
Status Failure
Total duration 1m 24s
Artifacts

admin.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 4 warnings
lint
Property 'unsupported' is missing in type '{ readonly "pending-approval": [React.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & React.RefAttributes<SVGSVGElement>>, ""]; ... 4 more ...; readonly unapproved: [...]; }' but required in type 'Record<KnowledgeFileState, [ElementType<any, keyof IntrinsicElements>, string]>'.
lint
Process completed with exit code 2.
lint: ui/admin/app/components/knowledge/KnowledgeSourceDetail.tsx#L28
'/home/runner/work/otto8/otto8/ui/admin/app/lib/model/knowledge.ts' imported multiple times
lint: ui/admin/app/components/knowledge/KnowledgeSourceDetail.tsx#L29
'/home/runner/work/otto8/otto8/ui/admin/app/lib/model/knowledge.ts' imported multiple times
lint: ui/admin/app/components/knowledge/KnowledgeSourceDetail.tsx#L184
React Hook useMemo has a missing dependency: 'knowledgeSource'. Either include it or remove the dependency array
lint: ui/admin/app/components/knowledge/OAuthSignDialog.tsx#L45
React Hook useEffect has a missing dependency: 'knowledgeSource'. Either include it or remove the dependency array. If 'setIsAuthCheckingDialogOpen' needs the current value of 'knowledgeSource', you can also switch to useReducer instead of useState and read 'knowledgeSource' in the reducer