Skip to content

Commit

Permalink
chore: light more for connection details summary/edit (podman-desktop…
Browse files Browse the repository at this point in the history
  • Loading branch information
deboer-tim authored Jun 19, 2024
1 parent fe235e7 commit 0ec8499
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ $: providerContainerConfiguration = tmpProviderContainerConfiguration.filter(
);
</script>

<div class="h-full bg-zinc-900">
<div class="h-full text-[var(--pd-table-body-text)]">
{#if containerConnectionInfo}
{@const peerProperties = new PeerProperties()}
<div class="flex pl-8 py-4 flex-col w-full text-sm">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ async function editConnection(

{#if providerInfo && connectionInfo}
<DetailsPage title="{connectionInfo.name}">
<svelte:fragment slot="content">
<div slot="content" class="text-[var(--pd-content-text)]">
<PreferencesConnectionCreationRendering
providerInfo="{providerInfo}"
connectionInfo="{connectionInfo}"
properties="{properties}"
propertyScope="{scope}"
callback="{editConnection}" />
</svelte:fragment>
</div>
<IconImage slot="icon" image="{providerInfo?.images?.icon}" alt="{providerInfo?.name}" class="max-h-10" />
<svelte:fragment slot="subtitle">
{#if connectionInfo.status === 'started'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,53 +136,51 @@ function setNoLogs() {
</script>

{#if connectionInfo}
<div class="bg-charcoal-700 h-full">
<DetailsPage title="{connectionInfo.name}" bind:this="{detailsPage}">
<svelte:fragment slot="subtitle">
<div class="flex flex-row">
<ConnectionStatus status="{connectionInfo.status}" />
<ConnectionErrorInfoButton status="{connectionStatus}" />
<DetailsPage title="{connectionInfo.name}" bind:this="{detailsPage}">
<svelte:fragment slot="subtitle">
<div class="flex flex-row">
<ConnectionStatus status="{connectionInfo.status}" />
<ConnectionErrorInfoButton status="{connectionStatus}" />
</div>
</svelte:fragment>
<svelte:fragment slot="actions">
{#if providerInfo}
<div class="flex justify-end">
<PreferencesConnectionActions
provider="{providerInfo}"
connection="{connectionInfo}"
connectionStatus="{connectionStatus}"
updateConnectionStatus="{updateConnectionStatus}"
addConnectionToRestartingQueue="{addConnectionToRestartingQueue}" />
</div>
</svelte:fragment>
<svelte:fragment slot="actions">
{#if providerInfo}
<div class="flex justify-end">
<PreferencesConnectionActions
provider="{providerInfo}"
connection="{connectionInfo}"
connectionStatus="{connectionStatus}"
updateConnectionStatus="{updateConnectionStatus}"
addConnectionToRestartingQueue="{addConnectionToRestartingQueue}" />
</div>
{/if}
</svelte:fragment>
<IconImage slot="icon" image="{providerInfo?.images?.icon}" alt="{providerInfo?.name}" class="max-h-10" />
<svelte:fragment slot="tabs">
<Tab
title="Summary"
selected="{isTabSelected($router.path, 'summary')}"
url="{getTabUrl($router.path, 'summary')}" />
{#if connectionInfo.lifecycleMethods && connectionInfo.lifecycleMethods.length > 0}
<Tab title="Logs" selected="{isTabSelected($router.path, 'logs')}" url="{getTabUrl($router.path, 'logs')}" />
{/if}
</svelte:fragment>
<svelte:fragment slot="content">
<div class="h-full">
<Route path="/summary" breadcrumb="Summary" navigationHint="tab">
<PreferencesContainerConnectionDetailsSummary
containerConnectionInfo="{connectionInfo}"
providerInternalId="{providerInternalId}"
properties="{configurationKeys}" />
</Route>
<Route path="/logs" breadcrumb="Logs" navigationHint="tab">
<PreferencesConnectionDetailsLogs
providerInternalId="{providerInternalId}"
connectionInfo="{connectionInfo}"
setNoLogs="{setNoLogs}"
noLog="{noLog}" />
</Route>
</div>
</svelte:fragment>
</DetailsPage>
</div>
{/if}
</svelte:fragment>
<IconImage slot="icon" image="{providerInfo?.images?.icon}" alt="{providerInfo?.name}" class="max-h-10" />
<svelte:fragment slot="tabs">
<Tab
title="Summary"
selected="{isTabSelected($router.path, 'summary')}"
url="{getTabUrl($router.path, 'summary')}" />
{#if connectionInfo.lifecycleMethods && connectionInfo.lifecycleMethods.length > 0}
<Tab title="Logs" selected="{isTabSelected($router.path, 'logs')}" url="{getTabUrl($router.path, 'logs')}" />
{/if}
</svelte:fragment>
<svelte:fragment slot="content">
<div class="h-full">
<Route path="/summary" breadcrumb="Summary" navigationHint="tab">
<PreferencesContainerConnectionDetailsSummary
containerConnectionInfo="{connectionInfo}"
providerInternalId="{providerInternalId}"
properties="{configurationKeys}" />
</Route>
<Route path="/logs" breadcrumb="Logs" navigationHint="tab">
<PreferencesConnectionDetailsLogs
providerInternalId="{providerInternalId}"
connectionInfo="{connectionInfo}"
setNoLogs="{setNoLogs}"
noLog="{noLog}" />
</Route>
</div>
</svelte:fragment>
</DetailsPage>
{/if}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ $: providerConnectionConfiguration = tmpProviderContainerConfiguration.filter(
);
</script>

<div class="h-full bg-zinc-900">
<div class="h-full text-[var(--pd-table-body-text)]">
{#if kubernetesConnectionInfo}
<div class="flex pl-8 py-4 flex-col w-full text-sm">
<div class="flex flex-row mt-5">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,55 +132,53 @@ function setNoLogs() {
</script>

{#if connectionInfo}
<div class="bg-charcoal-700 h-full">
<DetailsPage title="{connectionInfo.name}" bind:this="{detailsPage}">
<svelte:fragment slot="subtitle">
<div class="flex flex-row">
<ConnectionStatus status="{connectionInfo.status}" />
<ConnectionErrorInfoButton status="{connectionStatus}" />
<DetailsPage title="{connectionInfo.name}" bind:this="{detailsPage}">
<svelte:fragment slot="subtitle">
<div class="flex flex-row">
<ConnectionStatus status="{connectionInfo.status}" />
<ConnectionErrorInfoButton status="{connectionStatus}" />
</div>
</svelte:fragment>
<svelte:fragment slot="actions">
{#if providerInfo}
<div class="flex justify-end">
<PreferencesConnectionActions
provider="{providerInfo}"
connection="{connectionInfo}"
connectionStatus="{connectionStatus}"
updateConnectionStatus="{updateConnectionStatus}"
addConnectionToRestartingQueue="{addConnectionToRestartingQueue}" />
</div>
</svelte:fragment>
<svelte:fragment slot="actions">
{#if providerInfo}
<div class="flex justify-end">
<PreferencesConnectionActions
provider="{providerInfo}"
connection="{connectionInfo}"
connectionStatus="{connectionStatus}"
updateConnectionStatus="{updateConnectionStatus}"
addConnectionToRestartingQueue="{addConnectionToRestartingQueue}" />
</div>
{/if}
</svelte:fragment>
<svelte:fragment slot="icon">
<IconImage image="{providerInfo?.images?.icon}" alt="{providerInfo?.name}" class="max-h-10" />
</svelte:fragment>
<svelte:fragment slot="tabs">
<Tab
title="Summary"
selected="{isTabSelected($router.path, 'summary')}"
url="{getTabUrl($router.path, 'summary')}" />
{#if connectionInfo.lifecycleMethods && connectionInfo.lifecycleMethods.length > 0}
<Tab title="Logs" selected="{isTabSelected($router.path, 'logs')}" url="{getTabUrl($router.path, 'logs')}" />
{/if}
</svelte:fragment>
<svelte:fragment slot="content">
<div class="h-full">
<Route path="/summary" breadcrumb="Summary" navigationHint="tab">
<PreferencesKubernetesConnectionDetailsSummary
kubernetesConnectionInfo="{connectionInfo}"
providerInternalId="{providerInternalId}"
properties="{configurationKeys}" />
</Route>
<Route path="/logs" breadcrumb="Logs" navigationHint="tab">
<PreferencesConnectionDetailsLogs
providerInternalId="{providerInternalId}"
connectionInfo="{connectionInfo}"
setNoLogs="{setNoLogs}"
noLog="{noLog}" />
</Route>
</div>
</svelte:fragment>
</DetailsPage>
</div>
{/if}
</svelte:fragment>
<svelte:fragment slot="icon">
<IconImage image="{providerInfo?.images?.icon}" alt="{providerInfo?.name}" class="max-h-10" />
</svelte:fragment>
<svelte:fragment slot="tabs">
<Tab
title="Summary"
selected="{isTabSelected($router.path, 'summary')}"
url="{getTabUrl($router.path, 'summary')}" />
{#if connectionInfo.lifecycleMethods && connectionInfo.lifecycleMethods.length > 0}
<Tab title="Logs" selected="{isTabSelected($router.path, 'logs')}" url="{getTabUrl($router.path, 'logs')}" />
{/if}
</svelte:fragment>
<svelte:fragment slot="content">
<div class="h-full">
<Route path="/summary" breadcrumb="Summary" navigationHint="tab">
<PreferencesKubernetesConnectionDetailsSummary
kubernetesConnectionInfo="{connectionInfo}"
providerInternalId="{providerInternalId}"
properties="{configurationKeys}" />
</Route>
<Route path="/logs" breadcrumb="Logs" navigationHint="tab">
<PreferencesConnectionDetailsLogs
providerInternalId="{providerInternalId}"
connectionInfo="{connectionInfo}"
setNoLogs="{setNoLogs}"
noLog="{noLog}" />
</Route>
</div>
</svelte:fragment>
</DetailsPage>
{/if}

0 comments on commit 0ec8499

Please sign in to comment.