Skip to content

refactor(redteam): adopt input contracts in UI#9549

Merged
mldangelo merged 74 commits into
mainfrom
mdangelo/codex/adopt-ui-input-contracts
Jun 2, 2026
Merged

refactor(redteam): adopt input contracts in UI#9549
mldangelo merged 74 commits into
mainfrom
mdangelo/codex/adopt-ui-input-contracts

Conversation

@mldangelo-oai
Copy link
Copy Markdown
Contributor

@mldangelo-oai mldangelo-oai commented May 30, 2026

Summary

  • migrate redteam setup input types and normalization helpers to @promptfoo/contracts
  • keep transitional provider and testcase types on @promptfoo/types
  • update component tests to exercise the contracts-owned input type surface

Why

The input contracts were already extracted into the leaf-safe contracts surface. This PR moves the existing browser consumers onto that boundary without mixing in unrelated UI type migrations.

Stack

Verification

  • npm run architecture:check
  • npm run test:app -- src/pages/redteam/setup/components/Targets/InputsEditor.test.tsx src/pages/redteam/setup/components/Targets/CommonConfigurationOptions.test.tsx src/pages/redteam/setup/components/Targets/tabs/VariableSelectionDialog.test.tsx --run --sequence.shuffle=false
  • npm run build:app
  • npx @biomejs/biome check src/app/src/pages/redteam/setup/components/Targets/InputsEditor.tsx src/app/src/pages/redteam/setup/components/Targets/CommonConfigurationOptions.tsx src/app/src/pages/redteam/setup/components/Targets/tabs/VariableSelectionDialog.tsx src/app/src/pages/redteam/setup/types.ts src/app/src/pages/redteam/setup/components/Targets/CommonConfigurationOptions.test.tsx src/app/src/pages/redteam/setup/components/Targets/InputsEditor.test.tsx

…re-boundaries' into mdangelo/codex/add-package-artifact-smoke
…act-smoke' into mdangelo/codex/export-contracts-subpath
…subpath' into mdangelo/codex/lazy-load-aws-provider-family
@mldangelo-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

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

@mldangelo-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

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

@mldangelo-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

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

Copy link
Copy Markdown
Contributor

@ianw-oai ianw-oai left a comment

Choose a reason for hiding this comment

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

Looks good.

Copy link
Copy Markdown
Contributor

@ianw-oai ianw-oai left a comment

Choose a reason for hiding this comment

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

Looks good. This is a mechanical UI import migration to the contracts-owned input types.

mldangelo-oai and others added 6 commits June 1, 2026 06:28
…t-browser-api-contracts

# Conflicts:
#	architecture/layers.json
#	src/contracts/index.ts
#	src/providers/families/aws.ts
#	test/integration/library-exports.integration.test.ts
#	test/package-manifests.test.ts
#	test/providers/registry.test.ts
#	test/scripts/architectureUtils.test.ts
…pi-contracts' into mdangelo/codex/extract-browser-api-contracts

# Conflicts:
#	test/contracts/index.test.ts
…pi-contracts' into mdangelo/codex/adopt-ui-input-contracts
Base automatically changed from mdangelo/codex/extract-browser-api-contracts to main June 2, 2026 10:48
@mldangelo mldangelo merged commit ef2c793 into main Jun 2, 2026
33 checks passed
@mldangelo mldangelo deleted the mdangelo/codex/adopt-ui-input-contracts branch June 2, 2026 11:55
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.

3 participants