Compare commits

..

10 Commits

Author SHA1 Message Date
Pilou
83deea8b45 Merge pull request #1501 from nhost/chore/exclude-functions-from-workspace
chore: exclude functions from workspace
2023-01-11 11:42:07 +01:00
Pierre-Louis Mercereau
acbaabcf85 chore: update lockfile 2023-01-11 10:44:36 +01:00
Pierre-Louis Mercereau
3534501f37 chore: force using turborepo v1 2023-01-11 10:31:10 +01:00
Pierre-Louis Mercereau
27bc23cbbc chore: exclude functions from workspace 2023-01-11 10:15:47 +01:00
Szilárd Dóró
6450223558 Merge pull request #1498 from nhost/changeset-release/main
chore: update versions
2023-01-11 08:48:36 +01:00
github-actions[bot]
e6605a6ed0 chore: update versions 2023-01-10 16:43:20 +00:00
Szilárd Dóró
1cba0e6492 Merge pull request #1497 from nhost/fix/database-ui-hasura-metadata
fix(dashboard): don't break the table creation process
2023-01-10 17:41:38 +01:00
Szilárd Dóró
179c90fcdb fix(dashboard): update inline snapshot 2023-01-10 17:13:29 +01:00
Szilárd Dóró
85f0f943a1 chore(dashboard): add changeset 2023-01-10 16:04:15 +01:00
Szilárd Dóró
c4c23fde31 fix(dashboard): don't break table creation
don't break table creation when referencing a table that is not in the `public` schema
2023-01-10 15:39:05 +01:00
13 changed files with 47 additions and 20 deletions

View File

@@ -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

View File

@@ -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

View File

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

View File

@@ -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, {

View File

@@ -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>

View File

@@ -88,6 +88,7 @@ function NameInput() {
error={Boolean(errors.name)}
variant="inline"
className="col-span-8 py-3"
autoComplete="off"
autoFocus
/>
);

View File

@@ -70,6 +70,7 @@ function NameInput({ index }: FieldArrayInputProps) {
}
},
})}
autoComplete="off"
aria-label="Name"
placeholder="Enter name"
hideEmptyHelperText

View File

@@ -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(

View File

@@ -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",
}

View File

@@ -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,
},

View File

@@ -184,7 +184,7 @@ export default function prepareUpdateTableQuery({
);
return [
...args,
...updatedArgs,
...prepareUpdateForeignKeyConstraintQuery({
...baseVariables,
originalForeignKeyRelation,

27
pnpm-lock.yaml generated
View File

@@ -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==}

View File

@@ -5,3 +5,4 @@ packages:
- 'docs'
- '!**/test/**'
- 'examples/**'
- '!**/functions'