Skip to content

Feat/ai text to mindmap - #3

Merged
broccoli-97 merged 5 commits into
masterfrom
feat/ai-text-to-mindmap
Sep 5, 2026
Merged

Feat/ai text to mindmap#3
broccoli-97 merged 5 commits into
masterfrom
feat/ai-text-to-mindmap

Conversation

@broccoli-97

Copy link
Copy Markdown
Owner

No description provided.

- Create standalone AiSettingsDialog (header + implementation)
- Remove AI Service group from the main SettingsDialog
- Update AiGenerateDialog to open AiSettingsDialog instead
- Register AiSettingsDialog in CMakeLists.txt
- Update translations: new AiSettingsDialog context with all zh_CN entries
Replace placeholder URLs with actual OrcaRouter OSS program referral link:
- HTTP-Referer header: referral URL for revenue attribution
- Partner URL: referral link for user API key signup
- Remove TODO comment (registration complete)
Implement OrcaRouter's PKCE authorization flow in AiSettingsDialog:
- 'Get API Key from OrcaRouter...' button initiates OAuth flow
- Generates PKCE code_verifier (32-byte random) and S256 challenge
- Starts ephemeral local TCP server for callback
- Opens browser to OrcaRouter auth URL with app_name=YMind and ref code
- Handles callback, exchanges code for API Key via /api/v1/auth/keys
- Auto-fills API Key field on success

AiClient additions:
- generateCodeVerifier() / computeCodeChallenge() static helpers
- exchangeCodeForKey() with apiKeyReceived / apiKeyError signals
- kOrcaAuthBase and kOrcaRefCode constants

All 10 new tr() strings translated to Chinese.
Define WrapOpenGL::WrapOpenGL imported interface target before find_package(Qt6)
to prevent Qt from looking for the deprecated/removed AGL framework on modern macOS SDKs.
@broccoli-97
broccoli-97 merged commit 8a687ff into master Sep 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant