Skip to content

Commit

Permalink
Merge upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sync Fork committed Jan 4, 2024
1 parent 39ac213 commit ca90c24
Show file tree
Hide file tree
Showing 28 changed files with 44 additions and 136 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-humans-kneel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nhost/dashboard': patch
---

chore: use env variables when running graphql codegen
5 changes: 5 additions & 0 deletions .changeset/ninety-deers-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nhost/vue': patch
---

fix: include `ServiceUrls` in `NhostVueClientConstructorParams` interface
3 changes: 3 additions & 0 deletions dashboard/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ NEXT_PUBLIC_STRIPE_PK=<nhost_stripe_public_key>
NEXT_PUBLIC_GITHUB_APP_INSTALL_URL=<github_app_install_url>
NEXT_PUBLIC_ANALYTICS_WRITE_KEY=<analytics_write_key>
NEXT_PUBLIC_NHOST_BRAGI_WEBSOCKET=<nhost_bragi_websocket>

CODEGEN_GRAPHQL_URL=https://local.graphql.nhost.run/v1
CODEGEN_HASURA_ADMIN_SECRET=nhost-admin-secret
6 changes: 6 additions & 0 deletions dashboard/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @nhost/dashboard

## 1.3.1

### Patch Changes

- af33c21d1: chore: remove backendUrl deprecation notice and remove all references to `providersUpdated`

## 1.3.0

