feat: add option to show Hypa modal button in chat menu

- feat: add accessibility setting to control visibility of Hypa V2/V3 modal button in chat menu
- feat: add summarization condition tip to HypaV3 modal
This commit is contained in:
Bo26fhmC5M
2025-04-20 14:57:45 +09:00
parent 21561fe5ff
commit 4703bd463b
12 changed files with 66 additions and 15 deletions

View File

@@ -91,6 +91,15 @@
let showImportantOnly = $state(false);
$effect.pre(() => {
untrack(() => {
DBState.db.characters[$selectedCharID].chats[
DBState.db.characters[$selectedCharID].chatPage
].hypaV3Data ??= {
summaries: [],
lastSelectedSummaries: [],
};
});
summaryUIStates = hypaV3DataState.summaries.map((summary) => ({
originalRef: null,
isTranslating: false,
@@ -1359,14 +1368,18 @@
{/await}
</div>
<!-- No First Message -->
{#if !getFirstMessage()}
<div class="mt-2 sm:mt-4">
<div class="mt-2 sm:mt-4">
<div class="mb-2 sm:mb-4 text-sm text-zinc-400">
{language.hypaV3Modal.summarizationConditionLabel}
</div>
<!-- No First Message -->
{#if !getFirstMessage()}
<span class="text-sm text-red-400"
>{language.hypaV3Modal.emptySelectedFirstMessageLabel}</span
>
</div>
{/if}
{/if}
</div>
</div>
</div>
</div>