Compare commits
10 Commits
@nhost/vue
...
@nhost/das
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
83deea8b45 | ||
|
|
acbaabcf85 | ||
|
|
3534501f37 | ||
|
|
27bc23cbbc | ||
|
|
6450223558 | ||
|
|
e6605a6ed0 | ||
|
|
1cba0e6492 | ||
|
|
179c90fcdb | ||
|
|
85f0f943a1 | ||
|
|
c4c23fde31 |
@@ -1,5 +1,11 @@
|
|||||||
# @nhost/dashboard
|
# @nhost/dashboard
|
||||||
|
|
||||||
|
## 0.9.3
|
||||||
|
|
||||||
|
### Patch Changes
|
||||||
|
|
||||||
|
- 85f0f943: fix(dashboard): don't break the table creation process
|
||||||
|
|
||||||
## 0.9.2
|
## 0.9.2
|
||||||
|
|
||||||
### Patch Changes
|
### Patch Changes
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ RUN apk add --no-cache libc6-compat
|
|||||||
RUN apk update
|
RUN apk update
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN yarn global add turbo
|
RUN yarn global add turbo@1
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN turbo prune --scope="@nhost/dashboard" --docker
|
RUN turbo prune --scope="@nhost/dashboard" --docker
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@nhost/dashboard",
|
"name": "@nhost/dashboard",
|
||||||
"version": "0.9.2",
|
"version": "0.9.3",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "npx only-allow pnpm",
|
"preinstall": "npx only-allow pnpm",
|
||||||
|
|||||||
@@ -52,9 +52,9 @@ function ControlledAutocomplete(
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
|
inputValue={typeof field.value === 'string' ? field.value : undefined}
|
||||||
{...props}
|
{...props}
|
||||||
{...field}
|
{...field}
|
||||||
inputValue={typeof field.value === 'string' ? field.value : undefined}
|
|
||||||
ref={mergeRefs([field.ref, ref])}
|
ref={mergeRefs([field.ref, ref])}
|
||||||
onChange={(event, options, reason, details) => {
|
onChange={(event, options, reason, details) => {
|
||||||
setValue?.(controllerProps?.name || name, options, {
|
setValue?.(controllerProps?.name || name, options, {
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ export default function BaseColumnForm({
|
|||||||
variant="inline"
|
variant="inline"
|
||||||
className="col-span-8 py-3"
|
className="col-span-8 py-3"
|
||||||
autoFocus
|
autoFocus
|
||||||
|
autoComplete="off"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ControlledAutocomplete
|
<ControlledAutocomplete
|
||||||
@@ -272,6 +273,7 @@ export default function BaseColumnForm({
|
|||||||
error={Boolean(errors.comment)}
|
error={Boolean(errors.comment)}
|
||||||
variant="inline"
|
variant="inline"
|
||||||
className="col-span-8 py-3"
|
className="col-span-8 py-3"
|
||||||
|
autoComplete="off"
|
||||||
/>
|
/>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ function NameInput() {
|
|||||||
error={Boolean(errors.name)}
|
error={Boolean(errors.name)}
|
||||||
variant="inline"
|
variant="inline"
|
||||||
className="col-span-8 py-3"
|
className="col-span-8 py-3"
|
||||||
|
autoComplete="off"
|
||||||
autoFocus
|
autoFocus
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ function NameInput({ index }: FieldArrayInputProps) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
})}
|
})}
|
||||||
|
autoComplete="off"
|
||||||
aria-label="Name"
|
aria-label="Name"
|
||||||
placeholder="Enter name"
|
placeholder="Enter name"
|
||||||
hideEmptyHelperText
|
hideEmptyHelperText
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ import Option from '@/ui/v2/Option';
|
|||||||
import Text from '@/ui/v2/Text';
|
import Text from '@/ui/v2/Text';
|
||||||
import getPermissionVariablesArray from '@/utils/settings/getPermissionVariablesArray';
|
import getPermissionVariablesArray from '@/utils/settings/getPermissionVariablesArray';
|
||||||
import { useGetAppCustomClaimsQuery } from '@/utils/__generated__/graphql';
|
import { useGetAppCustomClaimsQuery } from '@/utils/__generated__/graphql';
|
||||||
|
import { useTheme } from '@mui/material';
|
||||||
import { useFieldArray, useFormContext, useWatch } from 'react-hook-form';
|
import { useFieldArray, useFormContext, useWatch } from 'react-hook-form';
|
||||||
import PermissionSettingsSection from './PermissionSettingsSection';
|
import PermissionSettingsSection from './PermissionSettingsSection';
|
||||||
|
|
||||||
@@ -41,6 +42,7 @@ export default function ColumnPresetsSection({
|
|||||||
table,
|
table,
|
||||||
disabled,
|
disabled,
|
||||||
}: ColumnPresetSectionProps) {
|
}: ColumnPresetSectionProps) {
|
||||||
|
const theme = useTheme();
|
||||||
const {
|
const {
|
||||||
data: tableData,
|
data: tableData,
|
||||||
status: tableStatus,
|
status: tableStatus,
|
||||||
@@ -131,7 +133,12 @@ export default function ColumnPresetsSection({
|
|||||||
freeSolo
|
freeSolo
|
||||||
fullWidth
|
fullWidth
|
||||||
disableClearable={false}
|
disableClearable={false}
|
||||||
clearIcon={<XIcon />}
|
clearIcon={
|
||||||
|
<XIcon
|
||||||
|
className="w-4 h-4 mt-px"
|
||||||
|
sx={{ color: theme.palette.text.primary }}
|
||||||
|
/>
|
||||||
|
}
|
||||||
autoSelect
|
autoSelect
|
||||||
autoHighlight={false}
|
autoHighlight={false}
|
||||||
error={Boolean(
|
error={Boolean(
|
||||||
|
|||||||
@@ -237,7 +237,10 @@ test('should drop existing relationships and prepare a new one-to-many relations
|
|||||||
"cascade": false,
|
"cascade": false,
|
||||||
"relationship": "books",
|
"relationship": "books",
|
||||||
"source": "default",
|
"source": "default",
|
||||||
"table": "authors",
|
"table": {
|
||||||
|
"name": "authors",
|
||||||
|
"schema": "public",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
"type": "pg_drop_relationship",
|
"type": "pg_drop_relationship",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -152,7 +152,12 @@ export default async function prepareTrackForeignKeyRelationsMetadata({
|
|||||||
type: 'pg_drop_relationship',
|
type: 'pg_drop_relationship',
|
||||||
args: {
|
args: {
|
||||||
source: dataSource,
|
source: dataSource,
|
||||||
table: foreignKeyRelation.referencedTable,
|
table: foreignKeyRelation.referencedSchema
|
||||||
|
? {
|
||||||
|
name: foreignKeyRelation.referencedTable,
|
||||||
|
schema: foreignKeyRelation.referencedSchema,
|
||||||
|
}
|
||||||
|
: foreignKeyRelation.referencedTable,
|
||||||
relationship: oneToManyRelationshipName,
|
relationship: oneToManyRelationshipName,
|
||||||
cascade: false,
|
cascade: false,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ export default function prepareUpdateTableQuery({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
...args,
|
...updatedArgs,
|
||||||
...prepareUpdateForeignKeyConstraintQuery({
|
...prepareUpdateForeignKeyConstraintQuery({
|
||||||
...baseVariables,
|
...baseVariables,
|
||||||
originalForeignKeyRelation,
|
originalForeignKeyRelation,
|
||||||
|
|||||||
27
pnpm-lock.yaml
generated
27
pnpm-lock.yaml
generated
@@ -447,9 +447,6 @@ importers:
|
|||||||
devDependencies:
|
devDependencies:
|
||||||
cross-fetch: 3.1.5
|
cross-fetch: 3.1.5
|
||||||
|
|
||||||
examples/docker-compose/functions:
|
|
||||||
specifiers: {}
|
|
||||||
|
|
||||||
examples/multi-tenant-one-to-many:
|
examples/multi-tenant-one-to-many:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@nhost/nhost-js': '*'
|
'@nhost/nhost-js': '*'
|
||||||
@@ -946,9 +943,6 @@ importers:
|
|||||||
msw: 0.47.4
|
msw: 0.47.4
|
||||||
start-server-and-test: 1.15.2
|
start-server-and-test: 1.15.2
|
||||||
|
|
||||||
packages/hasura-auth-js/functions:
|
|
||||||
specifiers: {}
|
|
||||||
|
|
||||||
packages/hasura-storage-js:
|
packages/hasura-storage-js:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@nhost/docgen': workspace:*
|
'@nhost/docgen': workspace:*
|
||||||
@@ -972,9 +966,6 @@ importers:
|
|||||||
start-server-and-test: 1.15.2
|
start-server-and-test: 1.15.2
|
||||||
uuid: 9.0.0
|
uuid: 9.0.0
|
||||||
|
|
||||||
packages/hasura-storage-js/functions:
|
|
||||||
specifiers: {}
|
|
||||||
|
|
||||||
packages/nextjs:
|
packages/nextjs:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@nhost/docgen': workspace:*
|
'@nhost/docgen': workspace:*
|
||||||
@@ -1019,9 +1010,6 @@ importers:
|
|||||||
graphql: 16.6.0
|
graphql: 16.6.0
|
||||||
start-server-and-test: 1.15.2
|
start-server-and-test: 1.15.2
|
||||||
|
|
||||||
packages/nhost-js/functions:
|
|
||||||
specifiers: {}
|
|
||||||
|
|
||||||
packages/react:
|
packages/react:
|
||||||
specifiers:
|
specifiers:
|
||||||
'@nhost/docgen': workspace:*
|
'@nhost/docgen': workspace:*
|
||||||
@@ -13025,7 +13013,7 @@ packages:
|
|||||||
/axios/0.25.0_debug@4.3.4:
|
/axios/0.25.0_debug@4.3.4:
|
||||||
resolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==}
|
resolution: {integrity: sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g==}
|
||||||
dependencies:
|
dependencies:
|
||||||
follow-redirects: 1.15.2
|
follow-redirects: 1.15.2_debug@4.3.4
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- debug
|
- debug
|
||||||
dev: true
|
dev: true
|
||||||
@@ -18503,6 +18491,19 @@ packages:
|
|||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
debug:
|
debug:
|
||||||
optional: true
|
optional: true
|
||||||
|
dev: false
|
||||||
|
|
||||||
|
/follow-redirects/1.15.2_debug@4.3.4:
|
||||||
|
resolution: {integrity: sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==}
|
||||||
|
engines: {node: '>=4.0'}
|
||||||
|
peerDependencies:
|
||||||
|
debug: '*'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
debug:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
debug: 4.3.4
|
||||||
|
dev: true
|
||||||
|
|
||||||
/for-each/0.3.3:
|
/for-each/0.3.3:
|
||||||
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}
|
resolution: {integrity: sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==}
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ packages:
|
|||||||
- 'docs'
|
- 'docs'
|
||||||
- '!**/test/**'
|
- '!**/test/**'
|
||||||
- 'examples/**'
|
- 'examples/**'
|
||||||
|
- '!**/functions'
|
||||||
|
|||||||
Reference in New Issue
Block a user