Skip to content

Commit 7efdb82

Browse files
authored
Merge pull request #232 from code0-tech/feat/#197
Module configuration page within project page
2 parents b2d358f + 259baf8 commit 7efdb82

28 files changed

Lines changed: 723 additions & 184 deletions

File tree

.env.local

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ NEXT_PUBLIC_EDITION=ce
44
SAGITTARIUS_GRAPHQL_URL=http://localhost:80/graphql
55

66
NEXT_PUBLIC_SCULPTOR_VERSION=0.0.0
7-
NEXT_PUBLIC_PICTOR_VERSION=0.9.0
7+
NEXT_PUBLIC_PICTOR_VERSION=0.9.1
88
NEXT_PUBLIC_ALLOWED_REDIRECT_DOMAINS=*.code0.tech,*.codezero.build
99

1010
NEXT_PUBLIC_OTEL_SERVICE_NAME=#"sculptor-client"

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
},
1616
"dependencies": {
1717
"@apollo/client": "^4.0.9",
18-
"@code0-tech/pictor": "^0.9.0",
19-
"@code0-tech/triangulum": "^0.18.0",
18+
"@code0-tech/pictor": "^0.9.1",
19+
"@code0-tech/triangulum": "^0.19.0",
2020
"@codemirror/lang-javascript": "^6.2.5",
2121
"@codemirror/lint": "^6.9.5",
2222
"@opentelemetry/api": "^1.9.1",

src/app/(dashboard)/layout.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ import {Application, ApplicationService} from "@edition/application/services/App
1818
import {useUserSession} from "@edition/user/hooks/User.session.hook";
1919
import {OrganizationView} from "@edition/organization/services/Organization.view";
2020
import {MemberView} from "@edition/member/services/Member.view";
21-
import {ProjectView} from "@edition/project/services/Project.view";
2221
import {RoleView} from "@edition/role/services/Role.view";
2322
import {Layout} from "@code0-tech/pictor/dist/components/layout/Layout";
24-
import {Namespace, Runtime, User} from "@code0-tech/sagittarius-graphql-types";
23+
import {Namespace, NamespaceProject, Runtime, User} from "@code0-tech/sagittarius-graphql-types";
2524
import {ApplicationMiddlewareComponent} from "@edition/application/components/ApplicationMiddlewareComponent";
2625

2726
interface ApplicationLayoutProps {
@@ -43,7 +42,7 @@ const ApplicationLayout: React.FC<ApplicationLayoutProps> = ({children, bar, tab
4342
const member = usePersistentReactiveArrayService<MemberView, MemberService>(`dashboard::members::${currentSession?.id}`, (store) => new MemberService(graphqlClient, store))
4443
const namespace = usePersistentReactiveArrayService<Namespace, NamespaceService>(`dashboard::namespaces::${currentSession?.id}`, (store) => new NamespaceService(graphqlClient, store))
4544
const runtime = usePersistentReactiveArrayService<Runtime, RuntimeService>(`dashboard::global_runtimes::${currentSession?.id}`, (store) => new RuntimeService(graphqlClient, store))
46-
const project = usePersistentReactiveArrayService<ProjectView, ProjectService>(`dashboard::projects::${currentSession?.id}`, (store) => new ProjectService(graphqlClient, store))
45+
const project = usePersistentReactiveArrayService<NamespaceProject, ProjectService>(`dashboard::projects::${currentSession?.id}`, (store) => new ProjectService(graphqlClient, store))
4746
const role = usePersistentReactiveArrayService<RoleView, RoleService>(`dashboard::roles::${currentSession?.id}`, (store) => new RoleService(graphqlClient, store))
4847
const application = usePersistentReactiveArrayService<Application, ApplicationService>(`dashboard::application::${currentSession?.id}`, (store) => new ApplicationService(graphqlClient, store))
4948

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use client"
2+
3+
import {ProjectTabView} from "@ce-internal/project/views/ProjectTabView";
4+
5+
export default ProjectTabView
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
"use client"
2+
3+
import {ProjectTabView} from "@ce-internal/project/views/ProjectTabView";
4+
5+
export default ProjectTabView

src/app/(flow)/layout.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {FlowTypeService} from "@edition/flowtype/services/FlowType.service";
2929
import Image from "next/image";
3030
import {OrganizationView} from "@edition/organization/services/Organization.view";
3131
import {MemberView} from "@edition/member/services/Member.view";
32-
import {ProjectView} from "@edition/project/services/Project.view";
3332
import {RoleView} from "@edition/role/services/Role.view";
3433
import {useUserSession} from "@edition/user/hooks/User.session.hook";
3534
import {Layout} from "@code0-tech/pictor/dist/components/layout/Layout";
@@ -61,7 +60,7 @@ export default function FlowLayout({bar, tab, children}: {
6160
const member = usePersistentReactiveArrayService<MemberView, MemberService>(`dashboard::members::${currentSession?.id}`, (store) => new MemberService(graphqlClient, store))
6261
const namespace = usePersistentReactiveArrayService<Namespace, NamespaceService>(`dashboard::namespaces::${currentSession?.id}`, (store) => new NamespaceService(graphqlClient, store))
6362
const runtime = usePersistentReactiveArrayService<Runtime, RuntimeService>(`dashboard::global_runtimes::${currentSession?.id}`, (store) => new RuntimeService(graphqlClient, store))
64-
const project = usePersistentReactiveArrayService<ProjectView, ProjectService>(`dashboard::projects::${currentSession?.id}`, (store) => new ProjectService(graphqlClient, store))
63+
const project = usePersistentReactiveArrayService<NamespaceProject, ProjectService>(`dashboard::projects::${currentSession?.id}`, (store) => new ProjectService(graphqlClient, store))
6564
const role = usePersistentReactiveArrayService<RoleView, RoleService>(`dashboard::roles::${currentSession?.id}`, (store) => new RoleService(graphqlClient, store))
6665
const flow = usePersistentReactiveArrayService<Flow, FlowService>(`dashboard::flows::${currentSession?.id}`, (store) => new FlowService(graphqlClient, store))
6766
const functions = usePersistentReactiveArrayService<FunctionDefinition, FunctionService>(`dashboard::functions::${currentSession?.id}`, (store) => new FunctionService(graphqlClient, store))
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"use client"
2+
3+
import React from "react";
4+
import {Col, Flex} from "@code0-tech/pictor";
5+
6+
export default function AuthLayout({children}: Readonly<{ children: React.ReactNode }>) {
7+
return <div style={{
8+
background: "#070514",
9+
height: "100%",
10+
padding: "1rem",
11+
borderTopLeftRadius: "1rem",
12+
borderTopRightRadius: "1rem"
13+
}}>
14+
<Flex h={"100%"} w={"100%"} align={"center"} justify={"center"}>
15+
<Col xs={4} style={{marginTop: "auto", marginBottom: "auto"}}>
16+
{children}
17+
</Col>
18+
</Flex>
19+
</div>
20+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import {ModuleConfigurationPage} from "@ce-internal/module/pages/ModuleConfigurationPage";
2+
3+
export default ModuleConfigurationPage
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import {ModulesPage} from "@ce-internal/module/pages/ModulesPage";
2+
3+
export default ModulesPage

0 commit comments

Comments
 (0)