refactor(ui): route CheckpointsTable via IdentitySection.checkpointsSlot

This commit is contained in:
hsiegeln
2026-04-23 17:12:12 +02:00
parent 18da187960
commit 9cfe3985d0

View File

@@ -469,9 +469,8 @@ export default function AppDeploymentPage() {
stagedJar={stagedJar}
onStagedJarChange={setStagedJar}
deploying={deploymentInProgress}
>
{app && (
<>
checkpointsSlot={
app ? (
<CheckpointsTable
deployments={deployments}
versions={versions}
@@ -479,22 +478,23 @@ export default function AppDeploymentPage() {
jarRetentionCount={jarRetentionCount}
onSelect={setSelectedCheckpointId}
/>
{selectedDep && (
<CheckpointDetailDrawer
open
onClose={() => setSelectedCheckpointId(null)}
deployment={selectedDep}
version={selectedDepVersion}
appSlug={app.slug}
envSlug={selectedEnv ?? ''}
currentForm={form}
onRestore={(deploymentId) => {
handleRestore(deploymentId);
setSelectedCheckpointId(null);
}}
/>
)}
</>
) : undefined
}
>
{app && selectedDep && (
<CheckpointDetailDrawer
open
onClose={() => setSelectedCheckpointId(null)}
deployment={selectedDep}
version={selectedDepVersion}
appSlug={app.slug}
envSlug={selectedEnv ?? ''}
currentForm={form}
onRestore={(deploymentId) => {
handleRestore(deploymentId);
setSelectedCheckpointId(null);
}}
/>
)}
</IdentitySection>