Skip to content

feat: add BedrockMantleSection UI component and project_id override for Bedrock deployments - #5142

Merged
Pratham-Mishra04 merged 1 commit into
devfrom
07-13-feat_per_model_bedrock_overrides_support_ui
Jul 13, 2026
Merged

feat: add BedrockMantleSection UI component and project_id override for Bedrock deployments#5142
Pratham-Mishra04 merged 1 commit into
devfrom
07-13-feat_per_model_bedrock_overrides_support_ui

Conversation

@impoiler

@impoiler impoiler commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds UI support for a new bedrock_mantle provider type, including a dedicated configuration section with region and project ID overrides. Also clarifies that project_id is a shared per-alias field used across Vertex, Bedrock, and Bedrock Mantle providers, and adds a project_id field to the existing Bedrock section.

Changes

  • Added a BedrockMantleSection component that renders region and project ID override fields for bedrock_mantle deployments, mirroring the pattern used by other provider sections.
  • Added a project_id field to the existing BedrockSection so Bedrock deployments can scope calls to a specific project via the OpenAI-Project header.
  • Wired bedrock_mantle into the ProviderSection switch so the new section renders correctly.
  • Updated comments in config.ts and schemas.ts to clarify that project_id is a shared top-level alias field used by Vertex, Bedrock, and Bedrock Mantle, avoiding confusion about its scope.

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Chore/CI

Affected areas

  • Core (Go)
  • Transports (HTTP)
  • Providers/Integrations
  • Plugins
  • UI (React)
  • Docs

How to test

  1. Navigate to a workspace provider deployment configuration in the UI.
  2. Select bedrock_mantle as the provider type and confirm the Bedrock Mantle overrides section appears with Region and Project ID fields.
  3. Select bedrock as the provider type and confirm the Project ID field appears alongside the existing fields.
  4. Enter values (including env.VAR references) and verify they are saved and restored correctly.
cd ui
pnpm i || npm i
pnpm test || npm test
pnpm build || npm run build

Screenshots/Recordings

Add before/after screenshots of the Bedrock and Bedrock Mantle deployment configuration panels.

Breaking changes

  • Yes
  • No

Related issues

Security considerations

Project ID and region values are handled via SecretVarField, consistent with how other sensitive deployment configuration fields are managed. No new secret storage mechanisms are introduced.

Checklist

  • I read docs/contributing/README.md and followed the guidelines
  • I added/updated tests where appropriate
  • I updated documentation where needed
  • I verified builds succeed (Go and UI)
  • I verified the CI pipeline passes locally if applicable

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 48 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 39b512a4-92ea-414f-97f0-0a3dff134b28

📥 Commits

Reviewing files that changed from the base of the PR and between 9d73c45 and 93339cf.

📒 Files selected for processing (3)
  • ui/app/workspace/providers/fragments/deploymentsTable.tsx
  • ui/lib/types/config.ts
  • ui/lib/types/schemas.ts
📝 Walkthrough

Walkthrough

The deployment overrides UI adds Project ID support for Bedrock, introduces Region and Project ID overrides for Bedrock Mantle, and dispatches the bedrock_mantle provider to the new section. Configuration comments clarify the shared top-level alias project override.

Changes

Bedrock Mantle override support

Layer / File(s) Summary
Shared project override documentation
ui/lib/types/config.ts, ui/lib/types/schemas.ts
Comments clarify that project_id is a shared, top-level per-alias override; its type and schema remain unchanged.
Bedrock Mantle provider UI
ui/app/workspace/providers/fragments/deploymentsTable.tsx
Bedrock gains a Project ID field, Bedrock Mantle gains Region and Project ID fields, and provider dispatch handles bedrock_mantle.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

  • maximhq/bifrost#4737: Introduces the related bedrock_mantle provider feature and override handling.

Suggested reviewers: danpiths, akshaydeo

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title accurately summarizes the new Bedrock Mantle UI section and project_id override changes.
Description check ✅ Passed The description follows the template and covers summary, changes, testing, screenshots, breaking changes, security, and checklist items.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch 07-13-feat_per_model_bedrock_overrides_support_ui

Comment @coderabbitai help to get the list of available commands.

@impoiler impoiler changed the title feat: per model bedrock overrides support UI feat: add BedrockMantleSection UI component and project_id override for Bedrock deployments Jul 13, 2026
@impoiler impoiler self-assigned this Jul 13, 2026
@impoiler
impoiler marked this pull request as ready for review July 13, 2026 11:16
@coderabbitai
coderabbitai Bot requested review from akshaydeo and danpiths July 13, 2026 11:18
@greptile-apps

greptile-apps Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
ui/app/workspace/providers/fragments/deploymentsTable.tsx Adds Bedrock and Bedrock Mantle override fields and routes the new provider type to its section.
ui/lib/types/config.ts Updates the project_id type comment to describe shared provider use.
ui/lib/types/schemas.ts Updates the UI schema comment for shared project_id provider semantics.

Reviews (5): Last reviewed commit: "feat: per model bedrock overrides suppor..." | Re-trigger Greptile

