Validate and fix all documentation code examples; add OAuth2 auth events reference#2
Merged
deeleeramone merged 10 commits intomainfrom Feb 22, 2026
Merged
Conversation
…thods Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Validate all code examples in documentation for correctness
Fix invalid documentation code examples and add missing NativeWindowHandle convenience methods
Feb 21, 2026
Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Copilot
AI
changed the title
Fix invalid documentation code examples and add missing NativeWindowHandle convenience methods
Validate and fix documentation code examples; add missing NativeWindowHandle convenience methods
Feb 21, 2026
…lure Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Copilot
AI
changed the title
Validate and fix documentation code examples; add missing NativeWindowHandle convenience methods
Validate and fix documentation code examples; add missing NativeWindowHandle convenience methods; fix CI flakiness
Feb 21, 2026
Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Copilot
AI
changed the title
Validate and fix documentation code examples; add missing NativeWindowHandle convenience methods; fix CI flakiness
Document OAuth2 auth:* events and fix all documentation code example validity
Feb 21, 2026
Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Copilot
AI
changed the title
Document OAuth2 auth:* events and fix all documentation code example validity
Validate and fix all documentation code examples; add OAuth2 + multi-widget guides
Feb 22, 2026
…I fix Co-authored-by: deeleeramone <85772166+deeleeramone@users.noreply.github.com>
Copilot
AI
changed the title
Validate and fix all documentation code examples; add OAuth2 + multi-widget guides
Validate and fix all documentation code examples; add OAuth2 auth events reference
Feb 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every Python code example in the docs was audited for syntactic validity and API correctness. Several examples referenced non-existent methods, had syntax errors, or were missing entirely for new features.
Documentation fixes
components/index.md:Select(..., ...)— positional...after keyword args is aSyntaxError. Fixed tooptions=[...].window-management.md: Adopted upstream restructuring (handle = WindowProxy in native mode); fixed executable code blocks —handle.eval()→handle.proxy.eval(),handle.eval_with_result()→handle.proxy.eval_with_result().why-pywry.md:**0Auth2"**(number zero, mismatched quote) →**OAuth2**.New content synced from main
guides/multi-widget.md— composing Plotly, AG Grid, Div, and Toolbar in one windowguides/oauth2.md— full OAuth2 guide (native + deploy modes)reference/auth*.md— 8 OAuth2 API reference pagesmkdocs.yml— nav entries for all new pagespywry/auth/module,frontend/src/auth-helpers.js, examples, and all associated tests brought in from the merged oauth2 PRAuth events documentation (
reference/events.md)Five
auth:*events used inauth-helpers.jsand the OAuth2 backend were entirely absent from the event reference:auth:login-requestwindow.pywry.auth.login()auth:logout-requestwindow.pywry.auth.logout()auth:state-changedauth:token-refreshauth:logoutAdded
auth:*to reserved namespaces, full directional event tables with payload shapes, and awindow.pywry.authJS API reference.Flaky E2E test fixes
test_set_always_on_topandtest_pywry_toast_is_availableboth fail intermittently on Windows CI when the WebView2 subprocess fails to registerChrome_WidgetWin_0in time. Applied@retry_on_subprocess_failure(max_attempts=3, delay=1.0)— the same pattern already used acrosstest_alerts.py— withruntime.stop()cleanup between attempts.Final state: 317 Python code blocks across 50 documentation files — all syntactically valid.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.