第 4 篇 Scrum 冲刺博客
站立会议照片
![image-20231123130846178]()
昨日已完成的工作
- 完成帖子和评论页面
- 完成身份认证、用户信息获取、帖子信息获取以及页面重定向等逻辑
今日计划完成的工作
- 显示用户的活动信息,包括其他用户对其主题的回复
- 展示社区信息,包括搜索功能、社区卡片列表和分页功能
项目燃尽图
![image-20231124084320659]()
代码签入记录
![image-20231125101003209]()
适当的项目程序/模块的最新(运行)截图
import { currentUser } from "@clerk/nextjs";
import { fetchPosts } from "@/lib/actions/thread.actions";
import ThreadCard from "@/components/cards/ThreadCard";
import { fetchUser } from "@/lib/actions/user.actions";
import { redirect } from "next/navigation";
export default async function Home() {
const user = await currentUser();
if (!user) {
redirect("/sign-in");
}
const userInfo = await fetchUser(user.id);
if (!userInfo?.onboarded) redirect("/onboarding");
const result = await fetchPosts(1, 30);
console.log(result);
return (
<main>
<div className="head-text">Home</div>
<section className="mt-9 flex flex-col gap-10">
{result.posts.length === 0 ? (
<p className="no-result">No threads found</p>
) : (
<>
{result.posts.map((post) => (
<ThreadCard
key={post._id}
id={post._id}
currentUserId={user.id}
parentId={post.parentId}
content={post.text}
author={post.author}
community={post.community}
createdAt={post.createdAt}
comments={post.children}
/>
))}
</>
)}
</section>
</main>
);
}
每人每日总结
| 成员 |
总结 |
| 林程星 |
项目开发遇到了瓶颈,急需克服 |
| 邓梓荣 |
协助实现用户信息管理页面 |
| 曾中港 |
实现了用户信息管理页面 |
| 刘鸿杰 |
认识到模块化设计的重要性 |
| 冯威炀 |
设计仍有不太合理处,需要进行完善性维护 |
| 陈昊宇 |
对于开发的认知更进一步 |
| 刘苑佳 |
进一步学习软件测试的流程 |