### Minor Changes
Expand Down
4 changes: 2 additions & 2 deletions dashboard/graphql.config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
schema:
- https://local.graphql.nhost.run/v1:
- ${CODEGEN_GRAPHQL_URL}:
headers:
x-hasura-admin-secret: nhost-admin-secret
x-hasura-admin-secret: ${CODEGEN_HASURA_ADMIN_SECRET}
generates:
src/utils/__generated__/graphql.ts:
documents:
Expand Down
4 changes: 2 additions & 2 deletions dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nhost/dashboard",
"version": "1.3.0",
"version": "1.3.1",
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
Expand All @@ -10,7 +10,7 @@
"start": "next start",
"lint": "next lint --max-warnings 0",
"test": "vitest",
"codegen": "graphql-codegen --config graphql.config.yaml --errors-only",
"codegen": "DOTENV_CONFIG_PATH=./.env.local graphql-codegen -r dotenv/config --config graphql.config.yaml --errors-only",
"codegen-graphite": "graphql-codegen --config graphite.graphql.config.yaml --errors-only",
"format": "prettier --write \"src/**/*.{js,ts,tsx,jsx,json,md}\" --plugin-search-dir=.",
"storybook": "start-storybook -p 6006 -s public",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import type { ProjectLayoutProps } from '@/components/layout/ProjectLayout';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import type { SettingsSidebarProps } from '@/components/layout/SettingsSidebar';
Expand Down Expand Up @@ -50,7 +49,6 @@ export default function SettingsLayout({
>
<RetryableErrorBoundary>
<div className="flex flex-col space-y-2">
<DepricationNotice />
{hasGitRepo && (
<Alert
severity="warning"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export default function useCurrentWorkspaceAndProject(): UseCurrentWorkspaceAndP
createdAt: new Date().toISOString(),
desiredState: ApplicationStatus.Live,
featureFlags: [],
providersUpdated: true,
repositoryProductionBranch: null,
nhostBaseFolder: null,
plan: null,
Expand Down
1 change: 0 additions & 1 deletion dashboard/src/gql/fragments/project.gql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ fragment Project on apps {
createdAt
desiredState
nhostBaseFolder
providersUpdated
config(resolve: true) {
observability {
grafana {
Expand Down
8 changes: 1 addition & 7 deletions dashboard/src/pages/[workspaceSlug]/[appSlug]/backups.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { Container } from '@/components/layout/Container';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import { RetryableErrorBoundary } from '@/components/presentational/RetryableErrorBoundary';
Expand Down Expand Up @@ -68,10 +67,5 @@ export default function BackupsPage() {
}

BackupsPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { InlineCode } from '@/components/presentational/InlineCode';
import { DataBrowserEmptyState } from '@/features/database/dataGrid/components/DataBrowserEmptyState';
import { DataBrowserLayout } from '@/features/database/dataGrid/components/DataBrowserLayout';
Expand Down Expand Up @@ -38,7 +37,6 @@ DataBrowserDatabaseDetailsPage.getLayout = function getLayout(
) {
return (
<DataBrowserLayout>
<DepricationNotice />
{page}
</DataBrowserLayout>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { Container } from '@/components/layout/Container';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import type { DeploymentStatus } from '@/components/presentational/StatusCircle';
Expand Down Expand Up @@ -153,10 +152,5 @@ export default function DeploymentDetailsPage() {
}

DeploymentDetailsPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { useUI } from '@/components/common/UIProvider';
import { Container } from '@/components/layout/Container';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
Expand Down Expand Up @@ -68,10 +67,5 @@ export default function DeploymentsPage() {
}

DeploymentsPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
2 changes: 0 additions & 2 deletions dashboard/src/pages/[workspaceSlug]/[appSlug]/graphql.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import { LoadingScreen } from '@/components/presentational/LoadingScreen';
import { RetryableErrorBoundary } from '@/components/presentational/RetryableErrorBoundary';
Expand Down Expand Up @@ -352,7 +351,6 @@ GraphQLPage.getLayout = function getLayout(page: ReactElement) {
},
}}
>
<DepricationNotice />
{page}
</ProjectLayout>
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { Container } from '@/components/layout/Container';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import { LoadingScreen } from '@/components/presentational/LoadingScreen';
Expand Down Expand Up @@ -113,10 +112,5 @@ export default function HasuraPage() {
}

HasuraPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
8 changes: 1 addition & 7 deletions dashboard/src/pages/[workspaceSlug]/[appSlug]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import { ApplicationErrored } from '@/features/projects/common/components/ApplicationErrored';
import { ApplicationLive } from '@/features/projects/common/components/ApplicationLive';
Expand Down Expand Up @@ -50,10 +49,5 @@ export default function AppIndexPage() {
}

AppIndexPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
8 changes: 1 addition & 7 deletions dashboard/src/pages/[workspaceSlug]/[appSlug]/logs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import { RetryableErrorBoundary } from '@/components/presentational/RetryableErrorBoundary';
import { useCurrentWorkspaceAndProject } from '@/features/projects/common/hooks/useCurrentWorkspaceAndProject';
Expand Down Expand Up @@ -135,10 +134,5 @@ export default function LogsPage() {
}

LogsPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { Container } from '@/components/layout/Container';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import { ActivityIndicator } from '@/components/ui/v2/ActivityIndicator';
Expand Down Expand Up @@ -127,10 +126,5 @@ export default function MetricsPage() {
}

MetricsPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { useCurrentWorkspaceAndProject } from '@/features/projects/common/hooks/
import type { GetRunServicesQuery } from '@/utils/__generated__/graphql';
import { useGetRunServicesQuery } from '@/utils/__generated__/graphql';

import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { UpgradeNotification } from '@/features/projects/common/components/UpgradeNotification';
import {
ServiceForm,
Expand Down Expand Up @@ -259,10 +258,5 @@ export default function ServicesPage() {
}

ServicesPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout>
<DepricationNotice />
{page}
</ProjectLayout>
);
return <ProjectLayout>{page}</ProjectLayout>;
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Container } from '@/components/layout/Container';
import { SettingsLayout } from '@/components/layout/SettingsLayout';
import { ProvidersUpdatedAlert } from '@/components/settings';
import { ActivityIndicator } from '@/components/ui/v2/ActivityIndicator';
import { AnonymousSignInSettings } from '@/features/authentication/settings/components/AnonymousSignInSettings';
import { AppleProviderSettings } from '@/features/authentication/settings/components/AppleProviderSettings';
Expand Down Expand Up @@ -55,7 +54,6 @@ export default function SettingsSignInMethodsPage() {
<WebAuthnSettings />
<AnonymousSignInSettings />
<SMSSettings />
{!currentProject.providersUpdated && <ProvidersUpdatedAlert />}
<AppleProviderSettings />
<AzureADProviderSettings />
<DiscordProviderSettings />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { ProjectLayout } from '@/components/layout/ProjectLayout';
import { LoadingScreen } from '@/components/presentational/LoadingScreen';
import { RetryableErrorBoundary } from '@/components/presentational/RetryableErrorBoundary';
Expand Down Expand Up @@ -45,7 +44,6 @@ StoragePage.getLayout = function getLayout(page: ReactElement) {
<ProjectLayout
mainContainerProps={{ sx: { backgroundColor: 'background.default' } }}
>
<DepricationNotice />
{page}
</ProjectLayout>
);
Expand Down
2 changes: 0 additions & 2 deletions dashboard/src/pages/[workspaceSlug]/[appSlug]/users/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import DepricationNotice from '@/components/common/DepricationNotice/DepricationNotice';
import { useDialog } from '@/components/common/DialogProvider';
import { Pagination } from '@/components/common/Pagination';
import { Container } from '@/components/layout/Container';
Expand Down Expand Up @@ -391,7 +390,6 @@ export default function UsersPage() {
UsersPage.getLayout = function getLayout(page: ReactElement) {
return (
<ProjectLayout contentContainerProps={{ className: 'h-full' }}>
<DepricationNotice />
{page}
</ProjectLayout>
);
Expand Down
1 change: 0 additions & 1 deletion dashboard/src/tests/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const mockApplication: Project = {
deployments: [],
desiredState: ApplicationStatus.Live,
featureFlags: [],
providersUpdated: true,
githubRepository: { fullName: 'test/git-project' },
repositoryProductionBranch: null,
nhostBaseFolder: null,
Expand Down
Loading

0 comments on commit ca90c24

Please sign in to comment.