-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[poc] Add layout components #6239
Changes from all commits
3d2dac9
b2ffb31
180fc26
8498ab4
4aafb7d
3d3f4bc
7974a24
38e8235
15282e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ import FeaturedExtensions from '/@/lib/featured/FeaturedExtensions.svelte'; | |
import ProviderConfiguring from '/@/lib/dashboard/ProviderConfiguring.svelte'; | ||
import NotificationsBox from './NotificationsBox.svelte'; | ||
import LearningCenter from '../learning-center/LearningCenter.svelte'; | ||
import Card from '../ui/Card.svelte'; | ||
|
||
const providerInitContexts = new Map<string, InitializationContext>(); | ||
|
||
|
@@ -96,8 +97,18 @@ function getInitializationContext(id: string): InitializationContext { | |
<ProviderStopped provider="{providerStopped}" /> | ||
{/each} | ||
{/if} | ||
<LearningCenter /> | ||
<FeaturedExtensions /> | ||
</div> | ||
<div class="px-2 mt-5 h-full"> | ||
<Card title="Learning center"> | ||
<svelte:fragment slot="content"> | ||
<LearningCenter /> | ||
</svelte:fragment> | ||
</Card> | ||
<Card title="Featured extensions"> | ||
<svelte:fragment slot="content"> | ||
<FeaturedExtensions /> | ||
</svelte:fragment> | ||
</Card> | ||
Comment on lines
+100
to
+111
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would be really cautious there For example Learning center does not match the expected design |
||
</div> | ||
</div> | ||
</div> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ import FeaturedExtensions from '../featured/FeaturedExtensions.svelte'; | |
import Button from '../ui/Button.svelte'; | ||
import ExtensionIcon from './ExtensionIcon.svelte'; | ||
import { Input } from '@podman-desktop/ui-svelte'; | ||
import Card from '../ui/Card.svelte'; | ||
|
||
export let ociImage: string | undefined = undefined; | ||
|
||
|
@@ -77,51 +78,54 @@ async function updateExtension(extension: ExtensionInfo, ociUri: string) { | |
|
||
<SettingsPage title="Extensions"> | ||
<div class="bg-charcoal-600 rounded-md p-3"> | ||
<div class="bg-charcoal-700 mb-4 rounded-md p-3"> | ||
<FeaturedExtensions /> | ||
</div> | ||
|
||
<div class="bg-charcoal-700 mt-5 rounded-md p-3" role="region" aria-label="OCI image installation box"> | ||
<h1 class="text-lg mb-2">Install a new extension from OCI Image</h1> | ||
|
||
<div class="flex flex-col w-full"> | ||
<div | ||
class="flex flex-row mb-2 w-full space-x-4 items-center" | ||
role="region" | ||
aria-label="Install Extension From OCI"> | ||
<Input | ||
name="ociImage" | ||
id="ociImage" | ||
aria-label="OCI Image Name" | ||
bind:value="{ociImage}" | ||
placeholder="Name of the Image" | ||
class="w-1/2" | ||
required /> | ||
|
||
<Button | ||
on:click="{() => installExtensionFromImage()}" | ||
disabled="{ociImage === undefined || ociImage.trim() === ''}" | ||
class="w-full" | ||
inProgress="{installInProgress}" | ||
icon="{faArrowCircleDown}"> | ||
Install extension from the OCI image | ||
</Button> | ||
</div> | ||
|
||
<div class="container w-full flex-col"> | ||
<Card title="Featured Extensions"> | ||
<svelte:fragment slot="content"> | ||
<FeaturedExtensions /> | ||
</svelte:fragment> | ||
</Card> | ||
|
||
<Card title="Install a new extension from OCI Image" label="OCI image installation box"> | ||
<svelte:fragment slot="content"> | ||
<div class="flex flex-col w-full"> | ||
Comment on lines
+81
to
+89
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this screen is being changed as part of #2170 |
||
<div | ||
class:opacity-0="{logs.length === 0}" | ||
bind:this="{logElement}" | ||
class="bg-zinc-700 text-gray-300 mt-4 mb-3 p-1 h-16 overflow-y-auto"> | ||
{#each logs as log} | ||
<p class="font-light text-sm">{log}</p> | ||
{/each} | ||
class="flex flex-row mb-2 w-full space-x-4 items-center" | ||
role="region" | ||
aria-label="Install Extension From OCI"> | ||
<Input | ||
name="ociImage" | ||
id="ociImage" | ||
aria-label="OCI Image Name" | ||
bind:value="{ociImage}" | ||
placeholder="Name of the Image" | ||
class="w-1/2" | ||
required /> | ||
|
||
<Button | ||
on:click="{() => installExtensionFromImage()}" | ||
disabled="{ociImage === undefined || ociImage.trim() === ''}" | ||
class="w-full" | ||
inProgress="{installInProgress}" | ||
icon="{faArrowCircleDown}"> | ||
Install extension from the OCI image | ||
</Button> | ||
</div> | ||
|
||
<ErrorMessage error="{errorInstall}" /> | ||
<div class="container w-full flex-col"> | ||
<div | ||
class:opacity-0="{logs.length === 0}" | ||
bind:this="{logElement}" | ||
class="bg-zinc-700 text-gray-300 mt-4 mb-3 p-1 h-16 overflow-y-auto"> | ||
{#each logs as log} | ||
<p class="font-light text-sm">{log}</p> | ||
{/each} | ||
</div> | ||
|
||
<ErrorMessage error="{errorInstall}" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</svelte:fragment> | ||
</Card> | ||
|
||
<div class="bg-charcoal-600 mt-5 rounded-md p-3"> | ||
<table class="min-w-full" aria-label="Installed Extensions"> | ||
<tbody> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look nice to introduce new components
but you can't introduce new components/colors "like that"
the colors are defined in the Podman Desktop design system
And there is not yet these colors or these components
if you need to extract values, it should be defined before the implementation