Remove dead proxyToBackend layer from Google Docs add-on#455
Open
kcarnold wants to merge 1 commit into
Open
Conversation
The Apps Script layer used to proxy backend calls (proxyToBackend -> getBackendUrl via UrlFetchApp), exposed to the sidebar as sendChatMessage, analyzeText, and logEvent. The React frontend now calls the Python backend directly and uses the Apps Script bridge only for document operations, so these functions were dead code. - Code.gs: delete proxyToBackend, getBackendUrl, logEvent, sendChatMessage, analyzeText and their section banners; update the file header. - sidebar.html: remove the dead sendChatMessage/analyzeText/logEvent bridge wrappers. - README.md: drop the proxy/ngrok mental model from the architecture diagram, file list, troubleshooting, and OAuth scopes; clarify that the dev sidebar loads the React bundle directly from localhost:3001 (no ngrok). With the only UrlFetchApp call gone, script.external_request is no longer requested. https://claude.ai/code/session_012LChs9UKmRbjgvYyEVM3Bq
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.
The Apps Script layer used to proxy backend calls (proxyToBackend ->
getBackendUrl via UrlFetchApp), exposed to the sidebar as sendChatMessage,
analyzeText, and logEvent. The React frontend now calls the Python backend
directly and uses the Apps Script bridge only for document operations, so
these functions were dead code.
analyzeText and their section banners; update the file header.
wrappers.
file list, troubleshooting, and OAuth scopes; clarify that the dev sidebar
loads the React bundle directly from localhost:3001 (no ngrok). With the only
UrlFetchApp call gone, script.external_request is no longer requested.
https://claude.ai/code/session_012LChs9UKmRbjgvYyEVM3Bq