Skip to content

Commit c02d480

Browse files
Update top level IA using current contribution wizards
Signed-off-by: Jeffrey Phillips <[email protected]>
1 parent c56a950 commit c02d480

File tree

21 files changed

+195
-110
lines changed

21 files changed

+195
-110
lines changed

src/app/api/envConfig/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ export async function GET() {
1717
DEPLOYMENT_TYPE: process.env.IL_UI_DEPLOYMENT || '',
1818
ENABLE_DEV_MODE: process.env.IL_ENABLE_DEV_MODE || 'false',
1919
ENABLE_DOC_CONVERSION: process.env.IL_ENABLE_DOC_CONVERSION || 'false',
20-
ENABLE_DOCUMENT_MANAGEMENT: process.env.IL_ENABLE_DOCUMENT_MANAGEMENT || '',
2120
ENABLE_SKILLS_FEATURES: process.env.IL_ENABLE_SKILLS_FEATURES || '',
2221
ENABLE_PLAYGROUND_FEATURES: process.env.IL_ENABLE_PLAYGROUND_FEATURES || '',
2322
EXPERIMENTAL_FEATURES: process.env.NEXT_PUBLIC_EXPERIMENTAL_FEATURES || '',

src/app/edit-submission/knowledge/github/[...slug]/page.tsx renamed to src/app/contribute/knowledge/github/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// src/app/edit-submission/knowledge/github/[...slug]/page.tsx
1+
// src/app/contribute/knowledge/github/[...slug]/page.tsx
22
import * as React from 'react';
33
import { AppLayout } from '@/components/AppLayout';
44
import EditKnowledge from '@/components/Contribute/EditKnowledge/github/EditKnowledge';
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// src/app/contribute/knowledge/github/[...slug]/page.tsx
2+
import * as React from 'react';
3+
import { AppLayout } from '@/components/AppLayout';
4+
import EditKnowledge from '@/components/Contribute/EditKnowledge/native/EditKnowledge';
5+
6+
type PageProps = {
7+
params: Promise<{ slug: string[] }>;
8+
};
9+
10+
const EditKnowledgePage = async ({ params }: PageProps) => {
11+
const resolvedParams = await params;
12+
13+
return (
14+
<AppLayout className="contribute-page">
15+
<EditKnowledge branchName={resolvedParams.slug[0]} isDraft={resolvedParams.slug[1] != null ? true : false} />
16+
</AppLayout>
17+
);
18+
};
19+
20+
export default EditKnowledgePage;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// src/app/contribute/knowledge/github/[...slug]/page.tsx
2+
import * as React from 'react';
3+
import { AppLayout } from '@/components/AppLayout';
4+
import EditSkill from '@/components/Contribute/EditSkill/github/EditSkill';
5+
6+
type PageProps = {
7+
params: Promise<{ slug: string[] }>;
8+
};
9+
10+
const EditKnowledgePage = async ({ params }: PageProps) => {
11+
const resolvedParams = await params;
12+
13+
return (
14+
<AppLayout className="contribute-page">
15+
<EditSkill prNumber={resolvedParams.slug[0]} isDraft={resolvedParams.slug[1] != null ? true : false} />
16+
</AppLayout>
17+
);
18+
};
19+
20+
export default EditKnowledgePage;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// src/app/contribute/knowledge/github/[...slug]/page.tsx
2+
import * as React from 'react';
3+
import { AppLayout } from '@/components/AppLayout';
4+
import EditSkill from '@/components/Contribute/EditSkill/native/EditSkill';
5+
6+
type PageProps = {
7+
params: Promise<{ slug: string[] }>;
8+
};
9+
10+
const EditKnowledgePage = async ({ params }: PageProps) => {
11+
const resolvedParams = await params;
12+
13+
return (
14+
<AppLayout className="contribute-page">
15+
<EditSkill branchName={resolvedParams.slug[0]} isDraft={resolvedParams.slug[1] != null ? true : false} />
16+
</AppLayout>
17+
);
18+
};
19+
20+
export default EditKnowledgePage;
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// src/app/dashboard/knowledge/github/[...slug]/page.tsx
2+
import * as React from 'react';
3+
import { AppLayout } from '@/components/AppLayout';
4+
import EditKnowledge from '@/components/Contribute/EditKnowledge/github/EditKnowledge';
5+
6+
type PageProps = {
7+
params: Promise<{ slug: string[] }>;
8+
};
9+
10+
const EditKnowledgePage = async ({ params }: PageProps) => {
11+
const resolvedParams = await params;
12+
13+
return (
14+
<AppLayout className="contribute-page">
15+
<EditKnowledge prNumber={resolvedParams.slug[0]} isDraft={resolvedParams.slug[1] != null ? true : false} />
16+
</AppLayout>
17+
);
18+
};
19+
20+
export default EditKnowledgePage;

src/app/edit-submission/knowledge/native/[...slug]/page.tsx renamed to src/app/dashboard/knowledge/native/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// src/app/edit-submission/knowledge/native/[...slug]/page.tsx
1+
// src/app/dashboard/knowledge/native/[...slug]/page.tsx
22
import { AppLayout } from '@/components/AppLayout';
33
import EditKnowledgeNative from '@/components/Contribute/EditKnowledge/native/EditKnowledge';
44
import * as React from 'react';

src/app/edit-submission/skill/github/[...slug]/page.tsx renamed to src/app/dashboard/skill/github/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// src/app/edit-submission/skill/[id]/page.tsx
1+
// src/app/dashboard/skill/[id]/page.tsx
22
import * as React from 'react';
33
import { AppLayout } from '@/components/AppLayout';
44
import EditSkill from '@/components/Contribute/EditSkill/github/EditSkill';

src/app/edit-submission/skill/native/[...slug]/page.tsx renamed to src/app/dashboard/skill/native/[...slug]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// src/app/edit-submission/skill/[id]/page.tsx
1+
// src/app/dashboard/skill/[id]/page.tsx
22
import * as React from 'react';
33
import { AppLayout } from '@/components/AppLayout';
44
import EditSkillNative from '@/components/Contribute/EditSkill/native/EditSkill';

src/app/page.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
// src/app/page.tsx
22
'use client';
33

4-
import { DashboardGithub } from '@/components/Dashboard/Github/dashboard';
5-
import { GithubAccessPopup } from '@/components/GithubAccessPopup';
64
import * as React from 'react';
7-
import { useState } from 'react';
5+
import { useRouter } from 'next/navigation';
6+
import { GithubAccessPopup } from '@/components/GithubAccessPopup';
87
import { AppLayout } from '../components/AppLayout';
98

109
const HomePage: React.FC = () => {
11-
const [isWarningConditionAccepted, setIsWarningConditionAccepted] = useState<boolean>(false);
10+
const router = useRouter();
1211

13-
const handleWarningConditionAccepted = React.useCallback(() => {
14-
setIsWarningConditionAccepted(true);
15-
}, []);
12+
const handleWarningConditionAccepted = () => {
13+
router.push('/dashboard');
14+
};
1615

1716
return (
1817
<AppLayout>
1918
<GithubAccessPopup onAccept={handleWarningConditionAccepted} />
20-
{isWarningConditionAccepted && <DashboardGithub />}
2119
</AppLayout>
2220
);
2321
};

0 commit comments

Comments
 (0)