feat: edit notes via chat

This commit is contained in:
Timothy Jaeryang Baek
2025-07-08 12:31:31 +04:00
parent 45085d04eb
commit 9a064d9623
4 changed files with 181 additions and 60 deletions
@@ -84,6 +84,23 @@
{:else}
{token.text}
{/if}
{:else if token.text && token.text.includes('<status')}
{@const match = token.text.match(/<status title="([^"]+)" done="(true|false)" ?\/?>/)}
{@const statusTitle = match && match[1]}
{@const statusDone = match && match[2] === 'true'}
{#if statusTitle}
<div class="flex flex-col justify-center -space-y-0.5">
<div
class="{statusDone === false
? 'shimmer'
: ''} text-gray-500 dark:text-gray-500 line-clamp-1 text-wrap"
>
{statusTitle}
</div>
</div>
{:else}
{token.text}
{/if}
{:else if token.text.includes(`<file type="html"`)}
{@const match = token.text.match(/<file type="html" id="([^"]+)"/)}
{@const fileId = match && match[1]}