@@ -31,9 +31,9 @@ vp run fork:scan
3131
3232| Fork commit | Domain | Upstream replacement |
3333| --- | --- | --- |
34- | \`apps/web/src/retired.ts\` | project-windows | gone |
34+ | \`apps/web/src/retired.ts\` | multi-window | gone |
3535
36- ## project-windows
36+ ## multi-window
3737
3838### Shape
3939
@@ -72,7 +72,7 @@ const scanInput = (overrides: Partial<ScanInput> = {}): ScanInput => ({
7272 base : "base" ,
7373 head : "HEAD" ,
7474 target : "upstream/main" ,
75- commits : [ commit ( "aaaaaaa" , "project-windows " ) ] ,
75+ commits : [ commit ( "aaaaaaa" , "multi-window " ) ] ,
7676 filesBySha : new Map ( [ [ "aaaaaaa" . padEnd ( 40 , "0" ) , [ "apps/web/src/components/Sidebar.logic.ts" ] ] ] ) ,
7777 scans : parseRebaseScans ( ledger ) ,
7878 forkChanged : new Set ( [ "apps/web/src/components/Sidebar.logic.ts" ] ) ,
@@ -82,8 +82,8 @@ const scanInput = (overrides: Partial<ScanInput> = {}): ScanInput => ({
8282
8383it ( "reads one pattern per code span from every domain's rebase scan" , ( ) => {
8484 const scans = parseRebaseScans ( ledger ) ;
85- assert . deepStrictEqual ( [ ...scans . keys ( ) ] , [ "project-windows " , "upstream-fixes" ] ) ;
86- assert . deepStrictEqual ( scans . get ( "project-windows " ) , [
85+ assert . deepStrictEqual ( [ ...scans . keys ( ) ] , [ "multi-window " , "upstream-fixes" ] ) ;
86+ assert . deepStrictEqual ( scans . get ( "multi-window " ) , [
8787 "apps/desktop/src/window/DesktopWindow.ts" ,
8888 "apps/desktop/src/ipc/**" ,
8989 "apps/web/src/routes/project.*" ,
@@ -98,10 +98,10 @@ it("reads the multi-window and workspaces rebase scans from the ledger (RSI-Soft
9898 const markdown = git . run ( [ "show" , `HEAD:${ LEDGER_PATH } ` ] ) ;
9999 assert . isAbove ( root . length , 0 , "the scan test runs inside a git checkout" ) ;
100100 const scans = parseRebaseScans ( markdown ) ;
101- const projectWindows = scans . get ( "project-windows " ) ?? [ ] ;
101+ const multiWindow = scans . get ( "multi-window " ) ?? [ ] ;
102102 const workspaces = scans . get ( "workspaces" ) ?? [ ] ;
103- assert . strictEqual ( projectWindows . length , 96 ) ;
104- assert . include ( projectWindows , "apps/desktop/src/window/DesktopWindow.ts" ) ;
103+ assert . include ( multiWindow , "apps/desktop/src/preview/Manager*.ts" ) ;
104+ assert . include ( multiWindow , "apps/desktop/src/window/DesktopWindow.ts" ) ;
105105 assert . isTrue (
106106 workspaces . some ( ( pattern ) =>
107107 matchesScanPattern ( pattern , "apps/web/src/components/Sidebar.tsx" ) ,
@@ -112,7 +112,7 @@ it("reads the multi-window and workspaces rebase scans from the ledger (RSI-Soft
112112 workspaces . some ( ( pattern ) =>
113113 matchesScanPattern ( pattern , "apps/desktop/src/window/DesktopWindow.ts" ) ,
114114 ) ,
115- "a project-windows -only path must not match the workspaces scan" ,
115+ "a multi-window -only path must not match the workspaces scan" ,
116116 ) ;
117117} ) ;
118118
@@ -145,16 +145,16 @@ it("fails a file both the fork and upstream changed that the scan omits", () =>
145145 const result = buildScanResult ( scanInput ( ) ) ;
146146 assert . deepStrictEqual ( result . domains , [
147147 {
148- domain : "project-windows " ,
148+ domain : "multi-window " ,
149149 commitCount : 1 ,
150150 sharedCount : 1 ,
151151 gaps : [ "apps/web/src/components/Sidebar.logic.ts" ] ,
152152 } ,
153153 ] ) ;
154154 assert . deepStrictEqual ( scanFailures ( result ) , [
155- "project-windows : rebase scan omits apps/web/src/components/Sidebar.logic.ts" ,
155+ "multi-window : rebase scan omits apps/web/src/components/Sidebar.logic.ts" ,
156156 ] ) ;
157- assert . include ( renderScanReport ( result ) , "MISSING project-windows " ) ;
157+ assert . include ( renderScanReport ( result ) , "MISSING multi-window " ) ;
158158} ) ;
159159
160160it ( "ignores a file only the fork changed and a file only upstream changed" , ( ) => {
@@ -179,7 +179,7 @@ it("accepts a file a scan pattern covers", () => {
179179 ) ;
180180 assert . deepStrictEqual ( scanFailures ( covered ) , [ ] ) ;
181181 assert . deepStrictEqual ( covered . overlaps , [
182- { path : "apps/desktop/src/ipc/methods/preview.ts" , domain : "project-windows " , covered : true } ,
182+ { path : "apps/desktop/src/ipc/methods/preview.ts" , domain : "multi-window " , covered : true } ,
183183 ] ) ;
184184} ) ;
185185
@@ -201,7 +201,7 @@ it("fails a domain that has commits but no rebase scan, and skips untagged commi
201201it ( "attributes one shared file to every domain whose commits touch it" , ( ) => {
202202 const result = buildScanResult (
203203 scanInput ( {
204- commits : [ commit ( "aaaaaaa" , "project-windows " ) , commit ( "bbbbbbb" , "upstream-fixes" ) ] ,
204+ commits : [ commit ( "aaaaaaa" , "multi-window " ) , commit ( "bbbbbbb" , "upstream-fixes" ) ] ,
205205 filesBySha : new Map ( [
206206 [ "aaaaaaa" . padEnd ( 40 , "0" ) , [ "apps/server/src/provider/Layers/GrokAdapter.ts" ] ] ,
207207 [ "bbbbbbb" . padEnd ( 40 , "0" ) , [ "apps/server/src/provider/Layers/GrokAdapter.ts" ] ] ,
@@ -212,7 +212,7 @@ it("attributes one shared file to every domain whose commits touch it", () => {
212212 ) ;
213213 assert . deepStrictEqual (
214214 result . overlaps . map ( ( overlap ) => `${ overlap . domain } :${ overlap . covered } ` ) ,
215- [ "project-windows :false" , "upstream-fixes:true" ] ,
215+ [ "multi-window :false" , "upstream-fixes:true" ] ,
216216 ) ;
217217} ) ;
218218
0 commit comments