[ghai] Make project available to summary timeline component factory

(cherry picked from commit cab7ffc9b8051cda70dadeb2d2d5ee643aad4a31)

IJ-CR-148445

GitOrigin-RevId: 959a58f5a684a307aee569c1b1fe812d550f20ec
This commit is contained in:
Chris Lemaire
2024-11-04 16:09:10 +01:00
committed by intellij-monorepo-bot
parent 5cb9626d37
commit 07f1fbf5af
2 changed files with 2 additions and 2 deletions

View File

@@ -75,5 +75,5 @@ interface GHPRAISummaryExtension {
dataProvider: GHPRDataProvider,
): GHPRAISummaryViewModel?
fun createTimelineComponent(vm: GHPRAISummaryViewModel): JComponent
fun createTimelineComponent(project: Project, vm: GHPRAISummaryViewModel): JComponent
}

View File

@@ -109,7 +109,7 @@ internal class GHPRFileEditorComponentFactory(
projectVm.acquireAISummaryViewModel(loadedDetails.value.id, uiDisposable),
GHPRAISummaryExtension.singleFlow
) { summaryVm, extension ->
summaryVm?.let { extension?.createTimelineComponent(it) }
summaryVm?.let { extension?.createTimelineComponent(project, it) }
}
bindVisibilityIn(cs, summaryComponent.map { it != null })
bindContent("${javaClass.name}.summaryComponent.content", summaryComponent)