feat(augment): Phase 2 - consolidate frontend lifecycle UX fixes#3223
Conversation
da9aa26 to
9751b11
Compare
|
This pull request adds a new top-level directory under |
|
Important This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior. Changed Packages
|
| # ============================================================================ | ||
| # Cosmos DB Account (Serverless) | ||
| # ============================================================================ | ||
| resource "azurerm_cosmosdb_account" "main" { |
9751b11 to
4ece3d7
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3223 +/- ##
==========================================
+ Coverage 53.55% 53.80% +0.24%
==========================================
Files 2362 2362
Lines 84709 84772 +63
Branches 23464 23488 +24
==========================================
+ Hits 45367 45612 +245
+ Misses 39085 38901 -184
- Partials 257 259 +2
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Phase 1 of lifecycle hardening: single PR consolidating all backend type changes and plumbing that were previously split across PRs A/B/E. Backend types (shared.ts): - Add createdBy, createdAt to ChatAgentConfig and ChatAgent - Add rejectionReason, rejectedBy, rejectedAt for rejection tracking Agent routes (agentRoutes.ts): - overlayConfig surfaces all new lifecycle fields - GET /agents scoped for non-admins: published + own + legacy unowned - Promote: ownership checks, phantom draft blocking for non-admins, createdBy set on new config entries, rejection fields cleared on re-promote - Demote: accepts optional reason param, stores rejection fields on review → draft transitions - DELETE /agents/:agentId: ownership-gated draft deletion for non-admins, full deletion for admins, with audit logging Frontend API (AugmentApi.ts): - Add deleteAgentConfig(agentId) method - Add reason param to demoteAgent signature Audit logger: - Add 'agent.delete' audit action API reports updated for both augment-common and augment plugins.
Phase 2 of lifecycle hardening: single PR consolidating all frontend
fixes that were previously split across PRs C/D/F.
MarketplacePage:
- Add switchToMyAgentsKey prop to auto-switch to My Agents tab after
agent creation
ChatView:
- Add justCreatedRef to prevent intent dialog from reopening after
agent creation (fixes double-dialog bug)
- Pass switchToMyAgentsKey to MarketplacePage
- Pass isAdmin to AgentLifecycleDetail
AgentLifecycleDetail:
- Add isAdmin prop for role-aware action buttons
- Non-admins see "Submit for Review" for drafts, read-only status chip
for other stages
- Admins see full lifecycle transition and rebuild buttons
- Add rejection banner showing reason and rejector for draft agents
KagentiAgentsPanel:
- Pass isAdmin={true} to AgentLifecycleDetail in admin context
ReviewQueue:
- Add rejection dialog with reason text field
- Rejection reason passed to demoteAgent API for review → draft
4ece3d7 to
711ee8d
Compare
|



Summary
Phase 2 of the Deep-Dive Lifecycle Hardening plan. Consolidates all frontend fixes that were previously split across PRs C/D/F into a single PR. Depends on Phase 1 (PR #3222).
Changes
MarketplacePage
switchToMyAgentsKeyprop: auto-switches to "My Agents" tab after agent creationChatView
justCreatedRefto prevent intent dialog reopening after successful creationswitchToMyAgentsKeyandisAdminto child componentsAgentLifecycleDetail
isAdminprop for role-aware action buttons (non-admins: Submit for Review only; admins: full lifecycle controls)KagentiAgentsPanel
isAdmin={true}in admin panel contextReviewQueue
Test plan