mirror of https://github.com/buster-so/buster.git
Added titles to pages
This commit is contained in:
parent
e5d0b045a0
commit
a85a3b5163
|
@ -1,6 +1,11 @@
|
||||||
import { AppPageLayout } from '@/components/ui/layouts/AppPageLayout';
|
import { AppPageLayout } from '@/components/ui/layouts/AppPageLayout';
|
||||||
import { ChatListContainer } from '../../../../controllers/ChatsListController';
|
import { ChatListContainer } from '../../../../controllers/ChatsListController';
|
||||||
import { ChatListHeader } from '../../../../controllers/ChatsListController/ChatListHeader';
|
import { ChatListHeader } from '../../../../controllers/ChatsListController/ChatListHeader';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Chats'
|
||||||
|
};
|
||||||
|
|
||||||
const type = 'chats';
|
const type = 'chats';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
import { CollectionListController } from '@/controllers/CollectionListController';
|
import { CollectionListController } from '@/controllers/CollectionListController';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Collections'
|
||||||
|
};
|
||||||
|
|
||||||
export default function CollectionsPage() {
|
export default function CollectionsPage() {
|
||||||
return <CollectionListController />;
|
return <CollectionListController />;
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
import { DashboardListController } from '@/controllers/DashboardListController';
|
import { DashboardListController } from '@/controllers/DashboardListController';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Dashboards'
|
||||||
|
};
|
||||||
|
|
||||||
export default function DashboardPage() {
|
export default function DashboardPage() {
|
||||||
return <DashboardListController />;
|
return <DashboardListController />;
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
import { DatasetsListController } from '../../../../controllers/DatasetsListController';
|
import { DatasetsListController } from '../../../../controllers/DatasetsListController';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Datasets'
|
||||||
|
};
|
||||||
|
|
||||||
export default async function DashboardPage() {
|
export default async function DashboardPage() {
|
||||||
return <DatasetsListController />;
|
return <DatasetsListController />;
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
import { AppPageLayout } from '@/components/ui/layouts';
|
import { AppPageLayout } from '@/components/ui/layouts';
|
||||||
import { HomePageController, HomePageHeader } from '@/controllers/HomePage';
|
import { HomePageController, HomePageHeader } from '@/controllers/HomePage';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Home'
|
||||||
|
};
|
||||||
|
|
||||||
export default function HomePage() {
|
export default function HomePage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
import { AppPageLayout } from '@/components/ui/layouts';
|
import { AppPageLayout } from '@/components/ui/layouts';
|
||||||
import { ChatListContainer } from '../../../../controllers/ChatsListController';
|
import { ChatListContainer } from '../../../../controllers/ChatsListController';
|
||||||
import { ChatListHeader } from '../../../../controllers/ChatsListController/ChatListHeader';
|
import { ChatListHeader } from '../../../../controllers/ChatsListController/ChatListHeader';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Logs'
|
||||||
|
};
|
||||||
|
|
||||||
const type = 'logs';
|
const type = 'logs';
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
import { MetricListContainer } from '@/controllers/MetricListContainer';
|
import { MetricListContainer } from '@/controllers/MetricListContainer';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Metrics'
|
||||||
|
};
|
||||||
|
|
||||||
export default function MetricsPage() {
|
export default function MetricsPage() {
|
||||||
return <MetricListContainer />;
|
return <MetricListContainer />;
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
import { NewUserController } from './_NewUserController';
|
import { NewUserController } from './_NewUserController';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Welcome to Buster 👋'
|
||||||
|
};
|
||||||
|
|
||||||
export default function NewUserPage() {
|
export default function NewUserPage() {
|
||||||
return <NewUserController />;
|
return <NewUserController />;
|
||||||
|
|
|
@ -4,6 +4,11 @@ import { useState } from 'react';
|
||||||
import { AppPageLayout } from '@/components/ui/layouts';
|
import { AppPageLayout } from '@/components/ui/layouts';
|
||||||
import { TermsListController } from '@/controllers/TermsListController';
|
import { TermsListController } from '@/controllers/TermsListController';
|
||||||
import { TermsHeader } from '@/controllers/TermsListController/TermsHeader';
|
import { TermsHeader } from '@/controllers/TermsListController/TermsHeader';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Terms'
|
||||||
|
};
|
||||||
|
|
||||||
export default function TermsPage() {
|
export default function TermsPage() {
|
||||||
const [openNewTermsModal, setOpenNewTermsModal] = useState(false);
|
const [openNewTermsModal, setOpenNewTermsModal] = useState(false);
|
||||||
|
|
|
@ -8,6 +8,11 @@ import { useMemoizedFn } from '@/hooks';
|
||||||
import { useDebounceSearch } from '@/hooks/useDebounceSearch';
|
import { useDebounceSearch } from '@/hooks/useDebounceSearch';
|
||||||
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
||||||
import { ListDatasetGroupsComponent } from './ListDatasetGroupsComponent';
|
import { ListDatasetGroupsComponent } from './ListDatasetGroupsComponent';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Dataset groups'
|
||||||
|
};
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
const { data: datasetGroups, isFetched } = useListDatasetGroups();
|
const { data: datasetGroups, isFetched } = useListDatasetGroups();
|
||||||
|
|
|
@ -12,6 +12,11 @@ import { useMemoizedFn } from '@/hooks';
|
||||||
import { useDebounceSearch } from '@/hooks/useDebounceSearch';
|
import { useDebounceSearch } from '@/hooks/useDebounceSearch';
|
||||||
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
||||||
import { ListPermissionGroupsComponent } from './ListPermissionGroupsComponent';
|
import { ListPermissionGroupsComponent } from './ListPermissionGroupsComponent';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Permission groups'
|
||||||
|
};
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
const { data: permissionGroups, isFetched, refetch } = useListAllPermissionGroups();
|
const { data: permissionGroups, isFetched, refetch } = useListAllPermissionGroups();
|
||||||
|
|
|
@ -11,6 +11,11 @@ import { useMemoizedFn } from '@/hooks';
|
||||||
import { useDebounceSearch } from '@/hooks/useDebounceSearch';
|
import { useDebounceSearch } from '@/hooks/useDebounceSearch';
|
||||||
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
||||||
import { ListUsersComponent } from './ListUsersComponent';
|
import { ListUsersComponent } from './ListUsersComponent';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'User management'
|
||||||
|
};
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
const userOrganization = useUserConfigContextSelector((x) => x.userOrganizations);
|
const userOrganization = useUserConfigContextSelector((x) => x.userOrganizations);
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
import { SettingsPageHeader } from '../../../_components/SettingsPageHeader';
|
import { SettingsPageHeader } from '../../../_components/SettingsPageHeader';
|
||||||
import { ApiKeysController } from './ApiKeysController';
|
import { ApiKeysController } from './ApiKeysController';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'API keys'
|
||||||
|
};
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||||
import { HeaderContainer } from '../../_HeaderContainer';
|
import { HeaderContainer } from '../../_HeaderContainer';
|
||||||
import { DatasourceForm } from './_forms';
|
import { DatasourceForm } from './_forms';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Datasources'
|
||||||
|
};
|
||||||
|
|
||||||
export default async function Page(props: {
|
export default async function Page(props: {
|
||||||
params: Promise<{
|
params: Promise<{
|
||||||
|
|
|
@ -12,6 +12,11 @@ import { cn } from '@/lib/classMerge';
|
||||||
import { BusterRoutes, createBusterRoute } from '@/routes';
|
import { BusterRoutes, createBusterRoute } from '@/routes';
|
||||||
import { HeaderContainer } from '../../_HeaderContainer';
|
import { HeaderContainer } from '../../_HeaderContainer';
|
||||||
import { DataSourceFormContent } from '../[datasourceId]/_forms/DatasourceFormContent';
|
import { DataSourceFormContent } from '../[datasourceId]/_forms/DatasourceFormContent';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Datasources'
|
||||||
|
};
|
||||||
|
|
||||||
export default function Page({
|
export default function Page({
|
||||||
searchParams: { type }
|
searchParams: { type }
|
||||||
|
|
|
@ -5,6 +5,11 @@ import { Text, Title } from '@/components/ui/typography';
|
||||||
import { useUserConfigContextSelector } from '@/context/Users';
|
import { useUserConfigContextSelector } from '@/context/Users';
|
||||||
import { formatDate } from '@/lib/date';
|
import { formatDate } from '@/lib/date';
|
||||||
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
import { SettingsPageHeader } from '../../_components/SettingsPageHeader';
|
||||||
|
import type { Metadata } from 'next';
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'Profile'
|
||||||
|
};
|
||||||
|
|
||||||
export default function ProfilePage() {
|
export default function ProfilePage() {
|
||||||
const user = useUserConfigContextSelector((state) => state.user);
|
const user = useUserConfigContextSelector((state) => state.user);
|
||||||
|
|
|
@ -274,7 +274,6 @@ const LoginOptions: React.FC<{
|
||||||
}}
|
}}
|
||||||
disabled={!!loading}
|
disabled={!!loading}
|
||||||
autoComplete="email"
|
autoComplete="email"
|
||||||
tabIndex={-3}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
|
@ -289,7 +288,6 @@ const LoginOptions: React.FC<{
|
||||||
name="password"
|
name="password"
|
||||||
placeholder="Password"
|
placeholder="Password"
|
||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
tabIndex={-4}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{signUpFlow && (
|
{signUpFlow && (
|
||||||
|
@ -305,7 +303,6 @@ const LoginOptions: React.FC<{
|
||||||
name="password2"
|
name="password2"
|
||||||
placeholder="Confirm password"
|
placeholder="Confirm password"
|
||||||
autoComplete="new-password"
|
autoComplete="new-password"
|
||||||
tabIndex={-5}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{password && (
|
{password && (
|
||||||
|
@ -331,8 +328,7 @@ const LoginOptions: React.FC<{
|
||||||
type="submit"
|
type="submit"
|
||||||
loading={loading === 'email'}
|
loading={loading === 'email'}
|
||||||
variant="black"
|
variant="black"
|
||||||
disabled={!signUpFlow ? false : disableSubmitButton}
|
disabled={!signUpFlow ? false : disableSubmitButton}>
|
||||||
tabIndex={-6}>
|
|
||||||
{!signUpFlow ? 'Sign in' : 'Sign up'}
|
{!signUpFlow ? 'Sign in' : 'Sign up'}
|
||||||
</Button>
|
</Button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -76,7 +76,7 @@ export const NewChatWarning = React.memo(
|
||||||
<Text className="text-sm text-gray-500">
|
<Text className="text-sm text-gray-500">
|
||||||
{allCompleted
|
{allCompleted
|
||||||
? ' Your data is ready to be explored.'
|
? ' Your data is ready to be explored.'
|
||||||
: " Without proper setup, we can't retrieve relevant information."}
|
: " Without proper setup, we can't retrieve your data."}
|
||||||
</Text>
|
</Text>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -66,6 +66,8 @@
|
||||||
"NEXT_PUBLIC_WS_URL",
|
"NEXT_PUBLIC_WS_URL",
|
||||||
"NEXT_PUBLIC_POSTHOG_KEY",
|
"NEXT_PUBLIC_POSTHOG_KEY",
|
||||||
"NEXT_PUBLIC_POSTHOG_HOST",
|
"NEXT_PUBLIC_POSTHOG_HOST",
|
||||||
|
"NEXT_PUBLIC_POSTHOG_KEY",
|
||||||
|
"NEXT_PUBLIC_POSTHOG_HOST",
|
||||||
|
|
||||||
"NEXT_SLACK_APP_SUPPORT_URL",
|
"NEXT_SLACK_APP_SUPPORT_URL",
|
||||||
"NEXT_PRIVATE_SUPABASE_SERVICE_ROLE_KEY",
|
"NEXT_PRIVATE_SUPABASE_SERVICE_ROLE_KEY",
|
||||||
|
|
Loading…
Reference in New Issue