Repository navigation
feat(frontend): endpoints page in /m behind the developer view switch - #7993
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 17 seconds. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Website previewPreview URL: https://pr-7993-agenta-website-preview.mahmoud-637.workers.dev Built from |
Railway Preview Environment
Startup stopped or reached its deadline. Environment absence verified; retained storage requires separate provider accounting. Post |
|
🤖 The AI agent says: Review loop result for head
Fixed: the page showed a snippet with an empty URL while the deployed revision loaded, and never errored if it failed; it now shows the skeleton, then the error state. Python snippets broke on |
|
🤖 The AI agent says: Review loop result, round 3 for head
Fixed in round 3:
Left on purpose: same as round 2. The loop stopped after three rounds, so the round 3 fixes were not reviewed again. Checks: |
… and an app-like box model
Overview tab only. The view ships hidden.
70a1c1c to
b806125
Compare
…feat/m-view-endpoints # Conflicts: # web/mobile/src/features/developer/developerViews.ts
Context
The old app has an "API endpoint" page: pick an environment, then copy code that calls the app or fetches its config. /m has no such page. This PR adds it to /m as a developer view, behind the staged switch from #7985. It ships
hidden, so no user sees it and the rail has no link.Scope is the Overview tab only. The History tab and Revert are deployment work and belong to the revision and deployment milestone.
Changes
endpointsinDEVELOPER_VIEWS(stagehidden). Route/w/[workspace_id]/p/[project_id]/endpoints?app=<id>, wrapped inDeveloperViewGate. The rail link has no params, so the page has an app picker that writes?app=with a shallow replace.@agenta/settings-uigets pure snippet builders (buildAppEndpointParams,buildInvokeAppSnippets,buildFetchConfigSnippets) and exportsCodeBlock. They replace the oldjs-beautifystep with templates that are already formatted, so there is no new dependency.CodeBlockgets an optionalonCopyError.Bugs in the old page, fixed here (each has a test)
ApiKey). They now carryYOUR_API_KEY, as the agent API panel does.New user-facing text (needs Mahmoud's approval)
preview.Tests
pnpm --filter @agenta/settings-ui test: 29 files, 278 tests pass (10 new, inappEndpointSnippets.test.ts).pnpm --filter @agenta/mobile test: 141 of 142 files pass (867 of 868 tests). The one failure isagentPermissions.render.test.tsx, which also fails on the base branch. The run includesendpointEnvironments.test.tsx(7),endpointsScreen.render.test.tsx(13) and a registry case indeveloperViews.render.test.tsx.pnpm --filter @agenta/mobile types:checkand lint: clean (lint shows only existing warnings).speed:checkdoes not exist on this branch (it is in a separate PR), so it was not run.@agenta/mobile/Developer/Endpoints/EndpointsScreen(PickApp, Loading, NoVariants, PublishRequired, LoadError, Filled, FilledChat). Screenshots follow in a comment.What to QA
Not reachable yet. To try it, set
AGENTA_DEVELOPER_VIEWS=endpointson the web container and open/m/w/<workspace>/p/<project>/endpoints.?app=: "Pick an app" shows. Pick an app: the address gets?app=<id>.