File tree Expand file tree Collapse file tree 21 files changed +195
-110
lines changed
Knowledge/KnowledgeWizard Expand file tree Collapse file tree 21 files changed +195
-110
lines changed Original file line number Diff line number Diff 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 || '' ,
Original file line number Diff line number Diff line change 1- // src/app/edit-submission /knowledge/github/[...slug]/page.tsx
1+ // src/app/contribute /knowledge/github/[...slug]/page.tsx
22import * as React from 'react' ;
33import { AppLayout } from '@/components/AppLayout' ;
44import EditKnowledge from '@/components/Contribute/EditKnowledge/github/EditKnowledge' ;
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 1- // src/app/edit-submission /knowledge/native/[...slug]/page.tsx
1+ // src/app/dashboard /knowledge/native/[...slug]/page.tsx
22import { AppLayout } from '@/components/AppLayout' ;
33import EditKnowledgeNative from '@/components/Contribute/EditKnowledge/native/EditKnowledge' ;
44import * as React from 'react' ;
Original file line number Diff line number Diff line change 1- // src/app/edit-submission /skill/[id]/page.tsx
1+ // src/app/dashboard /skill/[id]/page.tsx
22import * as React from 'react' ;
33import { AppLayout } from '@/components/AppLayout' ;
44import EditSkill from '@/components/Contribute/EditSkill/github/EditSkill' ;
Original file line number Diff line number Diff line change 1- // src/app/edit-submission /skill/[id]/page.tsx
1+ // src/app/dashboard /skill/[id]/page.tsx
22import * as React from 'react' ;
33import { AppLayout } from '@/components/AppLayout' ;
44import EditSkillNative from '@/components/Contribute/EditSkill/native/EditSkill' ;
Original file line number Diff line number Diff line change 11// src/app/page.tsx
22'use client' ;
33
4- import { DashboardGithub } from '@/components/Dashboard/Github/dashboard' ;
5- import { GithubAccessPopup } from '@/components/GithubAccessPopup' ;
64import * as React from 'react' ;
7- import { useState } from 'react' ;
5+ import { useRouter } from 'next/navigation' ;
6+ import { GithubAccessPopup } from '@/components/GithubAccessPopup' ;
87import { AppLayout } from '../components/AppLayout' ;
98
109const 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} ;
You can’t perform that action at this time.
0 commit comments