Skip to content

feat: show all providers configured + non configured#1813

Merged
tusharmath merged 16 commits intomainfrom
feat/show-all-available-providers
Nov 4, 2025
Merged

feat: show all providers configured + non configured#1813
tusharmath merged 16 commits intomainfrom
feat/show-all-available-providers

Conversation

@amitksingh1490
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions github-actions Bot added the type: feature Brand new functionality, features, pages, workflows, endpoints, etc. label Nov 1, 2025
Comment thread crates/forge_domain/src/provider.rs Outdated
/// Get the resolved URL or return an error if it's a template
pub fn to_resolved(&self, provider_id: &ProviderId) -> anyhow::Result<&Url> {
self.as_resolved()
.ok_or_else(|| anyhow::anyhow!("Cannot use unconfigured provider: {}", provider_id))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

use domain error.

Comment thread crates/forge_domain/src/provider.rs Outdated
amitksingh1490 and others added 15 commits November 4, 2025 11:41
- Updated the ProviderRepository trait to return Vec<ProviderEntry> instead of Vec<Provider>.
- Changed the return type of get_provider method to return Provider<Url> for better URL handling.
- Modified the CliProvider struct to work with ProviderEntry and display domain information correctly.
- Adjusted UI and service layers to accommodate the new ProviderEntry structure.
- Updated tests to reflect changes in provider handling and ensure proper functionality with the new types.
- Refactored provider creation logic to return ProviderEntry and handle unconfigured providers appropriately.
@tusharmath tusharmath force-pushed the feat/show-all-available-providers branch from 27b9621 to 22a108c Compare November 4, 2025 06:12
@tusharmath tusharmath enabled auto-merge (squash) November 4, 2025 06:12
@tusharmath tusharmath merged commit 18111d6 into main Nov 4, 2025
9 checks passed
@tusharmath tusharmath deleted the feat/show-all-available-providers branch November 4, 2025 06:22
tusharmath added a commit that referenced this pull request Nov 4, 2025
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tushar Mathur <tusharmath@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Brand new functionality, features, pages, workflows, endpoints, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants