-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Display remote workers in webserver dashboard #848
Conversation
e7c00c7
to
0038d85
Compare
ee/tabby-ui/lib/tabby-gql-client.ts
Outdated
export const graphQLClient = new GraphQLClient( | ||
`${process.env.NEXT_PUBLIC_TABBY_SERVER_URL ?? ''}/graphql`, | ||
{ | ||
credentials: 'include', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After patching: #858
cors work after removing this line - please research and see what's the reason behind.
I encounter following warning when running
|
d2e9a3e
to
0f40cda
Compare
ee/tabby-ui/lib/hooks/use-worker.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: file name should be use-workers
ee/tabby-ui/lib/hooks/use-worker.ts
Outdated
@@ -32,16 +26,16 @@ function transformHealthInfoToWorker( | |||
} | |||
} | |||
|
|||
function useMergedWorkers(healthInfo: HealthInfo | undefined) { | |||
const { data } = useRemoteWorkers() | |||
function useWorkers(healthInfo?: HealthInfo) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just call useHealthInfo here?
graffle-js/graffle#448 |
I’m fine either way - as long as the warning can be silented. |
Close #782