diff --git a/client/src/pages/Dashboard.jsx b/client/src/pages/Dashboard.jsx index 19b4dcad..87cef631 100644 --- a/client/src/pages/Dashboard.jsx +++ b/client/src/pages/Dashboard.jsx @@ -316,37 +316,55 @@ const Dashboard = () => {

) : ( -
- {recentBoards.map((board) => ( - openBoard(board.roomId)} - className="flex items-center justify-between p-4 rounded-2xl bg-white/[0.03] hover:bg-white/[0.06] border border-white/5 cursor-pointer transition-all group" - > -
-
- -
+
+ {/* Timeline vertical line */} +
+
+ {recentBoards.map((board, idx) => { + const isRecent = Date.now() - new Date(board.updatedAt || board.createdAt).getTime() < 3600000; + return ( + openBoard(board.roomId)} + className="relative flex items-center justify-between p-4 pl-12 rounded-2xl hover:bg-white/[0.06] border-transparent hover:border-white/5 cursor-pointer transition-all group" + > + {/* Timeline dot */} +
+ + {/* Recency badge */} + {isRecent && ( +
+ Now +
+ )} -
-

- {isTeacher - ? board.name || "Untitled Board" - : board.boardName || "Untitled Board"} -

+
+
+ +
-

- {formatDate(board.updatedAt || board.createdAt)} -

-
-
+
+

+ {isTeacher + ? board.name || "Untitled Board" + : board.boardName || "Untitled Board"} +

+ +

+ + {formatDate(board.updatedAt || board.createdAt)} +

+
+
-
- → -
-
- ))} +
+ → +
+ + ); + })} +
)}