feat: update Feishu group naming convention and refactor data initialization to trigger on user authentication
This commit is contained in:
parent
1ccc634c27
commit
99e1181339
@ -588,7 +588,7 @@ async def batch_review(data: BatchReviewSchema, db: Session = Depends(get_db)):
|
|||||||
|
|
||||||
# 3. Create Feishu Group
|
# 3. Create Feishu Group
|
||||||
module_part = f"-{data.moduleName}" if data.moduleName else ""
|
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(
|
group_resp = feishu.create_group(
|
||||||
name=group_name,
|
name=group_name,
|
||||||
|
|||||||
14
src/App.tsx
14
src/App.tsx
@ -32,13 +32,13 @@ import { Search, UploadCloud, LogOut } from 'lucide-react';
|
|||||||
|
|
||||||
const { addToast } = useToastStore();
|
const { addToast } = useToastStore();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// fetchSpaces will internally call fetchData after resolving currentSpaceId
|
if (currentUser) {
|
||||||
fetchSpaces();
|
fetchSpaces();
|
||||||
fetchTasks();
|
fetchTasks();
|
||||||
fetchBugs();
|
fetchBugs();
|
||||||
}, []);
|
}
|
||||||
|
}, [currentUser]);
|
||||||
// Re-fetch data when user manually switches spaces
|
// Re-fetch data when user manually switches spaces
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (currentSpaceId) {
|
if (currentSpaceId) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user