feat(api): add chat configuration and conversation message list APIs; update types and integrate into index

This commit is contained in:
duanshuwen
2026-04-20 17:35:41 +08:00
parent 25102c2ae4
commit f7f4ffaee9
9 changed files with 216 additions and 9 deletions

View File

@@ -45,8 +45,6 @@ function ChatHistoryPanel({
const [menuState, setMenuState] = useState<MenuState>(null);
const [isCompact, setIsCompact] = useState(false);
const hasSessions = buckets.some((bucket) => bucket.sessions.length > 0);
useEffect(() => {
setCollapsedBuckets((current) => {
const next: Record<string, boolean> = {};
@@ -164,12 +162,6 @@ function ChatHistoryPanel({
</div>
) : null}
{!loading && !hasSessions ? (
<div className="rounded-[18px] border border-dashed border-[#dbe7f4] bg-white px-4 py-8 text-sm text-[#94a3b8] shadow-[0_4px_14px_rgba(15,23,42,0.04)] dark:border-[#2a2a2d] dark:bg-[#202024] dark:text-gray-400">
</div>
) : null}
{!isCompact
? buckets.map((bucket) => {
const isCollapsed = collapsedBuckets[bucket.key] ?? false;