Conversation
- Always show prompts trigger even with 0 prompts (feature discoverability) - Fix pluralization: '1 prompts' → '1 prompt' - Add '+ New' button in popup header to create prompts - Add edit/delete buttons on user-owned prompt rows - Inline form for creating/editing prompts with name, description, content - JSInvokable callbacks (SavePromptFromPopup, DeletePromptFromPopup) via DotNetObjectReference - Fix pre-existing CS0126 build error in CopilotService.CreateSessionAsync - Add tests for edit/overwrite, delete-then-recreate, and popup UI assertions Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…andedSessionView - Add @implements IAsyncDisposable directive - Add DisposeAsync() to dispose _promptDotNetRef when component is removed - Resolve merge conflict with origin/main (keep PR management UI) - SavePromptFromPopup and DeletePromptFromPopup already have try/catch error logging Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Replace StateHasChanged() with await InvokeAsync(StateHasChanged) in SavePromptFromPopup and DeletePromptFromPopup so continuations after Task.Run always marshal back to the Blazor dispatcher - In DisposeAsync, null out window.__ppRef via JS before disposing _promptDotNetRef to prevent stuck popup overlay on component teardown Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The prompts popup at the bottom of ExpandedSessionView only listed available prompts for click-to-use. There was no way to create, edit, or delete prompts from the UI. Additionally:
Changes
+ Newbutton in popup header to create prompts via inline formSavePromptFromPopup,DeletePromptFromPopup) viaDotNetObjectReferencefor JS→C# interopCopilotService.CreateSessionAsync(barereturn;in method returningTask<AgentSessionInfo>)Tests
PromptManagementPopupTests.cs(12 tests) — validates trigger visibility, pluralization, popup buttons, form fields, and callbacksPromptLibraryTests.cs— edit/overwrite, delete-then-recreate, delete non-existent