release: prepare 0629001 portal updates

This commit is contained in:
john
2026-06-29 22:20:04 +08:00
parent 18ea4f82fd
commit a40e340a41
84 changed files with 17516 additions and 2475 deletions
+6 -1
View File
@@ -155,7 +155,12 @@ export function buildMindSpaceChatContext(input) {
}
if (view === 'home' && pages.length) {
context.recentPages = pages.slice(0, 8).map((item) => ({
const recentPages = [...pages].sort((left, right) => {
const createdDiff = (right.createdAt ?? 0) - (left.createdAt ?? 0);
if (createdDiff !== 0) return createdDiff;
return (right.updatedAt ?? 0) - (left.updatedAt ?? 0);
});
context.recentPages = recentPages.slice(0, 8).map((item) => ({
id: item.id,
title: item.title,
status: item.status,