Compare commits

..

5 Commits

Author SHA1 Message Date
Szilárd Dóró
ca090436af Merge pull request #1469 from nhost/changeset-release/main 2023-01-04 22:51:49 +01:00
github-actions[bot]
3fb12c189b chore: update versions 2023-01-04 19:22:01 +00:00
Guido Curcio
c4d5366b22 Merge pull request #1468 from nhost/fix/twitter 2023-01-04 14:20:19 -05:00
Szilárd Dóró
bd68e916cf chore(dashboard): cleanup unused GQL file 2023-01-04 20:04:52 +01:00
Szilárd Dóró
7cadd9447b fix(dashboard): display Twitter provider settings 2023-01-04 19:52:21 +01:00
6 changed files with 13 additions and 1468 deletions

View File

@@ -1,5 +1,11 @@
# @nhost/dashboard
## 0.8.1
### Patch Changes
- 7cadd944: fix(dashboard): display Twitter provider settings
## 0.8.0
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "0.8.0",
"version": "0.8.1",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",

View File

@@ -2,7 +2,6 @@ import ControlledCheckbox from '@/components/common/ControlledCheckbox';
import Form from '@/components/common/Form';
import SettingsContainer from '@/components/settings/SettingsContainer';
import {
GetAppLoginDataDocument,
useSignInMethodsQuery,
useUpdateAppMutation,
} from '@/generated/graphql';
@@ -25,9 +24,7 @@ export interface EmailAndPasswordFormValues {
export default function EmailAndPasswordSettings() {
const { currentApplication } = useCurrentWorkspaceAndApplication();
const [updateApp] = useUpdateAppMutation({
refetchQueries: [GetAppLoginDataDocument],
});
const [updateApp] = useUpdateAppMutation();
const { data, error, loading } = useSignInMethodsQuery({
variables: {

View File

@@ -1,7 +1,7 @@
import Form from '@/components/common/Form';
import SettingsContainer from '@/components/settings/SettingsContainer';
import {
useGetAppLoginDataQuery,
useSignInMethodsQuery,
useUpdateAppMutation,
} from '@/generated/graphql';
import { useCurrentWorkspaceAndApplication } from '@/hooks/useCurrentWorkspaceAndApplication';
@@ -27,10 +27,11 @@ export default function TwitterProviderSettings() {
const { currentApplication } = useCurrentWorkspaceAndApplication();
const [updateApp] = useUpdateAppMutation();
const { data, loading, error } = useGetAppLoginDataQuery({
const { data, loading, error } = useSignInMethodsQuery({
variables: {
id: currentApplication?.id,
},
fetchPolicy: 'cache-only',
});
const form = useForm<TwitterProviderFormValues>({

View File

@@ -1,84 +0,0 @@
fragment GetAppLoginData on apps {
id
slug
subdomain
name
createdAt
authEmailSigninEmailVerifiedRequired
authPasswordHibpEnabled
authEmailPasswordlessEnabled
authSmsPasswordlessEnabled
authWebAuthnEnabled
authClientUrl
authAccessControlAllowedRedirectUrls
authAccessControlAllowedEmails
authAccessControlAllowedEmailDomains
authAccessControlBlockedEmails
authAccessControlBlockedEmailDomains
authGithubEnabled
authGithubClientId
authGithubClientSecret
authGoogleEnabled
authGoogleClientId
authGoogleClientSecret
authFacebookEnabled
authFacebookClientId
authFacebookClientSecret
authLinkedinEnabled
authLinkedinClientId
authLinkedinClientSecret
# Twitter
authTwitterEnabled
authTwitterConsumerKey
authTwitterConsumerSecret
# Apple
authAppleEnabled
authAppleTeamId
authAppleKeyId
authAppleClientId
authApplePrivateKey
authAppleScope
# Windows Live
authWindowsLiveEnabled
authWindowsLiveClientId
authWindowsLiveClientSecret
# Spotify
authSpotifyEnabled
authSpotifyClientId
authSpotifyClientSecret
# WorkOs
authWorkOsEnabled
authWorkOsClientId
authWorkOsClientSecret
authWorkOsDefaultDomain
authWorkOsDefaultOrganization
authWorkOsDefaultConnection
# Discord
authDiscordEnabled
authDiscordClientId
authDiscordClientSecret
# Twitch
authTwitchEnabled
authTwitchClientId
authTwitchClientSecret
}
query getAppLoginData($id: uuid!) {
app(id: $id) {
...GetAppLoginData
}
}

File diff suppressed because it is too large Load Diff