Skip to content

feat(site/src): edit the plugin pack source hosts on the plugin packs page - #229

Merged
ibetitsmike merged 3 commits into
mainfrom
mike/plugin-packs-14-source-hosts
Nov 12, 2026
Merged

ibetitsmike merged 3 commits into
mainfrom
mike/plugin-packs-14-source-hosts

Conversation

@ibetitsmike

Copy link
Copy Markdown
Owner

Xum opened this PR on behalf of @ibetitsmike.

Administrators could install a plugin pack only from a host on the organization's source host allowlist. The only way to change that allowlist was the PUT /api/v2/chats/fork/organizations/{organization}/plugin-pack-sources endpoint.

This change adds a Sources button to the plugin packs table header. Users who can update packs see it. It opens a dialog with one host per line. The dialog lowercases and de-duplicates the hosts and checks them against the same limits as the server: at most 50 hosts, no scheme, port or path, and 253 characters at most per host. It then saves the full list. The list is a full replacement, so each open drops the cached list and reads it again. This way the form does not overwrite a change that another administrator made in the meantime.

Validation on 3b66355:

  • biome check, tsc, the affected Vitest file, oxlint and lint:compiler pass in a container.
  • I removed the invalid character check, the lowercasing and the cache drop on open, one at a time. Each removal makes exactly one Vitest test fail (on 4dfd45f, which differs from 3b66355 only in formatting).

@ibetitsmike

Copy link
Copy Markdown
Owner Author

@codex review

Xum requested this review on behalf of @ibetitsmike.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-12T04:43:52.129388Z 3b66355 Manual request
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3b663555c8

ℹ️ 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".

@ibetitsmike
ibetitsmike merged commit 7972bcd into main Nov 12, 2026
10 checks passed
@ibetitsmike
ibetitsmike deleted the mike/plugin-packs-14-source-hosts branch November 12, 2026 04:52
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

Merged after fork-ci passed on head 3b66355, Codex reviewed that head (3 P2 findings declined with replies, 0 unresolved threads), and the frontend review had no blocking or open should-fix findings. Local validation (vitest 21/21 with 3 negative controls) is green. The page is behind fork-plugin-packs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant