feat(app): add composer add menu with draft-preserving commands (#35711)
This commit is contained in:
parent
7c56319aa4
commit
3cd9ee5a73
22 changed files with 228 additions and 20 deletions
|
|
@ -8,6 +8,8 @@ test("resets transient prompt input state when the prompt session changes", () =
|
|||
const [state, setState] = createPromptInputTransientState(identity, 3)
|
||||
setState({
|
||||
popover: "slash",
|
||||
slashMenu: true,
|
||||
slashMenuQuery: "compact",
|
||||
historyIndex: 2,
|
||||
savedPrompt: {
|
||||
prompt: [{ type: "text", content: "draft-A", start: 0, end: 7 }],
|
||||
|
|
@ -23,6 +25,8 @@ test("resets transient prompt input state when the prompt session changes", () =
|
|||
|
||||
expect(state).toMatchObject({
|
||||
popover: null,
|
||||
slashMenu: false,
|
||||
slashMenuQuery: "",
|
||||
historyIndex: -1,
|
||||
savedPrompt: null,
|
||||
placeholder: 3,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue