@@ -566,7 +566,7 @@ export const seedActivePrWorkspaceContext = async (
566566 renderMode,
567567 tabs : [
568568 {
569- id : 'component ' ,
569+ id : 'entry ' ,
570570 name : 'App.tsx' ,
571571 path : 'src/components/App.tsx' ,
572572 language : 'javascript-jsx' ,
@@ -575,7 +575,7 @@ export const seedActivePrWorkspaceContext = async (
575575 content : 'export const App = () => <main>Hello from Knighted</main>' ,
576576 } ,
577577 {
578- id : 'styles ' ,
578+ id : 'style ' ,
579579 name : 'app.css' ,
580580 path : 'src/styles/app.css' ,
581581 language : safeStyleLanguage ,
@@ -584,7 +584,7 @@ export const seedActivePrWorkspaceContext = async (
584584 content : 'main { color: #111; }' ,
585585 } ,
586586 ] ,
587- activeTabId : 'component ' ,
587+ activeTabId : 'entry ' ,
588588 createdAt : Date . now ( ) + 60_000 ,
589589 lastModified : Date . now ( ) + 60_000 ,
590590 } ,
@@ -706,7 +706,7 @@ export const getWorkspaceComponentContent = (record: Record<string, unknown> | n
706706 return false
707707 }
708708
709- return ( tab as { id ?: unknown } ) . id === 'component '
709+ return ( tab as { role ?: unknown } ) . role === 'entry '
710710 } ) as { content ?: unknown } | undefined
711711
712712 return typeof componentTab ?. content === 'string' ? componentTab . content : ''
@@ -829,7 +829,7 @@ export const runActiveWorkspaceSwitchIntegrityScenario = async ({
829829 renderMode : 'react' ,
830830 tabs : [
831831 {
832- id : 'component ' ,
832+ id : 'entry ' ,
833833 name : 'App.tsx' ,
834834 path : 'src/components/App.tsx' ,
835835 language : 'javascript-jsx' ,
@@ -838,7 +838,7 @@ export const runActiveWorkspaceSwitchIntegrityScenario = async ({
838838 content : 'export const App = () => <main>Active A content</main>' ,
839839 } ,
840840 ] ,
841- activeTabId : 'component ' ,
841+ activeTabId : 'entry ' ,
842842 createdAt : Date . now ( ) - 60_000 ,
843843 lastModified : Date . now ( ) - 60_000 ,
844844 } ,
@@ -853,7 +853,7 @@ export const runActiveWorkspaceSwitchIntegrityScenario = async ({
853853 renderMode : 'dom' ,
854854 tabs : [
855855 {
856- id : 'component ' ,
856+ id : 'entry ' ,
857857 name : 'App.tsx' ,
858858 path : 'src/components/App.tsx' ,
859859 language : 'javascript-jsx' ,
@@ -862,7 +862,7 @@ export const runActiveWorkspaceSwitchIntegrityScenario = async ({
862862 content : `export const App = () => <main>Target ${ targetState } content</main>` ,
863863 } ,
864864 ] ,
865- activeTabId : 'component ' ,
865+ activeTabId : 'entry ' ,
866866 createdAt : Date . now ( ) - 120_000 ,
867867 lastModified : Date . now ( ) - 120_000 ,
868868 } ,
@@ -1077,7 +1077,7 @@ export const runActiveWorkspaceCrossRepoSwitchIntegrityScenario = async ({
10771077 renderMode : 'react' ,
10781078 tabs : [
10791079 {
1080- id : 'component ' ,
1080+ id : 'entry ' ,
10811081 name : 'App.tsx' ,
10821082 path : 'src/components/App.tsx' ,
10831083 language : 'javascript-jsx' ,
@@ -1086,7 +1086,7 @@ export const runActiveWorkspaceCrossRepoSwitchIntegrityScenario = async ({
10861086 content : 'export const App = () => <main>Cross source active content</main>' ,
10871087 } ,
10881088 ] ,
1089- activeTabId : 'component ' ,
1089+ activeTabId : 'entry ' ,
10901090 createdAt : Date . now ( ) - 60_000 ,
10911091 lastModified : Date . now ( ) - 60_000 ,
10921092 } ,
@@ -1101,7 +1101,7 @@ export const runActiveWorkspaceCrossRepoSwitchIntegrityScenario = async ({
11011101 renderMode : 'dom' ,
11021102 tabs : [
11031103 {
1104- id : 'component ' ,
1104+ id : 'entry ' ,
11051105 name : 'App.tsx' ,
11061106 path : 'src/components/App.tsx' ,
11071107 language : 'javascript-jsx' ,
@@ -1110,7 +1110,7 @@ export const runActiveWorkspaceCrossRepoSwitchIntegrityScenario = async ({
11101110 content : `export const App = () => <main>Cross target ${ targetState } content</main>` ,
11111111 } ,
11121112 ] ,
1113- activeTabId : 'component ' ,
1113+ activeTabId : 'entry ' ,
11141114 createdAt : Date . now ( ) - 120_000 ,
11151115 lastModified : Date . now ( ) - 120_000 ,
11161116 } ,
0 commit comments