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