Skip to content

[pull] main from apache:main#152

Merged
pull[bot] merged 1 commit intosudoevans:mainfrom
apache:main
Mar 22, 2026
Merged

[pull] main from apache:main#152
pull[bot] merged 1 commit intosudoevans:mainfrom
apache:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Mar 22, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* Add create_burr_ui_app factory and mount_burr_ui helper to embed Burr UI into existing FastAPI apps

* Add FastAPI mount example and documentation for Burr UI embedding

* feat: enable Burr UI mounting as sub-app with dynamic base path support

Refactor run.py to use a factory pattern (create_burr_ui_app) so all routes
are registered on the sub-app instance, not at module level. Add mount_burr_ui()
helper for embedding the Burr UI into an existing FastAPI application.

When mounted at a sub-path (e.g. /burr), the server rewrites CRA's hardcoded
absolute paths in index.html and injects window.__BURR_BASE_PATH__ so the
React app can prefix all API calls and client-side routes at runtime.

React-side changes:
- OpenAPI.ts reads __BURR_BASE_PATH__ for API client BASE
- App.tsx uses it as Router basename
- appcontainer.tsx prefixes logo image paths
- StreamingChatbot.tsx prefixes direct fetch calls

* fix: resolve pre-commit and eslint CI failures

- Add Window.__BURR_BASE_PATH__ type declaration to avoid no-explicit-any
- Apply prettier formatting to TS files
- Apply black formatting to test_local_tracking_client.py

---------

Co-authored-by: Smita Ambiger <smitaambiger@gmail.com>
Co-authored-by: Stefan Krawczyk <stefank@cs.stanford.edu>
@pull pull bot locked and limited conversation to collaborators Mar 22, 2026
@pull pull bot added the ⤵️ pull label Mar 22, 2026
@pull pull bot merged commit 04d172f into sudoevans:main Mar 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant