refactor(web): migrate plugins and tools app context consumers#38533
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #38533 +/- ##
=======================================
Coverage 85.34% 85.34%
=======================================
Files 5013 5013
Lines 265787 265799 +12
Branches 50528 50533 +5
=======================================
+ Hits 226829 226843 +14
+ Misses 34510 34508 -2
Partials 4448 4448
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
6 tasks
lyzno1
approved these changes
Jul 8, 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.
Summary
Refs #38514
@/context/app-contextcompatibility reads.@/context/app-context-stateat each use site, including permission keys, workspace id, user id, role flags, loading state, and version info.No UI changes.
Screenshots
Checklist
make lint && make type-check(backend) andcd web && pnpm exec vp staged(frontend) to appease the lint godsValidation
pnpm --dir web test hooks/use-credential-permissions.spec.ts app/components/plugins/install-plugin/base/__tests__/use-get-icon.spec.ts app/components/plugins/install-plugin/hooks/__tests__/use-workspace-plugin-install-permission.spec.ts app/components/plugins/card/__tests__/index.spec.tsx app/components/plugins/plugin-item/__tests__/index.spec.tsx app/components/plugins/plugin-auth/authorized/__tests__/item.spec.tsx app/components/tools/mcp/hooks/__tests__/use-mcp-service-card.spec.ts service/__tests__/use-plugins.spec.tsx app/components/plugins/plugin-page/__tests__/use-reference-setting.spec.ts app/components/plugins/install-plugin/install-from-marketplace/steps/__tests__/install.spec.tsx app/components/plugins/install-plugin/install-from-local-package/steps/__tests__/install.spec.tsx app/components/tools/mcp/__tests__/index.spec.tsx app/components/tools/mcp/__tests__/provider-card.spec.tsx app/components/tools/mcp/__tests__/create-card.spec.tsx app/components/tools/mcp/detail/__tests__/content.spec.tsx app/components/tools/provider/__tests__/custom-create-card.spec.tsx app/components/tools/provider/__tests__/detail.spec.tsxpnpm --dir web exec eslint hooks/use-credential-permissions.ts hooks/use-credential-permissions.spec.ts app/components/tools/hooks/use-tool-permissions.ts app/components/tools/mcp/hooks/use-mcp-service-card.ts app/components/tools/mcp/hooks/__tests__/use-mcp-service-card.spec.ts app/components/plugins/card/index.tsx app/components/plugins/card/__tests__/index.spec.tsx app/components/plugins/install-plugin/base/use-get-icon.ts app/components/plugins/install-plugin/base/__tests__/use-get-icon.spec.ts app/components/plugins/marketplace/marketplace-install-permission-provider.tsx app/components/plugins/install-plugin/hooks/use-workspace-plugin-install-permission.ts app/components/plugins/install-plugin/hooks/__tests__/use-workspace-plugin-install-permission.spec.ts app/components/plugins/install-plugin/install-from-marketplace/steps/install.tsx app/components/plugins/install-plugin/install-from-marketplace/steps/__tests__/install.spec.tsx app/components/plugins/install-plugin/install-from-local-package/steps/install.tsx app/components/plugins/install-plugin/install-from-local-package/steps/__tests__/install.spec.tsx app/components/plugins/plugin-page/use-reference-setting.ts app/components/plugins/plugin-page/__tests__/use-reference-setting.spec.ts service/use-plugins.ts service/__tests__/use-plugins.spec.tsx __tests__/utils/mock-app-context-state.ts --cache --quietgit diff --checkeslint --fix --pass-on-unpruned-suppressionson staged files successfully.Notes:
pnpm --dir web type-checkstill fails locally in generated.next/types/validator.tsroute types before reaching this change.pnpm --dir web exec vp stagedcannot run locally because nostagedconfig is defined invite.config.ts.deprecated base Input, existing a11y warnings, and existinganyusage) outside this migration's scope.From Codex