Skip to content

fix: add proxy configuration selector - #3470

Open
nbmaiti wants to merge 1 commit into
mainfrom
proxy_select_lebel
Open

fix: add proxy configuration selector#3470
nbmaiti wants to merge 1 commit into
mainfrom
proxy_select_lebel

Conversation

@nbmaiti

@nbmaiti nbmaiti commented Jul 27, 2026

Copy link
Copy Markdown

fixes: Issue #3469

Proxy config name can be selected from dropdown

PR Checklist

  • Unit Tests have been added for new changes
  • API tests have been updated if applicable
  • All commented code has been removed
  • If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Get available proxies, use them in drop down menu

Anything the reviewer should know when reviewing this PR?

If the there are associated PRs in other repositories, please link them here (i.e. device-management-toolkit/repo#365 )

Proxy config name can be selected from dropdown

Signed-off-by: Nabendu Maiti <nabendu.bikash.maiti@intel.com>

Copilot AI 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.

Pull request overview

This PR updates the AMT profile detail UI to allow selecting proxy configurations from a dropdown, and makes proxy configurations available in enterprise mode (when the backend returns them) rather than limiting them to cloud mode only.

Changes:

  • Fetch proxy configs during profile-detail initialization for both cloud and enterprise.
  • Replace the proxy config autocomplete input with a <mat-select> dropdown and prevent re-selecting already-associated configs.
  • Add isProxyProfileSelected and extend unit tests for enterprise visibility and selection state.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/app/profiles/profile-detail/profile-detail.component.ts Fetch proxy configs unconditionally, broaden selectProxyProfile to accept string values, and add selection-state helper.
src/app/profiles/profile-detail/profile-detail.component.html Switch proxy selection UI from autocomplete to a dropdown selector.
src/app/profiles/profile-detail/profile-detail.component.spec.ts Add unit tests for enterprise proxy selector visibility and selected-state helper behavior.

Comment on lines 540 to 543

this.proxyAutocomplete.patchValue('')
}

Comment on lines +944 to +949
it('should mark an associated proxy configuration as selected', () => {
component.selectedProxyConfigs.set([{ priority: 1, name: 'proxy1' }])

expect(component.isProxyProfileSelected('proxy1')).toBeTrue()
expect(component.isProxyProfileSelected('proxy2')).toBeFalse()
})
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