feat(knowledge): Add list view and delete for knowledge hubs in wizard#8933
feat(knowledge): Add list view and delete for knowledge hubs in wizard#8933preetriti1 merged 7 commits intomainfrom
Conversation
🤖 AI PR Validation ReportPR Review ResultsThank you for your submission! Here's detailed feedback on your PR title and body compliance:✅ PR Title
✅ Commit Type
|
| Section | Status | Recommendation |
|---|---|---|
| Title | ✅ | Minor optional clarity: mention model/API surface if desired. |
| Commit Type | ✅ | OK. |
| Risk Level | Keep risk:high label (correct). Remove contradictory sentence in What & Why; explicitly explain why high. |
|
| What & Why | Explicitly list breaking changes (shared model, API path, api-version), and remove the "not high risk" statement. | |
| Impact of Change | Add explicit list of who needs to change (consumers of shared models, backend API compatibility). | |
| Test Plan | ✅ | Unit tests present — add or justify lack of E2E/integration tests for API/back-end contract changes. |
| Contributors | ✅ | OK. Optionally include PM/Design if they contributed to UX. |
| Screenshots/Videos | ✅ | OK. |
Final notes (actionable items)
- Update the What & Why section to remove the contradictory sentence claiming "not high risk" and explicitly call out the breaking changes identified in the diff (models and API path/version changes). Give a short migration note for consumers of the changed shared models.
- In Impact of Change, add explicit bullets naming the changed/shared files and the expected impact and required updates for dependent packages. E.g. update any package that imports models/knowledge.ts to use new properties/enum values.
- Confirm backend compatibility for the path
.../knowledgehubsand api-version2018-11-01. If backend is not yet live, note the coordinated deployment steps or feature flaging/guardrails. - Tests: ensure unit tests cover error/failure flows for deleteKnowledgeHubArtifacts and consider adding an integration/E2E test that exercises the HTTP calls against a test/staging backend or add a clear justification in the PR for why not.
- Optional: adjust PR title to mention major infra/model changes if you want reviewers to notice it quicker.
Advised risk (from the code diff): High — this is higher than the submitter's internal statement in the PR body which called it "not high risk". The code diff shows shared model changes and API path/version changes that are breaking/integration-sensitive and justify the High risk label.
Please update the PR description as recommended above, then re-submit or add a short follow-up comment acknowledging these items. Thank you for the thorough tests and UI coverage — the change is well covered in unit tests but needs a clearer risk and impact callout for reviewers and integrators.
Last updated: Wed, 18 Mar 2026 05:40:03 GMT
There was a problem hiding this comment.
Pull request overview
Adds a knowledge hubs/artifacts list experience to the Knowledge Hub wizard, including selection and delete flows, and updates underlying knowledge models/querying to support the new UI.
Changes:
- Introduces a grouped table list view (hubs with expandable artifacts) with multi-select and per-row actions.
- Adds delete confirmation modal + helper to delete hubs/artifacts, and wires delete entry points into the wizard.
- Updates knowledge models, queries, and localization strings; adds unit tests for the new UI/modal behavior.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
| libs/logic-apps-shared/src/utils/src/lib/models/knowledge.ts | Updates knowledge hub/artifact model shape (IDs, timestamps, status naming). |
| libs/designer/src/lib/ui/knowledge/wizard/styles.ts | Adds table/list styling for the new list view. |
| libs/designer/src/lib/ui/knowledge/wizard/knowledgelist.tsx | New grouped table component with expand/collapse, selection, context menu, and cache updates on delete. |
| libs/designer/src/lib/ui/knowledge/wizard/knowledgehub.tsx | Replaces placeholder list view with KnowledgeList and adds wizard-level delete modal flow. |
| libs/designer/src/lib/ui/knowledge/wizard/test/knowledgelist.spec.tsx | Unit tests for list view rendering, selection, menus, and cache updates. |
| libs/designer/src/lib/ui/knowledge/wizard/test/knowledgehub.spec.tsx | Updates wizard tests to cover list view integration and delete modal enablement. |
| libs/designer/src/lib/ui/knowledge/modals/styles.ts | Shared modal layout styles for knowledge modals. |
| libs/designer/src/lib/ui/knowledge/modals/delete.tsx | New delete confirmation dialog that calls delete helper and emits notification data. |
| libs/designer/src/lib/ui/knowledge/modals/test/delete.spec.tsx | Unit tests for delete modal content, callbacks, loading/error states. |
| libs/designer/src/lib/core/knowledge/utils/queries.ts | Switches knowledge hubs query to new endpoint/response shape and removes artifact fetch helper. |
| libs/designer/src/lib/core/knowledge/utils/helper.ts | Updates create hub endpoint/version and adds deletion helper for hubs/artifacts. |
| Localize/lang/strings.json | Adds localized strings for list view and delete modal messaging. |
libs/designer/src/lib/ui/knowledge/wizard/__test__/knowledgehub.spec.tsx
Outdated
Show resolved
Hide resolved
📊 Coverage Check🎉 All changed files have adequate test coverage! |
|
@preetriti1: Where are the strings "Developer Toolbox", "Standard Logic Apps", and "Dark Mode"? They should be: "Developer toolbox", "Standard logic apps", and "Dark mode".
|
These are test page file... you can skip anything inside apps/ folder in this PR |


Commit Type
Risk Level
What & Why
"Adds a list view for Knowledge Hubs and artifacts and a modal to delete hubs/artifacts. Introduces deleteKnowledgeHubArtifacts helper which issues DELETE to ResourceService for hubs and artifacts. Updates shared models and switches ResourceService calls to use knowledgehubs path and api-version 2018-11-01.
The changes in this PR are not changing the behavior of any released production feature, this is a new feature currently in development in backend and UI and apis/data will be getting updated based on initial testing results. This is not a high risk item.
Impact of Change
Test Plan
Contributors
@bonicaayala @ecfan @bjbennet
Screenshots/Videos