feat: add option to show Hypa modal button in chat menu (#823)

# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Preview

![preview1](https://github.com/user-attachments/assets/daaafcb2-a533-4bf1-b38f-e9b9b54f6769)


![preview2](https://github.com/user-attachments/assets/a632a66d-fc74-4d92-909a-88d450cd41fb)

# Description
This PR introduces following:
- 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:
kwaroran
2025-04-28 15:43:06 +09:00
committed by GitHub
12 changed files with 66 additions and 15 deletions

View File

@@ -1101,20 +1101,16 @@
}}
className="mt-4"
>
{language.HypaMemory} V2 Data
{language.hypaMemoryV2Modal}
</Button>
{:else if DBState.db.supaModelType !== 'none' && DBState.db.hypaV3}
<Button
onclick={() => {
DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage].hypaV3Data ??= {
summaries: [],
lastSelectedSummaries: [],
}
showHypaV3Alert()
}}
className="mt-4"
>
{language.HypaMemory} V3 Data
{language.hypaMemoryV3Modal}
</Button>
{:else if DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage].supaMemoryData && DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage].supaMemoryData.length > 4 || DBState.db.characters[$selectedCharID].supaMemory}
<span class="text-textcolor mt-4">{language.SuperMemory}</span>