feat(ee): page verification workflow (#2102)

* feat: page verification workflow

* feat: refactor page-verification

* sync

* fix type

* fix

* fix

* notification icon

* use full word

* accept .license file

* - update templates
- update migration and notification

* fix copy

* update audit labels

* sync

* add space name
This commit is contained in:
Philip Okugbe
2026-04-13 20:20:34 +01:00
committed by GitHub
parent d6068310b4
commit bd68e47e03
50 changed files with 3828 additions and 58 deletions

View File

@@ -85,6 +85,11 @@ export type RefetchRootTreeNodeEvent = {
spaceId: string;
};
export type VerificationUpdatedEvent = {
operation: "verificationUpdated";
pageId: string;
};
export type WebSocketEvent =
| InvalidateEvent
| CommentCreatedEvent
@@ -96,4 +101,5 @@ export type WebSocketEvent =
| AddTreeNodeEvent
| MoveTreeNodeEvent
| DeleteTreeNodeEvent
| RefetchRootTreeNodeEvent;
| RefetchRootTreeNodeEvent
| VerificationUpdatedEvent;

View File

@@ -157,6 +157,11 @@ export const useQuerySubscription = () => {
});
break;
}
case "verificationUpdated":
queryClient.invalidateQueries({
queryKey: ["page-verification-info", data.pageId],
});
break;
}
});
}, [queryClient, socket]);