Repository navigation
feat: let organization members list the plugin packs they may enable - #224
Conversation
… between fork skill-tier pages
…s with a query client
…rror when the chat fails to load
…manage-ui # Conflicts: # site/src/pages/AISettingsPage/ForkPluginPacksPage/ForkPluginPacksPage.test.tsx # site/src/pages/AISettingsPage/ForkPluginPacksPage/ForkPluginPacksTableView.stories.tsx
…0-project-toggles
…packs-11-chat-pill
…11a-member-pack-list # Conflicts: # site/src/api/queries/forkPluginPackEnablement.ts # site/src/pages/AgentsPage/components/ForkPluginPackToggles.tsx # site/src/pages/AgentsPage/components/ProjectPage/ForkProjectPluginPacksDialog.stories.tsx
…on' into mike/plugin-packs-8-admin-ui
…packs-11-chat-pill
…0-project-toggles
…11a-member-pack-list
…packs-11-chat-pill
…0-project-toggles
…11a-member-pack-list
…mpty list on refetch error Cover Retry with a Vitest test and add a story with the organization picker.
…11a-member-pack-list
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 314c946d06
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…se the enabled packs key
…11a-member-pack-list
…packs-11-chat-pill
…project-toggles # Conflicts: # site/src/api/queries/forkPluginPacks.ts
…packs-11-chat-pill
…11a-member-pack-list
|
@codex review
|
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…document the view
…chat-pill # Conflicts: # site/src/api/queries/forkPluginPackEnablement.ts # site/src/pages/AgentsPage/components/ForkPluginPackToggles.test.tsx
…11a-member-pack-list
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d04bbbd5b5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…n new pack skills appear
…11a-member-pack-list
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b737035538
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…-member-pack-list # Conflicts: # site/src/pages/AgentsPage/components/ForkComposerSlot.test.tsx # site/src/pages/AgentsPage/components/ForkPluginPackToggles.test.tsx
Lead merge check on head |
Ordinary organization members can enable plugin packs on their chats and chat projects, but they could not list the packs to enable.
GET /api/v2/chats/fork/organizations/{organization}/plugin-packsreads the organization skill object that packs reuse, which plain members cannot read, and the denial comes back as a 404. The project dialog (#212) and the chat pill (#213) then showed only packs that were already enabled.This adds
GET /api/v2/chats/fork/organizations/{organization}/available-plugin-packs. It returns onlyid,nameandcommit_shafor each installed pack, the sameForkEnabledPluginPackrows the enablement endpoints already return. Source URLs, host allowlists and pack files stay admin-only. The route sits behind the samefork-plugin-packsexperiment gate as the other plugin pack routes, and the handler checks organization membership before its system-restricted query, so a user outside the organization gets 404 even with a site-wide role that can read every organization.ForkPluginPackTogglesnow lists packs from this endpoint, so the 403/404 "only enabled packs" fallback is gone.Validation (on b737035, except the docs tests, last run on 810e44f before the membership fix, which changed no routes):
go build ./coderd/... ./enterprise/... ./codersdk/...,go vet ./codersdk/ ./coderd/,go test -run 'TestForkPluginPackEnablement|TestForkPluginPacks|TestForkChatRoutes' ./coderd/and theEndpointsDocumented/TestSwaggertests in./coderd/coderdtestand./enterprise/coderd/coderdenttestpass in a container.biome check,tsc, the affected Vitest files,oxlintandlint:compilerpass on the site changes in a container.Fixes #215. Stacked on #213.