Comment thread ui/lib/types/config.ts
@impoiler
impoiler force-pushed the 07-13-feat_per_model_bedrock_mantle_overrides_support branch from abde3bd to eeeb22d Compare July 13, 2026 11:20
@impoiler
impoiler force-pushed the 07-13-feat_per_model_bedrock_overrides_support_ui branch from 9d73c45 to 59f61b6 Compare July 13, 2026 11:21

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@ui/app/workspace/providers/fragments/deploymentsTable.tsx`:
- Around line 235-242: Add stable, unique data-testid attributes for the new
Bedrock deployment inputs around the SecretVarField controls, since
SecretVarField does not forward extra props. Use deployment-bedrock-region-input
for the region control and deployment-bedrock-project-input for the project_id
control, preserving their existing behavior and values.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 17ea25b1-b518-4d21-9f63-3b8447f1d99a

📥 Commits

Reviewing files that changed from the base of the PR and between abde3bd and 9d73c45.

📒 Files selected for processing (3)
  • ui/app/workspace/providers/fragments/deploymentsTable.tsx
  • ui/lib/types/config.ts
  • ui/lib/types/schemas.ts

Comment thread ui/app/workspace/providers/fragments/deploymentsTable.tsx
Comment thread ui/lib/types/config.ts
coderabbitai[bot]
coderabbitai Bot previously approved these changes Jul 13, 2026
@impoiler
impoiler force-pushed the 07-13-feat_per_model_bedrock_mantle_overrides_support branch from eeeb22d to 3c0e2be Compare July 13, 2026 11:44
@impoiler
impoiler force-pushed the 07-13-feat_per_model_bedrock_overrides_support_ui branch from 59f61b6 to 6ac4e59 Compare July 13, 2026 11:44
Comment thread ui/lib/types/config.ts
@impoiler
impoiler force-pushed the 07-13-feat_per_model_bedrock_mantle_overrides_support branch from 3c0e2be to 4d1d2a8 Compare July 13, 2026 11:51
@impoiler
impoiler force-pushed the 07-13-feat_per_model_bedrock_overrides_support_ui branch from 6ac4e59 to 67d0f5c Compare July 13, 2026 11:51

Pratham-Mishra04 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Merge activity

  • Jul 13, 2:14 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jul 13, 2:27 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jul 13, 2:28 PM UTC: @Pratham-Mishra04 merged this pull request with Graphite.

@Pratham-Mishra04
Pratham-Mishra04 changed the base branch from 07-13-feat_per_model_bedrock_mantle_overrides_support to graphite-base/5142 July 13, 2026 14:22
@Pratham-Mishra04
Pratham-Mishra04 changed the base branch from graphite-base/5142 to dev July 13, 2026 14:26
@Pratham-Mishra04
Pratham-Mishra04 dismissed coderabbitai[bot]’s stale review July 13, 2026 14:26

The base branch was changed.

@Pratham-Mishra04
Pratham-Mishra04 force-pushed the 07-13-feat_per_model_bedrock_overrides_support_ui branch from 67d0f5c to 93339cf Compare July 13, 2026 14:26
@Pratham-Mishra04
Pratham-Mishra04 merged commit 667dbca into dev Jul 13, 2026
14 of 15 checks passed
@Pratham-Mishra04
Pratham-Mishra04 deleted the 07-13-feat_per_model_bedrock_overrides_support_ui branch July 13, 2026 14:28
akshaydeo pushed a commit that referenced this pull request Jul 14, 2026
…de for Bedrock deployments (#5142)

## Summary

Adds UI support for a new `bedrock_mantle` provider type, including a dedicated configuration section with region and project ID overrides. Also clarifies that `project_id` is a shared per-alias field used across Vertex, Bedrock, and Bedrock Mantle providers, and adds a `project_id` field to the existing Bedrock section.

## Changes

- Added a `BedrockMantleSection` component that renders region and project ID override fields for `bedrock_mantle` deployments, mirroring the pattern used by other provider sections.
- Added a `project_id` field to the existing `BedrockSection` so Bedrock deployments can scope calls to a specific project via the `OpenAI-Project` header.
- Wired `bedrock_mantle` into the `ProviderSection` switch so the new section renders correctly.
- Updated comments in `config.ts` and `schemas.ts` to clarify that `project_id` is a shared top-level alias field used by Vertex, Bedrock, and Bedrock Mantle, avoiding confusion about its scope.

## Type of change

- [ ] Bug fix
- [x] Feature
- [ ] Refactor
- [ ] Documentation
- [ ] Chore/CI

## Affected areas

- [ ] Core (Go)
- [ ] Transports (HTTP)
- [x] Providers/Integrations
- [ ] Plugins
- [x] UI (React)
- [ ] Docs

## How to test

1. Navigate to a workspace provider deployment configuration in the UI.
2. Select `bedrock_mantle` as the provider type and confirm the **Bedrock Mantle overrides** section appears with **Region** and **Project ID** fields.
3. Select `bedrock` as the provider type and confirm the **Project ID** field appears alongside the existing fields.
4. Enter values (including `env.VAR` references) and verify they are saved and restored correctly.

```sh
cd ui
pnpm i || npm i
pnpm test || npm test
pnpm build || npm run build
```

## Screenshots/Recordings

_Add before/after screenshots of the Bedrock and Bedrock Mantle deployment configuration panels._

## Breaking changes

- [ ] Yes
- [x] No

## Related issues

## Security considerations

Project ID and region values are handled via `SecretVarField`, consistent with how other sensitive deployment configuration fields are managed. No new secret storage mechanisms are introduced.

## Checklist

- [ ] I read `docs/contributing/README.md` and followed the guidelines
- [ ] I added/updated tests where appropriate
- [ ] I updated documentation where needed
- [ ] I verified builds succeed (Go and UI)
- [ ] I verified the CI pipeline passes locally if applicable
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.

2 participants