chore: update graphql support for fetching initial user status (#12905)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- **New Features**
- Introduced a new context management system for intelligent features,
enabling the collection and preparation of metadata from both web view
and GraphQL sources.
- Added a service for managing GraphQL API interactions, including user,
workspace, subscription, and quota queries.
- Enabled searching documents within a workspace using a new GraphQL
query and input structure.

- **Enhancements**
- Expanded chat session and chat history search capabilities with
additional filter and pagination options.

- **Refactor**
- Replaced the previous context management class with a more
comprehensive and modular implementation.
- Improved handling of cookies for network requests to ensure session
continuity.

- **Style**
- Minor code style and formatting improvements for clarity and
consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Lakr
2025-06-24 13:03:35 +08:00
committed by GitHub
parent 63de20c3d5
commit 10139205b4
17 changed files with 585 additions and 97 deletions

View File

@@ -13,7 +13,7 @@ extension AFFiNEViewController: IntelligentsButtonDelegate {
IntelligentContext.shared.webView = webView!
button.beginProgress()
IntelligentContext.shared.preparePresent() {
IntelligentContext.shared.preparePresent() { _ in
button.stopProgress()
let controller = IntelligentsController()
self.present(controller, animated: true)