Skip to content

fix(knowledge-designer): Hiding the knowledge hub parameter from new designer#9082

Open
preetriti1 wants to merge 1 commit intomainfrom
priti/retake
Open

fix(knowledge-designer): Hiding the knowledge hub parameter from new designer#9082
preetriti1 wants to merge 1 commit intomainfrom
priti/retake

Conversation

@preetriti1
Copy link
Copy Markdown
Contributor

Commit Type

  • feature - New functionality
  • fix - Bug fix
  • refactor - Code restructuring without behavior change
  • perf - Performance improvement
  • docs - Documentation update
  • test - Test-related changes
  • chore - Maintenance/tooling

Risk Level

  • Low - Minor changes, limited scope
  • Medium - Moderate changes, some user impact
  • High - Major changes, significant user/system impact

What & Why

Hiding the newly added knowledge hub parameter from agent connector in new designer. This should not impact anything in current GA designer for this new feature to be released.
Also updated the learn more links from 3 places in knowledge hub UI

Impact of Change

  • Users: Users would not be able to configure knowledge hub from preview designer
  • Developers: Every feature released should be tested from both preview and GA designer for the time being
  • System: NA

Test Plan

  • Unit tests added/updated
  • E2E tests added/updated
  • Manual testing completed
  • Tested in:

Contributors

@divyaswarnkar

Screenshots/Videos

in V2
Before:
image

After:
image

Copilot AI review requested due to automatic review settings April 20, 2026 22:05
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 Logic Apps designer UX to hide the Knowledge Hub/Knowledge Base parameter in the new (v2) designer, while also updating “Learn more” links in Knowledge Hub UI surfaces.

Changes:

  • Hide parameters with editor type knowledgebase from the v2 designer parameter list (toParameterInfoMap).
  • Update Knowledge Hub “Learn more” links to a single fwlink URL in multiple UI locations.
  • Add unit tests validating that knowledgebase editor parameters are excluded from toParameterInfoMap.

Reviewed changes

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

File Description
libs/designer/src/lib/ui/knowledge/panel/files/uploadfile.tsx Updates “Learn more” links in the Knowledge Hub file upload panel sections.
libs/designer/src/lib/ui/knowledge/editor/index.tsx Updates the Knowledge Hub editor “Learn more” link URL.
libs/designer-v2/src/lib/core/utils/parameters/helper.ts Filters out knowledgebase editor parameters when generating v2 parameter infos.
libs/designer-v2/src/lib/core/utils/parameters/test/helper-agentParams.spec.ts Adds tests ensuring knowledgebase editor parameters are excluded.

Comment on lines 336 to 338
for (const inputParameter of inputParameters) {
if (!inputParameter.dynamicSchema) {
if (!inputParameter.dynamicSchema && !equals(inputParameter.editor, 'knowledgebase')) {
const parameter = createParameterInfo(inputParameter, metadata, shouldEncodeBasedOnMetadata);
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

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

toParameterInfoMap is using a raw string literal 'knowledgebase' for the editor check, but this file otherwise relies on constants.EDITOR.* for editor comparisons. Consider adding a KNOWLEDGE_BASE entry to libs/designer-v2/src/lib/common/constants.ts and referencing it here (or reusing the shared designer-ui constant) to avoid typos/drift and keep editor handling consistent.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is just point in time, till we fix the new designer to host knowledge hub ui properly.

Comment thread libs/designer/src/lib/ui/knowledge/editor/index.tsx
Comment on lines 312 to 314
description={INTL_TEXT.addFilesSectionDescription}
descriptionLink={{ text: INTL_TEXT.learnMore, href: 'https://www.microsoft.com' }}
descriptionLink={{ text: INTL_TEXT.learnMore, href: 'https://go.microsoft.com/fwlink/?linkid=2361415' }}
items={addSectionItems}
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

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

This Learn More URL is duplicated (also used in the earlier TemplatesSection). Consider extracting it to a single constant (or INTL_TEXT entry) so future link updates only need to be made once.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Still waiting for new links from @divyaswarnkar

@github-actions
Copy link
Copy Markdown

📊 Coverage Check

The following changed files need attention:

⚠️ libs/designer-v2/src/lib/core/utils/parameters/helper.ts - 42% covered (needs improvement)

Please add tests for the uncovered files before merging.

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