Skip to content

Conversation

@allozaur
Copy link
Owner

No description provided.

ServeurpersoCom and others added 30 commits January 5, 2026 09:00
refactor: Cleanup
refactor: Cleanup
refactor: Cleanup
Copy link
Owner Author

@allozaur allozaur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few remarks before thorough review of services + clients + stores

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improve UI of this component.

refactor: Cleanup
refactor: Cleanup
refactor: Cleanup
Comment on lines +585 to +636
<div class="code-block-actions">
<button
class="copy-code-btn"
title="Copy code"
aria-label="Copy code"
type="button"
onclick={() => copyCodeToClipboard(incompleteCodeBlock?.code ?? '')}
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
><rect width="14" height="14" x="8" y="8" rx="2" ry="2" /><path
d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"
/></svg
>
</button>
{#if incompleteCodeBlock.language?.toLowerCase() === 'html'}
<button
class="preview-code-btn"
title="Preview code"
aria-label="Preview code"
type="button"
onclick={() => {
previewCode = incompleteCodeBlock?.code ?? '';
previewLanguage = incompleteCodeBlock?.language ?? 'html';
previewDialogOpen = true;
}}
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
><path
d="M2.062 12.345a1 1 0 0 1 0-.69C3.5 7.73 7.36 5 12 5s8.5 2.73 9.938 6.655a1 1 0 0 1 0 .69C20.5 16.27 16.64 19 12 19s-8.5-2.73-9.938-6.655"
/><circle cx="12" cy="12" r="3" /></svg
>
</button>
{/if}
</div>
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Code Block actions should be an individual component
  2. Make separate UI state for incomplete / complete code block

{/if}
</div>

<CodePreviewDialog
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to components/app/dialogs/DialogCodePreview.svelte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants