feat: update Feishu group naming convention and refactor data initialization to trigger on user authentication

This commit is contained in:
hangyu.tao 2026-05-07 11:01:29 +08:00
parent 1ccc634c27
commit 99e1181339
2 changed files with 8 additions and 8 deletions

View File

@ -588,7 +588,7 @@ async def batch_review(data: BatchReviewSchema, db: Session = Depends(get_db)):
# 3. Create Feishu Group
module_part = f"-{data.moduleName}" if data.moduleName else ""
group_name = f"用例评审{module_part}-{datetime.datetime.now().strftime('%m%d-%H%M')}"
group_name = f"【D-Case】用例评审{module_part}-{datetime.datetime.now().strftime('%m%d')}"
group_resp = feishu.create_group(
name=group_name,

View File

@ -32,13 +32,13 @@ import { Search, UploadCloud, LogOut } from 'lucide-react';
const { addToast } = useToastStore();
useEffect(() => {
// fetchSpaces will internally call fetchData after resolving currentSpaceId
fetchSpaces();
fetchTasks();
fetchBugs();
}, []);
useEffect(() => {
if (currentUser) {
fetchSpaces();
fetchTasks();
fetchBugs();
}
}, [currentUser]);
// Re-fetch data when user manually switches spaces
useEffect(() => {
if (currentSpaceId) {