Repository navigation
test(agent): pin the connect app card contract - ConnectAppCard - #2030
Closed
dmitrii-f-t27 wants to merge 1 commit into
Closed
dmitrii-f-t27 wants to merge 1 commit into
dmitrii-f-t27 wants to merge 1 commit into
Conversation
Hold the one export of entrypoints/sidepanel/index/ConnectAppCard.tsx against its contract (#1582): the last message nudge answers the choosing card with its title and reason line, plug icon and the Connect / Do it manually buttons, an earlier nudge stands resolved behind the check mark and the suggested line, and a nudge without an app name falls back to App. The WXT storage facade, the declined-apps and MCP store items and the chat session context ride stub modules; the dialog kit and the SWR mutation hooks stay real, a closed Radix dialog mounting nothing in a static render. Closes #1582 Dmitrii Fedorov ([@dmitrii-f-t27](https://github.com/dmitrii-f-t27))
Summary by t27-beesWorth a look
Read: 1 files, +156 -0, the whole diff. Head |
Collaborator
Author
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.
Summary
Hold the one export of
trios/agent-server/apps/agent/entrypoints/sidepanel/index/ConnectAppCard.tsxβConnectAppCardβ against its contract (#1582), so the next change to that file has something to fail against.The card is a phase machine; the static mount pins what it answers today:
Connect <app> for better resultstitle, the reason line, the plug icon, and theConnect <app>andDo it manuallybuttons, with no connecting disable;<app> suggestedline, and the choosing buttons stay away;Appin title and button, and draws no reason line.Three stub sets ride modules no bun-test run resolves or renders safely: the WXT storage facade, the declined-apps and MCP store items in their live-proxy form, and the chat session context (its real reader throws outside a live session). The dialog kit, the SWR mutation hooks, toast, metrics and sentry stay real β a closed Radix dialog mounts nothing in a static render and the hooks are never fired.
Not pinned (issue User Story 2): the connect flow's oauth/api-key dispatch, the manual decline writing the declined list, and the api-key submit live in button handlers needing a live document to press.
Verification
bun test entrypoints/sidepanel/index/ConnectAppCard.test.tsβ 3 pass, 0 fail (14 expect() calls).isLastMessage ? 'resolved' : 'choosing') turns all 3 tests red (0 pass, 3 fail); the copy restores clean viagit checkout.entrypoints/sidepanel/,entrypoints/app/connect-mcp/,entrypoints/onboarding/,entrypoints/newtab/,AppSelector,run-result-dialog): all 3 new tests pass alongside the 85 pre-existing tests; the 2 pre-existing failures (missing generated@/generated/graphql/gql, a local-only artifact β the CI test job generates it) are identical with and without this suite.biome cion the suite file: clean.tsgo --noEmit: 0 mentions of the suite file.Closes #1582
Dmitrii Fedorov (@dmitrii-f-t27)