Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

Merge remote-tracking branch 'origin/dev' into feat/1512-group-chat-export

AoHanBei75cb0edf2559
diff --cc web/app/(workspace)/partners/groups/[groupId]/page.tsx
index 198a11763,ebd80e98f..dba56622f
--- a/web/app/(workspace)/partners/groups/[groupId]/page.tsx
+++ b/web/app/(workspace)/partners/groups/[groupId]/page.tsx
@@@ -152,24 -136,25 +152,26 @@@ export default function PartnerGroupPag
groupId={groupId}
sessionKey={sessionKey}
onSelect={(key) => {
- setExportMessages([]);
++ setGroupMessages([]);
setPartnerGroupSessionKey(groupId, key);
setSessionKey(key);
}}
- onCreate={() =>
- setSessionKey(createPartnerGroupSessionKey(groupId))
- }
+ onCreate={() => {
- setExportMessages([]);
++ setGroupMessages([]);
+ setSessionKey(createPartnerGroupSessionKey(groupId));
+ }}
+ onTitleChange={setSessionTitle}
/>
) : null}
<button
type="button"
- onClick={() => downloadChatMarkdown(exportMessages, { title: group.name })}
- disabled={exportMessages.length === 0}
+ onClick={handleDownload}
+ disabled={!groupMessages.length}
- title={t("Download chat history as Markdown")}
- aria-label={t("Download Markdown")}
- className="rounded-md p-1.5 text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40"
+ aria-label={t("Download")}
+ className="inline-flex h-8 items-center gap-1.5 rounded-lg border border-[var(--border)] px-2.5 text-[11px] text-[var(--muted-foreground)] transition-colors hover:text-[var(--foreground)] disabled:cursor-not-allowed disabled:opacity-40"
>
- <Download className="h-4 w-4" />
+ <Download size={12} />
+ {t("Download")}
</button>
<button
type="button"